laforge has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/98/42898/1 diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 7a4c088..1fa3dd5 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1732,4 +1732,9 @@ #define from_timer timer_container_of #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) +#include <linux/string.h> +#define strncpy strscpy +#endif + #endif /* _DAHDI_KERNEL_H */ -- To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/42898?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: dahdi-linux Gerrit-Branch: master Gerrit-Change-Id: I11a16ffed90223cbeae456a26834c0342146eb88 Gerrit-Change-Number: 42898 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <[email protected]>
