xfs
[Top] [All Lists]

Re: xfs compile error with gcc pre3.1

To: Sipos Ferenc <sferi@xxxxxxxxxxxxxxxxxx>
Subject: Re: xfs compile error with gcc pre3.1
From: Steve Lord <lord@xxxxxxx>
Date: 01 Mar 2002 09:15:09 -0600
Cc: "'Xfs \"Mailing \\ List \"\"(E-mail)'\\\"" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <1014969806.8820.4.camel@xxxxxxxxxxxxxxxxxx>
References: <1014969806.8820.4.camel@xxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Fri, 2002-03-01 at 02:03, Sipos Ferenc wrote:
> Hi!
> 
> The stock kernel without xfs compiles fine, but with xfs doesn't. Here
> is the error:
> 
> xfs_super.c:822: warning: `linvfs_dentry_to_fh' defined but not used
> xfs_super.c:859: warning: `linvfs_fh_to_dentry' defined but not used
> {standard input}: Assembler messages:
> {standard input}:1164: Error: suffix or operands invalid for `bsf'
> make[4]: *** [xfs_super.o] Error 1
> make[3]: *** [first_rule] Error 2
> make[2]: *** [_subdir_linux] Error 2
> make[1]: *** [_subdir_xfs] Error 2
> make: *** [_dir_fs] Error 2
> 
> It would be great, if someone would fix this, I'd like to throw out gcc
> 2.96. Thx.

For now you could change this:

        sb->s_blocksize_bits = ffs(sb->s_blocksize) - 1;

to this:

        sb->s_blocksize_bits = BBSHIFT;

That is the only ffs call in there.

Steve


> 
> Paco
-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


<Prev in Thread] Current Thread [Next in Thread>