public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/landlock: Remove duplicate include of stdio.h
@ 2026-02-11  6:21 Chen Ni
  2026-02-11  8:27 ` Günther Noack
  2026-02-11 11:16 ` Mickaël Salaün
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Ni @ 2026-02-11  6:21 UTC (permalink / raw)
  To: mic
  Cc: gnoack, shuah, linux-security-module, linux-kselftest,
	linux-kernel, Chen Ni

Remove duplicate inclusion of stdio.h in fs_bench.c to clean up
redundant code.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 tools/testing/selftests/landlock/fs_bench.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/landlock/fs_bench.c b/tools/testing/selftests/landlock/fs_bench.c
index 733c1264e5fd..551cb615ad93 100644
--- a/tools/testing/selftests/landlock/fs_bench.c
+++ b/tools/testing/selftests/landlock/fs_bench.c
@@ -26,7 +26,6 @@
 #include <linux/prctl.h>
 #include <stdbool.h>
 #include <stdio.h>
-#include <stdio.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] selftests/landlock: Remove duplicate include of stdio.h
  2026-02-11  6:21 [PATCH] selftests/landlock: Remove duplicate include of stdio.h Chen Ni
@ 2026-02-11  8:27 ` Günther Noack
  2026-02-11 11:16 ` Mickaël Salaün
  1 sibling, 0 replies; 3+ messages in thread
From: Günther Noack @ 2026-02-11  8:27 UTC (permalink / raw)
  To: Chen Ni
  Cc: mic, gnoack, shuah, linux-security-module, linux-kselftest,
	linux-kernel

On Wed, Feb 11, 2026 at 02:21:22PM +0800, Chen Ni wrote:
> Remove duplicate inclusion of stdio.h in fs_bench.c to clean up
> redundant code.

Thanks, well spotted!

Reviewed-by: Günther Noack <gnoack3000@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] selftests/landlock: Remove duplicate include of stdio.h
  2026-02-11  6:21 [PATCH] selftests/landlock: Remove duplicate include of stdio.h Chen Ni
  2026-02-11  8:27 ` Günther Noack
@ 2026-02-11 11:16 ` Mickaël Salaün
  1 sibling, 0 replies; 3+ messages in thread
From: Mickaël Salaün @ 2026-02-11 11:16 UTC (permalink / raw)
  To: Chen Ni; +Cc: gnoack, shuah, linux-security-module, linux-kselftest,
	linux-kernel

On Wed, Feb 11, 2026 at 02:21:22PM +0800, Chen Ni wrote:
> Remove duplicate inclusion of stdio.h in fs_bench.c to clean up
> redundant code.

Thanks!  I also detected this issue while running `sort -u` on the
includes, so this is already taken into account in my next branch (with
other small fixes).

> 
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---
>  tools/testing/selftests/landlock/fs_bench.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/landlock/fs_bench.c b/tools/testing/selftests/landlock/fs_bench.c
> index 733c1264e5fd..551cb615ad93 100644
> --- a/tools/testing/selftests/landlock/fs_bench.c
> +++ b/tools/testing/selftests/landlock/fs_bench.c
> @@ -26,7 +26,6 @@
>  #include <linux/prctl.h>
>  #include <stdbool.h>
>  #include <stdio.h>
> -#include <stdio.h>
>  #include <errno.h>
>  #include <stdlib.h>
>  #include <string.h>
> -- 
> 2.25.1
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-11 11:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-11  6:21 [PATCH] selftests/landlock: Remove duplicate include of stdio.h Chen Ni
2026-02-11  8:27 ` Günther Noack
2026-02-11 11:16 ` Mickaël Salaün

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox