]> www.infradead.org Git - users/dwmw2/linux.git/commit
percpu: add a test case for the specific 64-bit value addition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 16 Oct 2024 18:23:52 +0000 (21:23 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:14 +0000 (20:11 -0800)
commit4a7bba1df00163ecbdf4994bc42b879ade4aeed2
tree1683da685f144f90a5f3c5d6514cdf6882349fda
parent6c2625e9c2efef5272e1addf6007a1fcab1f059b
percpu: add a test case for the specific 64-bit value addition

It might be a corner case when we add UINT_MAX as 64-bit unsigned value to
the percpu variable as it's not the same as -1 (ULONG_LONG_MAX).  Add a
test case for that.

Link: https://lkml.kernel.org/r/20241016182635.1156168-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Borislav Petkov (AMD) <bp@alien8.de>
Cc: Christoph Lameter <cl@linux.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dennis Zhou <dennis@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/percpu_test.c