time: Make sysfs_get_uname() function visible in header
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Nov 2023 12:58:25 +0000 (13:58 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 22 Nov 2023 13:12:10 +0000 (14:12 +0100)
commita89299c40911ee29c6ec4fb66f9c598cd947265b
tree679835f9d248415e8b7c38076e4d6fd8697e5251
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
time: Make sysfs_get_uname() function visible in header

This function is defined globally in clocksource.c and used conditionally
in clockevent.c, which the declaration hidden when clockevent support
is disabled. This causes a harmless warning in the definition:

kernel/time/clocksource.c:1324:9: warning: no previous prototype for 'sysfs_get_uname' [-Wmissing-prototypes]
 1324 | ssize_t sysfs_get_uname(const char *buf, char *dst, size_t cnt)

Move the declaration out of the #ifdef so it is always visible.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231108125843.3806765-5-arnd@kernel.org
kernel/time/tick-internal.h