diff options
author | Arnd Bergmann <[email protected]> | 2023-11-08 13:58:25 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2023-11-22 14:12:10 +0100 |
commit | a89299c40911ee29c6ec4fb66f9c598cd947265b (patch) | |
tree | 679835f9d248415e8b7c38076e4d6fd8697e5251 /lib/netdev-notifier-error-inject.c | |
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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions