1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-07 05:59:18 +01:00
Files
u-boot-megous/drivers
Pali Rohár b4d3b338df mtd: mtdpart: Change size type from fdt_addr_t to fdt_size_t
Set correct type for 3rd argument of ofnode_get_addr_size_index_notrans()
function. It expects fdt_size_t * and not fdt_addr_t *.

When these two types do not have same size then U-Boot throw compile
warning:

    drivers/mtd/mtdpart.c: In function ‘add_mtd_partitions_of’:
    drivers/mtd/mtdpart.c:906:57: warning: passing argument 3 of ‘ofnode_get_addr_size_index_notrans’ from incompatible pointer type [-Wincompatible-pointer-types]
       offset = ofnode_get_addr_size_index_notrans(child, 0, &size);
                                                             ^~~~~
    In file included from include/dm/device.h:13,
                     from include/linux/mtd/mtd.h:26,
                     from include/ubi_uboot.h:28,
                     from drivers/mtd/mtdpart.c:27:
    include/dm/ofnode.h:530:25: note: expected ‘fdt_size_t *’ {aka ‘long long unsigned int *’} but argument is of type ‘fdt_addr_t *’ {aka ‘long unsigned int *’}
                 fdt_size_t *size);
                 ~~~~~~~~~~~~^~~~

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
2022-06-06 17:47:17 -04:00
..
2022-04-25 09:25:00 +02:00
2022-05-02 09:58:13 -04:00
2022-06-06 17:47:16 -04:00
2021-10-05 08:50:15 -04:00
2022-03-30 13:02:55 -04:00
2022-01-13 07:57:49 -05:00
2022-04-28 09:26:44 -04:00
2022-01-13 07:57:49 -05:00
2022-06-06 12:09:12 -04:00
2022-05-20 12:36:48 +02:00
2022-06-06 12:09:12 -04:00
2022-05-02 09:58:13 -04:00
2022-04-11 10:28:04 -04:00
2022-05-03 21:39:22 +02:00
2022-06-06 12:09:12 -04:00
2021-10-01 21:08:18 -04:00
2021-10-31 08:46:44 -04:00