Skip to contentSkip to conversation

video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

PATCH Applied Arnd Bergmann 2 participants 4 messages Jun 17, 2019 – Jun 21, 2019 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

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.

Fixes 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support")
---
 drivers/video/fbdev/pvr2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/pvr2fb.c +1 -1
index 299ea7db9220..cf9cfdc5e685 100644
@@ -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
#1 lore raw

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' 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.

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")
---
 drivers/video/fbdev/pvr2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/pvr2fb.c +1 -1
index 299ea7db9220..cf9cfdc5e685 100644
@@ -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);
 }
#2 lore raw
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' 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.

Don't we also need to fix pvr2fb_dc_exit() for CONFIG_SH_DREAMCAST=y case?

I think that's correct, yes. Can you fix that up when applying the patch?

Arnd

#3 lore raw
Quoted 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' 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.

Don't we also need to fix pvr2fb_dc_exit() for CONFIG_SH_DREAMCAST=y case?

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