[openeuler:OLK-6.6 2381/2381] drivers/gpu/drm/phytium/phytium_gem.c:174:5: warning: no previous prototype for function 'phytium_gem_prime_mmap'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: edaf3ccc9feb52d789c59499a6d681cdcd3fb9c5 commit: e2cdf30a3e12bb55e76d60e99c0abd7db2917b5c [2381/2381] drm/phytium: Fix some Bugs in Phytium Display Engine config: arm64-allmodconfig compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): 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/202506110730.xt79RnwS-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/phytium/phytium_gem.c:22:5: warning: no previous prototype for function '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:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 22 | int phytium_memory_pool_alloc(struct phytium_display_private *priv, void **pvaddr, | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:37:6: warning: no previous prototype for function '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:37:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 37 | void phytium_memory_pool_free(struct phytium_display_private *priv, void *vaddr, uint64_t size) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:161:5: warning: no previous prototype for function '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:161:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 161 | int phytium_gem_prime_vmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:170:6: warning: no previous prototype for function '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:170:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 170 | void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) | ^ | static
drivers/gpu/drm/phytium/phytium_gem.c:174:5: warning: no previous prototype for function '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:174:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 174 | int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) | ^ | static drivers/gpu/drm/phytium/phytium_gem.c:186:5: warning: no previous prototype for function '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/phytium_gem.c:186:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 186 | int phytium_dma_transfer(struct drm_device *drm_dev, int dev_to_mem, void *addr, | ^ | static 6 warnings generated. -- drivers/gpu/drm/phytium/pe220x_dc.c:79:6: warning: no previous prototype for function '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:79:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 79 | void pe220x_dc_hw_vram_init(struct phytium_display_private *priv, resource_size_t vram_addr, | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:93:6: warning: no previous prototype for function '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:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 93 | void pe220x_dc_hw_config_pix_clock(struct drm_crtc *crtc, int clock) | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:110:6: warning: no previous prototype for function 'pe220x_dc_hw_reset' [-Wmissing-prototypes] 110 | void pe220x_dc_hw_reset(struct drm_crtc *crtc) | ^ drivers/gpu/drm/phytium/pe220x_dc.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 110 | void pe220x_dc_hw_reset(struct drm_crtc *crtc) | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:231:5: warning: no previous prototype for function '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:231:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 231 | int pe220x_dc_hw_fb_format_check(const struct drm_mode_fb_cmd2 *mode_cmd, int count) | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:243:6: warning: no previous prototype for function '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:243:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 243 | void pe220x_dc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:252:6: warning: no previous prototype for function '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:252:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 252 | void pe220x_dc_bmc_hw_plane_get_primary_format(const uint64_t **format_modifiers, | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:261:6: warning: no previous prototype for function '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:261:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 261 | void pe220x_dc_hw_plane_get_cursor_format(const uint64_t **format_modifiers, | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:270:6: warning: no previous prototype for function '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:270:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 270 | void pe220x_dc_hw_update_primary_hi_addr(struct drm_plane *plane) | ^ | static drivers/gpu/drm/phytium/pe220x_dc.c:287:6: warning: no previous prototype for function '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/pe220x_dc.c:287:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 287 | void pe220x_dc_hw_update_cursor_hi_addr(struct drm_plane *plane, uint64_t iova) | ^ | static 9 warnings generated.
vim +/phytium_gem_prime_mmap +174 drivers/gpu/drm/phytium/phytium_gem.c 169
170 void phytium_gem_prime_vunmap(struct drm_gem_object *obj, struct iosys_map *map) 171 { 172 } 173 174 int phytium_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *vma) 175 { 176 return phytium_gem_mmap_obj(obj, vma); 177 } 178
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot