resource: move kernel function inside __KERNEL__

It is an internal function. Move it inside __KERNEL__ ifdef, along
with task_struct declaration.

Then we get:
--- /usr/include/linux/resource.h 2009-09-14 15:09:29.000000000 +0200
+++ usr/include/linux/resource.h 2010-01-04 11:30:54.000000000 +0100
@@ -3,8 +3,6 @@

#include <linux/time.h>

-struct task_struct;
-
/*
* Resource control/accounting header file for linux
*/
@@ -70,6 +68,5 @@
*/
#include <asm/resource.h>

-int getrusage(struct task_struct *p, int who, struct rusage *ru);

#endif

***********

include/linux/Kbuild is untouched, since unifdef is run even on
headers-y nowadays.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>

+6 -2
+6 -2
include/linux/resource.h
··· 3 4 #include <linux/time.h> 5 6 - struct task_struct; 7 - 8 /* 9 * Resource control/accounting header file for linux 10 */ ··· 68 */ 69 #include <asm/resource.h> 70 71 int getrusage(struct task_struct *p, int who, struct rusage __user *ru); 72 73 #endif
··· 3 4 #include <linux/time.h> 5 6 /* 7 * Resource control/accounting header file for linux 8 */ ··· 70 */ 71 #include <asm/resource.h> 72 73 + #ifdef __KERNEL__ 74 + 75 + struct task_struct; 76 + 77 int getrusage(struct task_struct *p, int who, struct rusage __user *ru); 78 + 79 + #endif /* __KERNEL__ */ 80 81 #endif