lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108220730.q1ktPlk5-lkp@intel.com>
Date:   Sun, 22 Aug 2021 07:18:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sven Peter <sven@...npeter.dev>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.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

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (33109 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ