FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 12-15-2009, 10:38 AM
Andy Whitcroft
 
Default UBUNTU: SAUCE: AppArmor -- add linux/err.h for ERR_PTR

Include linux/err.h to get ERR_PTR for non-x86 architectures. Fixes
compile failure.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
security/apparmor/match.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/security/apparmor/match.c b/security/apparmor/match.c
index c04dbcd..fcb48c5 100644
--- a/security/apparmor/match.c
+++ b/security/apparmor/match.c
@@ -17,6 +17,7 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
+#include <linux/err.h>

#include "include/match.h"

--
1.6.3.3


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 12-15-2009, 04:07 PM
John Johansen
 
Default UBUNTU: SAUCE: AppArmor -- add linux/err.h for ERR_PTR

Andy Whitcroft wrote:
> Include linux/err.h to get ERR_PTR for non-x86 architectures. Fixes
> compile failure.
>
> Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: John Johansen <john.johansen@canonical.com>

also applied upstream

thanks


> ---
> security/apparmor/match.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/security/apparmor/match.c b/security/apparmor/match.c
> index c04dbcd..fcb48c5 100644
> --- a/security/apparmor/match.c
> +++ b/security/apparmor/match.c
> @@ -17,6 +17,7 @@
> #include <linux/mm.h>
> #include <linux/slab.h>
> #include <linux/vmalloc.h>
> +#include <linux/err.h>
>
> #include "include/match.h"
>

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 06:56 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org