diff options
| author | Arnd Bergmann <[email protected]> | 2023-11-08 12:58:25 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2023-11-22 13:12:10 +0000 |
| commit | a89299c40911ee29c6ec4fb66f9c598cd947265b (patch) | |
| tree | 679835f9d248415e8b7c38076e4d6fd8697e5251 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Linux 6.7-rc2 (diff) | |
| download | kernel-a89299c40911ee29c6ec4fb66f9c598cd947265b.tar.gz kernel-a89299c40911ee29c6ec4fb66f9c598cd947265b.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
