* [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG
@ 2010-09-18 20:23 Randy Dunlap
2010-09-21 22:25 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2010-09-18 20:23 UTC (permalink / raw)
To: lkml; +Cc: gregkh, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
Fix kconfig dependency warning for FW_LOADER.
Lots of drivers select FW_LOADER without bothering to depend on
HOTPLUG and/or without selecting HOTPLUG. A kernel builds fine
when FW_LOADER is enabled, whether HOTPLUG is enabled or not, and
a kernel config file (make oldconfig) is not changed by this patch.
(Yes, drivers/base/firmware_class.c uses interfaces from linux/kobject.h,
which does have some CONFIG_HOTPLUG dependencies, but this patch does
not change that.)
warning: (MICROCODE || MICROCODE_INTEL && MICROCODE || MICROCODE_AMD && MICROCODE || PCMCIA_LOAD_CIS && PCCARD && PCMCIA && EXPERIMENTAL || USB_IRDA && NET && IRDA && USB || BT_HCIBCM203X && NET && BT && USB || BT_HCIBFUSB && NET && BT && USB || BT_HCIBT3C && NET && BT && PCMCIA || BT_MRVL_SDIO && NET
...
!STAGING_EXCLUDE_BUILD && USB && (X86 || ARM) && WLAN || DRM_NOUVEAU && STAGING && !STAGING_EXCLUDE_BUILD && DRM && PCI || TI_ST && STAGING && !STAGING_EXCLUDE_BUILD && RFKILL || DELL_RBU && X86) selects FW_LOADER which has unmet direct dependencies (HOTPLUG)
(5200 byte line reduced a lot)
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
drivers/base/Kconfig | 1 -
1 file changed, 1 deletion(-)
BTW, drivers/base/firmware_class.c should #include <linux/kobject.h>.
--- linux-next-20100917.orig/drivers/base/Kconfig
+++ linux-next-20100917/drivers/base/Kconfig
@@ -71,7 +71,6 @@ config PREVENT_FIRMWARE_BUILD
config FW_LOADER
tristate "Userspace firmware loading support" if EMBEDDED
- depends on HOTPLUG
default y
---help---
This option is provided for the case where no in-kernel-tree modules
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG
2010-09-18 20:23 [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG Randy Dunlap
@ 2010-09-21 22:25 ` Greg KH
2010-09-21 22:45 ` Randy Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-09-21 22:25 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, gregkh, akpm
On Sat, Sep 18, 2010 at 01:23:08PM -0700, Randy Dunlap wrote:
>
> BTW, drivers/base/firmware_class.c should #include <linux/kobject.h>.
Why, it looks like it builds properly now, right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG
2010-09-21 22:25 ` Greg KH
@ 2010-09-21 22:45 ` Randy Dunlap
2010-09-21 22:51 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2010-09-21 22:45 UTC (permalink / raw)
To: Greg KH; +Cc: lkml, gregkh, akpm
On 09/21/10 15:25, Greg KH wrote:
> On Sat, Sep 18, 2010 at 01:23:08PM -0700, Randy Dunlap wrote:
>>
>> BTW, drivers/base/firmware_class.c should #include <linux/kobject.h>.
>
> Why, it looks like it builds properly now, right?
Yes, it builds because (apparently) some other header file is causing
<linux/kobject.h> to be sucked in. That's not how we prefer to have header
files used.
See Documentation/SubmitChecklist, item #1 (from Stephen Rothwell):
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.
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG
2010-09-21 22:45 ` Randy Dunlap
@ 2010-09-21 22:51 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2010-09-21 22:51 UTC (permalink / raw)
To: Randy Dunlap; +Cc: lkml, gregkh, akpm
On Tue, Sep 21, 2010 at 03:45:49PM -0700, Randy Dunlap wrote:
> On 09/21/10 15:25, Greg KH wrote:
> > On Sat, Sep 18, 2010 at 01:23:08PM -0700, Randy Dunlap wrote:
> >>
> >> BTW, drivers/base/firmware_class.c should #include <linux/kobject.h>.
> >
> > Why, it looks like it builds properly now, right?
>
> Yes, it builds because (apparently) some other header file is causing
> <linux/kobject.h> to be sucked in. That's not how we prefer to have header
> files used.
>
> See Documentation/SubmitChecklist, item #1 (from Stephen Rothwell):
>
> 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.
Fair enough, care to send a patch? :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-21 22:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-18 20:23 [PATCH] FW_LOADER: fix kconfig dependency warning on HOTPLUG Randy Dunlap
2010-09-21 22:25 ` Greg KH
2010-09-21 22:45 ` Randy Dunlap
2010-09-21 22:51 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.