]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sh: mach-sh03: Make sh03_rtc_settimeofday() static
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 4 Mar 2024 19:10:46 +0000 (20:10 +0100)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 2 May 2024 10:01:31 +0000 (12:01 +0200)
arch/sh/boards/mach-sh03/rtc.c:123:5: warning: no previous prototype for ‘sh03_rtc_settimeofday’ [-Wmissing-prototypes]

There are no users outside this file, so make it static.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/95417f2a3eb1561af7c2ee064efbc3ef3f03dac3.1709579038.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/boards/mach-sh03/rtc.c

index 7fb474844a2d1d65b6b0b0010ba024f10a43e7ce..bc6cf995128c65474068b8ba80159d2e9f1cd892 100644 (file)
@@ -120,7 +120,7 @@ static int set_rtc_mmss(struct rtc_time *tm)
        return retval;
 }
 
-int sh03_rtc_settimeofday(struct device *dev, struct rtc_time *tm)
+static int sh03_rtc_settimeofday(struct device *dev, struct rtc_time *tm)
 {
        return set_rtc_mmss(tm);
 }