Skip to content

Commit 221f9d9

Browse files
Jiri SlabyKAGA-KOKO
authored andcommitted
posix-timers: Make do_clock_gettime() static
do_clock_gettime() is used only in posix-stubs.c, so make it static. It avoids a compiler warning too: time/posix-stubs.c:73:5: warning: no previous prototype for ‘do_clock_gettime’ [-Wmissing-prototypes] Signed-off-by: Jiri Slaby <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6614a3c commit 221f9d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/time/posix-stubs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
7070
return do_sys_settimeofday64(&new_tp, NULL);
7171
}
7272

73-
int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp)
73+
static int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp)
7474
{
7575
switch (which_clock) {
7676
case CLOCK_REALTIME:
@@ -90,6 +90,7 @@ int do_clock_gettime(clockid_t which_clock, struct timespec64 *tp)
9090

9191
return 0;
9292
}
93+
9394
SYSCALL_DEFINE2(clock_gettime, const clockid_t, which_clock,
9495
struct __kernel_timespec __user *, tp)
9596
{

0 commit comments

Comments
 (0)