]> git.baikalelectronics.ru Git - kernel.git/commit
[VIDEO]: Fix section mismatch warning in promcon.
authorSam Ravnborg <sam@ravnborg.org>
Tue, 5 Jun 2007 06:52:45 +0000 (23:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2007 06:52:45 +0000 (23:52 -0700)
commit2034abc2d1a547e45f7d4f79341e999c44faa531
tree40cd766ce155a5ec4ae0197c291f5c96d9753c4d
parentd790e5e29f923691627f41cca3a67c9e1768a5dc
[VIDEO]: Fix section mismatch warning in promcon.

Fix the following warnings in promcon:
WARNING: o-sparc64/drivers/video/console/built-in.o(.text+0x480): Section mismatch: reference to .init.data:promfont_unitable (between 'promcon_init_unimap' and 'promcon_init')
WARNING: o-sparc64/drivers/video/console/built-in.o(.text+0x488): Section mismatch: reference to .init.data:promfont_unitable (between 'promcon_init_unimap' and 'promcon_init')
WARNING: o-sparc64/drivers/video/console/built-in.o(.text+0x48c): Section mismatch: reference to .init.data:promfont_unicount (between 'promcon_init_unimap' and 'promcon_init')
WARNING: o-sparc64/drivers/video/console/built-in.o(.text+0x490): Section mismatch: reference to .init.data:promfont_unicount (between 'promcon_init_unimap' and 'promcon_init')

The warnings happens because the function: promcon_init_unimap()
references promfont_unitable and promfont_unicount which are marked
__initdata by the conmakehash command in the drivers/video/console/Makefile

Fix the warning by removing the __initdata marker on the two variables.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/video/console/Makefile