backports: add header file for function memcmp
authorWinnie Chang <winnie.chang@cypress.com>
Wed, 22 Aug 2018 03:06:05 +0000 (22:06 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 22 Aug 2018 07:17:43 +0000 (09:17 +0200)
Function memcmp is implicit declaration on kernel 4.9.88 ARM platform.
backport-include/keys/asymmetric-type.h uses function memcmp but its
caller compat/verification/verify.c and all its related header files
do not include string.h. The header file is usually included from
arch/arm/include/asm, but in this configuration, it doesn't. We need
to be safe and insure string.h is there.

Signed-off-by: Winnie Chang <winnie.chang@cypress.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/keys/asymmetric-type.h

index ee9c418618acb27269d27d594046527768405dc2..5744de9cee0f447f9eb12e624e4f76e62aa03db4 100644 (file)
@@ -2,6 +2,8 @@
 #define __BP_ASYMMETRIC_TYPE_H
 #ifdef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION
 
+#include <linux/string.h>
+
 struct asymmetric_key_id {
        unsigned short  len;
        unsigned char   data[];