mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xin Gao <gaoxin@cdjrlc.com>
To: dhowells@redhat.com, jarkko@kernel.org
Cc: jmorris@namei.org, serge@hallyn.com, keyrings@vger.kernel.org,
	linux-security-module@vger.kernel.org,
	linux-kernel@vger.kernel.org, Xin Gao <gaoxin@cdjrlc.com>
Subject: [PATCH] KEYS: Variable type completion
Date: Wed, 17 Aug 2022 02:01:10 +0800	[thread overview]
Message-ID: <20220816180110.8625-1-gaoxin@cdjrlc.com> (raw)

'unsigned int' is better than 'unsigned'.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 security/keys/keyctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index 96a92a645216..4564505e7594 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -44,7 +44,7 @@ static const unsigned char keyrings_capabilities[2] = {
 
 static int key_get_type_from_user(char *type,
 				  const char __user *_type,
-				  unsigned len)
+				  unsigned int len)
 {
 	int ret;
 
-- 
2.30.2


             reply	other threads:[~2022-08-16 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-16 18:01 Xin Gao [this message]
2022-08-16 18:14 ` Al Viro
2022-08-16 18:04 [PATCH] keys: " Xin Gao

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=20220816180110.8625-1-gaoxin@cdjrlc.com \
    --to=gaoxin@cdjrlc.com \
    --cc=dhowells@redhat.com \
    --cc=jarkko@kernel.org \
    --cc=jmorris@namei.org \
    --cc=keyrings@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=serge@hallyn.com \
    /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

all inboxes | Powered by JetHome®