[pinctrl:for-next 88/90] drivers/pinctrl/mediatek/pinctrl-mt6765.c:1077:14: error: initialization from incompatible pointer type

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

 



tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git for-next
head:   5a85bd8e3af3a78fd05d059835a52f5a7ee2cbc9
commit: dbe733ac908ef232f42a6586fa848d9c6910eeab [88/90] pinctrl: mediatek: Backward compatible to previous Mediatek's bias-pull usage
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout dbe733ac908ef232f42a6586fa848d9c6910eeab
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=sh 

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

All errors (new ones prefixed by >>):

>> drivers/pinctrl/mediatek/pinctrl-mt6765.c:1077:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .bias_set = mtk_pinconf_bias_set_combo,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mediatek/pinctrl-mt6765.c:1077:14: note: (near initialization for 'mt6765_data.bias_set')
   drivers/pinctrl/mediatek/pinctrl-mt6765.c:1078:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .bias_get = mtk_pinconf_bias_get_combo,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pinctrl/mediatek/pinctrl-mt6765.c:1078:14: note: (near initialization for 'mt6765_data.bias_get')
   cc1: some warnings being treated as errors

vim +1077 drivers/pinctrl/mediatek/pinctrl-mt6765.c

  1065	
  1066	static const struct mtk_pin_soc mt6765_data = {
  1067		.reg_cal = mt6765_reg_cals,
  1068		.pins = mtk_pins_mt6765,
  1069		.npins = ARRAY_SIZE(mtk_pins_mt6765),
  1070		.ngrps = ARRAY_SIZE(mtk_pins_mt6765),
  1071		.eint_hw = &mt6765_eint_hw,
  1072		.gpio_m = 0,
  1073		.base_names = mt6765_pinctrl_register_base_names,
  1074		.nbase_names = ARRAY_SIZE(mt6765_pinctrl_register_base_names),
  1075		.bias_disable_set = mtk_pinconf_bias_disable_set,
  1076		.bias_disable_get = mtk_pinconf_bias_disable_get,
> 1077		.bias_set = mtk_pinconf_bias_set_combo,
  1078		.bias_get = mtk_pinconf_bias_get_combo,
  1079		.drive_set = mtk_pinconf_drive_set_direct_val,
  1080		.drive_get = mtk_pinconf_drive_get_direct_val,
  1081		.adv_pull_get = mtk_pinconf_adv_pull_get,
  1082		.adv_pull_set = mtk_pinconf_adv_pull_set,
  1083	};
  1084	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux