[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 10 Oct 2019 08:24:26 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-security-module <linux-security-module@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Cc: David Howells <dhowells@...hat.com>,
Casey Schaufler <casey@...aufler-ca.com>
Subject: [PATCH -next] security: smack: add watch_queue.h header to fix build
errors
From: Randy Dunlap <rdunlap@...radead.org>
Fix build errors when CONFIG_WATCH_QUEUE=y by adding the
appropriate header file.
../security/smack/smack_lsm.c: In function ‘smack_post_notification’:
../security/smack/smack_lsm.c:4384:7: error: dereferencing pointer to incomplete type ‘struct watch_notification’
if (n->type == WATCH_TYPE_META)
^~
../security/smack/smack_lsm.c:4384:17: error: ‘WATCH_TYPE_META’ undeclared (first use in this function); did you mean ‘TCA_PIE_BETA’?
if (n->type == WATCH_TYPE_META)
^~~~~~~~~~~~~~~
TCA_PIE_BETA
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Casey Schaufler <casey@...aufler-ca.com>
Cc: David Howells <dhowells@...hat.com>
Cc: linux-security-module@...r.kernel.org
---
security/smack/smack_lsm.c | 1 +
1 file changed, 1 insertion(+)
--- linux-next-20191010.orig/security/smack/smack_lsm.c
+++ linux-next-20191010/security/smack/smack_lsm.c
@@ -42,6 +42,7 @@
#include <linux/parser.h>
#include <linux/fs_context.h>
#include <linux/fs_parser.h>
+#include <linux/watch_queue.h>
#include "smack.h"
#define TRANS_TRUE "TRUE"
Powered by blists - more mailing lists