treewide: Add missing string.h includes
Add string.h to files that use string functions like strdup, strcmp, strcpy, etc. These are implicitly available through the malloc.h header but that will soon change. For bouncebuf, take this opportunity to sort the headers correctly. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <circbuf.h>
|
||||
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
|
||||
* Written by David Howells (dhowells@redhat.com)
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <linux/err.h>
|
||||
#include <crypto/public_key.h>
|
||||
#include <crypto/x509_parser.h>
|
||||
|
||||
@@ -44,6 +44,7 @@ char SCCSid[] = "@(#) @(#)dhry_1.c:3.4 -- 5/15/91 19:30:21";
|
||||
|
||||
#include <malloc.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "dhry.h"
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <malloc.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "avb_sysdeps.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
#include <malloc.h>
|
||||
#include <memalign.h>
|
||||
#include <string.h>
|
||||
#include <asm/cache.h>
|
||||
#include <linux/compat.h>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <linux/compat.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/printk.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
#include <linux/list.h>
|
||||
#include <linux/list_sort.h>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/err.h>
|
||||
#include <string.h>
|
||||
#include <crypto/pkcs7.h>
|
||||
#include <crypto/mscode.h>
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <errno.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <vsprintf.h>
|
||||
#include "membuf.h"
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/ctype.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user