[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110930.035449.1012299223616580574.davem@davemloft.net>
Date: Fri, 30 Sep 2011 03:54:49 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: yoshihiro.shimoda.uh@...esas.com
Cc: nobuhiro.iwamatsu.yj@...esas.com, sfr@...b.auug.org.au,
netdev@...r.kernel.org, linux-sh@...r.kernel.org
Subject: Re: [PATCH] net: sh_eth: fix build failure
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>
Date: Fri, 30 Sep 2011 16:51:34 +0900
> 2011/09/30 15:55, Nobuhiro Iwamatsu wrote:
>> 2011/9/30 Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>:
> < snip >
>>> +#include <linux/kernel.h>
>>> +#include <linux/spinlock.h>
>> 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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists