[pinctrl:devel 66/69] drivers/pinctrl/qcom/pinctrl-sdm660.c:1417:11: warning: initialization discards 'const' qualifier from pointer target type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
head:   7a52127e3cf170ae71dadefef4ec82fb600cde2d
commit: a46d5e98190d055044418a734cb3b2fa04146a80 [66/69] pinctrl: qcom: Support dispersed tiles
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.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 a46d5e98190d055044418a734cb3b2fa04146a80
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

>> drivers/pinctrl/qcom/pinctrl-sdm660.c:1417:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     .tiles = sdm660_tiles,
              ^~~~~~~~~~~~

vim +/const +1417 drivers/pinctrl/qcom/pinctrl-sdm660.c

9cf0c526 Neeraj Upadhyay 2018-09-25  1408  
9cf0c526 Neeraj Upadhyay 2018-09-25  1409  static const struct msm_pinctrl_soc_data sdm660_pinctrl = {
9cf0c526 Neeraj Upadhyay 2018-09-25  1410  	.pins = sdm660_pins,
9cf0c526 Neeraj Upadhyay 2018-09-25  1411  	.npins = ARRAY_SIZE(sdm660_pins),
9cf0c526 Neeraj Upadhyay 2018-09-25  1412  	.functions = sdm660_functions,
9cf0c526 Neeraj Upadhyay 2018-09-25  1413  	.nfunctions = ARRAY_SIZE(sdm660_functions),
9cf0c526 Neeraj Upadhyay 2018-09-25  1414  	.groups = sdm660_groups,
9cf0c526 Neeraj Upadhyay 2018-09-25  1415  	.ngroups = ARRAY_SIZE(sdm660_groups),
9cf0c526 Neeraj Upadhyay 2018-09-25  1416  	.ngpios = 114,
9cf0c526 Neeraj Upadhyay 2018-09-25 @1417  	.tiles = sdm660_tiles,
9cf0c526 Neeraj Upadhyay 2018-09-25  1418  	.ntiles = ARRAY_SIZE(sdm660_tiles),
9cf0c526 Neeraj Upadhyay 2018-09-25  1419  };
9cf0c526 Neeraj Upadhyay 2018-09-25  1420  

:::::: The code at line 1417 was first introduced by commit
:::::: 9cf0c526bc5874d77208751ae42f7e4c62bfdd4d pinctrl: qcom: Add sdm660 pinctrl driver

:::::: TO: Neeraj Upadhyay <neeraju@xxxxxxxxxxxxxx>
:::::: CC: Linus Walleij <linus.walleij@xxxxxxxxxx>

---
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