To support kernel version 7.2. Fixes build error:

| lttng-syscalls.c: In function 'lttng_syscall_event_enabler_create_event':
| lttng-syscalls.c:612:17: error: implicit declaration of function 'strncpy' 
[-Wimplicit-function-declaration]
|   612 |                 strncpy(ev.name, desc->event_name, 
LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1);
|       |                 ^~~~~~~
| lttng-syscalls.c:101:1: note: include '<string.h>' or provide a declaration 
of 'strncpy'
|   100 | #include <instrumentation/syscalls/syscalls_unknown.h>
|   +++ |+#include <string.h>
|   101 | #undef TRACE_SYSTEM
| lttng-syscalls.c:612:17: warning: incompatible implicit declaration of 
built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
|   612 |                 strncpy(ev.name, desc->event_name, 
LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1);
|       |                 ^~~~~~~
| lttng-syscalls.c:612:17: note: include '<string.h>' or provide a declaration 
of 'strncpy'
| lttng-syscalls.c:704:17: warning: incompatible implicit declaration of 
built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
|   704 |                 strncpy(ev.name, desc->event_name, 
LTTNG_KERNEL_ABI_SYM_NAME_LEN - 1);
|       |                 ^~~~~~~
| lttng-syscalls.c:704:17: note: include '<string.h>' or provide a declaration 
of 'strncpy'

Signed-off-by: Mikko Rapeli <[email protected]>
---
 .../{lttng-modules_2.15.2.bb => lttng-modules_2.16.0-rc2.bb} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
 rename meta/recipes-kernel/lttng/{lttng-modules_2.15.2.bb => 
lttng-modules_2.16.0-rc2.bb} (94%)

diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.15.2.bb 
b/meta/recipes-kernel/lttng/lttng-modules_2.16.0-rc2.bb
similarity index 94%
rename from meta/recipes-kernel/lttng/lttng-modules_2.15.2.bb
rename to meta/recipes-kernel/lttng/lttng-modules_2.16.0-rc2.bb
index bfa1fc619a..e19850d4f8 100644
--- a/meta/recipes-kernel/lttng/lttng-modules_2.15.2.bb
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.16.0-rc2.bb
@@ -20,8 +20,9 @@ SRC_URI = 
"https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
 
 # Use :append here so that the patch is applied also when using devupstream
 SRC_URI:append = " 
file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch \
-                "
-SRC_URI[sha256sum] = 
"a8fbe5f76a89856505a4310c549952b7a47350b1115679c59fd303ac457444a8"
+                 "
+
+SRC_URI[sha256sum] = 
"43c05267526257464c9a048087dc7ac73363bb4ca4ed7a961bcf655e012595d7"
 
 export INSTALL_MOD_DIR = "kernel/lttng-modules"
 
-- 
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243419): 
https://lists.openembedded.org/g/openembedded-core/message/243419
Mute This Topic: https://lists.openembedded.org/mt/120745540/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to