]> git.baikalelectronics.ru Git - kernel.git/commit
drm: bridge: analogix/dp: mark symbols static where possible
authorBaoyou Xie <baoyou.xie@linaro.org>
Sun, 25 Sep 2016 07:32:44 +0000 (15:32 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Sep 2016 20:59:02 +0000 (22:59 +0200)
commit089cfdd9b0ec1b21d3356d2e057f69b89d46ae66
tree8b5dc5adb76f46338d27a4c80a6c78ac8830f3be
parent41bb156ea950e8f9c8730e60aaaca7eb9754c173
drm: bridge: analogix/dp: mark symbols static where possible

We get 2 warnings when building kernel with W=1:
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1053:5: warning: no previous prototype for 'analogix_dp_get_modes' [-Wmissing-prototypes]
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1097:1: warning: no previous prototype for 'analogix_dp_detect' [-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 both functions with 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474788764-6069-1-git-send-email-baoyou.xie@linaro.org
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c