[PATCH -next] samples: watch_queue: depends on HEADERS_INSTALL

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


From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Building samples/watch_queue/ uses installed headers, so make it
depends on HEADERS_INSTALL to prevent a build error.

../samples/watch_queue/watch_test.c:23:10: fatal error: linux/watch_queue.h: No such file or directory

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: David Howells <dhowells@xxxxxxxxxx>
---
samples/Kconfig | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20191010.orig/samples/Kconfig
+++ linux-next-20191010/samples/Kconfig
@@ -171,6 +171,7 @@ config SAMPLE_VFS

config SAMPLE_WATCH_QUEUE
bool "Build example /dev/watch_queue notification consumer"
+ depends on HEADERS_INSTALL
help
Build example userspace program to use the new mount_notify(),
sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function.