[PATCH -next] security: smack: add watch_queue.h header to fix build errors

From: Randy Dunlap
Date: Thu Oct 10 2019 - 11:24:31 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
Cc: Casey Schaufler <casey@xxxxxxxxxxxxxxxx>
Cc: David Howells <dhowells@xxxxxxxxxx>
Cc: linux-security-module@xxxxxxxxxxxxxxx
---
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"