Index: Makefile =================================================================== RCS file: /usr/cvsroot/zaptel/Makefile,v retrieving revision 1.63 diff -u -r1.63 Makefile --- Makefile 11 Jan 2005 02:33:08 -0000 1.63 +++ Makefile 13 Jan 2005 21:25:20 -0000 @@ -31,6 +31,7 @@ KFLAGS+=-DSTANDALONE_ZAPATA CFLAGS+=-DSTANDALONE_ZAPATA +CFLAGS+=$(shell make -C test >/dev/null 2>&1 ; if [ -f "test/ztdummy.ko" ]; then echo "-DMODULE_PARAM_NOT_BROKEN" ; fi ) ROOT_PREFIX= INSTALL_PREFIX= @@ -359,6 +360,7 @@ fi clean: + make -C test clean rm -f torisatool makefw tor2fw.h rm -f ${BINS} rm -f *.o ztcfg tzdriver sethdlc sethdlc-new Index: pciradio.c =================================================================== RCS file: /usr/cvsroot/zaptel/pciradio.c,v retrieving revision 1.6 diff -u -r1.6 pciradio.c --- pciradio.c 13 Jan 2005 06:20:02 -0000 1.6 +++ pciradio.c 13 Jan 2005 21:25:20 -0000 @@ -1692,7 +1692,7 @@ pci_unregister_driver(&pciradio_driver); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); #else MODULE_PARM(debug, "i"); Index: tor2.c =================================================================== RCS file: /usr/cvsroot/zaptel/tor2.c,v retrieving revision 1.21 diff -u -r1.21 tor2.c --- tor2.c 13 Jan 2005 06:20:02 -0000 1.21 +++ tor2.c 13 Jan 2005 21:25:21 -0000 @@ -1510,7 +1510,7 @@ MODULE_LICENSE("GPL"); #endif -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); module_param(loopback, int, 0600); module_param(timingcable, int, 0600); Index: torisa.c =================================================================== RCS file: /usr/cvsroot/zaptel/torisa.c,v retrieving revision 1.9 diff -u -r1.9 torisa.c --- torisa.c 13 Jan 2005 06:20:02 -0000 1.9 +++ torisa.c 13 Jan 2005 21:25:21 -0000 @@ -1159,7 +1159,7 @@ MODULE_LICENSE("GPL"); #endif -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(prefmaster, int, 0600); module_param(base, long, 0600); module_param(irq, int, 0600); Index: wcfxo.c =================================================================== RCS file: /usr/cvsroot/zaptel/wcfxo.c,v retrieving revision 1.27 diff -u -r1.27 wcfxo.c --- wcfxo.c 13 Jan 2005 06:20:02 -0000 1.27 +++ wcfxo.c 13 Jan 2005 21:25:21 -0000 @@ -1014,7 +1014,7 @@ pci_unregister_driver(&wcfxo_driver); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); module_param(quiet, int, 0600); module_param(boost, int, 0600); Index: wct1xxp.c =================================================================== RCS file: /usr/cvsroot/zaptel/wct1xxp.c,v retrieving revision 1.20 diff -u -r1.20 wct1xxp.c --- wct1xxp.c 13 Jan 2005 06:20:02 -0000 1.20 +++ wct1xxp.c 13 Jan 2005 21:25:21 -0000 @@ -1398,7 +1398,7 @@ pci_unregister_driver(&t1xxp_driver); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); #else MODULE_PARM(debug, "i"); Index: wct4xxp.c =================================================================== RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v retrieving revision 1.53 diff -u -r1.53 wct4xxp.c --- wct4xxp.c 13 Jan 2005 06:20:02 -0000 1.53 +++ wct4xxp.c 13 Jan 2005 21:25:21 -0000 @@ -1735,7 +1735,7 @@ #ifdef MODULE_LICENSE MODULE_LICENSE("GPL"); #endif -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); module_param(loopback, int, 0600); module_param(noburst, int, 0600); Index: wctdm.c =================================================================== RCS file: /usr/cvsroot/zaptel/wctdm.c,v retrieving revision 1.99 diff -u -r1.99 wctdm.c --- wctdm.c 13 Jan 2005 06:20:02 -0000 1.99 +++ wctdm.c 13 Jan 2005 21:25:22 -0000 @@ -2211,7 +2211,7 @@ pci_unregister_driver(&wctdm_driver); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); module_param(loopcurrent, int, 0600); module_param(robust, int, 0600); Index: wcte11xp.c =================================================================== RCS file: /usr/cvsroot/zaptel/wcte11xp.c,v retrieving revision 1.6 diff -u -r1.6 wcte11xp.c --- wcte11xp.c 13 Jan 2005 06:20:02 -0000 1.6 +++ wcte11xp.c 13 Jan 2005 21:25:22 -0000 @@ -1557,7 +1557,7 @@ pci_unregister_driver(&t1xxp_driver); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(alarmdebounce, int, 0600); module_param(loopback, int, 0600); module_param(t1e1override, int, 0600); Index: zaptel.c =================================================================== RCS file: /usr/cvsroot/zaptel/zaptel.c,v retrieving revision 1.100 diff -u -r1.100 zaptel.c --- zaptel.c 13 Jan 2005 06:20:02 -0000 1.100 +++ zaptel.c 13 Jan 2005 21:25:23 -0000 @@ -6225,7 +6225,7 @@ MODULE_LICENSE("GPL"); #endif -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); module_param(deftaps, int, 0600); #else Index: ztdummy.c =================================================================== RCS file: /usr/cvsroot/zaptel/ztdummy.c,v retrieving revision 1.5 diff -u -r1.5 ztdummy.c --- ztdummy.c 13 Jan 2005 06:20:02 -0000 1.5 +++ ztdummy.c 13 Jan 2005 21:25:23 -0000 @@ -227,7 +227,7 @@ -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); #else MODULE_PARM(debug, "i"); Index: ztdynamic.c =================================================================== RCS file: /usr/cvsroot/zaptel/ztdynamic.c,v retrieving revision 1.8 diff -u -r1.8 ztdynamic.c --- ztdynamic.c 13 Jan 2005 06:20:02 -0000 1.8 +++ ztdynamic.c 13 Jan 2005 21:25:23 -0000 @@ -817,7 +817,7 @@ printk("Zaptel Dynamic Span support unloaded\n"); } -#ifdef LINUX26 +#if defined(LINUX26) && defined(MODULE_PARAM_NOT_BROKEN) module_param(debug, int, 0600); #else MODULE_PARM(debug, "i");