[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20091117.040608.76998645.davem@davemloft.net>
Date: Tue, 17 Nov 2009 04:06:08 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: sfr@...b.auug.org.au
Cc: netdev@...r.kernel.org, laurentp@...-semaphore.com,
paulius.zaleckas@...tonika.lt, mware@...hinstone.net
Subject: Re: [PATCH] net: fix mdio section mismatch warning
From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Tue, 17 Nov 2009 19:47:33 +1100
> This fixes the following warning:
>
> WARNING: drivers/net/phy/built-in.o(.devexit.text+0x70): Section mismatch in reference from the function .mdio_gpio_bus_destroy() to the function .devinit.text:.mdio_gpio_bus_deinit()
> The function __devexit .mdio_gpio_bus_destroy() references
> a function __devinit .mdio_gpio_bus_deinit().
> This is often seen when error handling in the exit function
> uses functionality in the init path.
> The fix is often to remove the __devinit annotation of
> .mdio_gpio_bus_deinit() so it may be used outside an init section.
>
> Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
Applied to net-2.6, thanks Stephen.
I wish there was a better way to handle this kind of situation as it's
a quite common pattern (exit cleanup function used by device init
functions) because currently we end up not being able to put such
things into either init or exit sections.
--
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