]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: pvr2fb: fix link error for pvr2fb_pci_exit
authorArnd Bergmann <arnd@arndb.de>
Fri, 21 Jun 2019 13:13:13 +0000 (15:13 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 21 Jun 2019 13:13:13 +0000 (15:13 +0200)
commit675297bb13b8e5c51569eb393afc71618234c5f3
tree94c1a2eedef2cc4e5e569d41a92ae6db1311fe76
parent9cc2f8bcfc4b127cbab9b318e372ed7bd1da9648
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.

Also apply the same workaround for pvr2fb_dc_exit().

Fixes: 9e0e19b73e5c ("video: fbdev: pvr2fb: add COMPILE_TEST support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: YueHaibing <yuehaibing@huawei.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
[b.zolnierkie: remove __exit annotation also from pvr2fb_dc_exit()]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/pvr2fb.c