[PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

Subsystems: framebuffer layer, the rest

STALE2600d

4 messages, 2 authors, 2019-06-21 · open the first message on its own page

[PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

From: Arnd Bergmann <arnd@arndb.de>
Date: 2019-06-17 13:16:50

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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/video/fbdev/pvr2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c
index 299ea7db9220..cf9cfdc5e685 100644
--- a/drivers/video/fbdev/pvr2fb.c
+++ b/drivers/video/fbdev/pvr2fb.c
@@ -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.20.0

Re: [PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

From: Bartlomiej Zolnierkiewicz <hidden>
Date: 2019-06-21 10:58:35

Hi,

On 6/17/19 3:16 PM, Arnd Bergmann wrote:
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 hunk
Fixes: 0f5a5712ad1e ("video: fbdev: pvr2fb: add COMPILE_TEST support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/video/fbdev/pvr2fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c
index 299ea7db9220..cf9cfdc5e685 100644
--- a/drivers/video/fbdev/pvr2fb.c
+++ b/drivers/video/fbdev/pvr2fb.c
@@ -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);
 }

Re: [PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

From: Arnd Bergmann <arnd@arndb.de>
Date: 2019-06-21 11:05:38

On Fri, Jun 21, 2019 at 12:58 PM Bartlomiej Zolnierkiewicz
[off-list ref] wrote:
On 6/17/19 3:16 PM, Arnd Bergmann wrote:
quoted
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

Re: [PATCH] video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit

From: Bartlomiej Zolnierkiewicz <hidden>
Date: 2019-06-21 11:23:41

On 6/21/19 1:05 PM, Arnd Bergmann wrote:
On Fri, Jun 21, 2019 at 12:58 PM Bartlomiej Zolnierkiewicz
[off-list ref] wrote:
quoted
On 6/17/19 3:16 PM, Arnd Bergmann wrote:
quoted
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?
Sure.

I've queued the patch for v5.3, thanks!

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help