From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [asahilinux:nvme/new 6/9] drivers/mailbox/apple-mailbox-compat-shim.c:68:20: warning: cast from pointer to integer of different size
Date: Sun, 22 Aug 2021 07:18:37 +0800 [thread overview]
Message-ID: <202108220730.q1ktPlk5-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3648 bytes --]
tree: https://github.com/AsahiLinux/linux nvme/new
head: b97dea3822f87d95ed741680a55b0e6b13755194
commit: 2160c3a88f8ad962d0a5a57dae36ffa895fd8a0b [6/9] HACK compat mailbox shim
config: microblaze-randconfig-r005-20210822 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/AsahiLinux/linux/commit/2160c3a88f8ad962d0a5a57dae36ffa895fd8a0b
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux nvme/new
git checkout 2160c3a88f8ad962d0a5a57dae36ffa895fd8a0b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mailbox/apple-mailbox-compat-shim.c: In function 'apple_compat_mbox_chan_send_data':
>> drivers/mailbox/apple-mailbox-compat-shim.c:68:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
68 | msg.msg0 = (u64)data;
| ^
drivers/mailbox/apple-mailbox-compat-shim.c: In function 'rtk_got_msg':
>> drivers/mailbox/apple-mailbox-compat-shim.c:112:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
112 | mbox_chan_received_data(&mbox->chan[endpoint], (void *)message);
| ^
vim +68 drivers/mailbox/apple-mailbox-compat-shim.c
61
62 static int apple_compat_mbox_chan_send_data(struct mbox_chan *chan, void *data)
63 {
64 struct apple_compat_mbox_priv *priv = chan->con_priv;
65 struct apple_compat_mbox *apple_mbox = priv->mbox;
66 struct apple_mbox_msg msg;
67
> 68 msg.msg0 = (u64)data;
69 msg.msg1 = priv->ep;
70
71 return mbox_send_message(apple_mbox->hw_chan, &msg);
72 }
73
74 static int apple_compat_mbox_chan_startup(struct mbox_chan *chan)
75 {
76 struct apple_compat_mbox_priv *priv = chan->con_priv;
77 priv->enabled = true;
78 apple_rtkit_start_ep(priv->mbox->rtk, priv->ep);
79 return 0;
80 }
81
82 static void apple_compat_mbox_chan_shutdown(struct mbox_chan *chan)
83 {
84 struct apple_compat_mbox_priv *priv = chan->con_priv;
85 priv->enabled = false;
86 }
87
88 static bool apple_compat_mbox_chan_last_txdone(struct mbox_chan *chan)
89 {
90 return true;
91 }
92
93 static const struct mbox_chan_ops apple_compat_mbox_ops = {
94 .send_data = &apple_compat_mbox_chan_send_data,
95 .last_tx_done = apple_compat_mbox_chan_last_txdone,
96 .startup = &apple_compat_mbox_chan_startup,
97 .shutdown = &apple_compat_mbox_chan_shutdown,
98 };
99
100 static int dummy_shmem_verify(void *cookie, dma_addr_t addr, size_t len)
101 {
102 return 0;
103 }
104
105 static void rtk_got_msg(void *cookie, u8 endpoint, u64 message)
106 {
107 struct apple_compat_mbox *mbox = cookie;
108
109 if (!mbox->chan_priv[endpoint].enabled)
110 return;
111
> 112 mbox_chan_received_data(&mbox->chan[endpoint], (void *)message);
113 }
114
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33109 bytes --]
reply other threads:[~2021-08-21 23:19 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=202108220730.q1ktPlk5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sven@svenpeter.dev \
/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
all inboxes | Powered by JetHome®