public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] timers test fix and duplicate defines cleanup
@ 2024-09-24 15:56 Shuah Khan
  2024-09-24 15:56 ` [PATCH 1/2] selftests:timers: posix_timers: Fix warn_unused_result in __fatal_error() Shuah Khan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Shuah Khan @ 2024-09-24 15:56 UTC (permalink / raw)
  To: jstultz, tglx, sboyd, shuah; +Cc: Shuah Khan, linux-kernel, linux-kselftest

The first patch in this two patch fixes warn_unused_result compile
time warning in posix_timers test.

The second patch removes local NSEC_PER_SEC and USEC_PER_SEC defines.
NSEC_PER_SEC and USEC_PER_SEC are defines in several timers tests.
These defines are inconsistent with variations of ULL, LL, etc. without
any explanation why it is necessary.

These defines can be picked up from include/vdso/time64.h header
file. In the interest of making it easier to maintain, remove the
local defines. Include include/vdso/time64.h instead. This change
will also make the defines consistent.

Shuah Khan (2):
  selftests:timers: posix_timers: Fix warn_unused_result in
    __fatal_error()
  selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines

 tools/testing/selftests/timers/Makefile       |  2 +-
 tools/testing/selftests/timers/adjtick.c      |  4 +--
 .../selftests/timers/alarmtimer-suspend.c     |  2 +-
 .../selftests/timers/inconsistency-check.c    |  2 +-
 tools/testing/selftests/timers/leap-a-day.c   |  2 +-
 tools/testing/selftests/timers/mqueue-lat.c   |  2 +-
 tools/testing/selftests/timers/nanosleep.c    |  3 +--
 tools/testing/selftests/timers/posix_timers.c | 27 ++++++++++---------
 tools/testing/selftests/timers/raw_skew.c     |  2 +-
 tools/testing/selftests/timers/set-2038.c     |  3 +--
 .../testing/selftests/timers/set-timer-lat.c  |  3 +--
 .../testing/selftests/timers/valid-adjtimex.c |  4 +--
 12 files changed, 26 insertions(+), 30 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-26 17:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24 15:56 [PATCH 0/2] timers test fix and duplicate defines cleanup Shuah Khan
2024-09-24 15:56 ` [PATCH 1/2] selftests:timers: posix_timers: Fix warn_unused_result in __fatal_error() Shuah Khan
2024-09-25 15:13   ` Shuah Khan
2024-09-25 17:19   ` John Stultz
2024-09-24 15:56 ` [PATCH 2/2] selftests: timers: Remove local NSEC_PER_SEC and USEC_PER_SEC defines Shuah Khan
2024-09-24 23:59   ` John Stultz
2024-09-25 15:20     ` Shuah Khan
2024-09-25 17:33       ` John Stultz
2024-09-26 17:15 ` [PATCH 0/2] timers test fix and duplicate defines cleanup Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox