[openeuler:OLK-6.6 3541/3541] drivers/gpu/drm/phytium/phytium_gem.c:170:6: warning: no previous prototype for 'phytium_gem_prime_vunmap'
Hi xuyan, First bad commit (maybe != root cause): tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cd9eb9b4365b71652b2c2ac58293bea47c9f9302 commit: 3b4a5906fa714bdc9a15fc04374942888737eb4c [3541/3541] drm/phytium: Fix Phytium DRM build fail config: x86_64-randconfig-r122-20251213 (https://download.01.org/0day-ci/archive/20251213/202512131516.QU7kM0te-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512131516.QU7kM0te-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/202512131516.QU7kM0te-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/phytium/phytium_gem.c:22:5: warning: no previous prototype for 'phytium_memory_pool_alloc' [-Wmissing-prototypes] 22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr, | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_gem.c:37:6: warning: no previous prototype for 'phytium_memory_pool_free' [-Wmissing-prototypes] 37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_gem.c:161:5: warning: no previous prototype for 'phytium_gem_prime_vmap' [-Wmissing-prototypes] 161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) | ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/phytium/phytium_gem.c:170:6: warning: no previous prototype for 'phytium_gem_prime_vunmap' [-Wmissing-prototypes] 170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_gem.c:174:5: warning: no previous prototype for 'phytium_gem_prime_mmap' [-Wmissing-prototypes] 174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/phytium_gem.c:186:5: warning: no previous prototype for 'phytium_dma_transfer' [-Wmissing-prototypes] 186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr, | ^~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/px210_dp.c:852:6: warning: no previous prototype for 'px210_dp_hw_spread_is_enable' [-Wmissing-prototypes] 852 | bool px210_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dp.c:864:5: warning: no previous prototype for 'px210_dp_hw_reset' [-Wmissing-prototypes] 864 | int px210_dp_hw_reset(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dp.c:897:9: warning: no previous prototype for 'px210_dp_hw_get_source_lane_count' [-Wmissing-prototypes] 897 | uint8_t px210_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/px210_dc.c:71:6: warning: no previous prototype for 'px210_dc_hw_vram_init' [-Wmissing-prototypes] 71 | void px210_dc_hw_vram_init(struct phytium_display_private *priv, resource_size_t vram_addr, | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:103:6: warning: no previous prototype for 'px210_dc_hw_clear_msi_irq' [-Wmissing-prototypes] 103 | void px210_dc_hw_clear_msi_irq(struct phytium_display_private *priv, uint32_t phys_pipe) | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:108:6: warning: no previous prototype for 'px210_dc_hw_config_pix_clock' [-Wmissing-prototypes] 108 | void px210_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:126:6: warning: no previous prototype for 'px210_dc_hw_disable' [-Wmissing-prototypes] 126 | void px210_dc_hw_disable(struct drm_crtc *crtc) | ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:174:5: warning: no previous prototype for 'px210_dc_hw_fb_format_check' [-Wmissing-prototypes] 174 | int px210_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:244:6: warning: no previous prototype for 'px210_dc_hw_plane_get_primary_format' [-Wmissing-prototypes] 244 | void px210_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:253:6: warning: no previous prototype for 'px210_dc_hw_plane_get_cursor_format' [-Wmissing-prototypes] 253 | void px210_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:262:6: warning: no previous prototype for 'px210_dc_hw_update_dcreq' [-Wmissing-prototypes] 262 | void px210_dc_hw_update_dcreq(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/px210_dc.c:319:6: warning: no previous prototype for 'px210_dc_hw_update_primary_hi_addr' [-Wmissing-prototypes] 319 | void px210_dc_hw_update_primary_hi_addr(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/pe220x_dp.c:465:6: warning: no previous prototype for 'pe220x_dp_hw_spread_is_enable' [-Wmissing-prototypes] 465 | bool pe220x_dp_hw_spread_is_enable(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dp.c:470:5: warning: no previous prototype for 'pe220x_dp_hw_reset' [-Wmissing-prototypes] 470 | int pe220x_dp_hw_reset(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dp.c:485:9: warning: no previous prototype for 'pe220x_dp_hw_get_source_lane_count' [-Wmissing-prototypes] 485 | uint8_t pe220x_dp_hw_get_source_lane_count(struct phytium_dp_device *phytium_dp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/pe220x_dc.c:79:6: warning: no previous prototype for 'pe220x_dc_hw_vram_init' [-Wmissing-prototypes] 79 | void pe220x_dc_hw_vram_init(struct phytium_display_private *priv, resource_size_t vram_addr, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:93:6: warning: no previous prototype for 'pe220x_dc_hw_config_pix_clock' [-Wmissing-prototypes] 93 | void pe220x_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:110:6: warning: no previous prototype for 'pe220x_dc_hw_reset' [-Wmissing-prototypes] 110 | void pe220x_dc_hw_reset(struct drm_crtc *crtc) | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:231:5: warning: no previous prototype for 'pe220x_dc_hw_fb_format_check' [-Wmissing-prototypes] 231 | int pe220x_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:243:6: warning: no previous prototype for 'pe220x_dc_hw_plane_get_primary_format' [-Wmissing-prototypes] 243 | void pe220x_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:252:6: warning: no previous prototype for 'pe220x_dc_bmc_hw_plane_get_primary_format' [-Wmissing-prototypes] 252 | void pe220x_dc_bmc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:261:6: warning: no previous prototype for 'pe220x_dc_hw_plane_get_cursor_format' [-Wmissing-prototypes] 261 | void pe220x_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:270:6: warning: no previous prototype for 'pe220x_dc_hw_update_primary_hi_addr' [-Wmissing-prototypes] 270 | void pe220x_dc_hw_update_primary_hi_addr(struct drm_plane *plane) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/phytium/pe220x_dc.c:287:6: warning: no previous prototype for 'pe220x_dc_hw_update_cursor_hi_addr' [-Wmissing-prototypes] 287 | void pe220x_dc_hw_update_cursor_hi_addr(struct drm_plane *plane, uint64_t iova) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/phytium/phytium_platform.c:22:5: warning: no previous prototype for '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:63:6: warning: no previous prototype for '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:348:34: warning: 'display_of_match' defined but not used [-Wunused-const-variable=] 348 | static const struct of_device_id display_of_match[] = { | ^~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PTP_1588_CLOCK Depends on [n]: NET [=y] && POSIX_TIMERS [=n] Selected by [m]: - SXE [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] - SXE_VF [=m] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_LINKDATA [=y] && (X86 [=y] || ARM64) && PCI [=y] vim +/phytium_gem_prime_vunmap +170 drivers/gpu/drm/phytium/phytium_gem.c b80df10f845813 lishuo 2024-01-31 169 b80df10f845813 lishuo 2024-01-31 @170 void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) b80df10f845813 lishuo 2024-01-31 171 { e2cdf30a3e12bb XuYan 2025-04-09 172 } b80df10f845813 lishuo 2024-01-31 173 :::::: The code at line 170 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