[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: IA32 - 27 New warnings
From:       Jesper Juhl <jju () dif ! dk>
Date:       2003-09-18 20:45:18
[Download RAW message or body]



On Thu, 18 Sep 2003, Greg KH wrote:

> On Wed, Sep 17, 2003 at 11:23:03PM -0700, John Cherry wrote:
> > drivers/usb/class/usb-midi.h:150: warning: `usb_midi_ids' defined but not used
>
> Hm, what compiler version are you using to get this warning?
> This should not be happening (the usb_midi_ids are used in the
> MODULE_DEVICE_TABLE() macro to export the info to userspace), and I
> can't duplicate the warning here with gcc versions 3.3.1 or 2.96 (Red
> Hat rawhide and Red Hat 7.3 respectively)
>
I just tested this with gcc 3.2.2 (Slackware Linux 9.0) and I do get that
warning :

  gcc -Wp,-MD,drivers/usb/class/.usb-midi.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686
-Iinclude/asm-i386/mach-default -g -nostdinc -iwithprefix include
-DKBUILD_BASENAME=usb_midi -DKBUILD_MODNAME=usb_midi -c -o
drivers/usb/class/.tmp_usb-midi.o drivers/usb/class/usb-midi.c
drivers/usb/class/usb-midi.h:150: warning: `usb_midi_ids' defined but not
used



Jesper Juhl <jju@dif.dk>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic