[xilinx-xlnx:xlnx_rebase_v5.10 103/1981] drivers/pinctrl/pinctrl-zynqmp.c:106:25: warning: implicit conversion from 'enum zynqmp_pin_config_param' to 'enum pin_config_param'

kernel test robot lkp at intel.com
Fri Dec 17 14:15:02 PST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head:   87ec9a2d98a7a7dfc98b57348a0ec310fd170e4b
commit: 17ad884f47d49a926ff8a49ea12002b1be229f45 [103/1981] pinctrl: zynqmp: Maintain backward compatibility with previous version
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20211218/202112180614.0pyqdUgJ-lkp@intel.com/config)
compiler: aarch64-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/Xilinx/linux-xlnx/commit/17ad884f47d49a926ff8a49ea12002b1be229f45
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.10
        git checkout 17ad884f47d49a926ff8a49ea12002b1be229f45
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/ drivers/crypto/caam/ drivers/edac/ drivers/irqchip/ drivers/net/ethernet/ti/ drivers/pinctrl/ drivers/remoteproc/ drivers/usb/dwc3/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/pinctrl-zynqmp.c:106:25: warning: implicit conversion from 'enum zynqmp_pin_config_param' to 'enum pin_config_param' [-Wenum-conversion]
     106 |         {"io-standard", PIN_CONFIG_IOSTANDARD, IO_STANDARD_LVCMOS18},
         |                         ^~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/pinctrl-zynqmp.c:107:26: warning: implicit conversion from 'enum zynqmp_pin_config_param' to 'enum pin_config_param' [-Wenum-conversion]
     107 |         {"schmitt-cmos", PIN_CONFIG_SCHMITTCMOS, PIN_INPUT_TYPE_SCHMITT},
         |                          ^~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/pinctrl/pinctrl-zynqmp.c:20:
   drivers/pinctrl/pinctrl-zynqmp.c:113:19: warning: implicit conversion from 'enum zynqmp_pin_config_param' to 'enum pin_config_param' [-Wenum-conversion]
     113 |         PCONFDUMP(PIN_CONFIG_IOSTANDARD, "IO-standard", NULL, true),
         |                   ^~~~~~~~~~~~~~~~~~~~~
   include/linux/pinctrl/pinconf-generic.h:168:18: note: in definition of macro 'PCONFDUMP'
     168 |         .param = a, .display = b, .format = c, .has_arg = d     \
         |                  ^
   drivers/pinctrl/pinctrl-zynqmp.c:114:19: warning: implicit conversion from 'enum zynqmp_pin_config_param' to 'enum pin_config_param' [-Wenum-conversion]
     114 |         PCONFDUMP(PIN_CONFIG_SCHMITTCMOS, "schmitt-cmos", NULL, true),
         |                   ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/pinctrl/pinconf-generic.h:168:18: note: in definition of macro 'PCONFDUMP'
     168 |         .param = a, .display = b, .format = c, .has_arg = d     \
         |                  ^


vim +106 drivers/pinctrl/pinctrl-zynqmp.c

   104	
   105	static const struct pinconf_generic_params zynqmp_dt_params[] = {
 > 106		{"io-standard", PIN_CONFIG_IOSTANDARD, IO_STANDARD_LVCMOS18},
   107		{"schmitt-cmos", PIN_CONFIG_SCHMITTCMOS, PIN_INPUT_TYPE_SCHMITT},
   108	};
   109	

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



More information about the linux-arm-kernel mailing list