From: Guenter Roeck <linux@roeck-us.net>
To: David Howells <dhowells@redhat.com>
Cc: linux-kernel@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>
Subject: [PATCH -next] samples: Define dummy __NR_keyctl if undefined
Date: Tue, 17 Mar 2020 06:32:19 -0700 [thread overview]
Message-ID: <20200317133219.19248-1-linux@roeck-us.net> (raw)
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
reply other threads:[~2020-03-17 13:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200317133219.19248-1-linux@roeck-us.net \
--to=linux@roeck-us.net \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).