From: Carsten Langgaard <carstenl@mips.com>
To: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Compiler problems with zero-length array in the middle of a struct
Date: Thu, 05 Dec 2002 11:47:26 +0100 [thread overview]
Message-ID: <3DEF2EBE.F273B44A@mips.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 534 bytes --]
Some compiler reject a zero-length array in the middle of a structure,
and report it as an error.
So could we please redo the change, that has recently been done to
include/linux/raid/md_p.h (see patch below).
/Carsten
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
[-- Attachment #2: md_p.patch --]
[-- Type: text/plain, Size: 509 bytes --]
Index: include/linux/raid/md_p.h
===================================================================
RCS file: /home/cvs/linux/include/linux/raid/md_p.h,v
retrieving revision 1.3
diff -u -r1.3 md_p.h
--- include/linux/raid/md_p.h 28 Nov 2000 03:59:04 -0000 1.3
+++ include/linux/raid/md_p.h 5 Dec 2002 10:40:55 -0000
@@ -151,10 +151,12 @@
*/
mdp_disk_t disks[MD_SB_DISKS];
+#if MD_SB_RESERVED_WORDS
/*
* Reserved
*/
__u32 reserved[MD_SB_RESERVED_WORDS];
+#endif
/*
* Active descriptor
next reply other threads:[~2002-12-05 10:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-05 10:47 Carsten Langgaard [this message]
2002-12-05 13:10 ` Compiler problems with zero-length array in the middle of a struct Ralf Baechle
2002-12-05 13:35 ` Carsten Langgaard
2002-12-05 17:29 ` Alan Cox
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=3DEF2EBE.F273B44A@mips.com \
--to=carstenl@mips.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/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.