Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/armada: mark symbols static where possible

We get 2 warnings when building kernel with W=1:
drivers/gpu/drm/armada/armada_gem.c:215:27: warning: no previous prototype for 'armada_gem_alloc_object' [-Wmissing-prototypes]
drivers/gpu/drm/armada/armada_gem.c:423:1: warning: no previous prototype for 'armada_gem_prime_map_dma_buf' [-Wmissing-prototypes]

In fact, both functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
So this patch marks these functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

authored by

Baoyou Xie and committed by
Russell King
42b45459 917a3cbe

+2 -2
+2 -2
drivers/gpu/drm/armada/armada_gem.c
··· 212 212 return obj; 213 213 } 214 214 215 - struct armada_gem_object *armada_gem_alloc_object(struct drm_device *dev, 215 + static struct armada_gem_object *armada_gem_alloc_object(struct drm_device *dev, 216 216 size_t size) 217 217 { 218 218 struct armada_gem_object *obj; ··· 419 419 } 420 420 421 421 /* Prime support */ 422 - struct sg_table * 422 + static struct sg_table * 423 423 armada_gem_prime_map_dma_buf(struct dma_buf_attachment *attach, 424 424 enum dma_data_direction dir) 425 425 {