video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit
PATCH 1/1 video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit
When the driver is built-in for PCI, we reference the exit function after discarding it:
pvr2fb_pci_exit' referenced in section .ref.data' of drivers/video/fbdev/pvr2fb.o: defined in discarded section `.exit.text' of drivers/video/fbdev/pvr2fb.o
Just remove the __exit annotation as the easiest workaround.
--- drivers/video/fbdev/pvr2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/pvr2fb.c +1 -1
@@ -990,7 +990,7 @@ static int __init pvr2fb_pci_init(void)return pci_register_driver (&pvr2fb_pci_driver); } -static void __exit pvr2fb_pci_exit(void) +static void pvr2fb_pci_exit (void ) {pci_unregister_driver (&pvr2fb_pci_driver); }
Signature · 1 line
2.20.0
Hi,
Quoted 6 lines · Arnd Bergmann
When the driver is built-in for PCI, we reference the exit function after discarding it:
pvr2fb_pci_exit' referenced in section.ref.data' ofdrivers/video/fbdev/pvr2fb.o: defined in discarded section `.exit.text' ofdrivers/video/fbdev/pvr2fb.oJust remove the
__exitannotation as the easiest workaround.
Don't we also need to fix pvr2fb_dc_exit() for CONFIG_SH_DREAMCAST=y case?
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Quoted 19 lines
Fixes 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/video/fbdev/pvr2fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/fbdev/pvr2fb.c +1
-1@@ -990,7 +990,7 @@ static int __init pvr2fb_pci_init(void)return pci_register_driver (&pvr2fb_pci_driver); } -static void __exit pvr2fb_pci_exit(void) +static void pvr2fb_pci_exit (void ) {pci_unregister_driver (&pvr2fb_pci_driver); }
Quoted 10 lines · Bartlomiej Zolnierkiewicz
Quoted 6 lines · Arnd Bergmann
When the driver is built-in for PCI, we reference the exit function after discarding it:
pvr2fb_pci_exit' referenced in section.ref.data' ofdrivers/video/fbdev/pvr2fb.o: defined in discarded section `.exit.text' ofdrivers/video/fbdev/pvr2fb.oJust remove the
__exitannotation as the easiest workaround.Don't we also need to fix
pvr2fb_dc_exit()forCONFIG_SH_DREAMCAST=ycase?
I think that's correct, yes. Can you fix that up when applying the patch?
Arnd
Bartlomiej Zolnierkiewicz
AppliedQuoted 7 lines · Arnd Bergmann
Quoted 5 lines · Bartlomiej Zolnierkiewicz
Quoted 3 lines · Arnd Bergmann
When the driver is built-in for PCI, we reference the exit function after discarding it:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
pvr2fb_pci_exit' referenced in section.ref.data' ofdrivers/video/fbdev/pvr2fb.o: defined in discarded section `.exit.text' ofdrivers/video/fbdev/pvr2fb.oJust remove the
__exitannotation as the easiest workaround.Don't we also need to fix
pvr2fb_dc_exit()forCONFIG_SH_DREAMCAST=ycase?I think that's correct, yes. Can you fix that up when applying the patch?
Sure.
I've queued the patch for v5.3, thanks!
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics