killpg1 compilation error

I used the function killpg1() in my code and when I am bulding the kernel using make I get the following error message:

Code:
cc1: warnings being treated as errors
../../../local/uidkill.c: In function 'uidkill':
../../../local/uidkill.c:94: warning: implicit declaration of function 'killpg1'
../../../local/uidkill.c:94: warning: nested extern declaration of 'killpg1' [-Wnested-externs]
I added a prototype of uidkill in the same source file but the problem still persists.

[*][*]
 
julai said:
I added a prototype of uidkill in the same source file but the problem still persists.

Need to add a prototype for killpg1 function, that's exactly what the warnings are telling you.
 
Back
Top