linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] samples: Define dummy __NR_keyctl if undefined
@ 2020-03-17 13:32 Guenter Roeck
  0 siblings, 0 replies; only message in thread
From: Guenter Roeck @ 2020-03-17 13:32 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel, Guenter Roeck

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@redhat.com>
Fixes: 631ec151fd96 ("Add sample notification program")
Signed-off-by: Guenter Roeck <linux@roeck-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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-17 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 13:32 [PATCH -next] samples: Define dummy __NR_keyctl if undefined Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).