]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
resource: move kernel function inside __KERNEL__
authorJiri Slaby <jslaby@suse.cz>
Fri, 20 Nov 2009 13:16:33 +0000 (14:16 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 4 Jan 2010 10:33:58 +0000 (11:33 +0100)
commit96d07d211739fd2450ac54e81d00fa40fcd4b1bd
tree7686b42b5f2aac370fb0d51646d492b0ca24959d
parent17740d89785aeb4143770923d67c293849414710
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>
include/linux/resource.h