All of lore.kernel.org
 help / color / mirror / Atom feed
* virtio-net: new section mismatch warning. revert patch?
@ 2009-11-04 14:17 Michael S. Tsirkin
  2009-11-04 17:25 ` Sam Ravnborg
  2009-11-05  4:40 ` Rusty Russell
  0 siblings, 2 replies; 6+ messages in thread
From: Michael S. Tsirkin @ 2009-11-04 14:17 UTC (permalink / raw)
  To: Uwe Kleine-König, Sam Ravnborg
  Cc: David S. Miller, Rusty Russell, Alex Williamson, Mark McLoughlin,
	netdev, linux-kernel

With v2.6.32-rcX I started getting section mismatch warnings for
virtio_net.
make with CONFIG_DEBUG_SECTION_MISMATCH=y shows:

WARNING: drivers/net/virtio_net.o(.data+0x90): Section mismatch in
reference from the variable virtio_net to the function
.devexit.text:virtnet_remove()                                                                    
The variable virtio_net references                                                                            
the function __devexit virtnet_remove()                                                                       
If the reference is valid then annotate the                                                                   
variable with __exit* (see linux/init.h) or name the variable:                                                
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,                                  

virtnet_remove was converted to devexit by this commit:

	commit 3d1285beff2e8467b8c3884d83b7a91a99aa9fcd
	Author: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
	Date:   Wed Sep 30 22:28:34 2009 +0000

	    move virtnet_remove to .devexit.text

We didn't have these warnings in v2.6.31, so this is a regression.
revert?

-- 
MST

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-05  9:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-04 14:17 virtio-net: new section mismatch warning. revert patch? Michael S. Tsirkin
2009-11-04 17:25 ` Sam Ravnborg
2009-11-05  4:40 ` Rusty Russell
2009-11-05  8:17   ` [PATCH] virtio_net: rename driver struct to please modpost Uwe Kleine-König
2009-11-05  8:17     ` Uwe Kleine-König
2009-11-05  9:32     ` David Miller

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.