Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vdso/gettimeofday: Drop a few usages of __maybe_unused

These functions are used from the very same file,
so this annotation is unnecessary.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260227-vdso-cleanups-v1-1-c848b4bc4850@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
08cd5e1d c453b9ab

+6 -6
+6 -6
lib/vdso/gettimeofday.c
··· 313 313 return do_hres(vd, vc, clock, ts); 314 314 } 315 315 316 - static __maybe_unused int 316 + static int 317 317 __cvdso_clock_gettime_data(const struct vdso_time_data *vd, clockid_t clock, 318 318 struct __kernel_timespec *ts) 319 319 { ··· 333 333 } 334 334 335 335 #ifdef BUILD_VDSO32 336 - static __maybe_unused int 336 + static int 337 337 __cvdso_clock_gettime32_data(const struct vdso_time_data *vd, clockid_t clock, 338 338 struct old_timespec32 *res) 339 339 { ··· 359 359 } 360 360 #endif /* BUILD_VDSO32 */ 361 361 362 - static __maybe_unused int 362 + static int 363 363 __cvdso_gettimeofday_data(const struct vdso_time_data *vd, 364 364 struct __kernel_old_timeval *tv, struct timezone *tz) 365 365 { ··· 394 394 } 395 395 396 396 #ifdef VDSO_HAS_TIME 397 - static __maybe_unused __kernel_old_time_t 397 + static __kernel_old_time_t 398 398 __cvdso_time_data(const struct vdso_time_data *vd, __kernel_old_time_t *time) 399 399 { 400 400 const struct vdso_clock *vc = vd->clock_data; ··· 464 464 return true; 465 465 } 466 466 467 - static __maybe_unused 467 + static 468 468 int __cvdso_clock_getres_data(const struct vdso_time_data *vd, clockid_t clock, 469 469 struct __kernel_timespec *res) 470 470 { ··· 484 484 } 485 485 486 486 #ifdef BUILD_VDSO32 487 - static __maybe_unused int 487 + static int 488 488 __cvdso_clock_getres_time32_data(const struct vdso_time_data *vd, clockid_t clock, 489 489 struct old_timespec32 *res) 490 490 {