All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] security: Fix nommu build.
@ 2012-07-02  5:34 Paul Mundt
  2012-07-02 13:57 ` James Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Mundt @ 2012-07-02  5:34 UTC (permalink / raw)
  To: James Morris; +Cc: linux-kernel

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>

---

 security/security.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/security/security.c b/security/security.c
index 3efc9b1..860aeb3 100644
--- a/security/security.c
+++ b/security/security.c
@@ -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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] security: Fix nommu build.
  2012-07-02  5:34 [PATCH] security: Fix nommu build Paul Mundt
@ 2012-07-02 13:57 ` James Morris
  2012-07-03  7:27   ` Paul Mundt
  0 siblings, 1 reply; 3+ messages in thread
From: James Morris @ 2012-07-02 13:57 UTC (permalink / raw)
  To: Paul Mundt; +Cc: James Morris, linux-kernel

On Mon, 2 Jul 2012, Paul Mundt wrote:

> 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>

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next


-- 
James Morris
<jmorris@namei.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] security: Fix nommu build.
  2012-07-02 13:57 ` James Morris
@ 2012-07-03  7:27   ` Paul Mundt
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2012-07-03  7:27 UTC (permalink / raw)
  To: James Morris; +Cc: James Morris, linux-kernel

On Mon, Jul 02, 2012 at 11:57:43PM +1000, James Morris wrote:
> On Mon, 2 Jul 2012, Paul Mundt wrote:
> 
> > 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>
> 
> Applied to
> git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
> 
I'm not sure how you're managing your trees, but this is needed for
Linus's tree.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-03  7:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02  5:34 [PATCH] security: Fix nommu build Paul Mundt
2012-07-02 13:57 ` James Morris
2012-07-03  7:27   ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.