Messages in this thread Patch in this message | | | Date | Sun, 25 Oct 1998 09:31:43 +0100 | From | Harald Koenig <> | Subject | small fix for 2.1.126 |
| |
compiling 2.1.126 breaks with
gcc -D__KERNEL__ -I/usr/src/linux-2.1.126/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o acct.o acct.c acct.c: In function `check_free_space': acct.c:90: structure has no member named `f_inode' acct.c:85: warning: `sb' might be used uninitialized in this function make[2]: *** [acct.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.1.126/kernel'
the following patch fixes at least the compile problem (but I'm not sure if it is semantically correct...)
------------------------------------------------------------------------------- --- linux-2.1.126/kernel/acct.c~ Sat Oct 24 16:21:58 1998 +++ linux-2.1.126/kernel/acct.c Sun Oct 25 09:28:45 1998 @@ -87,7 +87,7 @@ if (!acct_file || !acct_needcheck) return; - sb = acct_file->f_dentry->f_inode->i_sb; + sb = acct_file->f_dentry->d_inode->i_sb; if (!sb->s_op || !sb->s_op->statfs) return; -------------------------------------------------------------------------------
Harald -- All SCSI disks will from now on ___ _____ be required to send an email notice 0--,| /OOOOOOO\ 24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig, \/\/\/\/\/\/\/\/\/ Inst.f.Theoret.Astrophysik // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |