Re: updated gcc-3.4 patches for 2.4.27-rc4

From: Mikael Pettersson
Date: Wed Aug 04 2004 - 04:22:57 EST


On Wed, 04 Aug 2004 01:25:26 +0300, O.Sezer wrote:
> >
>http://www.csd.uu.se/~mikpe/linux/patches/2.4/patch-gcc34-misc-fixes-2.4.27-rc4
>
>Does /drivers/usb/gadget/net2280.c line 794 not need the same
>change for min() ?

No. The min() that was changed had an argument that was a
bitfield in a struct. min() uses typeof, but typeof (like
sizeof) doesn't work on bitfields.

The arguments to the min() at line 794 are plain variables
or struct fields. They don't have any problem with typeof.

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