diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-11-08 13:58:25 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2023-11-22 14:12:10 +0100 |
commit | a89299c40911ee29c6ec4fb66f9c598cd947265b (patch) | |
tree | 679835f9d248415e8b7c38076e4d6fd8697e5251 /scripts/gdb/linux/slab.py | |
parent | 98b1cc82c4affc16f5598d4fa14b1858671b2263 (diff) |
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
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions