On Sat, Mar 12, 2005 at 09:08:45PM -0800, John Cherry wrote:
> drivers/media/dvb/frontends/dvb-pll.c:104: warning: (near initialization for 
> `dvb_pll_unknown_1.entries')
> drivers/media/dvb/frontends/dvb-pll.c:104: warning: excess elements in array 
> initializer
> drivers/media/dvb/frontends/dvb-pll.c:105: warning: (near initialization for 
> `dvb_pll_unknown_1.entries')
> drivers/media/dvb/frontends/dvb-pll.c:105: warning: excess elements in array 
> initializer
[snip]

Gerd's original patch had

        struct dvb_pll_desc {
                char *name;
                u32  min;
                u32  max;
                void (*setbw)(u8 *buf, int bandwidth);
                int  count;
                struct {
                        u32 limit;
                        u32 offset;
                        u32 stepsize;
                        u8  cb1;
                        u8  cb2;
                } entries[];
        };

while 2.6.11-mm3 changed it into entries[0]. I assume this was made
for gcc-4.0 compatibility? But the element type for entries is
fully defined, so it should not be a problem (as long as no one tries to
created arrays of struct dvb_pll_desc)?

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

Reply via email to