linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [asahilinux:nvme/new 6/9] drivers/mailbox/apple-mailbox-compat-shim.c:68:20: warning: cast from pointer to integer of different size
@ 2021-08-21 23:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-21 23:18 UTC (permalink / raw)
  To: Sven Peter; +Cc: kbuild-all, linux-kernel

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-21 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 23:18 [asahilinux:nvme/new 6/9] drivers/mailbox/apple-mailbox-compat-shim.c:68:20: warning: cast from pointer to integer of different size kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).