From patchwork Thu Dec 1 08:07:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 128659 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 CC77EB6F65 for ; Thu, 1 Dec 2011 19:07:50 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754349Ab1LAIHa (ORCPT ); Thu, 1 Dec 2011 03:07:30 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:42094 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754243Ab1LAIH3 (ORCPT ); Thu, 1 Dec 2011 03:07:29 -0500 Received: by yenl6 with SMTP id l6so1427178yen.19 for ; Thu, 01 Dec 2011 00:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=9SMQzk1UfXDzxFwrwJJdGS5IdkS7v/NqDMsZSh1Sus0=; b=wJqvHpmFbFyAzBewRlf5KROAeoAQxePX6zoUofoou7bBhn8iC1z00I+7d4l43odYzL kgDGD3gfaTyEpQd/keu94QO4JNvns+fIgTsbKXVRnLQOX4Y5D3V/a5EPBBdNsL6eaoZM YeQs3IUPvncNKW+1zL0LxkkdEzDSCOcPmMOiE= Received: by 10.236.190.197 with SMTP id e45mr9573176yhn.101.1322726849065; Thu, 01 Dec 2011 00:07:29 -0800 (PST) Received: from [218.172.235.20] (218-172-235-20.dynamic.hinet.net. [218.172.235.20]) by mx.google.com with ESMTPS id i31sm13204107anm.19.2011.12.01.00.07.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 01 Dec 2011 00:07:28 -0800 (PST) Message-ID: <1322726838.14554.3.camel@phoenix> Subject: [PATCH] dsa: Include linux/if_ether.h to fix build error From: Axel Lin To: linux-kernel@vger.kernel.org Cc: "David S. Miller" , netdev@vger.kernel.org Date: Thu, 01 Dec 2011 16:07:18 +0800 X-Mailer: Evolution 3.2.1- Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Include linux/if_ether.h to fix below build errors: CC arch/arm/mach-kirkwood/common.o In file included from arch/arm/mach-kirkwood/common.c:19: include/net/dsa.h: In function 'dsa_uses_dsa_tags': include/net/dsa.h:192: error: 'ETH_P_DSA' undeclared (first use in this function) include/net/dsa.h:192: error: (Each undeclared identifier is reported only once include/net/dsa.h:192: error: for each function it appears in.) include/net/dsa.h: In function 'dsa_uses_trailer_tags': include/net/dsa.h:197: error: 'ETH_P_TRAILER' undeclared (first use in this function) make[1]: *** [arch/arm/mach-kirkwood/common.o] Error 1 make: *** [arch/arm/mach-kirkwood] Error 2 Signed-off-by: Axel Lin --- include/net/dsa.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/net/dsa.h b/include/net/dsa.h index b78db3c..7828ebf 100644 --- a/include/net/dsa.h +++ b/include/net/dsa.h @@ -11,6 +11,7 @@ #ifndef __LINUX_NET_DSA_H #define __LINUX_NET_DSA_H +#include #include #include #include