laforge has uploaded this change for review.

View Change

Fix missing include of linux/string.h

dahdi-base.c: In function 'dahdi_ioctl_get_version':
dahdi-base.c:5452:17: error: implicit declaration of function 'strncpy' [-Werror=implicit-function-declaration]
5452 | strncpy(vi.echo_canceller, ec_name, space);
| ^~~~~~~
dahdi-base.c:96:1: note: include '<string.h>' or provide a declaration of 'strncpy'
95 | #include "arith.h"
+++ |+#include <string.h>

Change-Id: Id1341c146b82f0d64370a23ec07432d7055bf13e
---
M drivers/dahdi/dahdi-base.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/dahdi-linux refs/changes/95/42895/1
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index a0238e6..88cbca6 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -52,6 +52,7 @@
#include <linux/mutex.h>
#include <linux/ktime.h>
#include <linux/slab.h>
+#include <linux/string.h>

#if defined(CONFIG_BKL)
#include <linux/smp_lock.h>

To view, visit change 42895. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: dahdi-linux
Gerrit-Branch: master
Gerrit-Change-Id: Id1341c146b82f0d64370a23ec07432d7055bf13e
Gerrit-Change-Number: 42895
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge@osmocom.org>