AFS compile broken
Trying to compile todays git with modular AFS and gcc 4.1.3 prerelease in Debian unstable (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)):
CC [M] fs/afs/flock.ofs/afs/flock.c: In function 'afs_do_getlk':fs/afs/flock.c:459: error: void value not ignored as it ought to be make[3]: *** [fs/afs/flock.o] Error 1
Signature · 1 line
Meelis Roos ([email protected])
Quoted 8 lines · Meelis Roos
Trying to compile todays git with modular AFS and gcc 4.1.3 prerelease in Debian unstable (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)):
CC [M]
fs/afs/flock.ofs/afs/flock.c: In function 'afs_do_getlk':fs/afs/flock.c:459: error: void value not ignored as it ought to be make[3]: *** [fs/afs/flock.o] Error 1
Should probably be something like this, but I have no idea whether this is correct. David?
--- fs/afs/flock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
fs/afs/flock.c +2 -1
@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *fil/* check local lock records first */ ret =0 ; -if (posix_test_lock (file, fl) ==0 ) { +posix_test_lock (file, fl); +if (fl->fl_type ==F_UNLCK ) {/* no local locks; consult the server */ ret =afs_vnode_fetch_status (vnode,NULL , key);if (ret <0 )
Quoted 7 lines · Cornelia Huck
Quoted 4 lines · Meelis Roos
Trying to compile todays git with modular AFS and gcc 4.1.3 prerelease in Debian unstable (gcc version 4.1.3 20070629 (prerelease) (Debian 4.1.2-13)):
Quoted 7 lines
Quoted 4 lines
CC [M]
fs/afs/flock.ofs/afs/flock.c: In function 'afs_do_getlk':fs/afs/flock.c:459: error: void value not ignored as it ought to be make[3]: *** [fs/afs/flock.o] Error 1Should probably be something like this, but I have no idea whether this is correct.
That's correct, and Andrew has the same patch. (And the breakage was my fault, apologies.)
--b.
Quoted 22 lines
--- fs/afs/flock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)fs/afs/flock.c +2
-2@@ -456,7 +456,8 @@ static int afs_do_getlk(struct file *fil/* check local lock records first */ ret =0 ; -if (posix_test_lock (file, fl) ==0 ) { +posix_test_lock (file, fl); +if (fl->fl_type ==F_UNLCK ) {/* no local locks; consult the server */ ret =afs_vnode_fetch_status (vnode,NULL , key);if (ret <0 ) -To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/