[PATCH] optee: ioctl takes unsigned int argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux