[driver-core:kobject-const2 18/20] drivers/macintosh/macio_asic.c:136:18: error: incompatible function pointer types initializing 'int (*)(struct device *, struct kobj_uevent_env *)' with an expression of type 'int (const struct device *, struct kobj_uevent_env *)'

kernel test robot <[email protected]>
Newsgroups org.linuxdriverproject.driverdev-devel,dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const2
head:   ac53d9aa9bec7f09f8cc3f4af04254df0b95a3cf
commit: 0bde1d69332934ea32310cba03cc86e1e29185b5 [18/20] driver core: make struct device_type.uevent() take a const *
config: powerpc-randconfig-r024-20221128
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=0bde1d69332934ea32310cba03cc86e1e29185b5
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core kobject-const2
        git checkout 0bde1d69332934ea32310cba03cc86e1e29185b5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/macintosh/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

>> drivers/macintosh/macio_asic.c:136:18: error: incompatible function pointer types initializing 'int (*)(struct device *, struct kobj_uevent_env *)' with an expression of type 'int (const struct device *, struct kobj_uevent_env *)' [-Wincompatible-function-pointer-types]
          .uevent = of_device_uevent_modalias,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +136 drivers/macintosh/macio_asic.c

b5bf5b6786ccfc9 Jeff Mahoney       2005-07-06  132  
^1da177e4c3f415 Linus Torvalds     2005-04-16  133  struct bus_type macio_bus_type = {
^1da177e4c3f415 Linus Torvalds     2005-04-16  134         .name	= "macio",
^1da177e4c3f415 Linus Torvalds     2005-04-16  135         .match	= macio_bus_match,
07d57a32fb6eb2d Grant Likely       2012-02-01 @136         .uevent = of_device_uevent_modalias,
4866b124a1ded3b Russell King       2006-01-05  137         .probe	= macio_device_probe,
4866b124a1ded3b Russell King       2006-01-05  138         .remove	= macio_device_remove,
4866b124a1ded3b Russell King       2006-01-05  139         .shutdown = macio_device_shutdown,
^1da177e4c3f415 Linus Torvalds     2005-04-16  140         .suspend	= macio_device_suspend,
^1da177e4c3f415 Linus Torvalds     2005-04-16  141         .resume	= macio_device_resume,
60bb70aa761ca40 Greg Kroah-Hartman 2017-06-06  142         .dev_groups = macio_dev_groups,
^1da177e4c3f415 Linus Torvalds     2005-04-16  143  };
^1da177e4c3f415 Linus Torvalds     2005-04-16  144  

:::::: The code at line 136 was first introduced by commit
:::::: 07d57a32fb6eb2da017796e038682f817a4f685e drivercore: Output common devicetree information in uevent

:::::: TO: Grant Likely <[email protected]>
:::::: CC: Grant Likely <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
config (text/plain, 151.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.