lkcd
[Top] [All Lists]

setpriority kernel mod test doesn't compile

To: lkcd@xxxxxxxxxxx, Marc Esipovich <marc@xxxxxxxxxxx>
Subject: setpriority kernel mod test doesn't compile
From: Brian Hall <brianw.hall@xxxxxxxxxx>
Date: Thu, 04 Nov 1999 16:35:48 -0700 (MST)
Reply-to: Brian Hall <brianw.hall@xxxxxxxxxx>
Sender: owner-lkcd@xxxxxxxxxxx
I modified sys_setpriority as shown in the FAQ, but the kernel compile fails:

sys.c: In function `sys_setpriority':
sys.c:92: parse error before `}'
sys.c:78: warning: unused variable `error'
sys.c:77: warning: unused variable `priority'
sys.c:76: warning: unused variable `p'
sys.c:93: warning: control reaches end of non-void function
sys.c: At top level:
sys.c:97: warning: type defaults to `int' in declaration of `error'
sys.c:97: warning: data definition has no type or storage class
sys.c:98: warning: type defaults to `int' in declaration of `priority'
sys.c:98: `niceval' undeclared here (not in a function)
sys.c:98: warning: data definition has no type or storage class
sys.c:99: parse error before `if'
sys.c:103: warning: type defaults to `int' in declaration of `priority'
sys.c:103: redefinition of `priority'
sys.c:98: `priority' previously defined here
sys.c:103: initializer element is not constant
sys.c:103: warning: data definition has no type or storage class
sys.c:105: parse error before `if'
sys.c:112: parse error before `='
make[2]: *** [sys.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.13/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.13/kernel'
make: *** [_dir_kernel] Error 2


Also, the panic call is pretty obvious, but what does the assembler do?

--
Brian Hall <brianw.hall@xxxxxxxxxx>
Linux Consultant

<Prev in Thread] Current Thread [Next in Thread>