* [2.4 patch] small hptraid.c fix
@ 2004-01-26 3:25 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-01-26 3:25 UTC (permalink / raw)
To: andre, Marcelo Tosatti, Wilfried Weissmann, Arjan van de Ven; +Cc: linux-kernel
I got the following warning while compileing 2.4.25-pre7:
<-- snip -->
...
gcc-2.95 -D__KERNEL__
-I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre7-full/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6 -I../
-nostdinc -iwithprefix include -DKBUILD_BASENAME=hptraid -c -o
hptraid.o hptraid.c
{standard input}: Assembler messages:
{standard input}:92: Warning: setting incorrect section attributes for .text.init
...
<-- snip -->
The problem is that a struct was marked __init instead of __initdata.
The patch below fixes this issue.
cu
Adrian
--- linux-2.4.25-pre7-full/drivers/ide/raid/hptraid.c.old 2004-01-26 04:19:37.000000000 +0100
+++ linux-2.4.25-pre7-full/drivers/ide/raid/hptraid.c 2004-01-26 04:19:53.000000000 +0100
@@ -146,7 +146,7 @@
make_request: hptraid01_make_request
};
-static __init struct {
+static __initdata struct {
struct raid_device_operations *op;
u_int8_t type;
char label[8];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-26 3:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26 3:25 [2.4 patch] small hptraid.c fix Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome