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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| yaffs_allocator.c | ||
| yaffs_allocator.h | ||
| yaffs_attribs.c | ||
| yaffs_attribs.h | ||
| yaffs_bitmap.c | ||
| yaffs_bitmap.h | ||
| yaffs_checkptrw.c | ||
| yaffs_checkptrw.h | ||
| yaffs_ecc.c | ||
| yaffs_ecc.h | ||
| yaffs_error.c | ||
| yaffs_flashif.h | ||
| yaffs_flashif2.h | ||
| yaffs_getblockinfo.h | ||
| yaffs_guts.c | ||
| yaffs_guts.h | ||
| yaffs_mtdif.c | ||
| yaffs_mtdif.h | ||
| yaffs_mtdif2.c | ||
| yaffs_mtdif2.h | ||
| yaffs_nameval.c | ||
| yaffs_nameval.h | ||
| yaffs_nand.c | ||
| yaffs_nand.h | ||
| yaffs_nandemul2k.h | ||
| yaffs_nandif.c | ||
| yaffs_nandif.h | ||
| yaffs_osglue.h | ||
| yaffs_packedtags1.c | ||
| yaffs_packedtags1.h | ||
| yaffs_packedtags2.c | ||
| yaffs_packedtags2.h | ||
| yaffs_qsort.c | ||
| yaffs_summary.c | ||
| yaffs_summary.h | ||
| yaffs_tagscompat.c | ||
| yaffs_tagscompat.h | ||
| yaffs_trace.h | ||
| yaffs_uboot_glue.c | ||
| yaffs_verify.c | ||
| yaffs_verify.h | ||
| yaffs_yaffs1.c | ||
| yaffs_yaffs1.h | ||
| yaffs_yaffs2.c | ||
| yaffs_yaffs2.h | ||
| yaffscfg.h | ||
| yaffsfs.c | ||
| yaffsfs.h | ||
| ydirectenv.h | ||
| yportenv.h | ||