aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentcerts: Fix misaligned data in extra certificate list (diff)
downloadwireguard-linux-89053aa9c711bd455a68844b4ed37c8b72ef1daa.tar.xz
wireguard-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.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"