Skip to content

Commit

Permalink
security: Fix nommu build.
Browse files Browse the repository at this point in the history
The security + nommu configuration presently blows up with an undefined
reference to BDI_CAP_EXEC_MAP:

security/security.c: In function 'mmap_prot':
security/security.c:687:36: error: dereferencing pointer to incomplete type
security/security.c:688:16: error: 'BDI_CAP_EXEC_MAP' undeclared (first use in this function)
security/security.c:688:16: note: each undeclared identifier is reported only once for each function it appears in

include backing-dev.h directly to fix it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
  • Loading branch information
pmundt authored and James Morris committed Jul 3, 2012
1 parent 09b2435 commit 75331a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/security.c
Expand Up @@ -23,6 +23,7 @@
#include <linux/mman.h>
#include <linux/mount.h>
#include <linux/personality.h>
#include <linux/backing-dev.h>
#include <net/flow.h>

#define MAX_LSM_EVM_XATTR 2
Expand Down

0 comments on commit 75331a5

Please sign in to comment.