commit 82c130f00492e8700cc5479fab7115278f83cd94 Author: Willy Tarreau Date: Wed Aug 16 00:09:08 2006 +0200 [GCC4] SPARC: fix build error in drivers/fc4/soc.c This patch fixes this error with gcc 4 on sparc : soc.h: In function 'xram_copy_from': soc.h:121: error: invalid lvalue in increment soc.h: In function 'xram_copy_to': soc.h:128: error: invalid lvalue in increment commit 9acf8f544b5194c7972658c3a101cc16f1ebaf9c Author: Willy Tarreau Date: Tue Aug 15 23:08:26 2006 +0200 [GCC4] SPARC: fix build error in arch/sparc/kernel/time.c This patch fixes this error with gcc 4 (encountered on sparc) : time.c:49: error: static declaration of 'mstk48t08_regs' follows non-static declaration /usr/src/linux-2.4.33-gcc4-sparc/include/asm/mostek.h:130: error: previous declaration of 'mstk48t08_regs' was here commit fbd257534dbc041f976b35ec6815a016eb061fad Author: Willy Tarreau Date: Tue Aug 15 23:06:39 2006 +0200 [GCC4] SPARC: fix build error in arch/sparc/kernel/signal.c This patch fixes this error with gcc 4 (encountered on sparc) : signal.c: In function 'do_sys_sigstack': signal.c:1339: error: invalid lvalue in assignment commit f0cafbd954ebf427fb9968e158a980973a5dd325 Author: Willy Tarreau Date: Tue Aug 15 21:14:17 2006 +0200 [GCC4] SPARC64: fix build error in drivers/sbus/char/pcikbd.c This patch fixes this error with gcc 4 (encountered on sparc64) : pcikbd.c:61: error: static declaration of 'pcikbd_iobase' follows non-static declaration pcikbd.h:34: error: previous declaration of 'pcikbd_iobase' was here pcikbd.c:62: error: static declaration of 'pcikbd_irq' follows non-static declaration pcikbd.h:35: error: previous declaration of 'pcikbd_irq' was here commit e39096aa764a77c336a076663501d10b9784faf7 Author: Willy Tarreau Date: Tue Aug 15 21:13:19 2006 +0200 [GCC4] SPARC64: fix build error in arch/sparc64/kernel/time.c This patch fixes this error with gcc 4 (encountered on sparc64) : time.c:50: error: static declaration of 'mstk48t08_regs' follows non-static declaration /usr/src/linux-2.4.33-gcc4-u60/include/asm/mostek.h:137: error: previous declaration of 'mstk48t08_regs' was here time.c:51: error: static declaration of 'mstk48t59_regs' follows non-static declaration /usr/src/linux-2.4.33-gcc4-u60/include/asm/mostek.h:144: error: previous declaration of 'mstk48t59_regs' was here commit 98ac29a85b371f1e3ac2b886a41a037b17014d1a Author: Willy Tarreau Date: Tue Aug 15 21:11:46 2006 +0200 [GCC4] SPARC64: fix build error in arch/sparc64/kernel/smp.c This patch fixes this error with gcc 4 (encountered on sparc64) : smp.c:50: error: static declaration of 'boot_cpu_id' follows non-static declaration /usr/src/linux-2.4.33-gcc4-u60/include/asm/smp.h:63: error: previous declaration of 'boot_cpu_id' was here commit c87baeda88969c725326f4a02a4b745e2b02d589 Author: Willy Tarreau Date: Mon Aug 14 11:25:26 2006 +0200 [GCC4] fix build error in drivers/net/rrunner.c This patch fixes this error with gcc 4 (encountered on PPC) : rrunner.c: In function 'rr_hippi_probe': rrunner.c:237: error: 'regs' undeclared (first use in this function) rrunner.c:237: error: (Each undeclared identifier is reported only once rrunner.c:237: error: for each function it appears in.) commit 4ba4a015fe629ce59f308b4392af8e428f80a224 Author: Willy Tarreau Date: Mon Aug 14 11:24:34 2006 +0200 [GCC4] fix build in drivers/atm/horizon.c This patches fixes this error with gcc 4 (encountered on PPC) : horizon.c:484: error: conflicting types for 'dump_regs' /tmp/linux-2.4.33/include/asm/system.h:96: error: previous declaration of 'dump_regs' was here commit 5af1177f773fd511a87c147149af933b58d62db2 Author: Willy Tarreau Date: Sun Aug 13 11:43:05 2006 +0200 [GCC4] fix warnings in drivers/isdn/hisax/hisax.h This patch fixes these warnings with gcc 4 : hisax.h:403: warning: 'packed' attribute ignored for field of type 'u_char' hisax.h:404: warning: 'packed' attribute ignored for field of type 'u_char' hisax.h:405: warning: 'packed' attribute ignored for field of type 'u_char' hisax.h:406: warning: 'packed' attribute ignored for field of type 'u_char' commit 3284d01875a63f46337f6864fb8dd1b741727b7e Author: Willy Tarreau Date: Sun Aug 13 11:39:35 2006 +0200 [GCC4] fix warnings in drivers/isdn/eicon/eicon*.h This patch fixes these warnings with gcc 4 : In file included from eicon_mod.c:34: eicon.h:157: warning: 'packed' attribute ignored for field of type '__u8' eicon.h:158: warning: 'packed' attribute ignored for field of type '__u8' eicon.h:159: warning: 'packed' attribute ignored for field of type '__u8' ... In file included from eicon.h:345, from eicon_mod.c:34: eicon_idi.h:61: warning: 'packed' attribute ignored for field of type '__u8' eicon_idi.h:62: warning: 'packed' attribute ignored for field of type '__u8' eicon_idi.h:63: warning: 'packed' attribute ignored for field of type '__u8' ... commit 47f28a17c3cec43740d0445f3b7048e399b5c69f Author: Willy Tarreau Date: Sun Aug 13 15:41:52 2006 +0200 [GCC4] fix warnings in drivers/net/de4x5,depca,arcnet This patch fixes this warning with gcc 4 : de4x5.c: In function 'mii_get_phy': de4x5.c:5112: warning: operation on 'i' may be undefined depca.c: In function 'load_packet': depca.c:1749: warning: operation on 'i' may be undefined arcnet.c: In function 'release_arcbuf': arcnet.c:280: warning: operation on 'i' may be undefined arcnet.c: In function 'get_arcbuf': arcnet.c:313: warning: operation on 'i' may be undefined commit ece2e8976b4b7f37356334c924fdd42a0de8f8db Author: Willy Tarreau Date: Sun Aug 13 15:45:26 2006 +0200 [GCC4] fix warning in drivers/char/ip2/i2lib.c This patch fixes this warning with gcc 4 : In file included from ip2main.c:409: ./ip2/i2lib.c: In function 'i2RetryFlushOutput': ./ip2/i2lib.c:1265: warning: comparisons like X<=Y<=Z do not have their mathematical meaning commit cc6d64c10ac77d6fbedf93d93c6ce92321a08541 Author: Willy Tarreau Date: Sun Aug 13 10:53:13 2006 +0200 [GCC4] fix warnings in drivers/char/sx.c This patch fixes this warning with gcc 4 : sx.c: In function 'sx_busy_wait_eq': sx.c:525: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c:531: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c: In function 'sx_busy_wait_neq': sx.c:551: warning: comparisons like X<=Y<=Z do not have their mathematical meaning sx.c:557: warning: comparisons like X<=Y<=Z do not have their mathematical meaning commit 6bf603c70680174f57345cefc815136c536e84ea Author: Willy Tarreau Date: Sun Aug 13 15:05:19 2006 +0200 [GCC4] fix warnings in include/linux/wanpipe.h This patch fixes these warnings with gcc 4 : In file included from sdlamain.c:59: /usr/src/git/linux-2.4/include/linux/wanpipe.h:230: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/wanpipe.h:231: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/wanpipe.h:235: warning: 'packed' attribute ignored for field of type 'unsigned char' (...) commit 3b45b03a9c17874d9514ad66a0cd9a7b4a8cc609 Author: Willy Tarreau Date: Sun Aug 13 15:18:33 2006 +0200 [GCC4] fix warnings in sdla_x25.c and sdla_x25.h Removes most of these warnings with gcc 4 : In file included from sdla_x25.c:107: /usr/src/git/linux-2.4/include/linux/sdla_x25.h:59: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/sdla_x25.h:61: warning: 'packed' attribute ignored for field of type 'unsigned char' (...) /usr/src/git/linux-2.4/include/linux/sdla_chdlc.h:65: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/sdla_chdlc.h:67: warning: 'packed' attribute ignored for field of type 'unsigned char' (...) sdla_x25.c:321: warning: 'packed' attribute ignored for field of type 'char[15u]' sdla_x25.c:322: warning: 'packed' attribute ignored for field of type 'char[15u]' (...) commit a92da3af751202d9e01d809a6a197a0a62362948 Author: Willy Tarreau Date: Sun Aug 13 13:12:55 2006 +0200 [GCC4] fix warnings in sdla.h and if_frad.h This patch fixes these warnings with gcc 4 : In file included from sdla.c:61: /usr/src/git/linux-2.4/include/linux/if_frad.h:134: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/if_frad.h:137: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/if_frad.h:139: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/linux/if_frad.h:140: warning: 'packed' attribute ignored for field of type 'unsigned char[2u]' In file included from sdla.c:63: /usr/src/git/linux-2.4/include/linux/sdla.h:296: warning: 'packed' attribute ignored for field of type 'char' /usr/src/git/linux-2.4/include/linux/sdla.h:297: warning: 'packed' attribute ignored for field of type 'char' /usr/src/git/linux-2.4/include/linux/sdla.h:299: warning: 'packed' attribute ignored for field of type 'char' /usr/src/git/linux-2.4/include/linux/sdla.h:301: warning: 'packed' attribute ignored for field of type 'char' (...) commit 18612ad399bc79846d2a9cdc4e0f4922f5665b90 Author: Willy Tarreau Date: Sun Aug 13 13:00:49 2006 +0200 [GCC4] fix warnings in include/net/dn_nsp.h This patch fixes these warnings with gcc 4 : In file included from dn_route.c:81: /usr/src/git/linux-2.4/include/net/dn_nsp.h:75: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/net/dn_nsp.h:97: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/net/dn_nsp.h:106: warning: 'packed' attribute ignored for field of type 'unsigned char' (...) commit ccaca03f31df87cc7fcb3bd7bee11830c28067bb Author: Willy Tarreau Date: Sun Aug 13 12:57:11 2006 +0200 [GCC4] fix warnings in include/net/dn_dev.h This patch fixes these warnings with gcc 4 : In file included from dn_neigh.c:44: /usr/src/git/linux-2.4/include/net/dn_dev.h:102: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/net/dn_dev.h:105: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/net/dn_dev.h:110: warning: 'packed' attribute ignored for field of type 'unsigned char' /usr/src/git/linux-2.4/include/net/dn_dev.h:111: warning: 'packed' attribute ignored for field of type 'unsigned char' commit 0de0450a5fa37746cd20e390f23aa620284b96c9 Author: Willy Tarreau Date: Sun Aug 13 11:18:19 2006 +0200 [GCC4] fix warnings in include/linux/isdnif.h This patch fixes these warnings with gcc 4 : In file included from /usr/src/git/linux-2.4/include/linux/isdn.h:211, from isdn_ppp.c:13: /usr/src/git/linux-2.4/include/linux/isdnif.h:285: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/isdnif.h:286: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/isdnif.h:287: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/isdnif.h:288: warning: 'packed' attribute ignored for field of type '__u8' ... /usr/src/git/linux-2.4/include/linux/isdnif.h:319: warning: 'packed' attribute ignored for field of type '__u8[20u]' /usr/src/git/linux-2.4/include/linux/isdnif.h:320: warning: 'packed' attribute ignored for field of type '__u8' commit b88cafcc8253680d8a30e7f21a6b98570b3ff1dd Author: Willy Tarreau Date: Sun Aug 13 10:32:12 2006 +0200 [GCC4] fix warning in include/linux/atalk.h This patch fixes this warning with gcc 4 : In file included from /usr/src/git/linux-2.4/include/net/sock.h:90, from /usr/src/git/linux-2.4/include/net/ip.h:39, from /usr/src/git/linux-2.4/include/net/checksum.h:31, from /usr/src/git/linux-2.4/include/linux/raid/md.h:35, from check.c:21: /usr/src/git/linux-2.4/include/linux/atalk.h:140: warning: 'packed' attribute ignored for field of type '__u8[5u]' /usr/src/git/linux-2.4/include/linux/atalk.h:141: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:143: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:144: warning: 'packed' attribute ignored for field of type '__u8[5u]' /usr/src/git/linux-2.4/include/linux/atalk.h:145: warning: 'packed' attribute ignored for field of type '__u8' /usr/src/git/linux-2.4/include/linux/atalk.h:147: warning: 'packed' attribute ignored for field of type '__u8' commit e43178a7ea85eddfccd574d8f3390d2c2a2621d2 Author: Willy Tarreau Date: Sun Aug 13 16:00:26 2006 +0200 [GCC4] fix build error in drivers/sound/wavfront.c This patch fixes this error with gcc 4 : wavfront.c:2490: error: static declaration of 'errno' follows non-static declaration /usr/src/git/linux-2.4/include/linux/unistd.h:4: error: previous declaration of 'errno' was here The solution is to workaround errno the same way as in sound_firmware : commit 3f8c5af6d69e2be766d81f3b56310accf1eb92b6 Author: Willy Tarreau Date: Sun Aug 13 12:38:41 2006 +0200 [GCC4] fix build error in drivers/media/video/bttvp.h This patch fixes this error with gcc 4 : In file included from bttv-driver.c:49: bttvp.h:61: error: array type has incomplete element type commit d02eb8106d216edf1b0af2d8aea52a62e7a3a88c Author: Willy Tarreau Date: Sun Aug 13 11:12:38 2006 +0200 [GCC4] fix build error in drivers/ieee1394/highlevel.c This patch fixes these errors with gcc 4 : highlevel.c: In function 'highlevel_read': highlevel.c:503: error: invalid lvalue in assignment highlevel.c: In function 'highlevel_write': highlevel.c:549: error: invalid lvalue in assignment commit bbaf1ca20af395f7aff731b58e9d1d12d0083f91 Author: Willy Tarreau Date: Sun Aug 13 00:20:16 2006 +0200 [GCC4] fix build error in drivers/usb/audio.c This patch fixes this error with gcc 4 : audio.c:466: error: static declaration of 'abs' follows non-static declaration make[2]: *** [audio.o] Error 1 make[2]: Leaving directory `/usr/src/git/linux-2.4/drivers/usb' make[1]: *** [_modsubdir_usb] Error 2 make[1]: Leaving directory `/usr/src/git/linux-2.4/drivers' make: *** [_mod_drivers] Error 2 commit 3682f3f70124e5d58adf5c63a6db595ba181b77f Author: Willy Tarreau Date: Sat Aug 12 18:54:55 2006 +0200 [GCC4] fix build error in drivers/media/video/videodev.c This patch fixes this error : videodev.c:636: error: static declaration of 'video_fops' follows non-static declaration videodev.c:492: error: previous declaration of 'video_fops' was here make[4]: *** [videodev.o] Error 1 make[4]: Leaving directory `/usr/src/git/linux-2.4/drivers/media/video' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/git/linux-2.4/drivers/media/video' make[2]: *** [_subdir_video] Error 2 make[2]: Leaving directory `/usr/src/git/linux-2.4/drivers/media' make[1]: *** [_subdir_media] Error 2 make[1]: Leaving directory `/usr/src/git/linux-2.4/drivers' make: *** [_dir_drivers] Error 2 commit 2de726add46decc29253df04e132629f9325c57d Author: Willy Tarreau Date: Sat Aug 12 18:50:41 2006 +0200 [GCC4] fix build error in drivers/i2c/i2c-proc.c This patch fixes this error with gcc 4 : i2c-proc.c: In function 'i2c_deregister_entry': i2c-proc.c:208: error: invalid lvalue in assignment i2c-proc.c: In function 'i2c_proc_chips': i2c-proc.c:290: error: invalid lvalue in assignment i2c-proc.c: In function 'i2c_sysctl_chips': i2c-proc.c:322: error: invalid lvalue in assignment i2c-proc.c: In function 'i2c_parse_reals': i2c-proc.c:476: error: invalid lvalue in increment i2c-proc.c:495: error: invalid lvalue in increment i2c-proc.c:506: error: invalid lvalue in increment i2c-proc.c:520: error: invalid lvalue in increment i2c-proc.c:529: error: invalid lvalue in increment i2c-proc.c:545: error: invalid lvalue in increment i2c-proc.c: In function 'i2c_write_reals': i2c-proc.c:577: error: invalid lvalue in increment i2c-proc.c:618: error: invalid lvalue in assignment commit 4a915dfee02f43b22f1f57d3f2843e06db932524 Author: Willy Tarreau Date: Sat Aug 12 18:49:36 2006 +0200 [GCC4] fix build error in drivers/i2c/i2c-core.c This patch fixes this error : In file included from i2c-core.c:32: /usr/src/git/linux-2.4/include/linux/i2c.h:73: error: array type has incomplete element type /usr/src/git/linux-2.4/include/linux/i2c.h:200: error: array type has incomplete element type i2c-core.c: In function 'i2c_transfer': i2c-core.c:732: error: type of formal parameter 2 is incomplete i2c-core.c: In function 'i2c_master_send': i2c-core.c:753: error: invalid lvalue in assignment i2c-core.c:759: error: type of formal parameter 2 is incomplete i2c-core.c: In function 'i2c_master_recv': i2c-core.c:789: error: type of formal parameter 2 is incomplete commit 33a9787bd7dca9340e2735962de65e2c7c48285e Author: Willy Tarreau Date: Sun Aug 13 11:44:18 2006 +0200 [GCC4] fix build error in drivers/isdn/hisax/hfc_pci.c This patch fixes this error with gcc 4 : hfc_pci.c: In function 'setup_hfcpci': hfc_pci.c:1745: error: invalid lvalue in assignment commit dbe60d5f564ee2c8ae2b7259c9103a77cfeda052 Author: Willy Tarreau Date: Sun Aug 13 11:41:11 2006 +0200 [GCC4] fix build error in drivers/isdn/eicon/eicon.h This patch fixes this error with gcc 4 : eicon_mod.c:44: error: static declaration of 'cards' follows non-static declaration eicon.h:347: error: previous declaration of 'cards' was here commit 9585db77d20753f8e89c0e536ff121a930774889 Author: Willy Tarreau Date: Sun Aug 13 10:45:32 2006 +0200 [GCC4] fix build error in drivers/atm/fore200e.c This patch fixes this error with gcc 4 : fore200e.c:3175: error: static declaration of 'fore200e_ops' follows non-static declaration fore200e.c:115: error: previous declaration of 'fore200e_ops' was here fore200e.c:3198: error: static declaration of 'fore200e_bus' follows non-static declaration fore200e.c:116: error: previous declaration of 'fore200e_bus' was here commit 2fdec3014e1f2d331abcaa5228b59928ae651f12 Author: Willy Tarreau Date: Sun Aug 13 10:44:04 2006 +0200 [GCC4] fix build error in drivers/atm/iphase.c This patch fixes these errors with gcc 4 : iphase.c:89: error: static declaration of 'IADebugFlag' follows non-static declaration iphase.h:71: error: previous declaration of 'IADebugFlag' was here iphase.c: In function 'ia_que_tx': iphase.c:630: error: invalid storage class for function 'ia_pkt_tx' iphase.c:644: warning: implicit declaration of function 'ia_pkt_tx' iphase.c: At top level: iphase.c:2934: error: static declaration of 'ia_pkt_tx' follows non-static declaration iphase.c:644: error: previous implicit declaration of 'ia_pkt_tx' was here commit 59ec7a8ae187b741242958a050aee61f14777baa Author: Willy Tarreau Date: Sun Aug 13 12:39:38 2006 +0200 [GCC4] fix build error in drivers/md/lvm-internal.h This patch fixes this error with gcc 4 : lvm.c:397: error: static declaration of 'vg_count' follows non-static declaration lvm-internal.h:48: error: previous declaration of 'vg_count' was here commit 218865bd467b14fc91ab551986ae9e22ff9613b8 Author: Willy Tarreau Date: Sun Aug 13 10:49:36 2006 +0200 [GCC4] fix build error in drivers/cdrom/sbpcd.c This patch fixes these errors with gcc 4 : sbpcd.c: In function 'get_state_T': sbpcd.c:1216: error: invalid storage class for function 'cmd_out_T' sbpcd.c:1221: warning: implicit declaration of function 'cmd_out_T' sbpcd.c: At top level: sbpcd.c:1360: error: static declaration of 'cmd_out_T' follows non-static declaration sbpcd.c:1221: error: previous implicit declaration of 'cmd_out_T' was here sbpcd.c: In function 'cmd_out_T': sbpcd.c:1365: error: invalid storage class for function 'cc_DriveReset' sbpcd.c:1501: warning: implicit declaration of function 'cc_DriveReset' sbpcd.c: At top level: sbpcd.c:1996: error: static declaration of 'cc_DriveReset' follows non-static declaration sbpcd.c:1501: error: previous implicit declaration of 'cc_DriveReset' was here commit b974f5b242814bf21c76e1d0de802283361488dc Author: Willy Tarreau Date: Sun Aug 13 10:34:54 2006 +0200 [GCC4] fix build error in drivers/ide/legacy/hd.c This patch fixes this error with gcc 4 : hd.c:721: error: static declaration of 'hd_fops' follows non-static declaration hd.c:697: error: previous declaration of 'hd_fops' was here make[4]: *** [hd.o] Error 1 make[4]: Leaving directory `/usr/src/git/linux-2.4/drivers/ide/legacy' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/git/linux-2.4/drivers/ide/legacy' make[2]: *** [_subdir_legacy] Error 2 make[2]: Leaving directory `/usr/src/git/linux-2.4/drivers/ide' make[1]: *** [_subdir_ide] Error 2 make[1]: Leaving directory `/usr/src/git/linux-2.4/drivers' make: *** [_dir_drivers] Error 2 commit 8cf987cd2ff874d132858dea7e88cf50837c73e8 Author: Willy Tarreau Date: Sun Aug 13 15:51:11 2006 +0200 [GCC4] fix build error in drivers/scsi/cpqfcTS* This patch fixes this error with gcc 4 : cpqfcTSworker.c:2566: error: static declaration of 'valid_al_pa' follows non-static declaration cpqfcTSstructs.h:968: error: previous declaration of 'valid_al_pa' was here commit eb07a125478c2c285413ba4b7f24f0f0b02b85b9 Author: Willy Tarreau Date: Sun Aug 13 15:49:55 2006 +0200 [GCC4] fix build error in drivers/scsi/atp870u.c This patch fixes these errors with gcc 4 : atp870u.c: In function 'send_s870': atp870u.c:810: error: invalid lvalue in assignment atp870u.c:811: error: invalid lvalue in assignment atp870u.c:812: error: invalid lvalue in assignment atp870u.c:817: error: invalid lvalue in assignment atp870u.c:818: error: invalid lvalue in assignment atp870u.c:819: error: invalid lvalue in assignment atp870u.c:822: error: invalid lvalue in assignment atp870u.c:831: error: invalid lvalue in assignment atp870u.c:832: error: invalid lvalue in assignment atp870u.c:833: error: invalid lvalue in assignment atp870u.c:838: error: invalid lvalue in assignment atp870u.c:839: error: invalid lvalue in assignment atp870u.c:840: error: invalid lvalue in assignment commit 86bc206f78e3538d33cc9efc94158464c3389966 Author: Willy Tarreau Date: Sun Aug 13 15:30:07 2006 +0200 [GCC4] fix build error in drivers/scsi/advansys.c This patch fixes these errors with gcc 4 : advansys.c: In function 'asc_isr_callback': advansys.c:7174: warning: comparisons like X<=Y<=Z do not have their mathematical meaning advansys.c: At top level: advansys.c:14581: error: static declaration of 'Default_3550_EEPROM_Config' follows non-static declaration advansys.c:3459: error: previous declaration of 'Default_3550_EEPROM_Config' was here advansys.c:14657: error: static declaration of 'Default_38C0800_EEPROM_Config' follows non-static declaration advansys.c:3460: error: previous declaration of 'Default_38C0800_EEPROM_Config' was here advansys.c:14787: error: static declaration of 'Default_38C1600_EEPROM_Config' follows non-static declaration advansys.c:3461: error: previous declaration of 'Default_38C1600_EEPROM_Config' was here commit 8757208b4c00bf93c87794cb6855590529f283aa Author: Willy Tarreau Date: Sun Aug 13 15:28:47 2006 +0200 [GCC4] fix build error in drivers/net/hamradio/soundmodem/sm.h This patch fixes these errors with gcc 4 : sm.c:68: error: static declaration of 'sm_drvinfo' follows non-static declaration sm.h:154: error: previous declaration of 'sm_drvinfo' was here sm.c:131: error: static declaration of 'sm_hardware_table' follows non-static declaration sm.h:356: error: previous declaration of 'sm_hardware_table' was here commit 809453fe2c2624c49b8edb8beb6be766bd4c9b4a Author: Willy Tarreau Date: Sun Aug 13 15:27:43 2006 +0200 [GCC4] fix build error in drivers/net/hamradio/baycom_epp.c This patch fixes these errors with gcc 4 : baycom_epp.c:373: error: static declaration of 'errno' follows non-static declaration /usr/src/git/linux-2.4/include/linux/unistd.h:4: error: previous declaration of 'errno' was here baycom_epp.c: In function 'encode_hdlc': baycom_epp.c:530: error: jump into statement expression baycom_epp.c:539: error: jump into statement expression (...) commit 941ac26bca497763e7d0c187499830bbd1bf8721 Author: Willy Tarreau Date: Sun Aug 13 15:20:26 2006 +0200 [GCC4] fix build error in drivers/net/wan/sdla_fr.c This patch fixes these errors with gcc 4 (+ lots of PACKED warnings) : sdla_fr.c: In function 'process_udp_mgmt_pkt': sdla_fr.c:3932: error: invalid lvalue in assignment sdla_fr.c:3983: error: invalid lvalue in assignment commit 027b5d3e63a12f240635ea552bd1577263efb5c2 Author: Willy Tarreau Date: Sun Aug 13 15:06:49 2006 +0200 [GCC4] fix build error in drivers/net/wan/sdlamain.c This patch fixes this error with gcc 4 : sdlamain.c: In function 'ioctl_dump': sdlamain.c:1030: error: invalid lvalue in assignment commit 4e5de5e261346d920dae2ad3affebe4b843c0306 Author: Willy Tarreau Date: Sun Aug 13 13:13:58 2006 +0200 [GCC4] fix build error in drivers/net/wan/sdladrv.c This patch fixes these errors with gcc 4 : sdladrv.c: In function 'sdla_peek': sdladrv.c:1005: error: invalid lvalue in assignment sdladrv.c: In function 'sdla_poke': sdladrv.c:1089: error: invalid lvalue in assignment sdladrv.c: In function 'detect_s514': sdladrv.c:2131: error: invalid lvalue in assignment sdladrv.c:2135: error: invalid lvalue in assignment commit cab176fde1b4763247f27d6976f9e7d5c09c2a43 Author: Willy Tarreau Date: Sun Aug 13 13:08:18 2006 +0200 [GCC4] fix build error in drivers/net/wan/comx-hw-comx.c This patch fixes these errors with gcc 4 : comx-hw-comx.c:1402: error: static declaration of 'comx_hw' follows non-static declaration comx-hw-comx.c:96: error: previous declaration of 'comx_hw' was here comx-hw-comx.c:1411: error: static declaration of 'cmx_hw' follows non-static declaration comx-hw-comx.c:97: error: previous declaration of 'cmx_hw' was here comx-hw-comx.c:1420: error: static declaration of 'hicomx_hw' follows non-static declaration comx-hw-comx.c:95: error: previous declaration of 'hicomx_hw' was here commit 400153af6ca8a938fe21f6ceed756879ef8371f9 Author: Willy Tarreau Date: Sun Aug 13 12:52:43 2006 +0200 [GCC4] fix build error in drivers/net/sk98lin/skvpd.c This patch fixes this error with gcc 4 : skvpd.c: In function 'VpdInit': skvpd.c:475: error: invalid lvalue in assignment commit da8335c52a22d2f277fcb211083baa5e278ee76e Author: Willy Tarreau Date: Sun Aug 13 12:47:53 2006 +0200 [GCC4] fix build error in drivers/net/irda/donauboe.c This patch fixes this error with gcc 4 : donauboe.c:212: error: static declaration of 'irda_crc16_table' follows non-static declaration /usr/src/git/linux-2.4/include/net/irda/crc.h:22: error: previous declaration of 'irda_crc16_table' was here commit 40ecb77d0b8425e04841a9813d58430dd8f25600 Author: Willy Tarreau Date: Sun Aug 13 12:44:07 2006 +0200 [GCC4] fix build error in drivers/net/arlan.c This patch fixes these errors with gcc 4 : arlan.c:15: error: static declaration of 'arlan_version' follows non-static declaration arlan.h:54: error: previous declaration of 'arlan_version' was here arlan.c:23: error: static declaration of 'siteName' follows non-static declaration arlan.h:50: error: previous declaration of 'siteName' was here commit ec088ec68dd7ab60c08b3573e71024527761394b Author: Willy Tarreau Date: Sun Aug 13 12:42:38 2006 +0200 [GCC4] fix build error in drivers/net/3c507.c This patch fixes these errors with gcc 4 : 3c507.c: In function 'el16_interrupt': 3c507.c:605: error: invalid storage class for function 'init_rx_bufs' 3c507.c:611: warning: implicit declaration of function 'init_rx_bufs' 3c507.c: At top level: 3c507.c:661: warning: conflicting types for 'init_rx_bufs' 3c507.c:661: error: static declaration of 'init_rx_bufs' follows non-static declaration 3c507.c:611: error: previous implicit declaration of 'init_rx_bufs' was here commit 89e704bea9deaa2300e7495397924d509e179d9f Author: Willy Tarreau Date: Sun Aug 13 10:37:13 2006 +0200 [GCC4] fix build error in drivers/net/wan/comx.h This patch fixes this error with gcc 4 : comx.c:114: error: static declaration of 'comx_root_dir' follows non-static declaration comx.h:215: error: previous declaration of 'comx_root_dir' was here make[4]: *** [comx.o] Error 1 make[4]: Leaving directory `/usr/src/git/linux-2.4/drivers/net/wan' make[3]: *** [first_rule] Error 2 make[3]: Leaving directory `/usr/src/git/linux-2.4/drivers/net/wan' make[2]: *** [_subdir_wan] Error 2 make[2]: Leaving directory `/usr/src/git/linux-2.4/drivers/net' make[1]: *** [_subdir_net] Error 2 make[1]: Leaving directory `/usr/src/git/linux-2.4/drivers' make: *** [_dir_drivers] Error 2 commit ff7d590b064fb9815438c229c7f8cb8260e58944 Author: Willy Tarreau Date: Sat Aug 12 19:02:28 2006 +0200 [GCC4] fix build error in drivers/net/acenic.c This patch fixes this error with gcc 4 : acenic.c: In function 'acenic_probe': acenic.c:668: error: invalid storage class for function 'ace_watchdog' acenic.c:669: error: 'ace_watchdog' undeclared (first use in this function) acenic.c:669: error: (Each undeclared identifier is reported only once acenic.c:669: error: for each function it appears in.) commit 6816011695d8f94824ee83952986c440b98e0b6a Author: Willy Tarreau Date: Sun Aug 13 11:09:53 2006 +0200 [GCC4] fix build error in drivers/char/rio/rio_linux.c This patch fixes this error with gcc 4 : rio_linux.c: In function 'rio_init': rio_linux.c:1209: error: invalid lvalue in assignment rio_linux.c:1281: error: invalid lvalue in assignment rio_linux.c:1333: error: invalid lvalue in assignment commit befa39b35da6fcf25d5828c7ae0b14e23c1a8ae2 Author: Willy Tarreau Date: Sun Aug 13 11:08:18 2006 +0200 [GCC4] fix build error in drivers/char/drm-4.0/drmP.h This patch fixes these errors with gcc 4 : gamma_drv.c: In function 'gamma_setup': gamma_drv.c:191: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_takedown': gamma_drv.c:210: error: expected ')' before '__FUNCTION__' gamma_drv.c:258: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_init': gamma_drv.c:348: error: expected ')' before '__FUNCTION__' gamma_drv.c:361: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_cleanup': gamma_drv.c:388: error: expected ')' before '__FUNCTION__' gamma_drv.c:392: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_open': gamma_drv.c:443: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_release': gamma_drv.c:468: error: expected ')' before '__FUNCTION__' gamma_drv.c:477: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_ioctl': gamma_drv.c:510: error: expected ')' before '__FUNCTION__' gamma_drv.c:520: error: expected ')' before '__FUNCTION__' gamma_drv.c: In function 'gamma_unlock': gamma_drv.c:546: error: expected ')' before '__FUNCTION__' gamma_drv.c:551: error: expected ')' before '__FUNCTION__' gamma_drv.c:562: error: expected ')' before '__FUNCTION__' commit 0ecb7060a7353b7ce8c2a5db64c555885ff344b0 Author: Willy Tarreau Date: Sun Aug 13 10:58:42 2006 +0200 [GCC4] fix build error in drivers/char/tpqic02.c This patch fixes these errors with gcc 4 : tpqic02.c: In function 'tp_sense': tpqic02.c:823: error: invalid storage class for function 'finish_rw' tpqic02.c:834: warning: implicit declaration of function 'finish_rw' tpqic02.c: At top level: tpqic02.c:1110: warning: conflicting types for 'finish_rw' tpqic02.c:1110: error: static declaration of 'finish_rw' follows non-static declaration tpqic02.c:834: error: previous implicit declaration of 'finish_rw' was here tpqic02.c: In function 'qic02_tape_open': tpqic02.c:2179: error: invalid storage class for function 'qic02_tape_open_no_use_count' tpqic02.c:2182: warning: implicit declaration of function 'qic02_tape_open_no_use_count' tpqic02.c: At top level: tpqic02.c:2188: error: static declaration of 'qic02_tape_open_no_use_count' follows non-static declaration tpqic02.c:2182: error: previous implicit declaration of 'qic02_tape_open_no_use_count' was here commit 83cb22a862fbae1203e9cba90df4c36f73e64e30 Author: Willy Tarreau Date: Sun Aug 13 10:57:49 2006 +0200 [GCC4] fix build error in drivers/char/sonypi.h This patch fixes these errors with gcc 4 : In file included from sonypi.c:51: sonypi.h: In function 'sonypi_ec_write': sonypi.h:409: error: 'verbose' undeclared (first use in this function) sonypi.h:409: error: (Each undeclared identifier is reported only once sonypi.h:409: error: for each function it appears in.) sonypi.h: In function 'sonypi_ec_read': sonypi.h:424: error: 'verbose' undeclared (first use in this function) commit eaaf2c4534c73a36ee5f5d3514a1b0bb0efecd8b Author: Willy Tarreau Date: Sun Aug 13 10:56:16 2006 +0200 [GCC4] fix build error in drivers/char/sonypi.h This patch fixes this error with gcc 4 : sonypi.c:56: error: static declaration of 'verbose' follows non-static declaration sonypi.h:404: error: previous declaration of 'verbose' was here commit 1334e8ef946758b93172aa283c3562b81ac76632 Author: Willy Tarreau Date: Sun Aug 13 10:47:31 2006 +0200 [GCC4] fix build error in drivers/block/paride/pd.c This patch fixes this error with gcc 4 : pd.c:358: error: static declaration of 'pd_fops' follows non-static declaration pd.c:346: error: previous declaration of 'pd_fops' was here commit 071704ed61b112c96f5cd0f353070354674216e2 Author: Willy Tarreau Date: Sun Aug 13 10:46:35 2006 +0200 [GCC4] fix build error in drivers/block/xd.c This patch fixes this error with gcc 4 : xd.c:141: error: static declaration of 'xd_fops' follows non-static declaration xd.c:128: error: previous declaration of 'xd_fops' was here commit 31641a8d86d6917d7ffe0eab3b5f91b5e52aa22d Author: Willy Tarreau Date: Sat Aug 12 19:01:02 2006 +0200 [GCC4] fix build error in drivers/block/nbd.c This patch fixes this error with gcc 4 : nbd.c:73: error: static declaration of 'requests_in' follows non-static declaration /usr/src/git/linux-2.4/include/linux/nbd.h:33: error: previous declaration of 'requests_in' was here nbd.c:74: error: static declaration of 'requests_out' follows non-static declaration /usr/src/git/linux-2.4/include/linux/nbd.h:34: error: previous declaration of 'requests_out' was here commit 85dc1ddb804fe04e0bbb8695a4618b9997d17f6d Author: Willy Tarreau Date: Sun Aug 13 16:15:40 2006 +0200 [GCC4] fix build error in net/khttpd/prototypes.h This patch fixes this error with gcc 4 : In file included from main.c:68: prototypes.h:52: error: array type has incomplete element type commit 2ccd3de631733fcea8c32a96c5994a9c99bf7583 Author: Willy Tarreau Date: Sun Aug 13 16:13:04 2006 +0200 [GCC4] fix build error in net/ipv6/sysctl_net_ipv6.c This patch fixes these errors with gcc 4 : sysctl_net_ipv6.c:38: error: non-static declaration of 'ipv6_root_table' follows static declaration sysctl_net_ipv6.c:34: error: previous declaration of 'ipv6_root_table' was here sysctl_net_ipv6.c:43: error: non-static declaration of 'ipv6_net_table' follows static declaration sysctl_net_ipv6.c:35: error: previous declaration of 'ipv6_net_table' was here commit 4b492306e5d1507fb92674da7f0fd1daa58f05bd Author: Willy Tarreau Date: Sat Aug 12 18:57:21 2006 +0200 [GCC4] fix build error in net/ipv6/ip6_fib.c This patch fixes this error with gcc4 : ip6_fib.c:98: error: static declaration of 'fib6_walker_list' follows non-static declaration /usr/src/git/linux-2.4/include/net/ip6_fib.h:98: error: previous declaration of 'fib6_walker_list' was here make[3]: *** [ip6_fib.o] Error 1 make[3]: Leaving directory `/usr/src/git/linux-2.4/net/ipv6' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/git/linux-2.4/net/ipv6' make[1]: *** [_subdir_ipv6] Error 2 make[1]: Leaving directory `/usr/src/git/linux-2.4/net' make: *** [_dir_net] Error 2 commit 66102ca7012abdbd4685028de164950d8033d17f Author: Willy Tarreau Date: Sun Aug 13 16:04:03 2006 +0200 [GCC4] fix build error in fs/intermezzo/presto.c This patch fixes these errors with gcc 4 : presto.c: In function 'izo_mark_cache': presto.c:347: error: invalid lvalue in assignment presto.c:348: error: invalid lvalue in assignment presto.c: In function 'izo_mark_fset': presto.c:386: error: invalid lvalue in assignment presto.c:387: error: invalid lvalue in assignment commit 37a2fd43bdb69bfdaa53dec0bcb2d5c2865ab7e1 Author: Willy Tarreau Date: Sun Aug 13 16:30:17 2006 +0200 [GCC4] fix build error in include/asm-ppc/spinlock.h asm-ppc/spinlock.h references an extern __spin_trylock() function which is defined as static in arch/ppc/lib/locks.c. commit 0497b1a87d9a8cc999827db7bb60c9ca618981c5 Author: Willy Tarreau Date: Sun Aug 13 16:14:50 2006 +0200 [GCC4] fix build error in include/net/irda/irlan_event.h This patch fixes this error with gcc 4 : irlan_common.c:74: error: static declaration of 'irlan_state' follows non-static declaration /usr/src/git/linux-2.4/include/net/irda/irlan_event.h:70: error: previous declaration of 'irlan_state' was here commit b9b66e481ecf3ad34d295e93d41a44941ba34c96 Author: Willy Tarreau Date: Sun Aug 13 16:13:50 2006 +0200 [GCC4] fix build error in include/net/irda/irttp.h This patch fixes this error with gcc 4 : irttp.c:41: error: static declaration of 'irttp' follows non-static declaration /usr/src/git/linux-2.4/include/net/irda/irttp.h:212: error: previous declaration of 'irttp' was here commit e6141ce2e5796f4d647a6df6868defcf66150247 Author: Willy Tarreau Date: Sun Aug 13 16:10:45 2006 +0200 [GCC4] fix build error in include/net/udp.h This patch fixes this error with gcc 4 : In file included from af_econet.c:39: /usr/src/git/linux-2.4/include/net/udp.h:75: error: array type has incomplete element type commit d17c5d218eedf5702941bba7047151bda0d8660b Author: Willy Tarreau Date: Sun Aug 13 16:04:49 2006 +0200 [GCC4] fix build error in include/linux/intermezzo_fs.h This patch fixes these errors with gcc 4 : super.c:339: error: static declaration of 'presto_fs_type' follows non-static declaration /usr/src/git/linux-2.4/include/linux/intermezzo_fs.h:324: error: previous declaration of 'presto_fs_type' was here commit 8a0d2414c62b5f0917ae6a4ecf5a8aa671f599ae Author: Willy Tarreau Date: Sun Aug 13 16:02:50 2006 +0200 [GCC4] fix build error in include/linux/fsfilter.h This patch fixes this error with gcc 4 : methods.c:60: error: static declaration of 'filter_oppar' follows non-static declaration /usr/src/git/linux-2.4/include/linux/fsfilter.h:73: error: previous declaration of 'filter_oppar' was here commit c05d6b2efc883b8e2131595a479703489addae12 Author: Willy Tarreau Date: Sun Aug 13 16:33:36 2006 +0200 [GCC4] fix build error in include/net/irda/qos.h This patch fixes this error with gcc 4 : actisys.c:65: error: static declaration of 'baud_rates' follows non-static declaration /usr/src/git/linux-2.4/include/net/irda/qos.h:86: error: previous declaration of 'baud_rates' was here commit acbb95b195bab7a1cefbc0360c90ec640f3667f1 Author: Willy Tarreau Date: Sun Aug 13 10:54:26 2006 +0200 [GCC4] fix build error in include/linux/generic_serial.h This patch fixes this error with gcc 4 : generic_serial.c:36: error: static declaration of 'gs_debug' follows non-static declaration /usr/src/git/linux-2.4/include/linux/generic_serial.h:101: error: previous declaration of 'gs_debug' was here commit 973a8a7e26153a22f19da7b1d3f91325a5c7123d Author: Willy Tarreau Date: Sat Aug 12 18:31:48 2006 +0200 [GCC4] add preliminary support for GCC 4 (Mikael Pettersson) This is the well tested part of Mikael Pettersson's GCC4 patches. It offers support for GCC4 on x86, x86_64 and ppc. Other archs untested. The risk of regression on older compilers at this stage should be close to zero. At least, x86 with allmodconfig still builds with gcc-2.95.3. Other places have been carefully fixed but the code has not been run yet. They will be merged individually in further patches.