[driver-core:driver-core-testing 10/17] drivers//of/platform.c:629:32: warning: initialization discards 'const' qualifier from pointer target type

kbuild test robot lkp at intel.com
Tue Aug 6 07:23:46 UTC 2019


tree:   https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   90eb808c54acbacfb76b408036dc0fc287b46901
commit: 05f812549f534daa584fa6964aff6b3de23971a7 [10/17] of/platform: Add functional dependency link from DT bindings
config: mips-allmodconfig (attached as .config)
compiler: mips-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 05f812549f534daa584fa6964aff6b3de23971a7
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=mips 

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

All warnings (new ones prefixed by >>):

   drivers//of/platform.c: In function 'of_link_property':
>> drivers//of/platform.c:629:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     struct supplier_bindings *s = bindings;
                                   ^~~~~~~~
>> drivers//of/platform.c:647:18: warning: ?: using integer constants in boolean context [-Wint-in-bool-context]
     return done ? 0 : -ENODEV;

vim +/const +629 drivers//of/platform.c

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 61452 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190806/ef604104/attachment-0001.bin>


More information about the devel mailing list