Compilation error 2.5.66 allyesconfig

From: Per Persson (per.persson@gnosjo.pp.se)
Date: Fri Mar 28 2003 - 07:44:31 EST


Making an allyesconfig-kernel doesn't work. There's a problem in
fs/cramfs/inode.c:

[per@linus linux-2.5.66]$ make mrproper; make allyesconfig; make

fs/cramfs/inode.c: In function `get_cramfs_inode':
fs/cramfs/inode.c:54: incompatible types in assignment
make[2]: *** [fs/cramfs/inode.o] Error 1
make[1]: *** [fs/cramfs] Error 2
make: *** [fs] Error 2

It seems to be this line:
inode->i_mtime = inode->i_atime = inode->i_ctime = 0;

inode->i_{m,a,c}time are 'struct timespec' not integers.

Changing the line to the following solves it, but is perhaps not the best
solution:
inode->i_mtime = inode->i_atime = inode->i_ctime = ((struct timespec) {0,
0});

Per Persson
Gnosjö, Sweden

E-mail: per.persson@gnosjo.pp.se

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:32 EST