From: Jan Kiszka <jan.kiszka@siemens.com>
To: Xenomai <xenomai@xenomai.org>
Subject: [PATCH] drivers: spi: Fix compiler warning
Date: Mon, 11 Jan 2021 14:27:57 +0100 [thread overview]
Message-ID: <da4bd61b-1602-c455-32dc-e9c2ea18e271@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
Addresses "warning: cast from pointer to integer of different size".
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
kernel/drivers/spi/spi-master.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/drivers/spi/spi-master.c b/kernel/drivers/spi/spi-master.c
index 104af8023f..0fad328ef7 100644
--- a/kernel/drivers/spi/spi-master.c
+++ b/kernel/drivers/spi/spi-master.c
@@ -181,7 +181,7 @@ static int spi_master_ioctl_rt(struct rtdm_fd *fd,
case SPI_RTIOC_TRANSFER_N:
ret = -EINVAL;
if (master->ops->transfer_iobufs_n) {
- len = (int)arg;
+ len = (long)arg;
rtdm_mutex_lock(&master->bus_lock);
ret = do_chip_select(slave);
if (ret == 0) {
--
2.26.2
reply other threads:[~2021-01-11 13:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=da4bd61b-1602-c455-32dc-e9c2ea18e271@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.