public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Section mismatches in drivers/video/console/promcon
@ 2007-06-02 12:42 Sam Ravnborg
  2007-06-02 12:58 ` Jan Engelhardt
  2007-06-02 13:24 ` Antonino A. Daplas
  0 siblings, 2 replies; 7+ messages in thread
From: Sam Ravnborg @ 2007-06-02 12:42 UTC (permalink / raw)
  To: jakub, Jan Engelhardt, daplas; +Cc: LKML

Building a kernel for sparc64 defconfig gave me following warnings:
WARNING: drivers/built-in.o(.text+0xb788): Section mismatch: reference to .init.data:promfont_unitable (between 'promcon_init_unimap' and 'promcon_init')
WARNING: drivers/built-in.o(.text+0xb790): Section mismatch: reference to .init.data:promfont_unitable (between 'promcon_init_unimap' and 'promcon_init')
WARNING: drivers/built-in.o(.text+0xb794): Section mismatch: reference to .init.data:promfont_unicount (between 'promcon_init_unimap' and 'promcon_init')
WARNING: drivers/built-in.o(.text+0xb798): 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

The function promcon_init_unimap() are referenced in two places:
1) In prom_con_init() which is marked __init => no problem.
2) In promcon_init() which is not marked __init => warning.
The actual code is here:
	if (!promcon_uni_pagedir[0] && p) {
		promcon_init_unimap(conp);
	}

I could not from the code judge if promcon_init_unimap is really
only used during early init or this is a bug.
If promcon_init_unimap() is only used during early init it
should be marked __init_refok (with a proper comment)
to silence the warning.

A few people in to: that I hope can help out (thanks to git blame)...

	Sam

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

end of thread, other threads:[~2007-06-05 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-02 12:42 Section mismatches in drivers/video/console/promcon Sam Ravnborg
2007-06-02 12:58 ` Jan Engelhardt
2007-06-02 13:24 ` Antonino A. Daplas
2007-06-02 19:16   ` Sam Ravnborg
2007-06-05  6:53     ` David Miller
2007-06-05  8:05       ` Sam Ravnborg
2007-06-05 10:52       ` Antonino A. Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox