public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests/pidfd: Fix missing headers
@ 2025-03-02 20:52 Siddharth Menon
  2025-03-02 20:52 ` [PATCH 1/2] selftests/pidfd: Fix missing header Siddharth Menon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Siddharth Menon @ 2025-03-02 20:52 UTC (permalink / raw)
  To: shuah, brauner; +Cc: linux-kselftest, linux-kernel, Siddharth Menon

Fix compilation errors caused by missing headers in the pidfd selftest.

The errors include:
pidfd_fdinfo_test.c:230:13: error: implicit declaration of function ‘mount’
pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’

Siddharth Menon (2):
  selftests/pidfd: Fix missing header
  selftests/pidfd: Fix missing header

 tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | 1 +
 tools/testing/selftests/pidfd/pidfd_setns_test.c  | 1 +
 2 files changed, 2 insertions(+)

-- 
2.48.1


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

* [PATCH 1/2] selftests/pidfd: Fix missing header
  2025-03-02 20:52 [PATCH 0/2] selftests/pidfd: Fix missing headers Siddharth Menon
@ 2025-03-02 20:52 ` Siddharth Menon
  2025-03-02 20:52 ` [PATCH 2/2] " Siddharth Menon
  2025-03-03  9:14 ` [PATCH 0/2] selftests/pidfd: Fix missing headers Peter Seiderer
  2 siblings, 0 replies; 4+ messages in thread
From: Siddharth Menon @ 2025-03-02 20:52 UTC (permalink / raw)
  To: shuah, brauner; +Cc: linux-kselftest, linux-kernel, Siddharth Menon

Fix compilation errors caused by the missing sys/mount.h header
---
 tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
index f062a986e382..f718aac75068 100644
--- a/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
+++ b/tools/testing/selftests/pidfd/pidfd_fdinfo_test.c
@@ -13,6 +13,7 @@
 #include <syscall.h>
 #include <sys/wait.h>
 #include <sys/mman.h>
+#include <sys/mount.h>
 
 #include "pidfd.h"
 #include "../kselftest.h"
-- 
2.48.1


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

* [PATCH 2/2] selftests/pidfd: Fix missing header
  2025-03-02 20:52 [PATCH 0/2] selftests/pidfd: Fix missing headers Siddharth Menon
  2025-03-02 20:52 ` [PATCH 1/2] selftests/pidfd: Fix missing header Siddharth Menon
@ 2025-03-02 20:52 ` Siddharth Menon
  2025-03-03  9:14 ` [PATCH 0/2] selftests/pidfd: Fix missing headers Peter Seiderer
  2 siblings, 0 replies; 4+ messages in thread
From: Siddharth Menon @ 2025-03-02 20:52 UTC (permalink / raw)
  To: shuah, brauner; +Cc: linux-kselftest, linux-kernel, Siddharth Menon

Fix compilation errors caused by the missing sys/ioctl.h header
---
 tools/testing/selftests/pidfd/pidfd_setns_test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/pidfd/pidfd_setns_test.c b/tools/testing/selftests/pidfd/pidfd_setns_test.c
index 222f8131283b..4c8a0253a64f 100644
--- a/tools/testing/selftests/pidfd/pidfd_setns_test.c
+++ b/tools/testing/selftests/pidfd/pidfd_setns_test.c
@@ -17,6 +17,7 @@
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <linux/ioctl.h>
+#include <sys/ioctl.h>
 
 #include "pidfd.h"
 #include "../kselftest_harness.h"
-- 
2.48.1


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

* Re: [PATCH 0/2] selftests/pidfd: Fix missing headers
  2025-03-02 20:52 [PATCH 0/2] selftests/pidfd: Fix missing headers Siddharth Menon
  2025-03-02 20:52 ` [PATCH 1/2] selftests/pidfd: Fix missing header Siddharth Menon
  2025-03-02 20:52 ` [PATCH 2/2] " Siddharth Menon
@ 2025-03-03  9:14 ` Peter Seiderer
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Seiderer @ 2025-03-03  9:14 UTC (permalink / raw)
  To: Siddharth Menon; +Cc: shuah, brauner, linux-kselftest, linux-kernel

Hello Siddharth,

On Mon,  3 Mar 2025 02:22:44 +0530, Siddharth Menon <simeddon@gmail.com> wrote:

> Fix compilation errors caused by missing headers in the pidfd selftest.
> 
> The errors include:
> pidfd_fdinfo_test.c:230:13: error: implicit declaration of function ‘mount’
> pidfd_setns_test.c:172:54: error: implicit declaration of function ‘ioctl’
> 
> Siddharth Menon (2):
>   selftests/pidfd: Fix missing header
>   selftests/pidfd: Fix missing header
> 
>  tools/testing/selftests/pidfd/pidfd_fdinfo_test.c | 1 +
>  tools/testing/selftests/pidfd/pidfd_setns_test.c  | 1 +
>  2 files changed, 2 insertions(+)
> 

Predated patches already available, see

        https://lore.kernel.org/linux-kselftest/20250115105211.390370-1-ps.report@gmx.net/
        https://lore.kernel.org/linux-kselftest/20250115105211.390370-2-ps.report@gmx.net/
	https://lore.kernel.org/linux-kselftest/20250115105211.390370-3-ps.report@gmx.net/

Regards,
Peter

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

end of thread, other threads:[~2025-03-03  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 20:52 [PATCH 0/2] selftests/pidfd: Fix missing headers Siddharth Menon
2025-03-02 20:52 ` [PATCH 1/2] selftests/pidfd: Fix missing header Siddharth Menon
2025-03-02 20:52 ` [PATCH 2/2] " Siddharth Menon
2025-03-03  9:14 ` [PATCH 0/2] selftests/pidfd: Fix missing headers Peter Seiderer

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