[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200317133219.19248-1-linux@roeck-us.net>
Date: Tue, 17 Mar 2020 06:32:19 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: David Howells <dhowells@...hat.com>
Cc: linux-kernel@...r.kernel.org, Guenter Roeck <linux@...ck-us.net>
Subject: [PATCH -next] samples: Define dummy __NR_keyctl if undefined
mips:allmodconfig fails to build.
samples/watch_queue/watch_test.c: In function ‘keyctl_watch_key’:
samples/watch_queue/watch_test.c:34:17: error: ‘__NR_keyctl’ undeclared
Declare dummy __NR_keyctl if it is undefined to fix the problem.
Cc: David Howells <dhowells@...hat.com>
Fixes: 631ec151fd96 ("Add sample notification program")
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
samples/watch_queue/watch_test.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/samples/watch_queue/watch_test.c b/samples/watch_queue/watch_test.c
index 0eaff5dc04c3..ad11417a87f0 100644
--- a/samples/watch_queue/watch_test.c
+++ b/samples/watch_queue/watch_test.c
@@ -26,6 +26,9 @@
#ifndef __NR_watch_devices
#define __NR_watch_devices -1
#endif
+#ifndef __NR_keyctl
+#define __NR_keyctl -1
+#endif
#define BUF_SIZE 256
--
2.17.1
Powered by blists - more mailing lists