Building in a separate object directory causes a compilation
failure for a missing header:

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

I could not figure out why this does not work and applied this
patch locally. It would be good to fix this properly for 5.4
instead.

Signed-off-by: Arnd Bergmann <[email protected]>
---
 samples/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/Makefile b/samples/Makefile
index a61a39047d02..068b28113be9 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -20,4 +20,4 @@ obj-$(CONFIG_SAMPLE_TRACE_PRINTK)     += trace_printk/
 obj-$(CONFIG_VIDEO_PCI_SKELETON)       += v4l/
 obj-y                                  += vfio-mdev/
 subdir-$(CONFIG_SAMPLE_VFS)            += vfs
-subdir-$(CONFIG_SAMPLE_WATCH_QUEUE)    += watch_queue
+#subdir-$(CONFIG_SAMPLE_WATCH_QUEUE)   += watch_queue
-- 
2.20.0

Reply via email to