laforge has submitted this change. ( https://gerrit.osmocom.org/c/dahdi-linux/+/42898?usp=email )
Change subject: compatibility with kernel >= 7.2 which removed strncpy ......................................................................
compatibility with kernel >= 7.2 which removed strncpy
In commit 079a028d6327e68cfa5d38b36123637b321c19a7 the kernel removed strncpy. Let's use strscpy instead.
Change-Id: I11a16ffed90223cbeae456a26834c0342146eb88 --- M include/dahdi/kernel.h 1 file changed, 5 insertions(+), 0 deletions(-)
Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve laforge: Looks good to me, approved
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 47d92f5..bddf768 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1722,4 +1722,9 @@ #define UEVENT_CONST #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) +#include <linux/string.h> +#define strncpy strscpy +#endif + #endif /* _DAHDI_KERNEL_H */