Patchwork [1/1] UBUNTU: SAUCE: AppArmor -- add linux/kref.h for struct kref

login
register
mail settings
Submitter Andy Whitcroft
Date Feb. 18, 2010, 11:29 a.m.
Message ID <1266492569-10532-1-git-send-email-apw@canonical.com>
Download mbox | patch
Permalink /patch/45745/
State Accepted
Delegated to: Andy Whitcroft
Headers show

Comments

Andy Whitcroft - Feb. 18, 2010, 11:29 a.m.
Include linux/kref.h to get struct kref for non-x86 architectures.
Fixes compile failures on arm.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 security/apparmor/match.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Andy Whitcroft - Feb. 18, 2010, 11:51 a.m.
Applied to Lucid.

-apw

Patch

diff --git a/security/apparmor/match.c b/security/apparmor/match.c
index 609e14d..6e6a816 100644
--- a/security/apparmor/match.c
+++ b/security/apparmor/match.c
@@ -18,6 +18,7 @@ 
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
 #include <linux/err.h>
+#include <linux/kref.h>
 
 #include "include/match.h"