From: Bryan Batten <BryanBatten@compuserve.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Kai.Makisara@kolumbus.fi,
Trivial Patch Monkey <trivial@rustcorp.com.au>,
linux-kernel@vger.kernel.org
Subject: [PATCH]-2.6.10-rc2: Fix Link Error osst.o, st.o
Date: Tue, 16 Nov 2004 01:57:18 -0800 [thread overview]
Message-ID: <4199CEFE.7060800@compuserve.com> (raw)
After patching up to 2.6.10-rc2, I get the following error when
building the kernel with gcc 2.95:
drivers/scsi/osst.o(.bss+0x0): multiple definition of `ST_partstat'
drivers/scsi/st.o(.bss+0x0): first defined here
make[2]: *** [drivers/scsi/built-in.o] Error 1
make[1]: *** [drivers/scsi] Error 2
The error occurs because the change from 'typedef struct {...}
ST_buffer;' to 'struct st_buffer {...} ST_buffer;' causes storage to
be allocated more than once.
The fix is to just remove the 'ST_buffer' part from the changed
structure definition.
Here's the patch to drivers/scsi/st.h:
# diff -up *orig/drivers/scsi/st.h *x/drivers/scsi/st.h
--- *orig/drivers/scsi/st.h Mon Nov 15 22:44:18 2004
+++ linux-2.6x/drivers/scsi/st.h Tue Nov 16 01:27:19 2004
@@ -67,7 +67,7 @@ struct st_partstat {
u32 last_block_visited;
int drv_block; /* The block where the drive head is */
int drv_file;
-} ST_partstat;
+};
#define ST_NBR_PARTITIONS 4
(Signed-off-by: Bryan Batten <BryanBatten@compuserve.com>)
reply other threads:[~2004-11-16 10:01 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=4199CEFE.7060800@compuserve.com \
--to=bryanbatten@compuserve.com \
--cc=Kai.Makisara@kolumbus.fi \
--cc=linux-kernel@vger.kernel.org \
--cc=trivial@rustcorp.com.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox