]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fs: ext4: Remove unused parameter from ext4_mount
authorSean Anderson <seanga2@gmail.com>
Wed, 8 Nov 2023 17:51:09 +0000 (12:51 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 23:53:09 +0000 (18:53 -0500)
The part_length parameter is not used. Remove it.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/spl/spl_ext.c
env/ext4.c
fs/ext4/ext4_common.c
fs/ext4/ext4fs.c
include/ext4fs.h

index af836ca15b8897de463db1ce442bc70f3d149366..2f960956c441ada3fe71fcd14bc667d5234646c5 100644 (file)
@@ -29,7 +29,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image,
 
        ext4fs_set_blk_dev(block_dev, &part_info);
 
-       err = ext4fs_mount(part_info.size);
+       err = ext4fs_mount();
        if (!err) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
                printf("%s: ext4fs mount err - %d\n", __func__, err);
@@ -84,7 +84,7 @@ int spl_load_image_ext_os(struct spl_image_info *spl_image,
 
        ext4fs_set_blk_dev(block_dev, &part_info);
 
-       err = ext4fs_mount(part_info.size);
+       err = ext4fs_mount();
        if (!err) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
                printf("%s: ext4fs mount err - %d\n", __func__, err);
index 47e05a489193103d2599da89616d5aba8557bd08..da26705b8dafbb9a5343b3d55da0ace6783d5be3 100644 (file)
@@ -77,7 +77,7 @@ static int env_ext4_save_buffer(env_t *env_new)
        dev = dev_desc->devnum;
        ext4fs_set_blk_dev(dev_desc, &info);
 
-       if (!ext4fs_mount(info.size)) {
+       if (!ext4fs_mount()) {
                printf("\n** Unable to use %s %s for saveenv **\n",
                       ifname, dev_and_part);
                return 1;
@@ -160,7 +160,7 @@ static int env_ext4_load(void)
        dev = dev_desc->devnum;
        ext4fs_set_blk_dev(dev_desc, &info);
 
-       if (!ext4fs_mount(info.size)) {
+       if (!ext4fs_mount()) {
                printf("\n** Unable to use %s %s for loading the env **\n",
                       ifname, dev_and_part);
                goto err_env_relocate;
index f50de7c089e6333ecf564cb73b72df61311aaf32..ea9b92298ba759f3cb7f13cf57e3c335a944808a 100644 (file)
@@ -2368,7 +2368,7 @@ fail:
        return -1;
 }
 
-int ext4fs_mount(unsigned part_length)
+int ext4fs_mount(void)
 {
        struct ext2_data *data;
        int status;
index 4c89152ce4ad88004fd9e2a1fe0ce4b09afbd2b9..3b12ec54fa2dda0514551f0c569f8b3cf38c568e 100644 (file)
@@ -233,7 +233,7 @@ int ext4fs_probe(struct blk_desc *fs_dev_desc,
 {
        ext4fs_set_blk_dev(fs_dev_desc, fs_partition);
 
-       if (!ext4fs_mount(fs_partition->size)) {
+       if (!ext4fs_mount()) {
                ext4fs_close();
                return -1;
        }
index dd66d27f776387f1d14aba181dfbfea9eab74562..d96edfd0576cefaacbd7900d7287caf420f1ce78 100644 (file)
@@ -147,7 +147,7 @@ int ext4fs_create_link(const char *target, const char *fname);
 struct ext_filesystem *get_fs(void);
 int ext4fs_open(const char *filename, loff_t *len);
 int ext4fs_read(char *buf, loff_t offset, loff_t len, loff_t *actread);
-int ext4fs_mount(unsigned part_length);
+int ext4fs_mount(void);
 void ext4fs_close(void);
 void ext4fs_reinit_global(void);
 int ext4fs_ls(const char *dirname);