Skip to content

devices: this function takes 3 arguments but 2 arguments were supplied #435

@peppergrayxyz

Description

@peppergrayxyz

Build fails on aarch64/riscv64 (#429):

arch_memory_regions takes 3 arguments but 2 arguments were supplied

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
--> src/arch/src/aarch64/linux/regs.rs:156:36
 |
156 |         let (_mem_info, regions) = arch_memory_regions(layout::FDT_MAX_SIZE + 0x1000, 0);
 |                                    ^^^^^^^^^^^^^^^^^^^---------------------------------- argument #3 of type `Option<usize>` is missing
 |
note: function defined here
--> src/arch/src/aarch64/mod.rs:41:8
 |
41  | pub fn arch_memory_regions(
 |        ^^^^^^^^^^^^^^^^^^^
...
44  |     firmware_size: Option<usize>,
 |     ----------------------------
help: provide the argument
 |
156 |         let (_mem_info, regions) = arch_memory_regions(layout::FDT_MAX_SIZE + 0x1000, 0, /* Option<usize> */);
 |                                                                                        +++++++++++++++++++++

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions