Problem with new kernels and gcc versions.

"Maxim Grechkin" <[email protected]> Wed, 22 Mar 2006 16:29:33 +0300
Newsgroups gmane.linux.drivers.at76c503a.user
Message-ID <[email protected]>
------=_Part_8900_9069328.1143034173630
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Problem with gcc 4 is fixed in latest debian package and gentoo
ebuild. To fix problem with falsely claims to have parameter ... . You
should use at76-7-gcc4.diff patch from gentoo portage. I attached it
with this message.

------=_Part_8900_9069328.1143034173630
Content-Type: application/octet-stream; name=at76-7-gcc4.diff
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_el3ozv20
Content-Disposition: attachment; filename="at76-7-gcc4.diff"

diff -Naur at76c503a-0.12.beta23.orig/at76c503.c at76c503a-0.12.beta23.mod/at76c503.c
--- at76c503a-0.12.beta23.orig/at76c503.c	2006-03-09 21:07:26.000000000 +0300
+++ at76c503a-0.12.beta23.mod/at76c503.c	2006-03-09 21:27:29.000000000 +0300
@@ -279,60 +279,60 @@
 #define DRIVER_DESC "Generic Atmel at76c503/at76c505 routines"
 
 /* Module paramaters */
-MODULE_PARM(debug, "i");
+module_param(debug, int, 0);
 #define DRIVER_AUTHOR \
 "Oliver Kurth, Joerg Albert <[email protected]>, Alex, Nick Jones, "\
 "Balint Seeber <[email protected]>"
 MODULE_PARM_DESC(debug, "Debugging level");
 
 static int rx_copybreak = 200;
-MODULE_PARM(rx_copybreak, "i");
+module_param(rx_copybreak, int, 0);
 MODULE_PARM_DESC(rx_copybreak, "rx packet copy threshold");
 
 static int scan_min_time = 10;
-MODULE_PARM(scan_min_time, "i");
+module_param(scan_min_time, int, 0);
 MODULE_PARM_DESC(scan_min_time, "scan min channel time (default: 10)");
 
 static int scan_max_time = 120;
-MODULE_PARM(scan_max_time, "i");
+module_param(scan_max_time, int, 0);
 MODULE_PARM_DESC(scan_max_time, "scan max channel time (default: 120)");
 
 static int scan_mode = SCAN_TYPE_ACTIVE;
-MODULE_PARM(scan_mode, "i");
+module_param(scan_mode, int, 0);
 MODULE_PARM_DESC(scan_mode, "scan mode: 0 active (with ProbeReq, default), 1 passive");
 
 static int preamble_type = PREAMBLE_TYPE_LONG;
-MODULE_PARM(preamble_type, "i");
+module_param(preamble_type, int, 0);
 MODULE_PARM_DESC(preamble_type, "preamble type: 0 long (default), 1 short");
 
 static int auth_mode = 0;
-MODULE_PARM(auth_mode, "i");
+module_param(auth_mode, int, 0);
 MODULE_PARM_DESC(auth_mode, "authentication mode: 0 open system (default), "
 		 "1 shared secret");
 
 static int pm_mode = PM_ACTIVE;
-MODULE_PARM(pm_mode, "i");
+module_param(pm_mode, int, 0);
 MODULE_PARM_DESC(pm_mode, "power management mode: 1 active (def.), 2 powersave, 3 smart save");
 
 static int pm_period = 0;
-MODULE_PARM(pm_period, "i");
+module_param(pm_period, int, 0);
 MODULE_PARM_DESC(pm_period, "period of waking up the device in usec");
 
 static int international_roaming = IR_OFF;
-MODULE_PARM(international_roaming, "i");
+module_param(international_roaming, int, 0);
 MODULE_PARM_DESC(international_roaming, "enable international roaming: 0 (no, default), 1 (yes)");
 
 static int default_iw_mode = IW_MODE_INFRA;
-MODULE_PARM(default_iw_mode, "i");
+module_param(default_iw_mode, int, 0);
 MODULE_PARM_DESC(default_iw_mode, "default IW mode for a new device: "
 		 "1 (ad-hoc), 2 (infrastructure, def.), 6 (monitor mode)");
 
 static int monitor_scan_min_time = 50;
-MODULE_PARM(monitor_scan_min_time, "i");
+module_param(monitor_scan_min_time, int, 0);
 MODULE_PARM_DESC(monitor_scan_min_time, "scan min channel time in MONITOR MODE (default: 50)");
 
 static int monitor_scan_max_time = 600;
-MODULE_PARM(monitor_scan_max_time, "i");
+module_param(monitor_scan_max_time, int, 0);
 MODULE_PARM_DESC(monitor_scan_max_time, "scan max channel time in MONITOR MODE (default: 600)");
 
 #define DEF_RTS_THRESHOLD 1536
diff -Naur at76c503a-0.12.beta23.orig/at76c503-fw_skel.c at76c503a-0.12.beta23.mod/at76c503-fw_skel.c
--- at76c503a-0.12.beta23.orig/at76c503-fw_skel.c	2006-03-09 21:07:26.000000000 +0300
+++ at76c503a-0.12.beta23.mod/at76c503-fw_skel.c	2006-03-09 21:30:02.000000000 +0300
@@ -40,11 +40,11 @@
 /* Module paramaters */
 
 static char netdev_name[IFNAMSIZ+1] = "wlan%d";
-MODULE_PARM(netdev_name, "c" __MODULE_STRING(IFNAMSIZ));
+module_param(netdev_name, charp, 0);
 MODULE_PARM_DESC(netdev_name,
                  "network device name (default is wlan%d)");
 static int debug = 1;
-MODULE_PARM(debug, "i");
+module_param(debug, int, 0);
 MODULE_PARM_DESC(debug,
                  "debug output (default: 1)");
 
diff -Naur at76c503a-0.12.beta23.orig/at76_usbdfu.c at76c503a-0.12.beta23.mod/at76_usbdfu.c
--- at76c503a-0.12.beta23.orig/at76_usbdfu.c	2004-09-05 18:06:47.000000000 +0400
+++ at76c503a-0.12.beta23.mod/at76_usbdfu.c	2006-03-09 21:27:56.000000000 +0300
@@ -57,7 +57,7 @@
 #define DRIVER_DESC "USB Device Firmware Upgrade (DFU) handler"
 
 /* Module paramaters */
-MODULE_PARM(debug, "i");
+module_param(debug, int, 0);
 MODULE_PARM_DESC(debug, "debug enabled (=1)");
 
 /* DFU states */

------=_Part_8900_9069328.1143034173630--