diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-04-11 08:22:06 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-13 00:08:45 +0200 |
commit | e19360f2945f54eb44ae170ec9c33910d29834a2 (patch) | |
tree | c9959bb3d5a91efd21ca43c556544a7b0c1842bc /drivers/net/starfire.c | |
parent | [PATCH] remove drivers/net/hydra.h (diff) | |
download | linux-e19360f2945f54eb44ae170ec9c33910d29834a2.tar.xz linux-e19360f2945f54eb44ae170ec9c33910d29834a2.zip |
[PATCH] net drivers: fix section attributes for gcc
If CONFIG_HOTPLUG=n, gcc doesn't like some __initdata to be const (rodata)
and other __initdata not const, so make the non-const __initdata const.
gcc errors:
drivers/net/bnx2.c:66: error: version causes a section type conflict
drivers/net/starfire.c:338: error: version causes a section type conflict
drivers/net/typhoon.c:137: error: version causes a section type conflict
drivers/net/natsemi.c:241: error: version causes a section type conflict
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/starfire.c')
-rw-r--r-- | drivers/net/starfire.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index 45ad036733e2..9b7805be21da 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c @@ -335,7 +335,7 @@ do { \ /* These identify the driver base version and may not be removed. */ -static char version[] __devinitdata = +static const char version[] __devinitdata = KERN_INFO "starfire.c:v1.03 7/26/2000 Written by Donald Becker <becker@scyld.com>\n" KERN_INFO " (unofficial 2.2/2.4 kernel port, version " DRV_VERSION ", " DRV_RELDATE ")\n"; |