Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] fix section mismatch in pm2fb.o

WARNING: drivers/video/pm2fb.o - Section mismatch: reference
to .init.data: from .text after 'pm2fb_set_par' (at offset 0xd5d)
WARNING: drivers/video/pm2fb.o - Section mismatch: reference
to .init.data: from .text after 'pm2fb_set_par' (at offset 0xd82)

They are caused because pm2fb_set_par() uses lowhsync and lowvsync which
are marked __devinitdata.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Darren Jenkins and committed by
Linus Torvalds
c16c556e 6d472be3

+2 -2
+2 -2
drivers/video/pm2fb.c
··· 73 73 * these flags allow the user to specify that requests for +ve sync 74 74 * should be silently turned in -ve sync. 75 75 */ 76 - static int lowhsync __devinitdata = 0; 77 - static int lowvsync __devinitdata = 0; 76 + static int lowhsync; 77 + static int lowvsync; 78 78 79 79 /* 80 80 * The hardware state of the graphics card that isn't part of the