[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xfs compile error with gcc pre3.1
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@sgi.com