mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] optee: ioctl takes unsigned int argument
Date: Mon, 29 Jul 2024 16:34:39 +0200	[thread overview]
Message-ID: <20240729143439.245039-1-s.hauer@pengutronix.de> (raw)

Fix incompatible pointer warning. the ioctl() op now takes a unsigned
int as command argument.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/tee/tee_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tee/tee_core.c b/drivers/tee/tee_core.c
index 45fa9b5670..e9b99c990d 100644
--- a/drivers/tee/tee_core.c
+++ b/drivers/tee/tee_core.c
@@ -448,7 +448,7 @@ tee_ioctl_close_session(struct tee_context *ctx,
 	return ctx->teedev->desc->ops->close_session(ctx, arg.session);
 }
 
-static int tee_ioctl(struct cdev *cdev, int cmd, void *arg)
+static int tee_ioctl(struct cdev *cdev, unsigned int cmd, void *arg)
 {
 	struct tee_context *ctx = cdev->priv;
 	void __user *uarg = (void __user *)arg;
-- 
2.39.2




             reply	other threads:[~2024-07-29 14:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-29 14:34 Sascha Hauer [this message]
2024-07-30  7:49 ` Sascha Hauer

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=20240729143439.245039-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.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