From: Colin Ian King Date: Tue, 11 Jul 2017 15:23:34 +0000 (+0100) Subject: watchdog: w83627hf: make const array chip_name static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08b10b57d69bb37d6e70a8db71844527a9f1f41c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git watchdog: w83627hf: make const array chip_name static Don't populate array chip_name on the stack but instead make it static. Makes the object code smaller by 40 bytes: Before: text data bss dec hex filename 5641 2840 384 8865 22a1 drivers/watchdog/w83627hf_wdt.o After: text data bss dec hex filename 5545 2896 384 8825 2279 drivers/watchdog/w83627hf_wdt.o Signed-off-by: Colin Ian King Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index d9ba0496713c..7817836bff55 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers/watchdog/w83627hf_wdt.c @@ -429,7 +429,7 @@ static int __init wdt_init(void) { int ret; int chip; - const char * const chip_name[] = { + static const char * const chip_name[] = { "W83627HF", "W83627S", "W83697HF",