aboutsummaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2009-02-10 23:01:19 -0500
committerJames Morris <jmorris@namei.org>2009-02-10 23:27:15 -0500
commited850a52af971528b048812c4215cef298af0d3b (patch)
treee78fdb9e91e61dd297df2b126527340b483ae2a2 /mm/shmem.c
parentcb5629b10d64a8006622ce3a52bc887d91057d69 (diff)
integrity: shmem zero fix
Based on comments from Mike Frysinger and Randy Dunlap: (http://lkml.org/lkml/2009/2/9/262) - moved ima.h include before CONFIG_SHMEM test to fix compiler error on Blackfin: mm/shmem.c: In function 'shmem_zero_setup': mm/shmem.c:2670: error: implicit declaration of function 'ima_shm_check' - added 'struct linux_binprm' in ima.h to fix compiler warning on Blackfin: In file included from mm/shmem.c:32: include/linux/ima.h:25: warning: 'struct linux_binprm' declared inside parameter list include/linux/ima.h:25: warning: its scope is only this definition or declaration, which is probably not what you want - moved fs.h include within _LINUX_IMA_H definition Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'mm/shmem.c')
-rw-r--r--mm/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 75199888a6bd..8135fac294ee 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -28,6 +28,7 @@
28#include <linux/mm.h> 28#include <linux/mm.h>
29#include <linux/module.h> 29#include <linux/module.h>
30#include <linux/swap.h> 30#include <linux/swap.h>
31#include <linux/ima.h>
31 32
32static struct vfsmount *shm_mnt; 33static struct vfsmount *shm_mnt;
33 34
@@ -59,7 +60,6 @@ static struct vfsmount *shm_mnt;
59#include <linux/highmem.h> 60#include <linux/highmem.h>
60#include <linux/seq_file.h> 61#include <linux/seq_file.h>
61#include <linux/magic.h> 62#include <linux/magic.h>
62#include <linux/ima.h>
63 63
64#include <asm/uaccess.h> 64#include <asm/uaccess.h>
65#include <asm/div64.h> 65#include <asm/div64.h>