[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <479B1D30.20501@garzik.org>
Date: Sat, 26 Jan 2008 06:44:48 -0500
From: Jeff Garzik <jeff@...zik.org>
To: WANG Cong <xiyou.wangcong@...il.com>
CC: Greg KH <gregkh@...e.de>, LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...l.org>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists