From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: sh_eth: fix build failure Date: Fri, 30 Sep 2011 03:54:49 -0400 (EDT) Message-ID: <20110930.035449.1012299223616580574.davem@davemloft.net> References: <4E8534A9.3050002@renesas.com> <4E857506.5030501@renesas.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: nobuhiro.iwamatsu.yj@renesas.com, sfr@canb.auug.org.au, netdev@vger.kernel.org, linux-sh@vger.kernel.org To: yoshihiro.shimoda.uh@renesas.com Return-path: In-Reply-To: <4E857506.5030501@renesas.com> Sender: linux-sh-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Yoshihiro Shimoda Date: Fri, 30 Sep 2011 16:51:34 +0900 > 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. Agreed.