summaryrefslogtreecommitdiffstats
path: root/kernel/module_signing.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-03-01 10:36:07 +0000
committerDavid Howells <dhowells@redhat.com>2016-03-01 10:36:07 +0000
commit89053aa9c711bd455a68844b4ed37c8b72ef1daa (patch)
treeb7b0b6b1174d5e2775a22b055bb2adbe55d4b105 /kernel/module_signing.c
parent0d1db3e37022770a221b2a7565cfe425792ed22e (diff)
downloadlinux-89053aa9c711bd455a68844b4ed37c8b72ef1daa.tar.bz2
MODSIGN: linux/string.h should be #included to get memcpy()
linux/string.h should be #included in module_signing.c to get memcpy(), lest the following occur: kernel/module_signing.c: In function 'mod_verify_sig': kernel/module_signing.c:57:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration] memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms)); ^ Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'kernel/module_signing.c')
-rw-r--r--kernel/module_signing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/module_signing.c b/kernel/module_signing.c
index 6528a79d998d..9cfa46d8d14f 100644
--- a/kernel/module_signing.c
+++ b/kernel/module_signing.c
@@ -11,6 +11,7 @@
#include <linux/kernel.h>
#include <linux/errno.h>
+#include <linux/string.h>
#include <keys/system_keyring.h>
#include <crypto/public_key.h>
#include "module-internal.h"