[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel compile errors



On Thu, Mar 25, 1999 at 06:22:41PM +1200, John Leget wrote:
> Running potato im coming up against the following with kernel 2.2.4
> 
> acct.c: In function `sys_acct':
> acct.c:197: too few arguments to function `filp_close'
> acct.c:203: too few arguments to function `filp_close'
> make[2]: *** [acct.o] Error 1
> make[2]: Leaving directory `/usr/src/kernel-source-2.2.4/kernel'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/kernel-source-2.2.4/kernel'
> make: *** [_dir_kernel] Error 2
> 

Patch for this bug:
--------------------------

--- linux-2.2.4-vanilla/kernel/acct.c.OLD     Thu Mar 25 10:50:01 1999
+++ linux-2.2.4-vanilla/kernel/acct.c Wed Mar 24
14:45:45 1999
@@ -194,13 +194,13 @@
        }
        if (old_acct) {
                do_acct_process(0,old_acct);
-               filp_close(old_acct);
+               filp_close(old_acct,NULL);
        }
 out:
        unlock_kernel();
        return error;
 out_err:
-       filp_close(file);
+       filp_close(file,NULL);
        goto out;
 }

--------------------------

Mirek


Reply to: