Backports Archive on
 help / Atom feed
* [PATCH] backports: add header file for function memcmp
@ 2018-08-22  2:33 Winnie Chang
  0 siblings, 0 replies; 1+ messages in thread
From: Winnie Chang @ 2018-08-22  2:33 UTC (permalink / raw)
  To: backports; +Cc: Chi-Hsien.Lin

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.
 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 ee9c418..5744de9 100644
--- a/backport/backport-include/keys/asymmetric-type.h
+++ b/backport/backport-include/keys/asymmetric-type.h
@@ -2,6 +2,8 @@
+#include <linux/string.h>
 struct asymmetric_key_id {
 	unsigned short	len;
 	unsigned char	data[];

To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] 1+ messages in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22  2:33 [PATCH] backports: add header file for function memcmp Winnie Chang

Backports Archive on

Archives are clonable:
	git clone --mirror backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ \
	public-inbox-index backports

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox