* 2.4.8-pre4, lots of compile warnings
@ 2001-08-06 5:46 Keith Owens
2001-08-06 9:49 ` Kai Germaschewski
2001-08-06 22:25 ` Matthew Gardiner
0 siblings, 2 replies; 7+ messages in thread
From: Keith Owens @ 2001-08-06 5:46 UTC (permalink / raw)
To: linux-kernel
As part of stress testing kbuild 2.5, I built a 2.4.8-pre4 ix86 kernel
with almost every option turned on, the .config is at the end. It got
a lot of warnings, I hope that the maintainers will do something about
these. Do not send patches to me, send them to the list or the
maintainer.
Because this is kbuild 2.5 it is possible that some of the warnings are
my fault. If the warning does not occur using standard kernel build,
please let me know. The warnings about modversions and EXPORT_SYMTAB
will not occur with standard kbuild but the code really is wrong, the
offending sources explicitly set EXPORT_SYMTAB and need to be fixed.
arch/i386/kernel/dmi_scan.c:163: warning: `disable_ide_dma' defined but not used
fs/ncpfs/ncplib_kernel.c:61: warning: `ncp_add_mem_fromfs' defined but not used
fs/jffs/jffs_fm.c: In function `jffs_flash_erasable_size':
fs/jffs/jffs_fm.c:634: warning: long unsigned int format, u_int32_t arg (arg 3)
fs/jffs/jffs_fm.c:638: warning: long unsigned int format, u_int32_t arg (arg 5)
fs/jffs/intrep.c:96: warning: `jffs_hexdump' defined but not used
fs/affs/super.c:273: warning: #warning
drivers/char/sx.c: In function `sx_check_modem_signals':
drivers/char/sx.c:1142: warning: implicit declaration of function `gs_got_break'
drivers/char/ip2/i2ellis.c:107: warning: `iiEllisCleanup' defined but not used
drivers/char/ip2main.c:423: warning: `clear_requested_irq' defined but not used
drivers/char/sx.c: At top level:
drivers/char/sx.c:1620: warning: `do_memtest_w' defined but not used
drivers/char/rio/riocmd.c: In function `RIOCommandRup':
drivers/char/rio/riocmd.c:484: warning: implicit declaration of function `gs_got_break'
drivers/char/joystick/cs461x.c:184: warning: `cs461x_gameport_cooked_read' defined but not used
drivers/char/drm/r128_cce.c: In function `r128_cce_packet':
drivers/char/drm/r128_cce.c:1023: warning: unused variable `size'
drivers/char/drm/r128_cce.c:1021: warning: unused variable `buffer'
drivers/char/drm/r128_cce.c:1019: warning: unused variable `dev_priv'
drivers/block/paride/bpck6.c:29:
You got this message because you directly included linux/modversions.h
in your own code or you explicitly defined EXPORT_SYMTAB. That is the
wrong thing to do, please remove all explicit references to
linux/modversions.h and do not define EXPORT_SYMTAB yourself.
Use the Makefile to define whether an object exports symbols.
drivers/block/paride/ppc6lnx.c: In function `ppc6_rd_data_byte':
drivers/block/paride/ppc6lnx.c:307: warning: `data' might be used uninitialized in this function
drivers/block/paride/ppc6lnx.c: At top level:
drivers/block/paride/ppc6lnx.c:397: warning: `ppc6_rd_reg' defined but not used
drivers/block/paride/ppc6lnx.c:406: warning: `ppc6_wr_reg' defined but not used
drivers/block/paride/ppc6lnx.c:415: warning: `ppc6_version' defined but not used
drivers/block/paride/ppc6lnx.c:712: warning: `ppc6_rd_port16' defined but not used
drivers/block/paride/ppc6lnx.c:733: warning: `ppc6_wr_port16' defined but not used
drivers/block/paride/ppc6lnx.c:788: warning: `ppc6_eeprom_start' defined but not used
drivers/block/paride/ppc6lnx.c:795: warning: `ppc6_eeprom_end' defined but not used
drivers/block/paride/ppc6lnx.c:828: warning: `ppc6_eeprom_ready_wait' defined but not used
drivers/block/paride/ppc6lnx.c:863: warning: `ppc6_eeprom_read' defined but not used
drivers/block/paride/ppc6lnx.c:894: warning: `ppc6_irq_test' defined but not used
drivers/block/paride/ppc6lnx.c:903: warning: `ppc6_rd_extout' defined but not used
drivers/net/tulip/tulip_core.c: In function `tulip_mwi_config':
drivers/net/tulip/tulip_core.c:1324: warning: label `early_out' defined but not used
drivers/net/tulip/tulip_core.c:1258: warning: `csr0' might be used uninitialized in this function
drivers/net/wan/comx-hw-mixcom.c: In function `MIXCOM_open':
drivers/net/wan/comx-hw-mixcom.c:568: warning: label `err_restore_flags' defined but not used
drivers/net/wan/sdladrv.c:217: warning: `sdladrv_pci_tbl' defined but not used
drivers/net/wan/sbni.c:1543: warning: initialization from incompatible pointer type
drivers/net/rrunner.c:121: warning: `rrunner_pci_tbl' defined but not used
drivers/net/sungem.c: In function `gem_get_device_address':
drivers/net/sungem.c:1580: warning: unused variable `pdev'
drivers/net/sungem.c:1579: warning: unused variable `dev'
drivers/net/dgrs.c:124: warning: `dgrs_pci_tbl' defined but not used
drivers/net/skfp/skfddi.c:185: warning: `skfddi_pci_tbl' defined but not used
drivers/net/acenic.c:124: warning: `acenic_pci_tbl' defined but not used
drivers/net/winbond-840.c:146: warning: `version' defined but not used
drivers/net/hp100.c:282: warning: `hp100_pci_tbl' defined but not used
drivers/net/sb1000.c:140: warning: `id_table' defined but not used
drivers/net/arlan.c:22: warning: `probe' defined but not used
drivers/net/arlan.c:1124: warning: `arlan_find_devices' defined but not used
drivers/net/fc/iph5526.c:114: warning: `iph5526_pci_tbl' defined but not used
drivers/net/fc/iph5526.c:225: warning: `driver_template' defined but not used
drivers/net/irda/irda-usb.c:47: warning: `min_turn_times' defined but not used
drivers/net/irda/irda-usb.c:259: warning: `irda_usb_dump_class_desc' defined but not used
drivers/net/irda/toshoboe.c: In function `toshoboe_probe':
drivers/net/irda/toshoboe.c:698: warning: unused variable `pmdev'
drivers/net/irda/w83977af_ir.c:276: warning: `w83977af_close' defined but not used
drivers/net/irda/ali-ircc.c:467: warning: `ali_ircc_probe_43' defined but not used
drivers/net/pcmcia/xirc2ps_cs.c: In function `setup_xirc2ps_cs':
drivers/net/pcmcia/xirc2ps_cs.c:2087: warning: control reaches end of non-void function
drivers/net/tokenring/tmsisa.c:44: warning: `portlist' defined but not used
drivers/media/video/w9966.c:632: warning: `w9966_rReg_i2c' defined but not used
drivers/media/video/cpia.c:1305: warning: `proc_cpia_destroy' defined but not used
drivers/media/radio/radio-cadet.c:636: warning: `id_table' defined but not used
drivers/isdn/hisax/config.c:1720: warning: `hisax_pci_tbl' defined but not used
drivers/isdn/avmb1/b1pci.c:31: warning: `b1pci_pci_tbl' defined but not used
drivers/isdn/avmb1/t1pci.c:34: warning: `t1pci_pci_tbl' defined but not used
drivers/isdn/avmb1/c4.c:39: warning: `c4_pci_tbl' defined but not used
drivers/atm/fore200e.o: objcopy: Warning: Output file cannot represent architecture UNKNOWN!
drivers/scsi/g_NCR5380.c:963: warning: `id_table' defined but not used
drivers/scsi/sym53c416.c:613: warning: `id_table' defined but not used
drivers/scsi/NCR5380.c:795: warning: `NCR5380_print_options' defined but not used
drivers/scsi/qla1280.c:1615: warning: `qla1280_do_dpc' defined but not used
drivers/scsi/tmscsim.c:280: warning: `tmscsim_pci_tbl' defined but not used
drivers/scsi/scsi_debug.c: In function `scsi_debug_biosparam':
drivers/scsi/scsi_debug.c:665: warning: unused variable `size'
drivers/scsi/osst.c: In function `osst_reposition_and_retry':
drivers/scsi/osst.c:1383: warning: `expected' might be used uninitialized in this function
drivers/ieee1394/pcilynx.c:61: warning: `pcilynx_pci_tbl' defined but not used
drivers/ieee1394/video1394.c: In function `video1394_ioctl':
drivers/ieee1394/video1394.c:810: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1037: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1043: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1046: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1050: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1053: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1199: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1206: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1209: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1213: warning: `ohci' might be used uninitialized in this function
drivers/ieee1394/video1394.c:1217: warning: `ohci' might be used uninitialized in this function
drivers/cdrom/cm206.c:218: warning: `cm206' defined but not used
drivers/sound/opl3sa2.c:813: warning: initialization makes integer from pointer without a cast
drivers/sound/sb_card.c:512: warning: `id_table' defined but not used
drivers/sound/cmpci.c:90:
You got this message because you directly included linux/modversions.h
in your own code or you explicitly defined EXPORT_SYMTAB. That is the
wrong thing to do, please remove all explicit references to
linux/modversions.h and do not define EXPORT_SYMTAB yourself.
Use the Makefile to define whether an object exports symbols.
drivers/sound/cmpci.c: In function `cm_release_mixdev':
drivers/sound/cmpci.c:1594: warning: unused variable `s'
drivers/sound/esssolo1.c:2455: warning: initialization from incompatible pointer type
drivers/sound/esssolo1.c:2457: warning: initialization from incompatible pointer type
drivers/sound/trident.c: In function `trident_probe':
drivers/sound/trident.c:3640: warning: unused variable `mask'
drivers/sound/cs4281/cs4281m.c:4486: warning: initialization from incompatible pointer type
drivers/sound/cs4281/cs4281m.c:4487: warning: initialization from incompatible pointer type
drivers/video/aty128fb.c:216: warning: `font' defined but not used
drivers/video/aty128fb.c:217: warning: `mode' defined but not used
drivers/video/aty128fb.c:218: warning: `nomtrr' defined but not used
drivers/video/sis/sis_main.c:15:
You got this message because you directly included linux/modversions.h
in your own code or you explicitly defined EXPORT_SYMTAB. That is the
wrong thing to do, please remove all explicit references to
linux/modversions.h and do not define EXPORT_SYMTAB yourself.
Use the Makefile to define whether an object exports symbols.
drivers/video/matrox/matroxfb_g450.c:7: warning: `matroxfb_g450_get_reg' defined but not used
drivers/usb/serial/visor.c:156: warning: `id_table' defined but not used
drivers/usb/serial/ftdi_sio.c:137: warning: `id_table_combined' defined but not used
drivers/usb/serial/whiteheat.c:116: warning: `id_table_combined' defined but not used
drivers/usb/serial/belkin_sa.c:106: warning: `id_table_combined' defined but not used
drivers/usb/serial/mct_u232.c:129: warning: `id_table_combined' defined but not used
drivers/usb/serial/keyspan.h:305: warning: `keyspan_ids_combined' defined but not used
drivers/usb/serial/digi_acceleport.c:485: warning: `id_table_combined' defined but not used
drivers/usb/storage/scsiglue.c: In function `bus_reset':
drivers/usb/storage/scsiglue.c:270: warning: assignment discards `const' from pointer target type
drivers/usb/serial/io_tables.h:33: warning: `id_table_combined' defined but not used
drivers/usb/serial/io_edgeport.c:623: warning: `get_string_desc' defined but not used
drivers/usb/storage/dpcm.c: In function `dpcm_transport':
drivers/usb/storage/dpcm.c:46: warning: unused variable `ret'
drivers/i2c/i2c-elv.c:119: warning: `bit_elv_exit' defined but not used
drivers/i2c/i2c-velleman.c:107: warning: `bit_velle_exit' defined but not used
drivers/i2c/i2c-elektor.c:174: warning: `pcf_isa_exit' defined but not used
net/wanrouter/af_wanpipe.c:62:
include/linux/sdla_x25.h:112: warning: `X25_INTERRUPT' redefined
include/net/x25.h:35: warning: this is the location of the previous definition
begin 644 .config.gz
M'XL("*8M;CL``RYC;VYF:6<`C%Q;<QJYMGZ?7]&GYN%DJB83P(#MJ<J#D`1H
MW.INM]0&YZ6+L3L))QB\,9Z=_/NSU!=8NN!)JERVOJ6[UEWJ_/K+KQ%Y/>R>
M5H?UPVJS^1%]J;;5?G6H'J.GU;<J>MAM/Z^__!D][K;_>XBJQ_7AEU]_H6DR
M%;-R>37^^*,K"$6@\&O4%M6D4-'Z)=KN#M%+=>AJ%8+U32/H!*KN'BL8Y?"Z
M7Q]^1)OJGVH3[9X/Z]WVY30(7V8\%Y(GFL1=PWBW>ES]O8'&N\=7^/7R^OR\
MVZ.9R905,5>GV0%PQW,ET@2!-X!V76;[W4/U\K+;1X<?SU6TVCY&GRLSM>JE
MF6O;S\75&"_K1!B>(XS>(&A%S]*D7`8V4([K33_5S&!G1"&%$.&>6OHP3+TY
M,[>;RS!.\T*E/$Q;B(3.14;/=-F2!V]2+]B9<>]SL736>.+"<I&5BS2_465Z
M<SI>0Q#)79S-;(S*;$GG#K@DC-G(1"U(9D-9FA'6C'&<6KY07)8SG@"7TE)E
M(HE3>A.89U/1C`Q#E22>I;G0<VF/$/=+2NB<EVHNIOKC"-.`6>S*LS2%CC+A
MP-F,VT"A>)EE>5I"Q_1&%6A,G<)`$X($1=`\I2ESNI`J=S8Q`U$^04DZ%[.Y
MY!)O30L-9\$S;:ECF]Q-@^AYR641$PTRBZ:G<S01)=$!S<D=+QFGI=G_3JQG
MM3;;F*Y?GT_Z(>$:3_1.J$5(6]4<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_'TTQS7*'O)ZSXR6<4#%7A0*]SE
MEZD*P4K`9F^+LIA&9Q@.4$T3MRH2ZL_-]C?VF%'B8.Q<L1;2HEYY,3T^XMLO
MQ%VP=GYX.VT.A\9"JGU=Y"%"DU'K#91)J@G+)(X6)7L!4=J)P\H0A%$G7BW0
M"OC3U>^;UZO3T\LG/=<MQDR,FUR'_;>KVC?S2E$POA!L**Y^?\+XL/]GE(=^
M*(*D8MMZD_;K^I4"\_)I8[*HDF;U=?*755\J4S63=2^/LL+"ML3K>D^O[[M/
+?_M_^(P;W>6)````
`
end
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 5:46 2.4.8-pre4, lots of compile warnings Keith Owens
@ 2001-08-06 9:49 ` Kai Germaschewski
2001-08-06 9:52 ` Keith Owens
2001-08-06 22:25 ` Matthew Gardiner
1 sibling, 1 reply; 7+ messages in thread
From: Kai Germaschewski @ 2001-08-06 9:49 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
On Mon, 6 Aug 2001, Keith Owens wrote:
> As part of stress testing kbuild 2.5, I built a 2.4.8-pre4 ix86 kernel
> with almost every option turned on, the .config is at the end. It got
> a lot of warnings, I hope that the maintainers will do something about
> these. Do not send patches to me, send them to the list or the
> maintainer.
> drivers/isdn/hisax/config.c:1720: warning: `hisax_pci_tbl' defined but not used
> drivers/isdn/avmb1/b1pci.c:31: warning: `b1pci_pci_tbl' defined but not used
> drivers/isdn/avmb1/t1pci.c:34: warning: `t1pci_pci_tbl' defined but not used
> drivers/isdn/avmb1/c4.c:39: warning: `c4_pci_tbl' defined but not used
[lots of similar warnings in non-ISDN code skipped]
This warning is seen a lot when compiling drivers into the kernel which
have not been adapted to the new pci infrastructure yet.
This drivers contain the device table only for informational purposes,
i.e. it's not referenced in a struct pci_driver, but only as
MODULE_DEVICE_TABLE.
When compiling built-in, MODULE_DEVICE_TABLE is a no-op and thus the
device table is not referenced.
I can think of multiple ways to fix this:
o Move drivers to the new pci infrastructure. This is of course the
best solution in the long run, but in many cases not appropriate for
2.4.
o Add an __attribute__((unused)) to the definition of the table. Ugly.
o Add an #ifdef MODULE around the definition of the table. Ugly.
o Make MODULE_DEVICE_TABLE reference the table also in the built-in case.
Wastes space, as it really is never used, but not a lot of it.
o Live with the warnings.
o [fill in you suggestion]
If we can agree on how to handle this in a generic way, I can surely come
up with a patch.
--Kai
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 9:49 ` Kai Germaschewski
@ 2001-08-06 9:52 ` Keith Owens
2001-08-06 10:54 ` Kai Germaschewski
0 siblings, 1 reply; 7+ messages in thread
From: Keith Owens @ 2001-08-06 9:52 UTC (permalink / raw)
To: Kai Germaschewski; +Cc: linux-kernel
On Mon, 6 Aug 2001 11:49:10 +0200 (CEST),
Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> wrote:
>On Mon, 6 Aug 2001, Keith Owens wrote:
>> drivers/isdn/hisax/config.c:1720: warning: `hisax_pci_tbl' defined but not used
>> drivers/isdn/avmb1/b1pci.c:31: warning: `b1pci_pci_tbl' defined but not used
>> drivers/isdn/avmb1/t1pci.c:34: warning: `t1pci_pci_tbl' defined but not used
>> drivers/isdn/avmb1/c4.c:39: warning: `c4_pci_tbl' defined but not used
>
>I can think of multiple ways to fix this:
>
>o Move drivers to the new pci infrastructure. This is of course the
> best solution in the long run, but in many cases not appropriate for
> 2.4.
>o Add an __attribute__((unused)) to the definition of the table. Ugly.
Add attribute unused plus a BIG comment saying that the code should be
moved to the new pci infrastructure ASAP. Add the code to the janitor
list.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 9:52 ` Keith Owens
@ 2001-08-06 10:54 ` Kai Germaschewski
2001-08-06 12:13 ` Christoph Hellwig
0 siblings, 1 reply; 7+ messages in thread
From: Kai Germaschewski @ 2001-08-06 10:54 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
On Mon, 6 Aug 2001, Keith Owens wrote:
> Add attribute unused plus a BIG comment saying that the code should be
> moved to the new pci infrastructure ASAP. Add the code to the janitor
> list.
Moving to the new pci infrastructure is not an option for the
drivers/isdn/hisax driver. For historical reasons, it doesn't use
autoprobing, changing that now will break initializiation on probably
every distribution out there (if it supports ISDN). I'll break this
compatibility in 2.5, though.
I think the drivers/isdn/avmb1 drivers can be fixed, I'll take care of
that.
--Kai
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 10:54 ` Kai Germaschewski
@ 2001-08-06 12:13 ` Christoph Hellwig
2001-08-06 12:50 ` Kai Germaschewski
0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2001-08-06 12:13 UTC (permalink / raw)
To: Kai Germaschewski; +Cc: linux-kernel, kaos
In article <Pine.LNX.4.33.0108061155480.8689-100000@chaos.tp1.ruhr-uni-bochum.de> you wrote:
> On Mon, 6 Aug 2001, Keith Owens wrote:
>
>> Add attribute unused plus a BIG comment saying that the code should be
>> moved to the new pci infrastructure ASAP. Add the code to the janitor
>> list.
>
> Moving to the new pci infrastructure is not an option for the
> drivers/isdn/hisax driver. For historical reasons, it doesn't use
> autoprobing, changing that now will break initializiation on probably
> every distribution out there (if it supports ISDN).
There is another way to at lest use the pci tables without going for
the full hotplug API.
Just replace code like:
if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
PCI_DEVICE_ID_AVM_A1, dev_avm))) {
/* initialize card */
}
with something like:
pci_for_each_dev(dev_avm) {
if (pci_match_device(avm_pci_tbl, dev_avm)) {
/* initialize card */
}
}
This will need per-card instead of the current global hisax pci tables,
but I think it's a good cleanup.
> I'll break this compatibility in 2.5, though.
Nice! Does this mean the hisax subdrivers will finally be able to be
individual modules? Are there also other ISDN changes planned, e.g.
going from the global cli/sti to better locking schemes?
Christoph
--
Whip me. Beat me. Make me maintain AIX.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 12:13 ` Christoph Hellwig
@ 2001-08-06 12:50 ` Kai Germaschewski
0 siblings, 0 replies; 7+ messages in thread
From: Kai Germaschewski @ 2001-08-06 12:50 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel, kaos
On Mon, 6 Aug 2001, Christoph Hellwig wrote:
> There is another way to at lest use the pci tables without going for
> the full hotplug API.
>
> Just replace code like:
>
> if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
> PCI_DEVICE_ID_AVM_A1, dev_avm))) {
> /* initialize card */
> }
>
> with something like:
>
>
> pci_for_each_dev(dev_avm) {
> if (pci_match_device(avm_pci_tbl, dev_avm)) {
> /* initialize card */
> }
> }
>
> This will need per-card instead of the current global hisax pci tables,
> but I think it's a good cleanup.
Thanks for the suggestion.
It looks like a good idea, but I don't think it'll actually work, though.
First, note that dev_avm is static in the upper code fragment, because
this probe routine will be called multiple times and is supposed to only
initialize one card at a time.
Secondly, having per-card type pci tables doesn't mix well with
MODULE_DEVICE_TABLE AFAICS, because that assumes that we can only have one
device table per module.
> > I'll break this compatibility in 2.5, though.
>
> Nice! Does this mean the hisax subdrivers will finally be able to be
> individual modules? Are there also other ISDN changes planned, e.g.
> going from the global cli/sti to better locking schemes?
Yes, hisax.o will only be the protocol layer. The actual hardware drivers
will be modules of their own, and use the new infrastructure. Code for
this already consists, and I have some new drivers pending, which will use
this approach in 2.4 already. I won't change the existing drivers in 2.4
for obvious reasons, though. Of course these new drivers are also supposed
to use proper SMP locking.
There is also the plan to declare the old "ISDN link layer" (isdn.o)
obsolete and move to a CAPI (see www.capi.org) based system. This should
get us rid of the old messy and racy cruft in drivers/isdn.
--Kai
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: 2.4.8-pre4, lots of compile warnings
2001-08-06 5:46 2.4.8-pre4, lots of compile warnings Keith Owens
2001-08-06 9:49 ` Kai Germaschewski
@ 2001-08-06 22:25 ` Matthew Gardiner
1 sibling, 0 replies; 7+ messages in thread
From: Matthew Gardiner @ 2001-08-06 22:25 UTC (permalink / raw)
To: Keith Owens; +Cc: linux-kernel
<snype a roo>
All that is happening is the compiler is saying that variables have been declared,
however, they haven't been used, aka, they aren't errors. What is happening is that
all variables required have been declared my that particular maintainer, and as the
programmers go along, they will gradually use the variables up. This normally occurs
when a driver is still development.
Matthew Gardiner
--
I am the blue screen of death
no body can hear your screams
You can't spell Linux with out U N I X
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-08-06 22:25 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-06 5:46 2.4.8-pre4, lots of compile warnings Keith Owens
2001-08-06 9:49 ` Kai Germaschewski
2001-08-06 9:52 ` Keith Owens
2001-08-06 10:54 ` Kai Germaschewski
2001-08-06 12:13 ` Christoph Hellwig
2001-08-06 12:50 ` Kai Germaschewski
2001-08-06 22:25 ` Matthew Gardiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox