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

panfrost: make mediatek_mt8183_supplies and mediatek_mt8183_pm_domains static

This symbol is not used outside of panfrost_drv.c, so marks it static.

Fix the following sparse warning:

drivers/gpu/drm/panfrost/panfrost_drv.c:641:12: warning: symbol
'mediatek_mt8183_supplies' was not declared. Should it be static?

drivers/gpu/drm/panfrost/panfrost_drv.c:642:12: warning: symbol
'mediatek_mt8183_pm_domains' was not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1631956414-85412-1-git-send-email-jiapeng.chong@linux.alibaba.com

authored by

Jiapeng Chong and committed by
Steven Price
d52ce709 c3c7d70b

+2 -2
+2 -2
drivers/gpu/drm/panfrost/panfrost_drv.c
··· 638 638 .vendor_quirk = panfrost_gpu_amlogic_quirk, 639 639 }; 640 640 641 - const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; 642 - const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; 641 + static const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; 642 + static const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; 643 643 static const struct panfrost_compatible mediatek_mt8183_data = { 644 644 .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies), 645 645 .supply_names = mediatek_mt8183_supplies,