All of lore.kernel.org
 help / color / mirror / Atom feed
* [microchip-ung-linux-upstream:v5.10-webstax 58/88] drivers/mtd/nand/raw/vcoreiii_nand.c:71:16: warning: cast from pointer to integer of different size
@ 2020-12-14 13:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-14 13:12 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2618 bytes --]

tree:   https://github.com/microchip-ung/linux-upstream.git v5.10-webstax
head:   0c603c93d534e71ceee9485bfe1b0b75561efb0e
commit: bc840aa16f4e573a1eeba3d53b23ceeb61c0575b [58/88] mtd: rawnand: ocelot: Add vcoreiii parallel interface NAND driver
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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/microchip-ung/linux-upstream/commit/bc840aa16f4e573a1eeba3d53b23ceeb61c0575b
        git remote add microchip-ung-linux-upstream https://github.com/microchip-ung/linux-upstream.git
        git fetch --no-tags microchip-ung-linux-upstream v5.10-webstax
        git checkout bc840aa16f4e573a1eeba3d53b23ceeb61c0575b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

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/mtd/nand/raw/vcoreiii_nand.c: In function 'vcoreiii_nand_cmd_ctrl':
>> drivers/mtd/nand/raw/vcoreiii_nand.c:71:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      71 |   u32 ioaddr = (u32) this->legacy.IO_ADDR_R;
         |                ^
>> drivers/mtd/nand/raw/vcoreiii_nand.c:77:28: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      77 |   this->legacy.IO_ADDR_W = (void __iomem *)ioaddr;
         |                            ^

vim +71 drivers/mtd/nand/raw/vcoreiii_nand.c

    63	
    64	/* hardware specific access to control-lines */
    65	static void vcoreiii_nand_cmd_ctrl(struct nand_chip *this, int cmd,
    66					   unsigned int ctrl)
    67	{
    68		struct mtd_info *mtd = nand_to_mtd(this);
    69		if (ctrl & NAND_CTRL_CHANGE) {
    70			struct mscc_nand_data *host = mtd_to_mscc(mtd);
  > 71			u32 ioaddr = (u32) this->legacy.IO_ADDR_R;
    72			if(ctrl & NAND_CLE) {
    73				ioaddr |= host->props->cle_mask;
    74			} else if(ctrl & NAND_ALE) {
    75				ioaddr |= host->props->ale_mask;
    76			}
  > 77			this->legacy.IO_ADDR_W = (void __iomem *)ioaddr;
    78		}
    79		if (cmd != NAND_CMD_NONE) {
    80			__raw_writeb(cmd, this->legacy.IO_ADDR_W);
    81			wmb();
    82		}
    83	}
    84	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 64525 bytes --]

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

only message in thread, other threads:[~2020-12-14 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 13:12 [microchip-ung-linux-upstream:v5.10-webstax 58/88] drivers/mtd/nand/raw/vcoreiii_nand.c:71:16: warning: cast from pointer to integer of different size kernel test robot

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.