diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-06-27 21:10:46 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-06-27 21:10:46 +0000 |
commit | de28b23f199acc5f0ad0372b1ddb3d340e27df17 (patch) | |
tree | 9f4c1308c195fab942abbc56caa62fd9a952bb11 /net-dialup/fcdsl | |
parent | dev-lang/boo: -r1 version bump - added doc and examples use flags, boo.lang i... (diff) | |
download | gentoo-2-de28b23f199acc5f0ad0372b1ddb3d340e27df17.tar.gz gentoo-2-de28b23f199acc5f0ad0372b1ddb3d340e27df17.tar.bz2 gentoo-2-de28b23f199acc5f0ad0372b1ddb3d340e27df17.zip |
Patch to fix compile errors thanks to Alan Hourihane <alanh@fairlite.demon.co.uk> in bug 177532
(Portage version: 2.1.3_rc5)
Diffstat (limited to 'net-dialup/fcdsl')
-rw-r--r-- | net-dialup/fcdsl/ChangeLog | 7 | ||||
-rw-r--r-- | net-dialup/fcdsl/fcdsl-2.6.37.ebuild | 5 | ||||
-rw-r--r-- | net-dialup/fcdsl/files/usb-2.6.20.diff | 189 |
3 files changed, 199 insertions, 2 deletions
diff --git a/net-dialup/fcdsl/ChangeLog b/net-dialup/fcdsl/ChangeLog index ba50b235afd0..54532e4bf7fa 100644 --- a/net-dialup/fcdsl/ChangeLog +++ b/net-dialup/fcdsl/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dialup/fcdsl # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/ChangeLog,v 1.28 2007/05/02 01:11:59 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/ChangeLog,v 1.29 2007/06/27 21:10:46 genstef Exp $ + + 27 Jun 2007; Stefan Schweizer <genstef@gentoo.org> +files/usb-2.6.20.diff, + fcdsl-2.6.37.ebuild: + Patch to fix compile errors thanks to Alan Hourihane + <alanh@fairlite.demon.co.uk> in bug 177532 02 May 2007; Marius Mauch <genone@gentoo.org> fcdsl-2.6.37.ebuild: Replacing einfo with elog diff --git a/net-dialup/fcdsl/fcdsl-2.6.37.ebuild b/net-dialup/fcdsl/fcdsl-2.6.37.ebuild index f73a65b85038..b745b2482731 100644 --- a/net-dialup/fcdsl/fcdsl-2.6.37.ebuild +++ b/net-dialup/fcdsl/fcdsl-2.6.37.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/fcdsl-2.6.37.ebuild,v 1.6 2007/05/02 01:11:59 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/fcdsl/fcdsl-2.6.37.ebuild,v 1.7 2007/06/27 21:10:46 genstef Exp $ inherit linux-mod eutils rpm @@ -78,6 +78,9 @@ src_unpack() { einfo "When you have FCDSL_CARDS set some errors are OK here" patch -p0 -f < ${FILESDIR}/fcdsl-2.6.20.diff patch -p0 -f < ${FILESDIR}/fcdslslusb-2.6.20.diff + cd usr/src/kernel-modules/fcdsl/src + kernel_is ge 2 6 20 && patch -p1 -f < ${FILESDIR}/usb-2.6.20.diff + cd "${S}" if use x86; then for ((CARD=0; CARD < ${#FCDSL_MODULES[*]}; CARD++)); do diff --git a/net-dialup/fcdsl/files/usb-2.6.20.diff b/net-dialup/fcdsl/files/usb-2.6.20.diff new file mode 100644 index 000000000000..7beff8b9f9a0 --- /dev/null +++ b/net-dialup/fcdsl/files/usb-2.6.20.diff @@ -0,0 +1,189 @@ +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslslusb/driver.c ./src.fcdslslusb/driver.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslslusb/driver.c 2005-07-06 22:00:00.000000000 +0000 ++++ ./src.fcdslslusb/driver.c 2007-06-27 19:56:42.000000000 +0000 +@@ -106,7 +106,7 @@ + static int hard_error_issued = FALSE; + static atomic_t resetting_ctrl = ATOMIC_INIT (0); + static struct work_struct closing_work; +-static void closing_worker (void *); ++static void closing_worker (struct work_struct *); + static atomic_t closing_worker_running = ATOMIC_INIT (0); + static void (* close_func) (void *) = NULL; + static void * close_data = NULL; +@@ -341,8 +341,8 @@ + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +-static void closing_worker (void * ctx) { +- card_p card = (card_p) ctx; ++static void closing_worker (struct work_struct *work) { ++ card_p card = capi_card; + + DECLARE_WAIT_QUEUE_HEAD(close_wait); + +@@ -434,7 +434,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker, capi_card); ++ INIT_WORK (&closing_work, closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/driver.c ./src.fcdslusb/driver.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/driver.c 2005-08-04 22:00:00.000000000 +0000 ++++ ./src.fcdslusb/driver.c 2007-06-27 19:53:54.000000000 +0000 +@@ -84,7 +84,7 @@ + static atomic_t thread_capi_flag; + static atomic_t resetting_ctrl = ATOMIC_INIT (0); + static struct work_struct closing_work; +-static void closing_worker (void *); ++static void closing_worker (struct work_struct *); + static atomic_t closing_worker_running = ATOMIC_INIT (0); + static void (* close_func) (void *) = NULL; + static void * close_data = NULL; +@@ -699,8 +699,8 @@ + + /*-C-------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +-static void closing_worker (void * ctx) { +- card_p card = (card_p) ctx; ++static void closing_worker (struct work_struct *work) { ++ card_p card = capi_card; + + DECLARE_WAIT_QUEUE_HEAD(close_wait); + +@@ -787,7 +787,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker, capi_card); ++ INIT_WORK (&closing_work, closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c ./src.fcdslusb/main.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c 2006-01-30 16:06:37.000000000 +0000 ++++ ./src.fcdslusb/main.c 2007-06-27 19:40:42.000000000 +0000 +@@ -76,14 +76,7 @@ + } ; + + static struct usb_driver usb_driver = { +-#ifndef OLD_USB_DRIVER +- .driver = { +-#endif +- .owner = THIS_MODULE, +- .name = TARGET, +-#ifndef OLD_USB_DRIVER +- }, +-#endif ++ .name = TARGET, + .id_table = usb_id_table, + .probe = usb_probe, + .disconnect = usb_disconnect, +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb2/driver.c ./src.fcdslusb2/driver.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb2/driver.c 2005-08-04 22:00:00.000000000 +0000 ++++ ./src.fcdslusb2/driver.c 2007-06-27 19:57:51.000000000 +0000 +@@ -106,7 +106,7 @@ + static int hard_error_issued = FALSE; + static atomic_t resetting_ctrl = ATOMIC_INIT (0); + static struct work_struct closing_work; +-static void closing_worker (void *); ++static void closing_worker (struct work_struct *); + static atomic_t closing_worker_running = ATOMIC_INIT (0); + static void (* close_func) (void *) = NULL; + static void * close_data = NULL; +@@ -341,8 +341,8 @@ + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +-static void closing_worker (void * ctx) { +- card_p card = (card_p) ctx; ++static void closing_worker (struct work_struct *work) { ++ card_p card = capi_card; + + DECLARE_WAIT_QUEUE_HEAD(close_wait); + +@@ -434,7 +434,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker, capi_card); ++ INIT_WORK (&closing_work, closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +Only in ./src.fcdslusb2: driver.o +Only in ./src.fcdslusb2: lib.o +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb2/main.c ./src.fcdslusb2/main.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb2/main.c 2007-06-27 20:01:13.000000000 +0000 ++++ ./src.fcdslusb2/main.c 2007-06-27 19:57:13.000000000 +0000 +@@ -91,15 +91,7 @@ + } ; + + static struct usb_driver usb_driver = { +- +-#ifndef OLD_USB_DRIVER +- .driver = { +-#endif +- .owner = THIS_MODULE, +- .name = TARGET, +-#ifndef OLD_USB_DRIVER +- }, +-#endif ++ .name = TARGET, + .id_table = usb_id_table, + .probe = usb_probe, + .disconnect = usb_disconnect, +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusba/driver.c ./src.fcdslusba/driver.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusba/driver.c 2005-07-06 22:00:00.000000000 +0000 ++++ ./src.fcdslusba/driver.c 2007-06-27 19:58:47.000000000 +0000 +@@ -106,7 +106,7 @@ + static int hard_error_issued = FALSE; + static atomic_t resetting_ctrl = ATOMIC_INIT (0); + static struct work_struct closing_work; +-static void closing_worker (void *); ++static void closing_worker (struct work_struct *); + static atomic_t closing_worker_running = ATOMIC_INIT (0); + static void (* close_func) (void *) = NULL; + static void * close_data = NULL; +@@ -341,8 +341,8 @@ + + /*---------------------------------------------------------------------------*\ + \*---------------------------------------------------------------------------*/ +-static void closing_worker (void * ctx) { +- card_p card = (card_p) ctx; ++static void closing_worker (struct work_struct *work) { ++ card_p card = capi_card; + + DECLARE_WAIT_QUEUE_HEAD(close_wait); + +@@ -434,7 +434,7 @@ + close_func = func; + close_data = data; + +- INIT_WORK (&closing_work, closing_worker, capi_card); ++ INIT_WORK (&closing_work, closing_worker); + schedule_work (&closing_work); + LOG("Worker scheduled.\n"); + } /* start_closing_worker */ +diff -ur /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusba/main.c ./src.fcdslusba/main.c +--- /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusba/main.c 2007-06-27 20:01:13.000000000 +0000 ++++ ./src.fcdslusba/main.c 2007-06-27 19:58:18.000000000 +0000 +@@ -91,15 +91,7 @@ + } ; + + static struct usb_driver usb_driver = { +- +-#ifndef OLD_USB_DRIVER +- .driver = { +-#endif +- .owner = THIS_MODULE, +- .name = TARGET, +-#ifndef OLD_USB_DRIVER +- }, +-#endif ++ .name = TARGET, + .id_table = usb_id_table, + .probe = usb_probe, + .disconnect = usb_disconnect, |