diff options
author | Tom Rini <trini@konsulko.com> | 2020-05-19 10:51:43 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-19 10:51:43 -0400 |
commit | c2279d784e35fa25ee3a9fa28a74a1ba545f8c1e (patch) | |
tree | 158fd30f3d06142f6a99cbae6ed8ccb0f3be567b /fs | |
parent | ed9a3aa6452f57af65eb74f73bd2a54c3a2f4b03 (diff) | |
parent | cd93d625fd751d55c729c78b10f82109d56a5f1d (diff) |
Merge branch '2020-05-18-reduce-size-of-common.h'
Bring in the latest round of Simon's changes to reduce what's in
<common.h> overall.
Diffstat (limited to 'fs')
43 files changed, 96 insertions, 34 deletions
diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index cb7e182742..de16217d0d 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -8,6 +8,7 @@ #include "btrfs.h" #include <config.h> #include <malloc.h> +#include <uuid.h> #include <linux/time.h> struct btrfs_info btrfs_info; @@ -74,7 +75,8 @@ static int readdir_callback(const struct btrfs_root *root, return 0; } -int btrfs_probe(struct blk_desc *fs_dev_desc, disk_partition_t *fs_partition) +int btrfs_probe(struct blk_desc *fs_dev_desc, + struct disk_partition *fs_partition) { btrfs_blk_desc = fs_dev_desc; btrfs_part_info = fs_partition; diff --git a/fs/btrfs/btrfs.h b/fs/btrfs/btrfs.h index 986d078679..25a8cf6a87 100644 --- a/fs/btrfs/btrfs.h +++ b/fs/btrfs/btrfs.h @@ -36,7 +36,7 @@ static inline u64 btrfs_name_hash(const char *name, int len) /* dev.c */ extern struct blk_desc *btrfs_blk_desc; -extern disk_partition_t *btrfs_part_info; +extern struct disk_partition *btrfs_part_info; int btrfs_devread(u64, int, void *); diff --git a/fs/btrfs/chunk-map.c b/fs/btrfs/chunk-map.c index 0c9a659f8f..2e5be65067 100644 --- a/fs/btrfs/chunk-map.c +++ b/fs/btrfs/chunk-map.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> struct chunk_map_item { diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index b1884fc15e..59e4a94cb2 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> #include <linux/lzo.h> #include <linux/zstd.h> diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 7fae383f15..28f98d43ad 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -6,6 +6,7 @@ */ #include "btrfs.h" +#include <log.h> #include <malloc.h> #include <memalign.h> diff --git a/fs/btrfs/dev.c b/fs/btrfs/dev.c index ada3800f1e..1e5b83235a 100644 --- a/fs/btrfs/dev.c +++ b/fs/btrfs/dev.c @@ -6,11 +6,12 @@ */ #include <common.h> +#include <blk.h> #include <compiler.h> #include <fs_internal.h> struct blk_desc *btrfs_blk_desc; -disk_partition_t *btrfs_part_info; +struct disk_partition *btrfs_part_info; int btrfs_devread(u64 address, int byte_len, void *buf) { diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index b693a073fc..913a4d402e 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -5,9 +5,12 @@ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz */ -#include "btrfs.h" +#include <common.h> +#include <log.h> #include <memalign.h> +#include <part.h> #include <linux/compat.h> +#include "btrfs.h" #define BTRFS_SUPER_FLAG_SUPP (BTRFS_HEADER_FLAG_WRITTEN \ | BTRFS_HEADER_FLAG_RELOC \ diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c index 228f599d44..7ef48bbc06 100644 --- a/fs/cramfs/cramfs.c +++ b/fs/cramfs/cramfs.c @@ -25,6 +25,7 @@ */ #include <common.h> +#include <flash.h> #include <malloc.h> #include <asm/byteorder.h> #include <linux/stat.h> diff --git a/fs/ext4/dev.c b/fs/ext4/dev.c index 29076880bc..168443de1f 100644 --- a/fs/ext4/dev.c +++ b/fs/ext4/dev.c @@ -29,13 +29,14 @@ #include <ext4fs.h> #include <ext_common.h> #include "ext4_common.h" +#include <log.h> lbaint_t part_offset; static struct blk_desc *ext4fs_blk_desc; -static disk_partition_t *part_info; +static struct disk_partition *part_info; -void ext4fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) +void ext4fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info) { assert(rbdd->blksz == (1 << rbdd->log2blksz)); ext4fs_blk_desc = rbdd; diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 5bf78b530a..c52cc400e1 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -19,10 +19,13 @@ */ #include <common.h> +#include <blk.h> #include <ext_common.h> #include <ext4fs.h> +#include <log.h> #include <malloc.h> #include <memalign.h> +#include <part.h> #include <stddef.h> #include <linux/stat.h> #include <linux/time.h> diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h index 4dff1914d9..beaee9c80b 100644 --- a/fs/ext4/ext4_common.h +++ b/fs/ext4/ext4_common.h @@ -23,6 +23,7 @@ #include <ext_common.h> #include <ext4fs.h> #include <malloc.h> +#include <asm/cache.h> #include <linux/errno.h> #if defined(CONFIG_EXT4_WRITE) #include "ext4_journal.h" diff --git a/fs/ext4/ext4_journal.c b/fs/ext4/ext4_journal.c index 0ceb73d9c9..1a340b4764 100644 --- a/fs/ext4/ext4_journal.c +++ b/fs/ext4/ext4_journal.c @@ -14,7 +14,9 @@ */ #include <common.h> +#include <blk.h> #include <ext4fs.h> +#include <log.h> #include <malloc.h> #include <ext_common.h> #include "ext4_common.h" diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c index 67aeba1339..f22af45d1b 100644 --- a/fs/ext4/ext4_write.c +++ b/fs/ext4/ext4_write.c @@ -22,8 +22,11 @@ #include <common.h> +#include <blk.h> +#include <log.h> #include <malloc.h> #include <memalign.h> +#include <part.h> #include <linux/stat.h> #include <div64.h> #include "ext4_common.h" diff --git a/fs/ext4/ext4fs.c b/fs/ext4/ext4fs.c index 966b427a97..4c89152ce4 100644 --- a/fs/ext4/ext4fs.c +++ b/fs/ext4/ext4fs.c @@ -21,11 +21,14 @@ */ #include <common.h> +#include <blk.h> #include <ext_common.h> #include <ext4fs.h> #include "ext4_common.h" #include <div64.h> #include <malloc.h> +#include <part.h> +#include <uuid.h> int ext4fs_symlinknest; struct ext_filesystem ext_fs; @@ -226,7 +229,7 @@ int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread) } int ext4fs_probe(struct blk_desc *fs_dev_desc, - disk_partition_t *fs_partition) + struct disk_partition *fs_partition) { ext4fs_set_blk_dev(fs_dev_desc, fs_partition); diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 68ce658386..7fd29470c1 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -14,10 +14,12 @@ #include <exports.h> #include <fat.h> #include <fs.h> +#include <log.h> #include <asm/byteorder.h> #include <part.h> #include <malloc.h> #include <memalign.h> +#include <asm/cache.h> #include <linux/compiler.h> #include <linux/ctype.h> @@ -35,7 +37,7 @@ static void downcase(char *str, size_t len) } static struct blk_desc *cur_dev; -static disk_partition_t cur_part_info; +static struct disk_partition cur_part_info; #define DOS_BOOT_MAGIC_OFFSET 0x1fe #define DOS_FS_TYPE_OFFSET 0x36 @@ -56,7 +58,7 @@ static int disk_read(__u32 block, __u32 nr_blocks, void *buf) return ret; } -int fat_set_blk_dev(struct blk_desc *dev_desc, disk_partition_t *info) +int fat_set_blk_dev(struct blk_desc *dev_desc, struct disk_partition *info) { ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz); @@ -87,7 +89,7 @@ int fat_set_blk_dev(struct blk_desc *dev_desc, disk_partition_t *info) int fat_register_device(struct blk_desc *dev_desc, int part_no) { - disk_partition_t info; + struct disk_partition info; /* First close any currently found FAT filesystem */ cur_dev = NULL; diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 4f96699e36..59cc0bae94 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -9,9 +9,11 @@ #include <command.h> #include <config.h> #include <fat.h> +#include <log.h> #include <malloc.h> #include <asm/byteorder.h> #include <part.h> +#include <asm/cache.h> #include <linux/ctype.h> #include <div64.h> #include <linux/math64.h> @@ -3,10 +3,13 @@ * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. */ +#include <command.h> #include <config.h> #include <errno.h> #include <common.h> #include <env.h> +#include <lmb.h> +#include <log.h> #include <mapmem.h> #include <part.h> #include <ext4fs.h> @@ -24,11 +27,11 @@ DECLARE_GLOBAL_DATA_PTR; static struct blk_desc *fs_dev_desc; static int fs_dev_part; -static disk_partition_t fs_partition; +static struct disk_partition fs_partition; static int fs_type = FS_TYPE_ANY; static inline int fs_probe_unsupported(struct blk_desc *fs_dev_desc, - disk_partition_t *fs_partition) + struct disk_partition *fs_partition) { printf("** Unrecognized filesystem type **\n"); return -1; @@ -135,7 +138,7 @@ struct fstype_info { */ bool null_dev_desc_ok; int (*probe)(struct blk_desc *fs_dev_desc, - disk_partition_t *fs_partition); + struct disk_partition *fs_partition); int (*ls)(const char *dirname); int (*exists)(const char *filename); int (*size)(const char *filename, loff_t *size); @@ -643,8 +646,8 @@ int fs_ln(const char *fname, const char *target) return ret; } -int do_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], - int fstype) +int do_size(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], + int fstype) { loff_t size; @@ -662,8 +665,8 @@ int do_size(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return 0; } -int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], - int fstype) +int do_load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], + int fstype) { unsigned long addr; const char *addr_str; @@ -736,8 +739,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return 0; } -int do_ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], - int fstype) +int do_ls(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], + int fstype) { if (argc < 2) return CMD_RET_USAGE; @@ -762,8 +765,8 @@ int file_exists(const char *dev_type, const char *dev_part, const char *file, return fs_exists(file); } -int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], - int fstype) +int do_save(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], + int fstype) { unsigned long addr; const char *filename; @@ -804,8 +807,8 @@ int do_save(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return 0; } -int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], - int fstype) +int do_fs_uuid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], + int fstype) { int ret; char uuid[37]; @@ -829,7 +832,7 @@ int do_fs_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return CMD_RET_SUCCESS; } -int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_fs_type(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { struct fstype_info *info; @@ -851,7 +854,7 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_SUCCESS; } -int do_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], +int do_rm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], int fstype) { if (argc != 4) @@ -866,7 +869,7 @@ int do_rm(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return 0; } -int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], +int do_mkdir(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], int fstype) { int ret; @@ -886,7 +889,7 @@ int do_mkdir(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], return 0; } -int do_ln(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], +int do_ln(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], int fstype) { if (argc != 5) diff --git a/fs/fs_internal.c b/fs/fs_internal.c index d369c43ca6..8b19811a63 100644 --- a/fs/fs_internal.c +++ b/fs/fs_internal.c @@ -6,11 +6,13 @@ */ #include <common.h> +#include <blk.h> #include <compiler.h> +#include <log.h> #include <part.h> #include <memalign.h> -int fs_devread(struct blk_desc *blk, disk_partition_t *partition, +int fs_devread(struct blk_desc *blk, struct disk_partition *partition, lbaint_t sector, int byte_offset, int byte_len, char *buf) { unsigned block_len; diff --git a/fs/jffs2/jffs2_1pass.c b/fs/jffs2/jffs2_1pass.c index 1115c8682e..a98745c50e 100644 --- a/fs/jffs2/jffs2_1pass.c +++ b/fs/jffs2/jffs2_1pass.c @@ -113,6 +113,7 @@ #include <common.h> #include <config.h> +#include <flash.h> #include <malloc.h> #include <div64.h> #include <linux/compiler.h> diff --git a/fs/reiserfs/dev.c b/fs/reiserfs/dev.c index c6b67795df..5d9c26489a 100644 --- a/fs/reiserfs/dev.c +++ b/fs/reiserfs/dev.c @@ -12,10 +12,10 @@ #include "reiserfs_private.h" static struct blk_desc *reiserfs_blk_desc; -static disk_partition_t *part_info; +static struct disk_partition *part_info; -void reiserfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) +void reiserfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info) { reiserfs_blk_desc = rbdd; part_info = info; diff --git a/fs/sandbox/sandboxfs.c b/fs/sandbox/sandboxfs.c index af47224b6c..4ae41d5b4d 100644 --- a/fs/sandbox/sandboxfs.c +++ b/fs/sandbox/sandboxfs.c @@ -7,8 +7,9 @@ #include <fs.h> #include <malloc.h> #include <os.h> +#include <sandboxfs.h> -int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) +int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info) { /* * Only accept a NULL struct blk_desc for the sandbox, which is when diff --git a/fs/ubifs/budget.c b/fs/ubifs/budget.c index 9eb5d3fed1..514f15f58c 100644 --- a/fs/ubifs/budget.c +++ b/fs/ubifs/budget.c @@ -20,6 +20,7 @@ #include "ubifs.h" #ifndef __UBOOT__ +#include <log.h> #include <linux/writeback.h> #else #include <linux/err.h> diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 6835f86fec..2ff8f1a5f9 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -16,6 +16,7 @@ */ #include <hexdump.h> +#include <log.h> #include <dm/devres.h> #ifndef __UBOOT__ diff --git a/fs/ubifs/gc.c b/fs/ubifs/gc.c index f923d07652..6a4ada62c8 100644 --- a/fs/ubifs/gc.c +++ b/fs/ubifs/gc.c @@ -41,6 +41,7 @@ * good, and GC takes extra care when moving them. */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/slab.h> #include <linux/pagemap.h> diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c index 8148055f67..eb14b89544 100644 --- a/fs/ubifs/io.c +++ b/fs/ubifs/io.c @@ -59,6 +59,8 @@ */ #ifndef __UBOOT__ +#include <init.h> +#include <log.h> #include <dm/devres.h> #include <linux/crc32.h> #include <linux/slab.h> diff --git a/fs/ubifs/log.c b/fs/ubifs/log.c index 5cbb8aa1b2..77ff52575e 100644 --- a/fs/ubifs/log.c +++ b/fs/ubifs/log.c @@ -16,6 +16,7 @@ */ #ifdef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/err.h> #endif diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c index a7c45dd5ec..a9e22abe6b 100644 --- a/fs/ubifs/lprops.c +++ b/fs/ubifs/lprops.c @@ -17,6 +17,7 @@ */ #ifdef __UBOOT__ +#include <log.h> #include <malloc.h> #include <linux/err.h> #endif diff --git a/fs/ubifs/lpt.c b/fs/ubifs/lpt.c index ebfb1d4dd7..62748b0210 100644 --- a/fs/ubifs/lpt.c +++ b/fs/ubifs/lpt.c @@ -33,6 +33,7 @@ #include "ubifs.h" #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/crc16.h> #include <linux/math64.h> diff --git a/fs/ubifs/lpt_commit.c b/fs/ubifs/lpt_commit.c index aa5956c52e..897d001430 100644 --- a/fs/ubifs/lpt_commit.c +++ b/fs/ubifs/lpt_commit.c @@ -14,11 +14,13 @@ */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/crc16.h> #include <linux/slab.h> #include <linux/random.h> #else +#include <linux/bitops.h> #include <linux/compat.h> #include <linux/err.h> #include "crc16.h" diff --git a/fs/ubifs/master.c b/fs/ubifs/master.c index 2740aaee8b..055c654ae8 100644 --- a/fs/ubifs/master.c +++ b/fs/ubifs/master.c @@ -12,6 +12,7 @@ #include "ubifs.h" #ifdef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/compat.h> #include <linux/err.h> diff --git a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c index a67b3eec93..6aa2890ff0 100644 --- a/fs/ubifs/orphan.c +++ b/fs/ubifs/orphan.c @@ -7,6 +7,7 @@ * Author: Adrian Hunter */ +#include <log.h> #include <dm/devres.h> #include <linux/err.h> #include "ubifs.h" diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c index 3388efe2b7..6b6884fb20 100644 --- a/fs/ubifs/recovery.c +++ b/fs/ubifs/recovery.c @@ -36,6 +36,7 @@ */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/crc32.h> #include <linux/slab.h> diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index 3a9fa4130e..aa7f281ef6 100644 --- a/fs/ubifs/replay.c +++ b/fs/ubifs/replay.c @@ -21,6 +21,7 @@ */ #ifdef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/compat.h> #include <linux/err.h> diff --git a/fs/ubifs/sb.c b/fs/ubifs/sb.c index 599e1a35fb..1d49285c7d 100644 --- a/fs/ubifs/sb.c +++ b/fs/ubifs/sb.c @@ -16,6 +16,7 @@ #include "ubifs.h" #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/slab.h> #include <linux/random.h> diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index 876a6ee661..7a6e46df5d 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c @@ -17,6 +17,7 @@ #ifdef __UBOOT__ #include <hexdump.h> +#include <log.h> #include <dm/devres.h> #include <linux/err.h> #endif diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index b38513660b..e3a4c0bca2 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -15,6 +15,7 @@ */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/init.h> #include <linux/slab.h> @@ -31,12 +32,14 @@ #include <common.h> #include <malloc.h> #include <memalign.h> +#include <linux/bitops.h> #include <linux/bug.h> #include <linux/log2.h> #include <linux/stat.h> #include <linux/err.h> #include "ubifs.h" #include <ubi_uboot.h> +#include <linux/stringify.h> #include <mtd/ubi-user.h> struct dentry; diff --git a/fs/ubifs/tnc.c b/fs/ubifs/tnc.c index fc6fdaff8d..e8b8f16838 100644 --- a/fs/ubifs/tnc.c +++ b/fs/ubifs/tnc.c @@ -19,11 +19,14 @@ */ #ifndef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/crc32.h> #include <linux/slab.h> #include <u-boot/crc.h> #else +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/compat.h> #include <linux/err.h> #include <linux/stat.h> diff --git a/fs/ubifs/tnc_misc.c b/fs/ubifs/tnc_misc.c index dfa9e91903..e4cd785b9f 100644 --- a/fs/ubifs/tnc_misc.c +++ b/fs/ubifs/tnc_misc.c @@ -16,6 +16,7 @@ */ #ifdef __UBOOT__ +#include <log.h> #include <dm/devres.h> #include <linux/err.h> #endif diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index e097d28444..70beb848e1 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -14,9 +14,11 @@ #include <common.h> #include <env.h> #include <gzip.h> +#include <log.h> #include <malloc.h> #include <memalign.h> #include "ubifs.h" +#include <part.h> #include <dm/devres.h> #include <u-boot/zlib.h> @@ -549,7 +551,7 @@ static unsigned long ubifs_findfile(struct super_block *sb, char *filename) return 0; } -int ubifs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) +int ubifs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info) { if (rbdd) { debug("UBIFS cannot be used with normal block devices\n"); diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c index 0d9d5cc4b1..81a4d964f3 100644 --- a/fs/yaffs2/yaffs_mtdif2.c +++ b/fs/yaffs2/yaffs_mtdif2.c @@ -15,6 +15,7 @@ /* XXX U-BOOT XXX */ #include <common.h> +#include <linux/bug.h> #include <linux/errno.h> #include "yportenv.h" diff --git a/fs/yaffs2/yportenv.h b/fs/yaffs2/yportenv.h index 251eba0792..081391a1d0 100644 --- a/fs/yaffs2/yportenv.h +++ b/fs/yaffs2/yportenv.h @@ -17,6 +17,7 @@ #ifndef __YPORTENV_H__ #define __YPORTENV_H__ +#include <linux/bug.h> #include <linux/types.h> /* Definition of types */ diff --git a/fs/zfs/dev.c b/fs/zfs/dev.c index 3cdb9e03ed..251e7d1f74 100644 --- a/fs/zfs/dev.c +++ b/fs/zfs/dev.c @@ -14,9 +14,9 @@ #include <zfs_common.h> static struct blk_desc *zfs_blk_desc; -static disk_partition_t *part_info; +static struct disk_partition *part_info; -void zfs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info) +void zfs_set_blk_dev(struct blk_desc *rbdd, struct disk_partition *info) { zfs_blk_desc = rbdd; part_info = info; diff --git a/fs/zfs/zfs.c b/fs/zfs/zfs.c index 4331c16064..1fec96cd5c 100644 --- a/fs/zfs/zfs.c +++ b/fs/zfs/zfs.c @@ -11,6 +11,7 @@ */ #include <common.h> +#include <log.h> #include <malloc.h> #include <linux/stat.h> #include <linux/time.h> |