From: Adrian Bunk <bunk@fs.tum.de>
To: andre@linux-ide.org,
Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
Wilfried Weissmann <wweissmann@gmx.at>,
Arjan van de Ven <arjanv@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: [2.4 patch] small hptraid.c fix
Date: Mon, 26 Jan 2004 04:25:30 +0100 [thread overview]
Message-ID: <20040126032530.GA513@fs.tum.de> (raw)
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];
reply other threads:[~2004-01-26 3:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040126032530.GA513@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=andre@linux-ide.org \
--cc=arjanv@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
--cc=wweissmann@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.