From a87d6c57a9d95390f89cc4092099171c01520404 Mon Sep 17 00:00:00 2001 From: Winnie Chang Date: Tue, 21 Aug 2018 22:06:05 -0500 Subject: backports: add header file for function memcmp 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 Signed-off-by: Johannes Berg --- backport/backport-include/keys/asymmetric-type.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backport/backport-include/keys/asymmetric-type.h b/backport/backport-include/keys/asymmetric-type.h index ee9c4186..5744de9c 100644 --- a/backport/backport-include/keys/asymmetric-type.h +++ b/backport/backport-include/keys/asymmetric-type.h @@ -2,6 +2,8 @@ #define __BP_ASYMMETRIC_TYPE_H #ifdef CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION +#include + struct asymmetric_key_id { unsigned short len; unsigned char data[]; -- cgit v1.2.3