mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
fs: Remove <common.h> and add needed includes
Remove <common.h> from all "fs/" files and when needed add missing include files directly. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
26d4114da2
commit
8d28959d70
32 changed files with 8 additions and 32 deletions
|
@ -5,7 +5,6 @@
|
|||
* 2017 Marek Behún, CZ.NIC, kabel@kernel.org
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <compiler.h>
|
||||
#include <fs_internal.h>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
// SPDX-License-Identifier: GPL-2.0+
|
||||
#include <common.h>
|
||||
#include <fs_internal.h>
|
||||
#include <log.h>
|
||||
#include <uuid.h>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0+
|
||||
#include <stdlib.h>
|
||||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <fs_internal.h>
|
||||
#include "ctree.h"
|
||||
#include "disk-io.h"
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cbfs.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
/* Offset of master header from the start of a coreboot ROM */
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* The actual compression is based on zlib, see the other files.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <stdio.h>
|
||||
#include <malloc.h>
|
||||
#include <asm/byteorder.h>
|
||||
#include <linux/stat.h>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* then is used by multiple filesystems.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <stdio.h>
|
||||
#include <cyclic.h>
|
||||
#include <malloc.h>
|
||||
#include <watchdog.h>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
* fs/ext2/dev.c file in uboot.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <config.h>
|
||||
#include <fs_internal.h>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
* ext4write : Based on generic ext4 protocol.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <ext_common.h>
|
||||
#include <ext4fs.h>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
* Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <ext4fs.h>
|
||||
#include <log.h>
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
* ext4write : Based on generic ext4 protocol.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <ext_common.h>
|
||||
#include <ext4fs.h>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#define LOG_CATEGORY LOGC_FS
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <config.h>
|
||||
#include <exports.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#define LOG_CATEGORY LOGC_FS
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <config.h>
|
||||
#include <div64.h>
|
||||
|
|
2
fs/fs.c
2
fs/fs.c
|
@ -9,7 +9,6 @@
|
|||
#include <config.h>
|
||||
#include <display_options.h>
|
||||
#include <errno.h>
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <lmb.h>
|
||||
#include <log.h>
|
||||
|
@ -21,6 +20,7 @@
|
|||
#include <fs.h>
|
||||
#include <sandboxfs.h>
|
||||
#include <semihostingfs.h>
|
||||
#include <time.h>
|
||||
#include <ubifs_uboot.h>
|
||||
#include <btrfs.h>
|
||||
#include <asm/global_data.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#define LOG_CATEGORY LOGC_CORE
|
||||
|
||||
#include <common.h>
|
||||
#include <blk.h>
|
||||
#include <compiler.h>
|
||||
#include <log.h>
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <jffs2/jffs2.h>
|
||||
#include <jffs2/mini_inflate.h>
|
||||
|
||||
|
|
|
@ -111,7 +111,6 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <malloc.h>
|
||||
#include <div64.h>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
* http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include "jffs2_private.h"
|
||||
|
||||
int sort_list(struct b_list *list)
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
* Written by Simon Glass <sjg@chromium.org>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <bootdev.h>
|
||||
#include <bootflow.h>
|
||||
#include <bootmeth.h>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Copyright (c) 2012, Google Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <stdio.h>
|
||||
#include <fs.h>
|
||||
#include <malloc.h>
|
||||
#include <os.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Google Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <stdio.h>
|
||||
#include <fs.h>
|
||||
#include <malloc.h>
|
||||
#include <os.h>
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
#include <linux/writeback.h>
|
||||
#else
|
||||
|
||||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <memalign.h>
|
||||
#include <linux/bitops.h>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
* Adrian Hunter
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <gzip.h>
|
||||
#include <log.h>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
*/
|
||||
|
||||
/* XXX U-BOOT XXX */
|
||||
#include <common.h>
|
||||
|
||||
#include "yportenv.h"
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
/* mtd interface for YAFFS2 */
|
||||
|
||||
/* XXX U-BOOT XXX */
|
||||
#include <common.h>
|
||||
#include <linux/bug.h>
|
||||
#include <linux/errno.h>
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
* This version now uses the ydevconfig mechanism to set up partitions.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <div64.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/printk.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
*/
|
||||
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <fs_internal.h>
|
||||
#include <zfs_common.h>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
* Copyright 2004 Sun Microsystems, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/stat.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/time.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/time.h>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Use is subject to license terms.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/time.h>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
*-----------------------------------------------------------------------*/
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
/* mtd device types */
|
||||
#define MTD_DEV_TYPE_NOR 0x0001
|
||||
|
|
Loading…
Add table
Reference in a new issue