PATCH 2.3.99-7-3: "incompatible types in assignment" in scc.c and mkiss.c (more to go)

From: iafilius@xs4all.nl
Date: Wed May 03 2000 - 16:28:41 EST


Hello,

If found a lot compile time errors like:
3c589_cs.c:257: incompatible types in assignment
(a a change in 2.3.99-7-3 but "forgotten" some drivers)

To fix compiletime i had to do for scc.c and mkiss.c:

--- ./drivers/net/hamradio/scc.c-2.3.99-7-3-orig Sun Mar 19 23:06:04 2000
+++ ./drivers/net/hamradio/scc.c Wed May 3 22:40:11 2000
@@ -1575,7 +1575,7 @@
         strcpy(buf, name);
 
         dev->priv = (void *) scc;
- dev->name = buf;
+ strcpy(dev->name, buf);
         dev->init = scc_net_init;
 
         if ((addev? register_netdevice(dev) : register_netdev(dev)) != 0)
--- ./drivers/net/hamradio/mkiss.c-2.3.99-7-3-orig Wed May 3 22:47:45 2000
+++ ./drivers/net/hamradio/mkiss.c Wed May 3 22:48:23 2000
@@ -202,7 +202,7 @@
                 set_bit(AXF_INUSE, &axp->ctrl.flags);
                 sprintf(axp->if_name, "ax%d", i++);
                 axp->ctrl.tty = NULL;
- axp->dev.name = axp->if_name;
+ strcpy(axp->dev.name, axp->if_name);
                 axp->dev.base_addr = i;
                 axp->dev.priv = (void *)&axp->ctrl;
                 axp->dev.next = NULL;

I found same errors in other drivers:

3c589_cs.c:257: incompatible types in assignment
3c574_cs.c:339: incompatible types in assignment
fmvj18x_cs.c:319: incompatible types in assignment
nmclan_cs.c:538: incompatible types in assignment
smc91c92_cs.c:381: incompatible types in assignment
xirc2ps_cs.c:720: incompatible types in assignment
netwave_cs.c:505: incompatible types in assignment
wavelan_cs.c:4502: incompatible types in assignment
aironet4500_cs.c:228: incompatible types in assignment
sdla_chdlc.c:606: incompatible types in assignment
sdla_ppp.c:504: incompatible types in assignment
cycx_x25.c:425: incompatible types in assignment
x25_asy.c:86: incompatible types in assignment
lapbether.c:444: incompatible types in assignment
lmc_main.c:862: incompatible types in assignment
plusb.c:469: incompatible types in assignment
plusb.c:528: incompatible types in assignment
plusb.c:542: incompatible types in assignment
plusb.c:605: incompatible types in assignment
isdn_net.c:2802: incompatible types in assignment
hysdn_net.c:326: incompatible types in assignment
hdlcdrv.c:848: incompatible types in assignment
dmascc.c:574: incompatible types in assignment
dmascc.c:596: incompatible types in assignment
6pack.c:111: incompatible types in assignment
yam.c:1167: incompatible types in assignment
bpqether.c:533: incompatible types in assignment
baycom_epp.c:1459: incompatible types in assignment
ipip.c:240: incompatible types in assignment
ipip.c:878: incompatible types in assignment
ip_gre.c:271: incompatible types in assignment
ip_gre.c:1229: incompatible types in assignment
sch_teql.c:472: incompatible types in assignment
br_if.c:107: incompatible types in assignment
af_netrom.c:1284: incompatible types in assignment
af_rose.c:1456: incompatible types in assignment
irlan_common.c:240: incompatible types in assignment

After rebooting with only the above patch i got a nice Oops like:

May 3 22:56:02 sjoerd kernel: hub.c: port 1 connection change
May 3 22:56:02 sjoerd kernel: hub.c: portstatus 300, change 3, Low Speed
May 3 22:56:02 sjoerd kernel: hub.c: port 1 enable change, status 300
May 3 22:56:02 sjoerd kernel: hub.c: port 2 connection change
May 3 22:56:02 sjoerd kernel: usb.c: registered new driver acm
May 3 22:56:02 sjoerd kernel: hub.c: portstatus 300, change 3, Low Speed
May 3 22:56:02 sjoerd kernel: hub.c: port 2 enable change, status 300
May 3 22:56:10 sjoerd kernel: IPv6 v0.8 for NET4.0
May 3 22:56:10 sjoerd kernel: IPv6 over IPv4 tunneling driver
May 3 22:56:10 sjoerd su: (to irc) root on /dev/console
May 3 22:56:10 sjoerd PAM-unix2[308]: session started for user irc, service su
May 3 22:56:11 sjoerd named[182]: XX+/127.0.0.1/sjoerd.sjoernet/A/IN
May 3 22:56:11 sjoerd named[182]: XX+/127.0.0.1/sjoerd.sjoernet.sjoerdnet/A/IN
May 3 22:56:11 sjoerd named[182]: XX+/127.0.0.1/sjoerd.sjoernet.nl.cbpr.org/A/IN
May 3 22:56:11 sjoerd named[182]: XX+/127.0.0.1/sjoerd.sjoerdnet/A/IN
May 3 22:56:11 sjoerd PAM-unix2[308]: session finished for user irc, service su
May 3 22:56:12 sjoerd kernel: ntop uses obsolete (PF_INET,SOCK_PACKET)
May 3 22:56:12 sjoerd kernel: eth0: Setting promiscuous mode.
May 3 22:56:12 sjoerd kernel: device eth0 entered promiscuous mode
May 3 22:56:13 sjoerd kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000004
May 3 22:56:13 sjoerd kernel: printing eip:
May 3 22:56:13 sjoerd kernel: c013fcc2
May 3 22:56:13 sjoerd kernel: *pde = 00000000
May 3 22:56:13 sjoerd kernel: Oops: 0000
May 3 22:56:13 sjoerd kernel: CPU: 0
May 3 22:56:13 sjoerd kernel: EIP: 0010:[load_aout_interp+234/244]
May 3 22:56:13 sjoerd kernel: EFLAGS: 00010202
May 3 22:56:13 sjoerd kernel: eax: cd3a3fff ebx: 00000fff ecx: cd3a3ffe edx: cd7b1060
May 3 22:56:13 sjoerd kernel: esi: cd3a3fff edi: 00000000 ebp: cda59a80 esp: cd19bf00
May 3 22:56:13 sjoerd kernel: ds: 0018 es: 0018 ss: 0018
May 3 22:56:13 sjoerd kernel: Process lsof (pid: 341, stackpage=cd19b000)
May 3 22:56:13 sjoerd kernel: Stack: 00000001 00000003 cda5c000 cda59a80 cd3a3fff c014fc8c cd7b1060 00000000
May 3 22:56:13 sjoerd kernel: c15bd0e0 c1550420 cd3a3000 00001000 cda5c000 cda5c3f8 cda5c3dc cd6b8540
May 3 22:56:13 sjoerd kernel: c1528b18 c1528afc 0d3a3000 cd19a000 00000001 00000000 00000095 00000000
May 3 22:56:13 sjoerd kernel: Call Trace: [read_dquot+316/320] [proc_pid_statm+95/424] [sys_fsync+109/288] [ret_with_reschedule+2/16]
May 3 22:56:13 sjoerd kernel: Code: 3b 57 04 74 07 8b 6a 0c 39 ea 75 14 8b 74 24 1c 8b 46 08 39
May 3 22:56:19 sjoerd named[182]: sysquery: sendto([27.137.26.42].53): Network is unreachable
May 3 22:56:19 sjoerd named[182]: sysquery: sendto([27.137.26.44].53): Network is unreachable
May 3 22:56:19 sjoerd named[182]: Sent NOTIFY for "27.in-addr.arpa IN SOA" (27.in-addr.arpa); 2 NS, 2 A
May 3 22:56:21 sjoerd named[182]: Sent NOTIFY for "nl.cbpr.org IN SOA" (nl.cbpr.org); 2 NS, 2 A
May 3 22:56:26 sjoerd kernel: dummy0: no IPv6 routers present
May 3 22:56:26 sjoerd kernel: dummy0: no IPv6 routers present
May 3 22:56:31 sjoerd kernel: eth0: no IPv6 routers present
May 3 22:56:31 sjoerd kernel: eth0: no IPv6 routers present
May 3 22:56:58 sjoerd kernel: eth0: Media selection timer tick happened, Autonegotiate.
May 3 22:56:58 sjoerd kernel: eth0: MII transceiver has status 782d.
May 3 22:56:58 sjoerd kernel: eth0: Media selection timer finished, Autonegotiate.
May 3 22:57:16 sjoerd kernel: SysRq: Emergency Sync
May 3 22:57:16 sjoerd kernel: Syncing device 03:03 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 03:02 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 03:01 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 08:01 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 08:02 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:13 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:12 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:14 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:00 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:01 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:0d ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:02 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:03 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:04 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:05 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:06 ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:0e ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:0f ... OK
May 3 22:57:16 sjoerd kernel: Syncing device 3a:11 ... OK
May 3 22:57:16 sjoerd kernel: Done.
May 3 22:57:18 sjoerd kernel: SysRq: Emergency Remount R/O

So i think i have overlooked something but boss is calling, (fsck takes a
LONG time)

Greatings,

Arjan Filius
mailto:iafilius@xs4all.nl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:13 EST