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

drm/imx: ipuv3-plane: Make functions static when possible

ipu_plane_state_reset(), ipu_plane_duplicate_state() and
ipu_plane_destroy_state() are only used in this file, so make them static.

This fixes the following sparse warnings:

drivers/gpu/drm/imx/ipuv3-plane.c:275:6: warning: symbol 'ipu_plane_state_reset' was not declared. Should it be static?
drivers/gpu/drm/imx/ipuv3-plane.c:295:24: warning: symbol 'ipu_plane_duplicate_state' was not declared. Should it be static?
drivers/gpu/drm/imx/ipuv3-plane.c:309:6: warning: symbol 'ipu_plane_destroy_state' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Fabio Estevam and committed by
Philipp Zabel
2ead44a5 746d024c

+5 -4
+5 -4
drivers/gpu/drm/imx/ipuv3-plane.c
··· 272 272 kfree(ipu_plane); 273 273 } 274 274 275 - void ipu_plane_state_reset(struct drm_plane *plane) 275 + static void ipu_plane_state_reset(struct drm_plane *plane) 276 276 { 277 277 struct ipu_plane_state *ipu_state; 278 278 ··· 292 292 plane->state = &ipu_state->base; 293 293 } 294 294 295 - struct drm_plane_state *ipu_plane_duplicate_state(struct drm_plane *plane) 295 + static struct drm_plane_state * 296 + ipu_plane_duplicate_state(struct drm_plane *plane) 296 297 { 297 298 struct ipu_plane_state *state; 298 299 ··· 307 306 return &state->base; 308 307 } 309 308 310 - void ipu_plane_destroy_state(struct drm_plane *plane, 311 - struct drm_plane_state *state) 309 + static void ipu_plane_destroy_state(struct drm_plane *plane, 310 + struct drm_plane_state *state) 312 311 { 313 312 struct ipu_plane_state *ipu_state = to_ipu_plane_state(state); 314 313