Hi Vladimir, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on net/master] url: https://github.com/0day-ci/linux/commits/Vladimir-Oltean/Make-DSA-switch-drivers-compatible-with-masters-which-unregister-on-shutdown/20210912-201056 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git f11ee2ad25b22c2ee587045dd6999434375532f7 config: x86_64-randconfig-a004-20210912 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a) 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/0day-ci/linux/commit/535bb691a9ce71ade9ad1ce5a5fdae8c2fd46e27 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Vladimir-Oltean/Make-DSA-switch-drivers-compatible-with-masters-which-unregister-on-shutdown/20210912-201056 git checkout 535bb691a9ce71ade9ad1ce5a5fdae8c2fd46e27 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/net/dsa/b53/b53_mmap.c:332:1: error: non-void function does not return a value [-Werror,-Wreturn-type] } ^ >> drivers/net/dsa/b53/b53_mmap.c:346:14: error: incompatible function pointer types initializing 'void (*)(struct platform_device *)' with an expression of type 'int (struct platform_device *)' [-Werror,-Wincompatible-function-pointer-types] .shutdown = b53_mmap_shutdown, ^~~~~~~~~~~~~~~~~ 2 errors generated. vim +332 drivers/net/dsa/b53/b53_mmap.c 323 324 static int b53_mmap_shutdown(struct platform_device *pdev) 325 { 326 struct b53_device *dev = platform_get_drvdata(pdev); 327 328 if (dev) 329 b53_switch_shutdown(dev); 330 331 platform_set_drvdata(pdev, NULL); > 332 } 333 334 static const struct of_device_id b53_mmap_of_table[] = { 335 { .compatible = "brcm,bcm3384-switch" }, 336 { .compatible = "brcm,bcm6328-switch" }, 337 { .compatible = "brcm,bcm6368-switch" }, 338 { .compatible = "brcm,bcm63xx-switch" }, 339 { /* sentinel */ }, 340 }; 341 MODULE_DEVICE_TABLE(of, b53_mmap_of_table); 342 343 static struct platform_driver b53_mmap_driver = { 344 .probe = b53_mmap_probe, 345 .remove = b53_mmap_remove, > 346 .shutdown = b53_mmap_shutdown, 347 .driver = { 348 .name = "b53-switch", 349 .of_match_table = b53_mmap_of_table, 350 }, 351 }; 352 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org