[PATCH 8/9] drivers: cdrom: change unsigned to unsigned int

From: Simao Gomes Viana
Date: Fri Jun 19 2020 - 15:34:38 EST


As reported by scripts/checkpatch.pl

Signed-off-by: Simao Gomes Viana <devel@xxxxxxxxxxxxxxx>
---
drivers/cdrom/cdrom.c | 4 ++--
drivers/cdrom/gdrom.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index 6ff8da08230c..d96458de1cb3 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -1633,7 +1633,7 @@ void init_cdrom_command(struct packet_command *cgc, void *buf, int len,
#define copy_key(dest, src) memcpy((dest), (src), sizeof(dvd_key))
#define copy_chal(dest, src) memcpy((dest), (src), sizeof(dvd_challenge))

-static void setup_report_key(struct packet_command *cgc, unsigned agid, unsigned type)
+static void setup_report_key(struct packet_command *cgc, unsigned int agid, unsigned int type)
{
cgc->cmd[0] = GPCMD_REPORT_KEY;
cgc->cmd[10] = type | (agid << 6);
@@ -1655,7 +1655,7 @@ static void setup_report_key(struct packet_command *cgc, unsigned agid, unsigned
cgc->data_direction = CGC_DATA_READ;
}

-static void setup_send_key(struct packet_command *cgc, unsigned agid, unsigned type)
+static void setup_send_key(struct packet_command *cgc, unsigned int agid, unsigned int type)
{
cgc->cmd[0] = GPCMD_SEND_KEY;
cgc->cmd[10] = type | (agid << 6);
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index 1b4fd34f2687..a52d515408ee 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -508,7 +508,7 @@ static unsigned int gdrom_bdops_check_events(struct gendisk *disk,
}

static int gdrom_bdops_ioctl(struct block_device *bdev, fmode_t mode,
- unsigned cmd, unsigned long arg)
+ unsigned int cmd, unsigned long arg)
{
int ret;

--
2.27.0