1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

dm: core: Create a new header file for 'compat' features

At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.

Move the compatibility features into a separate header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2020-02-03 07:36:16 -07:00
parent 61b29b8268
commit 336d4615f8
460 changed files with 593 additions and 77 deletions

View File

@@ -22,6 +22,7 @@
#include <common.h>
#include <malloc.h>
#include <memalign.h>
#include <linux/stat.h>
#include <div64.h>

View File

@@ -25,6 +25,7 @@
#include <ext4fs.h>
#include "ext4_common.h"
#include <div64.h>
#include <malloc.h>
int ext4fs_symlinknest;
struct ext_filesystem ext_fs;

View File

@@ -9,6 +9,7 @@
#include <command.h>
#include <config.h>
#include <fat.h>
#include <malloc.h>
#include <asm/byteorder.h>
#include <part.h>
#include <linux/ctype.h>

View File

@@ -5,6 +5,7 @@
#include <common.h>
#include <fs.h>
#include <malloc.h>
#include <os.h>
int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)

View File

@@ -17,6 +17,7 @@
*/
#ifdef __UBOOT__
#include <malloc.h>
#include <linux/err.h>
#endif
#include "ubifs.h"

View File

@@ -14,6 +14,7 @@
#include <common.h>
#include <env.h>
#include <gzip.h>
#include <malloc.h>
#include <memalign.h>
#include "ubifs.h"
#include <dm/devres.h>

View File

@@ -13,6 +13,7 @@
#include "yportenv.h"
#include "yaffs_guts.h"
#include <malloc.h>
#include "yaffs_nandif.h"

View File

@@ -21,6 +21,7 @@
#include <common.h>
#include <div64.h>
#include <malloc.h>
#include <config.h>
#include "nand.h"