]> git.baikalelectronics.ru Git - kernel.git/commit
net/hp100: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Fri, 1 Jun 2007 07:47:14 +0000 (00:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 1 Jun 2007 15:18:30 +0000 (08:18 -0700)
commita75299db6cda69316f5bf8f4981c237167db44a1
treeb1ea086730b77a0d121decfd21583c5064998958
parent34cc4ff8e5b2ce1948d6d168f876beb88e9a0595
net/hp100: fix section mismatch warning

Fix following section mismatch warning in hp100:

WARNING: drivers/net/hp100.o(.init.text+0x26a): Section mismatch: reference to .exit.text: (after 'init_module')

The warning says that we use a function marked __exit from a
function marked __init.
This is not good on architectures where we discard __exit section
for drivers that are built-in.

Note: This warning is only seen by my local copy of modpost
      but the change will soon hit upstream.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/hp100.c