mbox series

[v2,0/2] percpu: Add a test case and fix for clang

Message ID 20241016182635.1156168-1-andriy.shevchenko@linux.intel.com (mailing list archive)
Headers show
Series percpu: Add a test case and fix for clang | expand

Message

Andy Shevchenko Oct. 16, 2024, 6:23 p.m. UTC
Add a test case to percpu to check a corner case with the specific
64-bit unsigned value. This test case shows why the first patch is
done in the way it's done.

The before and after has been tested with binary comparison of
the percpu_test module and runnig it on the real Intel system.

v2:
- updated Subject (Dave)
- added test case

Andy Shevchenko (2):
  x86/percpu: Fix clang warning when dealing with unsigned types
  percpu: Add a test case for the specific 64-bit value addition

 arch/x86/include/asm/percpu.h |  7 ++++---
 lib/percpu_test.c             | 11 ++++++++++-
 2 files changed, 14 insertions(+), 4 deletions(-)