ARM: s3c: include header for prototype of s3c2410_modify_misccr
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 11 Nov 2021 09:11:23 +0000 (10:11 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 15 Nov 2021 13:05:20 +0000 (14:05 +0100)
Include the header with prototype of s3c2410_modify_misccr to fix W=1
warning:

  arch/arm/mach-s3c/gpio-samsung.c:1309:14: warning:
    no previous prototype for ‘s3c2410_modify_misccr’ [-Wmissing-prototypes]

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211111091123.50853-1-krzysztof.kozlowski@canonical.com
arch/arm/mach-s3c/gpio-samsung.c

index 76ef415..fda2c01 100644 (file)
@@ -35,6 +35,7 @@
 #include "gpio-core.h"
 #include "gpio-cfg.h"
 #include "gpio-cfg-helpers.h"
+#include "hardware-s3c24xx.h"
 #include "pm.h"
 
 int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip,