From patchwork Sun Apr 6 17:34:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 337277 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B43351400CB for ; Mon, 7 Apr 2014 03:36:00 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754441AbaDFRer (ORCPT ); Sun, 6 Apr 2014 13:34:47 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:50303 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754340AbaDFRep (ORCPT ); Sun, 6 Apr 2014 13:34:45 -0400 Received: from romuald.bergerie (unknown [88.178.86.202]) by smtp3-g21.free.fr (Postfix) with ESMTP id DEE5AA624D; Sun, 6 Apr 2014 19:34:33 +0200 (CEST) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with SMTP id A56751C5020; Sun, 6 Apr 2014 19:34:31 +0200 (CEST) Received: by radicelle.bergerie (sSMTP sendmail emulation); Sun, 06 Apr 2014 19:34:31 +0200 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-next@vger.kernel.org Cc: =?UTF-8?q?Vincent=20Stehl=C3=A9?= Subject: [PATCH] cpts: Fix missing includes Date: Sun, 6 Apr 2014 19:34:20 +0200 Message-Id: <1396805660-9807-1-git-send-email-vincent.stehle@laposte.net> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The ETH_HLEN and VLAN_HLEN definitions are not in if.h any more. Add the necessary includes to fix the following compilation errors: drivers/net/ethernet/ti/cpts.c: In function ‘cpts_match’: drivers/net/ethernet/ti/cpts.c:266:12: error: ‘ETH_HLEN’ undeclared (first use in this function) drivers/net/ethernet/ti/cpts.c:266:12: note: each undeclared identifier is reported only once for each function it appears in drivers/net/ethernet/ti/cpts.c:276:23: error: ‘VLAN_HLEN’ undeclared (first use in this function) Signed-off-by: Vincent Stehlé --- Hi, This compilation error can be seen with e.g. arm allmodconfig. Best regards, V. drivers/net/ethernet/ti/cpts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c index a3bbf59..2a2f82a 100644 --- a/drivers/net/ethernet/ti/cpts.c +++ b/drivers/net/ethernet/ti/cpts.c @@ -19,6 +19,8 @@ */ #include #include +#include +#include #include #include #include