Re: [RFC patch 2/3] remove pci_driver.owner and .name fields

From: Roland Dreier
Date: Wed Oct 26 2005 - 16:31:12 EST


> It looks stupid in the first place - what's wrong with
> .driver.name = "DAC960",
> instead of that mess?

Unfortunately I don't think gcc 2.95 accepts that syntax. For
example the following:

void foo(void)
{
struct {
struct {
int y;
} x;
} bar = {
.x.y = 1
};
}

gives

a.c: In function `foo':
a.c:8: unknown field `y' specified in initializer

when compiled with gcc 2.95.

I guess we could do

.driver = { .name = "DAC960" },

but that seems silly as well.

- R.
-
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/