From: Ben Boeckel <mathstuf@gmail.com>
To: keyrings@vger.kernel.org
Subject: [PATCH 4/5] keyctl.h: update pointer types
Date: Thu, 27 Sep 2018 13:14:49 +0000 [thread overview]
Message-ID: <20180927131450.23458-5-mathstuf@gmail.com> (raw)
These should be `const` since the kernel should not touch them. In
addition `otherinfo` is defined to be opaque, so make it a `void *`.
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
---
include/uapi/linux/keyctl.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/keyctl.h b/include/uapi/linux/keyctl.h
index 1a5a7948606e..6004e05b685b 100644
--- a/include/uapi/linux/keyctl.h
+++ b/include/uapi/linux/keyctl.h
@@ -76,8 +76,8 @@ struct keyctl_dh_params {
};
struct keyctl_kdf_params {
- char __user *hashname;
- char __user *otherinfo;
+ const char __user *hashname;
+ const void __user *otherinfo;
__u32 otherinfolen;
__u32 __spare[8];
};
--
2.17.1
next reply other threads:[~2018-09-27 13:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-27 13:14 Ben Boeckel [this message]
2018-09-27 17:08 ` [PATCH 4/5] keyctl.h: update pointer types David Howells
2018-09-27 18:37 ` Ben Boeckel
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=20180927131450.23458-5-mathstuf@gmail.com \
--to=mathstuf@gmail.com \
--cc=keyrings@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.