From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Date: Fri, 30 Sep 2011 07:51:34 +0000 Subject: Re: [PATCH] net: sh_eth: fix build failure Message-Id: <4E857506.5030501@renesas.com> List-Id: References: <4E8534A9.3050002@renesas.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Nobuhiro Iwamatsu Cc: "David S. Miller" , Stephen Rothwell , netdev@vger.kernel.org, SH-Linux 2011/09/30 15:55, Nobuhiro Iwamatsu wrote: > 2011/9/30 Yoshihiro Shimoda : < snip > >> +#include >> +#include > These are not required. The Documentation/SubmitChecklist says the following: ============================ 1: If you use a facility then #include the file that defines/declares that facility. Don't depend on other header files pulling in ones that you use. ============================ The sh_eth driver uses spinlock functions and some macros of kernel.h. So, I think that I have to write their "#include" in the driver. Best regards, Yoshihiro Shimoda > > Best regards, > Nobuhiro > Nobuhiro Iwamatsu > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshihiro Shimoda Subject: Re: [PATCH] net: sh_eth: fix build failure Date: Fri, 30 Sep 2011 16:51:34 +0900 Message-ID: <4E857506.5030501@renesas.com> References: <4E8534A9.3050002@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Stephen Rothwell , netdev@vger.kernel.org, SH-Linux To: Nobuhiro Iwamatsu Return-path: In-reply-to: Sender: linux-sh-owner@vger.kernel.org List-Id: netdev.vger.kernel.org 2011/09/30 15:55, Nobuhiro Iwamatsu wrote: > 2011/9/30 Yoshihiro Shimoda : < snip > >> +#include >> +#include > These are not required. The Documentation/SubmitChecklist says the following: ======================================================== 1: If you use a facility then #include the file that defines/declares that facility. Don't depend on other header files pulling in ones that you use. ======================================================== The sh_eth driver uses spinlock functions and some macros of kernel.h. So, I think that I have to write their "#include" in the driver. Best regards, Yoshihiro Shimoda > > Best regards, > Nobuhiro > Nobuhiro Iwamatsu >