diff options
author | David Howells <dhowells@redhat.com> | 2016-03-01 11:36:07 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-03-01 11:36:07 +0100 |
commit | 89053aa9c711bd455a68844b4ed37c8b72ef1daa (patch) | |
tree | b7b0b6b1174d5e2775a22b055bb2adbe55d4b105 /kernel/module_signing.c | |
parent | certs: Fix misaligned data in extra certificate list (diff) | |
download | linux-89053aa9c711bd455a68844b4ed37c8b72ef1daa.tar.xz linux-89053aa9c711bd455a68844b4ed37c8b72ef1daa.zip |
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.c | 1 |
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" |