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:
Tom Rini 2024-04-27 08:11:05 -06:00
parent 26d4114da2
commit 8d28959d70
32 changed files with 8 additions and 32 deletions

View file

@ -5,7 +5,6 @@
* 2017 Marek Behún, CZ.NIC, kabel@kernel.org * 2017 Marek Behún, CZ.NIC, kabel@kernel.org
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <compiler.h> #include <compiler.h>
#include <fs_internal.h> #include <fs_internal.h>

View file

@ -1,5 +1,4 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <fs_internal.h> #include <fs_internal.h>
#include <log.h> #include <log.h>
#include <uuid.h> #include <uuid.h>

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+ // SPDX-License-Identifier: GPL-2.0+
#include <stdlib.h> #include <stdlib.h>
#include <common.h> #include <errno.h>
#include <fs_internal.h> #include <fs_internal.h>
#include "ctree.h" #include "ctree.h"
#include "disk-io.h" #include "disk-io.h"

View file

@ -3,10 +3,10 @@
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. * Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
*/ */
#include <common.h>
#include <cbfs.h> #include <cbfs.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>
#include <linux/errno.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
/* Offset of master header from the start of a coreboot ROM */ /* Offset of master header from the start of a coreboot ROM */

View file

@ -24,7 +24,7 @@
* The actual compression is based on zlib, see the other files. * The actual compression is based on zlib, see the other files.
*/ */
#include <common.h> #include <stdio.h>
#include <malloc.h> #include <malloc.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <linux/stat.h> #include <linux/stat.h>

View file

@ -20,7 +20,7 @@
* then is used by multiple filesystems. * then is used by multiple filesystems.
*/ */
#include <common.h> #include <stdio.h>
#include <cyclic.h> #include <cyclic.h>
#include <malloc.h> #include <malloc.h>
#include <watchdog.h> #include <watchdog.h>

View file

@ -22,7 +22,6 @@
* fs/ext2/dev.c file in uboot. * fs/ext2/dev.c file in uboot.
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <config.h> #include <config.h>
#include <fs_internal.h> #include <fs_internal.h>

View file

@ -18,7 +18,6 @@
* ext4write : Based on generic ext4 protocol. * ext4write : Based on generic ext4 protocol.
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <ext_common.h> #include <ext_common.h>
#include <ext4fs.h> #include <ext4fs.h>

View file

@ -13,7 +13,6 @@
* Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved * Copyright 1998-2000 Red Hat, Inc --- All Rights Reserved
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <ext4fs.h> #include <ext4fs.h>
#include <log.h> #include <log.h>

View file

@ -21,7 +21,6 @@
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>

View file

@ -20,7 +20,6 @@
* ext4write : Based on generic ext4 protocol. * ext4write : Based on generic ext4 protocol.
*/ */
#include <common.h>
#include <blk.h> #include <blk.h>
#include <ext_common.h> #include <ext_common.h>
#include <ext4fs.h> #include <ext4fs.h>

View file

@ -10,7 +10,6 @@
#define LOG_CATEGORY LOGC_FS #define LOG_CATEGORY LOGC_FS
#include <common.h>
#include <blk.h> #include <blk.h>
#include <config.h> #include <config.h>
#include <exports.h> #include <exports.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_FS #define LOG_CATEGORY LOGC_FS
#include <common.h>
#include <command.h> #include <command.h>
#include <config.h> #include <config.h>
#include <div64.h> #include <div64.h>

View file

@ -9,7 +9,6 @@
#include <config.h> #include <config.h>
#include <display_options.h> #include <display_options.h>
#include <errno.h> #include <errno.h>
#include <common.h>
#include <env.h> #include <env.h>
#include <lmb.h> #include <lmb.h>
#include <log.h> #include <log.h>
@ -21,6 +20,7 @@
#include <fs.h> #include <fs.h>
#include <sandboxfs.h> #include <sandboxfs.h>
#include <semihostingfs.h> #include <semihostingfs.h>
#include <time.h>
#include <ubifs_uboot.h> #include <ubifs_uboot.h>
#include <btrfs.h> #include <btrfs.h>
#include <asm/global_data.h> #include <asm/global_data.h>

View file

@ -7,7 +7,6 @@
#define LOG_CATEGORY LOGC_CORE #define LOG_CATEGORY LOGC_CORE
#include <common.h>
#include <blk.h> #include <blk.h>
#include <compiler.h> #include <compiler.h>
#include <log.h> #include <log.h>

View file

@ -35,8 +35,6 @@
* *
*/ */
#include <common.h>
#include <config.h>
#include <jffs2/jffs2.h> #include <jffs2/jffs2.h>
#include <jffs2/mini_inflate.h> #include <jffs2/mini_inflate.h>

View file

@ -111,7 +111,6 @@
*/ */
#include <common.h>
#include <config.h> #include <config.h>
#include <malloc.h> #include <malloc.h>
#include <div64.h> #include <div64.h>

View file

@ -7,7 +7,6 @@
* http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html * http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html
*/ */
#include <common.h>
#include "jffs2_private.h" #include "jffs2_private.h"
int sort_list(struct b_list *list) int sort_list(struct b_list *list)

View file

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org> * Written by Simon Glass <sjg@chromium.org>
*/ */
#include <common.h>
#include <bootdev.h> #include <bootdev.h>
#include <bootflow.h> #include <bootflow.h>
#include <bootmeth.h> #include <bootmeth.h>

View file

@ -3,7 +3,7 @@
* Copyright (c) 2012, Google Inc. * Copyright (c) 2012, Google Inc.
*/ */
#include <common.h> #include <stdio.h>
#include <fs.h> #include <fs.h>
#include <malloc.h> #include <malloc.h>
#include <os.h> #include <os.h>

View file

@ -4,7 +4,7 @@
* Copyright (c) 2012, Google Inc. * Copyright (c) 2012, Google Inc.
*/ */
#include <common.h> #include <stdio.h>
#include <fs.h> #include <fs.h>
#include <malloc.h> #include <malloc.h>
#include <os.h> #include <os.h>

View file

@ -29,7 +29,6 @@
#include <linux/writeback.h> #include <linux/writeback.h>
#else #else
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <memalign.h> #include <memalign.h>
#include <linux/bitops.h> #include <linux/bitops.h>

View file

@ -11,7 +11,6 @@
* Adrian Hunter * Adrian Hunter
*/ */
#include <common.h>
#include <env.h> #include <env.h>
#include <gzip.h> #include <gzip.h>
#include <log.h> #include <log.h>

View file

@ -12,7 +12,6 @@
*/ */
/* XXX U-BOOT XXX */ /* XXX U-BOOT XXX */
#include <common.h>
#include "yportenv.h" #include "yportenv.h"

View file

@ -14,7 +14,6 @@
/* mtd interface for YAFFS2 */ /* mtd interface for YAFFS2 */
/* XXX U-BOOT XXX */ /* XXX U-BOOT XXX */
#include <common.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/errno.h> #include <linux/errno.h>

View file

@ -19,7 +19,6 @@
* This version now uses the ydevconfig mechanism to set up partitions. * This version now uses the ydevconfig mechanism to set up partitions.
*/ */
#include <common.h>
#include <div64.h> #include <div64.h>
#include <malloc.h> #include <malloc.h>
#include <linux/printk.h> #include <linux/printk.h>

View file

@ -8,7 +8,6 @@
*/ */
#include <common.h>
#include <config.h> #include <config.h>
#include <fs_internal.h> #include <fs_internal.h>
#include <zfs_common.h> #include <zfs_common.h>

View file

@ -10,7 +10,6 @@
* Copyright 2004 Sun Microsystems, Inc. * Copyright 2004 Sun Microsystems, Inc.
*/ */
#include <common.h>
#include <log.h> #include <log.h>
#include <malloc.h> #include <malloc.h>
#include <linux/stat.h> #include <linux/stat.h>

View file

@ -8,7 +8,6 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/time.h> #include <linux/time.h>

View file

@ -8,7 +8,6 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/time.h> #include <linux/time.h>

View file

@ -8,7 +8,6 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#include <common.h>
#include <malloc.h> #include <malloc.h>
#include <linux/stat.h> #include <linux/stat.h>
#include <linux/time.h> #include <linux/time.h>

View file

@ -10,6 +10,7 @@
*-----------------------------------------------------------------------*/ *-----------------------------------------------------------------------*/
#include <linux/list.h> #include <linux/list.h>
#include <linux/string.h>
/* mtd device types */ /* mtd device types */
#define MTD_DEV_TYPE_NOR 0x0001 #define MTD_DEV_TYPE_NOR 0x0001