* [LTP] [PATCH v2 0/2] Fix CI for CentOS 7
@ 2023-10-25 8:26 Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 1/2] lapi: Add uinput.h Petr Vorel
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Petr Vorel @ 2023-10-25 8:26 UTC (permalink / raw)
To: ltp; +Cc: Richard Palethorpe
Changes v1->v2:
* Revert configure.ac change (no need to check for the header, it
existed since kernel git history) (Cyril)
I also plan to suggest a raise of minimal kernel supported by LTP,
but let's fix the CI first.
Kind regards,
Petr
Petr Vorel (2):
lapi: Add uinput.h
input_helper: Fix compilation on CentOS 7
include/lapi/uinput.h | 15 +++++++++++++++
testcases/kernel/input/input_helper.c | 1 +
2 files changed, 16 insertions(+)
create mode 100644 include/lapi/uinput.h
--
2.42.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] [PATCH v2 1/2] lapi: Add uinput.h
2023-10-25 8:26 [LTP] [PATCH v2 0/2] Fix CI for CentOS 7 Petr Vorel
@ 2023-10-25 8:26 ` Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 2/2] input_helper: Fix compilation on CentOS 7 Petr Vorel
2023-10-25 9:24 ` [LTP] [PATCH v2 0/2] Fix CI for " Cyril Hrubis
2 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2023-10-25 8:26 UTC (permalink / raw)
To: ltp; +Cc: Richard Palethorpe
With the only definition UI_GET_SYSNAME, which was added in kernel 3.15,
but we 3.10 (CentOS 7).
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
include/lapi/uinput.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 include/lapi/uinput.h
diff --git a/include/lapi/uinput.h b/include/lapi/uinput.h
new file mode 100644
index 000000000..bdd6f466f
--- /dev/null
+++ b/include/lapi/uinput.h
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2023 Petr Vorel <pvorel@suse.cz>
+ */
+
+#ifndef LAPI_UINPUT_H__
+#define LAPI_UINPUT_H__
+
+#include <linux/uinput.h>
+
+#ifndef UI_GET_SYSNAME
+# define UI_GET_SYSNAME(len) _IOC(_IOC_READ, UINPUT_IOCTL_BASE, 44, len)
+#endif
+
+#endif /* LAPI_UINPUT_H__ */
--
2.42.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [LTP] [PATCH v2 2/2] input_helper: Fix compilation on CentOS 7
2023-10-25 8:26 [LTP] [PATCH v2 0/2] Fix CI for CentOS 7 Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 1/2] lapi: Add uinput.h Petr Vorel
@ 2023-10-25 8:26 ` Petr Vorel
2023-10-25 9:24 ` [LTP] [PATCH v2 0/2] Fix CI for " Cyril Hrubis
2 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2023-10-25 8:26 UTC (permalink / raw)
To: ltp; +Cc: Richard Palethorpe
Include lapi/uinput.h to fix compilation on CentOS 7
(the oldest distro in our CI). The actual functionality of the test was
not tested.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/input/input_helper.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/input/input_helper.c b/testcases/kernel/input/input_helper.c
index 58bb9ee10..c929de6ba 100644
--- a/testcases/kernel/input/input_helper.c
+++ b/testcases/kernel/input/input_helper.c
@@ -25,6 +25,7 @@
#include "test.h"
#include "safe_macros.h"
#include "input_helper.h"
+#include "lapi/uinput.h"
#define VIRTUAL_DEVICE "virtual-device-ltp"
--
2.42.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH v2 0/2] Fix CI for CentOS 7
2023-10-25 8:26 [LTP] [PATCH v2 0/2] Fix CI for CentOS 7 Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 1/2] lapi: Add uinput.h Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 2/2] input_helper: Fix compilation on CentOS 7 Petr Vorel
@ 2023-10-25 9:24 ` Cyril Hrubis
2023-10-25 11:06 ` Petr Vorel
2 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2023-10-25 9:24 UTC (permalink / raw)
To: Petr Vorel; +Cc: Richard Palethorpe, ltp
Hi!
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH v2 0/2] Fix CI for CentOS 7
2023-10-25 9:24 ` [LTP] [PATCH v2 0/2] Fix CI for " Cyril Hrubis
@ 2023-10-25 11:06 ` Petr Vorel
0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2023-10-25 11:06 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: Richard Palethorpe, ltp
Hi Cyril,
thanks, merged!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-10-25 11:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 8:26 [LTP] [PATCH v2 0/2] Fix CI for CentOS 7 Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 1/2] lapi: Add uinput.h Petr Vorel
2023-10-25 8:26 ` [LTP] [PATCH v2 2/2] input_helper: Fix compilation on CentOS 7 Petr Vorel
2023-10-25 9:24 ` [LTP] [PATCH v2 0/2] Fix CI for " Cyril Hrubis
2023-10-25 11:06 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox