kselftest/arm64: Remove local ARRAY_SIZE() definitions
PATCH 1/1 kselftest/arm64: Remove local ARRAY_SIZE() definitions
An ARRAY_SIZE() has been added to kselftest.h so remove the local versions in some of the arm64 selftests.
--- tools/testing/selftests/arm64/abi/syscall-abi.c | 1 - tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 -- 2 files changed, 3 deletions(-)
tools/testing/selftests/arm64/abi/syscall-abi.c +0 -1
@@ -18,7 +18,6 @@#include "../../kselftest.h" -#define ARRAY_SIZE (a) (sizeof(a) / sizeof(a[0]))#define NUM_VL ((SVE_VQ_MAX - SVE_VQ_MIN) + 1)extern void do_syscall (int sve_vl);
tools/testing/selftests/arm64/fp/sve-ptrace.c +0 -2
@@ -21,8 +21,6 @@#include "../../kselftest.h" -#define ARRAY_SIZE (a) (sizeof(a) / sizeof(a[0])) -/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */ #ifndef NT_ARM_SVE #define NT_ARM_SVE 0x405
Signature · 1 line
2.30.2
Quoted 3 lines · Mark Brown
An
ARRAY_SIZE()has been added tokselftest.hso remove the local versions in some of the arm64 selftests.
Thank you for the patch removing duplicate defines.
Quoted 24 lines
Signed-off-by Mark Brown <[email protected]>--- tools/testing/selftests/arm64/abi/syscall-abi.c | 1 - tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 -- 2 files changed, 3 deletions(-)tools/testing/selftests/arm64/abi/syscall-abi.c +0
-1@@ -18,7 +18,6 @@#include "../../kselftest.h" -#define ARRAY_SIZE (a) (sizeof(a) / sizeof(a[0]))#define NUM_VL ((SVE_VQ_MAX - SVE_VQ_MIN) + 1)extern void do_syscall (int sve_vl);tools/testing/selftests/arm64/fp/sve-ptrace.c +0
-0
tools/testing/selftests/arm64/fp/sve-ptrace.c line 26
Quoted 8 lines
tools/testing/selftests/arm64/fp/sve-ptrace.c +0
-2@@ -21,8 +21,6 @@#include "../../kselftest.h" -#define ARRAY_SIZE (a) (sizeof(a) / sizeof(a[0])) -/* <linux/elf.h> and <sys/auxv.h> don't like each other, so: */ #ifndef NT_ARM_SVE #define NT_ARM_SVE 0x405
Assuming this is going through ARM tree?
thanks,
-- Shuah
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 4 lines · Mark Brown
An
ARRAY_SIZE()has been added tokselftest.hso remove the local versions in some of the arm64 selftests.Signed-off-by Mark Brown <[email protected]>
Will Deacon
maintainerQuoted 4 lines · Mark Brown
An
ARRAY_SIZE()has been added tokselftest.hso remove the local versions in some of the arm64 selftests.
Applied to arm64 (for-next/kselftest), thanks!
[1/1] kselftest/arm64: Remove local ARRAY_SIZE() definitions
https://git.kernel.org/arm64/c/3673d4b9cf68
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev