mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: list linux-kernel <linux-kernel@vger.kernel.org>
Subject: 2.4.19-pre7-ac3: ext2 compile failure
Date: Tue, 30 Apr 2002 19:27:29 +1000	[thread overview]
Message-ID: <3CCE6381.7CEC4A8F@eyal.emu.id.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]

The fourth hunk for balloc.c introduces a close brace without opening
one:

@@ -522,8 +520,12 @@
            in_range (tmp, le32_to_cpu(gdp->bg_inode_table),
                      sb->u.ext2_sb.s_itb_per_group))
                ext2_error (sb, "ext2_new_block",
-                           "Allocating block in system zone - "
-                           "block = %u", tmp);
+                           "Allocating block in system zone - block =
%lu",
+                           tmp);
+               ext2_set_bit(j, bh->b_data);
+               DQUOT_FREE_BLOCK(inode, 1);
+               goto repeat;
+       }

In my case (Debian woody up-to-date) gcc actually crashes:

gcc -D__KERNEL__ -I/data2/usr/local/src/linux-2.4-pre-ac/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-malign-functions=4    -nostdinc -I
/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=balloc  -c
-o balloc.o balloc.c
balloc.c: In function `ext2_new_block':
balloc.c:524: warning: long unsigned int format, unsigned int arg (arg
4)
balloc.c:397: label `io_error' used but not defined
balloc.c:383: label `out' used but not defined
gcc: Internal compiler error: program cc1 got fatal signal 11
make[3]: *** [balloc.o] Error 1
make[3]: Leaving directory
`/data2/usr/local/src/linux-2.4-pre-ac/fs/ext2'

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

[-- Attachment #2: 2.4.19-pre7-ac3-balloc.patch --]
[-- Type: text/plain, Size: 476 bytes --]

--- linux/fs/ext2/balloc.c.orig	Tue Apr 30 19:17:01 2002
+++ linux/fs/ext2/balloc.c	Tue Apr 30 19:17:18 2002
@@ -518,7 +518,7 @@
 	if (tmp == le32_to_cpu(gdp->bg_block_bitmap) ||
 	    tmp == le32_to_cpu(gdp->bg_inode_bitmap) ||
 	    in_range (tmp, le32_to_cpu(gdp->bg_inode_table),
-		      sb->u.ext2_sb.s_itb_per_group))
+		      sb->u.ext2_sb.s_itb_per_group)) {
 		ext2_error (sb, "ext2_new_block",
 			    "Allocating block in system zone - block = %lu",
 			    tmp);

             reply	other threads:[~2002-04-30  9:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30  9:27 Eyal Lebedinsky [this message]
2002-04-30 21:44 ` Andreas Dilger

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=3CCE6381.7CEC4A8F@eyal.emu.id.au \
    --to=eyal@eyal.emu.id.au \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®