[PATCH] perf/benchmark: Fix ifdef in header file uapi/asm/unistd_32.h

Vijayendra Suman posted 1 patch 2 years, 3 months ago
tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] perf/benchmark: Fix ifdef in header file uapi/asm/unistd_32.h
Posted by Vijayendra Suman 2 years, 3 months ago
Typo error for __NR_seccomp

ifdef -> ifndef

Signed-off-by: Vijayendra Suman <vijayendra.suman@oracle.com>
---
 tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/arch/x86/include/uapi/asm/unistd_32.h b/tools/arch/x86/include/uapi/asm/unistd_32.h
index 4798f9d18fe8..9de35df1afc3 100644
--- a/tools/arch/x86/include/uapi/asm/unistd_32.h
+++ b/tools/arch/x86/include/uapi/asm/unistd_32.h
@@ -26,6 +26,6 @@
 #ifndef __NR_setns
 #define __NR_setns 346
 #endif
-#ifdef __NR_seccomp
+#ifndef __NR_seccomp
 #define __NR_seccomp 354
 #endif
-- 
2.41.0
Re: [PATCH] perf/benchmark: Fix ifdef in header file uapi/asm/unistd_32.h
Posted by Tycho Andersen 2 years, 3 months ago
On Fri, Sep 08, 2023 at 10:35:32AM -0700, Vijayendra Suman wrote:
> Typo error for __NR_seccomp
> 
> ifdef -> ifndef
> 
> Signed-off-by: Vijayendra Suman <vijayendra.suman@oracle.com>

Acked-by: Tycho Andersen <tycho@tycho.pizza>
Re: [PATCH] perf/benchmark: Fix ifdef in header file uapi/asm/unistd_32.h
Posted by Andrei Vagin 2 years, 3 months ago
On Fri, Sep 8, 2023 at 10:36 AM Vijayendra Suman
<vijayendra.suman@oracle.com> wrote:
>
> Typo error for __NR_seccomp
>
> ifdef -> ifndef
>

Acked-by: Andrei Vagin <avagin@gmail.com>

> Signed-off-by: Vijayendra Suman <vijayendra.suman@oracle.com>
> ---
>  tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/arch/x86/include/uapi/asm/unistd_32.h b/tools/arch/x86/include/uapi/asm/unistd_32.h
> index 4798f9d18fe8..9de35df1afc3 100644
> --- a/tools/arch/x86/include/uapi/asm/unistd_32.h
> +++ b/tools/arch/x86/include/uapi/asm/unistd_32.h
> @@ -26,6 +26,6 @@
>  #ifndef __NR_setns
>  #define __NR_setns 346
>  #endif
> -#ifdef __NR_seccomp
> +#ifndef __NR_seccomp
>  #define __NR_seccomp 354
>  #endif
> --
> 2.41.0
>