From: Simao Gomes Viana <devel@superboring.dev>
To: linux-kernel@vger.kernel.org
Cc: Simao Gomes Viana <devel@superboring.dev>, Joe Perches <joe@perches.com>
Subject: [PATCH 8/9] drivers: cdrom: change unsigned to unsigned int
Date: Fri, 19 Jun 2020 21:33:40 +0200 [thread overview]
Message-ID: <20200619193341.51209-8-devel@superboring.dev> (raw)
In-Reply-To: <20200619193341.51209-1-devel@superboring.dev>
As reported by scripts/checkpatch.pl
Signed-off-by: Simao Gomes Viana <devel@superboring.dev>
---
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
next prev parent reply other threads:[~2020-06-19 19:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 18:08 [PATCH 1/2] drivers: cdrom: fix all errors reported by checkpatch Simao Gomes Viana
2020-06-19 18:08 ` [PATCH 2/2] drivers: cdrom: add missing SPDX license identifier Simao Gomes Viana
2020-06-19 18:29 ` [PATCH 1/2] drivers: cdrom: fix all errors reported by checkpatch Joe Perches
2020-06-19 18:41 ` Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 1/9] drivers: cdrom: fix horizontal whitespace Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 2/9] drivers: cdrom: fix comment style Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 3/9] drivers: cdrom: replace func name by __func__ Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 4/9] drivers: cdrom: rewrite embedded assignments in multiple lines Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 5/9] drivers: cdrom: swap sides of comparison Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 6/9] drivers: cdrom: add missing newlines (vertical space) Simao Gomes Viana
2020-06-19 19:33 ` [PATCH 7/9] drivers: cdrom: miscellaneous code style fixes Simao Gomes Viana
2020-06-19 19:33 ` Simao Gomes Viana [this message]
2020-06-19 19:33 ` [PATCH 9/9] drivers: cdrom: fix spacing and wrapping Simao Gomes Viana
2020-06-19 21:26 ` [PATCH 1/2] drivers: cdrom: fix all errors reported by checkpatch Jens Axboe
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=20200619193341.51209-8-devel@superboring.dev \
--to=devel@superboring.dev \
--cc=joe@perches.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome