Hello Vojtech, Two gameport drivers need __devexit_p wrapped around their remove functions. A newer binutils caught this is a link error. This patch fixes that.
The patch is against linux-2.5 BK as of 0700 UTC 10/20/2003 and for about two months prior to that. The modified drivers compile cleanly for (to the best of my recollection) alpha, sparc, sparc64, and i386. I am not aware of any hardware I have access to that I could test the patch on, but I think the change is fairly straightforward. Please consider. Thanks, Noah # This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1368 -> 1.1369 # drivers/input/gameport/fm801-gp.c 1.7 -> 1.8 # drivers/input/gameport/vortex.c 1.7 -> 1.8 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/10/16 [EMAIL PROTECTED] 1.1369 # Wrapped a __devexit_p around the 'remove' functions of two gameport # drivers. The lack of __devexit_p was wrong according to linux/init.h, # differed from the practices in nearby files, and caused a link error # with binutils 2.14.90.0.5. # -------------------------------------------- # diff -Nru a/drivers/input/gameport/fm801-gp.c b/drivers/input/gameport/fm801-gp.c --- a/drivers/input/gameport/fm801-gp.c Fri Oct 17 13:40:32 2003 +++ b/drivers/input/gameport/fm801-gp.c Fri Oct 17 13:40:32 2003 @@ -140,7 +140,7 @@ .name = "FM801 GP", .id_table = fm801_gp_id_table, .probe = fm801_gp_probe, - .remove = fm801_gp_remove, + .remove = __devexit_p(fm801_gp_remove), }; int __init fm801_gp_init(void) diff -Nru a/drivers/input/gameport/vortex.c b/drivers/input/gameport/vortex.c --- a/drivers/input/gameport/vortex.c Fri Oct 17 13:40:32 2003 +++ b/drivers/input/gameport/vortex.c Fri Oct 17 13:40:32 2003 @@ -168,7 +168,7 @@ .name = "vortex", .id_table = vortex_id_table, .probe = vortex_probe, - .remove = vortex_remove, + .remove = __devexit_p(vortex_remove), }; int __init vortex_init(void) ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel