Skip to content

Commit 42d7896

Browse files
James MorrisJames Morris
authored andcommitted
Security: remove security.h include from mm.h
Remove security.h include from mm.h, as it is only needed for a single extern declaration, and pulls in all kinds of crud. Fine-by-me: David Chinner <[email protected]> Acked-by: Eric Paris <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent 88c3f7a commit 42d7896

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/mm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/prio_tree.h>
1313
#include <linux/debug_locks.h>
1414
#include <linux/mm_types.h>
15-
#include <linux/security.h>
1615

1716
struct mempolicy;
1817
struct anon_vma;
@@ -34,6 +33,8 @@ extern int sysctl_legacy_va_layout;
3433
#define sysctl_legacy_va_layout 0
3534
#endif
3635

36+
extern unsigned long mmap_min_addr;
37+
3738
#include <asm/page.h>
3839
#include <asm/pgtable.h>
3940
#include <asm/processor.h>

0 commit comments

Comments
 (0)