[openeuler:OLK-6.6 3083/3083] drivers/gpu/drm/phytium/phytium_platform.c:348:34: warning: unused variable 'display_of_match'
Hi xuyan, First bad commit (maybe != root cause): tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 923d7e38d0e74b4ae16ccb56d089c2210d2ea5d3 commit: 3b4a5906fa714bdc9a15fc04374942888737eb4c [3083/3083] drm/phytium: Fix Phytium DRM build fail config: x86_64-randconfig-123-20251103 (https://download.01.org/0day-ci/archive/20251103/202511031139.BP8204ku-lkp@i...) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251103/202511031139.BP8204ku-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202511031139.BP8204ku-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/phytium/phytium_platform.c:22:5: warning: no previous prototype for function 'phytium_platform_carveout_mem_init' [-Wmissing-prototypes] 22 | int phytium_platform_carveout_mem_init(struct platform_device *pdev, | ^ drivers/gpu/drm/phytium/phytium_platform.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 22 | int phytium_platform_carveout_mem_init(struct platform_device *pdev, | ^ | static drivers/gpu/drm/phytium/phytium_platform.c:63:6: warning: no previous prototype for function 'phytium_platform_carveout_mem_fini' [-Wmissing-prototypes] 63 | void phytium_platform_carveout_mem_fini(struct platform_device *pdev, | ^ drivers/gpu/drm/phytium/phytium_platform.c:63:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 63 | void phytium_platform_carveout_mem_fini(struct platform_device *pdev, | ^ | static
drivers/gpu/drm/phytium/phytium_platform.c:348:34: warning: unused variable 'display_of_match' [-Wunused-const-variable] 348 | static const struct of_device_id display_of_match[] = { | ^~~~~~~~~~~~~~~~ 3 warnings generated.
vim +/display_of_match +348 drivers/gpu/drm/phytium/phytium_platform.c b80df10f845813 lishuo 2024-01-31 347 b80df10f845813 lishuo 2024-01-31 @348 static const struct of_device_id display_of_match[] = { b80df10f845813 lishuo 2024-01-31 349 { b80df10f845813 lishuo 2024-01-31 350 .compatible = "phytium,dc", b80df10f845813 lishuo 2024-01-31 351 .data = &pe220x_info, b80df10f845813 lishuo 2024-01-31 352 }, b80df10f845813 lishuo 2024-01-31 353 { } b80df10f845813 lishuo 2024-01-31 354 }; e2cdf30a3e12bb XuYan 2025-04-09 355 MODULE_DEVICE_TABLE(of, display_of_match); b80df10f845813 lishuo 2024-01-31 356 :::::: The code at line 348 was first introduced by commit :::::: b80df10f845813bb4fc2002b5386ecdfa8be5f6c DRM: Phytium display DRM driver :::::: TO: lishuo <lishuo@phytium.com.cn> :::::: CC: lishuo <lishuo@phytium.com.cn> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot