Messages in this thread | | | Date | Sat, 26 Jan 2008 06:44:48 -0500 | From | Jeff Garzik <> | Subject | Re: [Patch] Shut up warnings from files under drivers/ |
| |
WANG Cong wrote: > For example, the defination of __devexit_p: > > #if defined(MODULE) || defined(CONFIG_HOTPLUG) > #define __devexit_p(x) x > #else > #define __devexit_p(x) NULL > #endif > > If !(defined(MODULE) || defined(CONFIG_HOTPLUG)), __devexit_p > is just a NULL pointer, thus 'x' may be unused although defined.
...and that's the purpose of the __devexit marker on the code itself.
Jeff
| |