diff options
author | Richard Röjfors <richard.rojfors@gmail.com> | 2014-05-03 16:09:37 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-06-01 23:41:08 +0200 |
commit | 1b62085572206ee0ad9a89dcc5528d63b432d7fe (patch) | |
tree | b5e54675c8aa5d7f564148dd9692ac6f8294c772 /backport/compat | |
parent | 44554cd57d0016c52aeed2ce4f27081b9d9c915f (diff) |
backports: backport-3.15: Include fix
In this version the correct linux string.h is included.
Include string.h to avoid compile issues if warnings are treated as errors:
backports-3.14-1/compat/backport-3.15.c: In function 'backport_devm_kstrdup':
backports-3.14-1/compat/backport-3.15.c:33:2: error: implicit declaration of function 'strlen' [-Werror=implicit-function-declaration]
size = strlen(s) + 1;
^
backports-3.14-1/compat/backport-3.15.c:33:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
size = strlen(s) + 1;
^
backports-3.14-1/compat/backport-3.15.c:36:3: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
memcpy(buf, s, size);
^
backports-3.14-1/compat/backport-3.15.c:36:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
Signed-off-by: Richard Röjfors <richard@puffinpack.se>
[refreshed patch on current master]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/compat')
-rw-r--r-- | backport/compat/backport-3.15.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backport/compat/backport-3.15.c b/backport/compat/backport-3.15.c index 545e0c29..4094e27c 100644 --- a/backport/compat/backport-3.15.c +++ b/backport/compat/backport-3.15.c @@ -12,6 +12,7 @@ #include <linux/kernel.h> #include <linux/device.h> #include <linux/of.h> +#include <linux/string.h> #include <net/net_namespace.h> #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) |