* [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
@ 2022-01-24 17:17 ` Mark Brown
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-01-24 17:17 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Shuah Khan
Cc: linux-arm-kernel, linux-kselftest, Mark Brown
An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
in some of the arm64 selftests.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
tools/testing/selftests/arm64/abi/syscall-abi.c | 1 -
tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 --
2 files changed, 3 deletions(-)
diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
index d8eeeafb50dc..1e13b7523918 100644
--- a/tools/testing/selftests/arm64/abi/syscall-abi.c
+++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
@@ -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);
diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index af798b9d232c..90ba1d6a6781 100644
--- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
@@ -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
--
2.30.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
@ 2022-01-24 17:17 ` Mark Brown
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2022-01-24 17:17 UTC (permalink / raw)
To: Catalin Marinas, Will Deacon, Shuah Khan
Cc: linux-arm-kernel, linux-kselftest, Mark Brown
An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
in some of the arm64 selftests.
Signed-off-by: Mark Brown <broonie@kernel.org>
---
tools/testing/selftests/arm64/abi/syscall-abi.c | 1 -
tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 --
2 files changed, 3 deletions(-)
diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
index d8eeeafb50dc..1e13b7523918 100644
--- a/tools/testing/selftests/arm64/abi/syscall-abi.c
+++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
@@ -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);
diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index af798b9d232c..90ba1d6a6781 100644
--- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
@@ -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
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
2022-01-24 17:17 ` Mark Brown
@ 2022-01-24 21:30 ` Shuah Khan
-1 siblings, 0 replies; 8+ messages in thread
From: Shuah Khan @ 2022-01-24 21:30 UTC (permalink / raw)
To: Mark Brown, Catalin Marinas, Will Deacon, Shuah Khan
Cc: linux-arm-kernel, linux-kselftest, Shuah Khan
On 1/24/22 10:17 AM, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
> in some of the arm64 selftests.
>
Thank you for the patch removing duplicate defines.
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
> tools/testing/selftests/arm64/abi/syscall-abi.c | 1 -
> tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 --
> 2 files changed, 3 deletions(-)
>
> diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
> index d8eeeafb50dc..1e13b7523918 100644
> --- a/tools/testing/selftests/arm64/abi/syscall-abi.c
> +++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
> @@ -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);
> diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
> index af798b9d232c..90ba1d6a6781 100644
> --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
> +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
> @@ -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?
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
thanks,
-- Shuah
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
@ 2022-01-24 21:30 ` Shuah Khan
0 siblings, 0 replies; 8+ messages in thread
From: Shuah Khan @ 2022-01-24 21:30 UTC (permalink / raw)
To: Mark Brown, Catalin Marinas, Will Deacon, Shuah Khan
Cc: linux-arm-kernel, linux-kselftest, Shuah Khan
On 1/24/22 10:17 AM, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
> in some of the arm64 selftests.
>
Thank you for the patch removing duplicate defines.
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
> tools/testing/selftests/arm64/abi/syscall-abi.c | 1 -
> tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 --
> 2 files changed, 3 deletions(-)
>
> diff --git a/tools/testing/selftests/arm64/abi/syscall-abi.c b/tools/testing/selftests/arm64/abi/syscall-abi.c
> index d8eeeafb50dc..1e13b7523918 100644
> --- a/tools/testing/selftests/arm64/abi/syscall-abi.c
> +++ b/tools/testing/selftests/arm64/abi/syscall-abi.c
> @@ -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);
> diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
> index af798b9d232c..90ba1d6a6781 100644
> --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
> +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
> @@ -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?
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
2022-01-24 17:17 ` Mark Brown
@ 2022-02-01 18:35 ` Catalin Marinas
-1 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2022-02-01 18:35 UTC (permalink / raw)
To: Mark Brown; +Cc: Will Deacon, Shuah Khan, linux-arm-kernel, linux-kselftest
On Mon, Jan 24, 2022 at 05:17:48PM +0000, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
> in some of the arm64 selftests.
>
> Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
@ 2022-02-01 18:35 ` Catalin Marinas
0 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2022-02-01 18:35 UTC (permalink / raw)
To: Mark Brown; +Cc: Will Deacon, Shuah Khan, linux-arm-kernel, linux-kselftest
On Mon, Jan 24, 2022 at 05:17:48PM +0000, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so remove the local versions
> in some of the arm64 selftests.
>
> Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
2022-01-24 17:17 ` Mark Brown
@ 2022-02-15 23:18 ` Will Deacon
-1 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2022-02-15 23:18 UTC (permalink / raw)
To: Catalin Marinas, Shuah Khan, Mark Brown
Cc: kernel-team, Will Deacon, linux-kselftest, linux-arm-kernel
On Mon, 24 Jan 2022 17:17:48 +0000, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions
@ 2022-02-15 23:18 ` Will Deacon
0 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2022-02-15 23:18 UTC (permalink / raw)
To: Catalin Marinas, Shuah Khan, Mark Brown
Cc: kernel-team, Will Deacon, linux-kselftest, linux-arm-kernel
On Mon, 24 Jan 2022 17:17:48 +0000, Mark Brown wrote:
> An ARRAY_SIZE() has been added to kselftest.h so 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-02-15 23:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-24 17:17 [PATCH] kselftest/arm64: Remove local ARRAY_SIZE() definitions Mark Brown
2022-01-24 17:17 ` Mark Brown
2022-01-24 21:30 ` Shuah Khan
2022-01-24 21:30 ` Shuah Khan
2022-02-01 18:35 ` Catalin Marinas
2022-02-01 18:35 ` Catalin Marinas
2022-02-15 23:18 ` Will Deacon
2022-02-15 23:18 ` Will Deacon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.