[linux-next:master 7889/8451] drivers/pinctrl/bcm/pinctrl-bcm6362.c:503:8: warning: cast from pointer to integer of different size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   4143e05b7b171902f4938614c2a68821e1af46bc
commit: 705791e23ecd93d6c2697234fdf0c22b499c0a5b [7889/8451] pinctrl: add a pincontrol driver for BCM6362
config: ia64-randconfig-r013-20210330 (attached as .config)
compiler: ia64-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=705791e23ecd93d6c2697234fdf0c22b499c0a5b
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 705791e23ecd93d6c2697234fdf0c22b499c0a5b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from arch/ia64/include/asm/uaccess.h:40,
                    from include/linux/uaccess.h:11,
                    from arch/ia64/include/asm/sections.h:11,
                    from include/linux/interrupt.h:20,
                    from arch/ia64/include/asm/hw_irq.h:10,
                    from include/linux/irq.h:589,
                    from include/linux/gpio/driver.h:7,
                    from drivers/pinctrl/bcm/pinctrl-bcm6362.c:10:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:127:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     127 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   drivers/pinctrl/bcm/pinctrl-bcm6362.c: In function 'bcm6362_set_gpio':
>> drivers/pinctrl/bcm/pinctrl-bcm6362.c:503:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     503 |        (uint32_t) desc->drv_data, 0);
         |        ^


vim +503 drivers/pinctrl/bcm/pinctrl-bcm6362.c

   495	
   496	static void bcm6362_set_gpio(struct bcm63xx_pinctrl *pc, unsigned pin)
   497	{
   498		const struct pinctrl_pin_desc *desc = &bcm6362_pins[pin];
   499		unsigned int mask = bcm63xx_bank_pin(pin);
   500	
   501		if (desc->drv_data)
   502			regmap_update_bits(pc->regs, BCM6362_BASEMODE_REG,
 > 503					   (uint32_t) desc->drv_data, 0);
   504	
   505		if (pin < BCM63XX_BANK_GPIOS) {
   506			/* base mode 0 => gpio 1 => mux function */
   507			regmap_update_bits(pc->regs, BCM6362_MODE_REG, mask, 0);
   508	
   509			/* pins 0-23 might be muxed to led */
   510			if (pin < BCM6362_NUM_LEDS)
   511				regmap_update_bits(pc->regs, BCM6362_LED_REG, mask, 0);
   512		} else {
   513			/* ctrl reg 0 => wifi function 1 => gpio */
   514			regmap_update_bits(pc->regs, BCM6362_CTRL_REG, mask, mask);
   515		}
   516	}
   517	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux