MODSIGN: linux/string.h should be #included to get memcpy()
authorDavid Howells <dhowells@redhat.com>
Tue, 1 Mar 2016 10:36:07 +0000 (10:36 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 1 Mar 2016 10:36:07 +0000 (10:36 +0000)
commit89053aa9c711bd455a68844b4ed37c8b72ef1daa
treeb7b0b6b1174d5e2775a22b055bb2adbe55d4b105
parent0d1db3e37022770a221b2a7565cfe425792ed22e
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>
kernel/module_signing.c