diff options
author | Andy Shevchenko <[email protected]> | 2022-11-24 20:48:24 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2022-12-02 14:57:13 +0100 |
commit | 9b09927c0cdec4d4e75f7f9e621eaec179a888fd (patch) | |
tree | 3541e7965ba1fbe11e15bebe6ce4744afacd5207 /drivers/fpga/fpga-mgr.c | |
parent | e3998434da4f5b1f57f8d6a8a9f8502ee3723bae (diff) |
x86/of: Remove unused early_init_dt_add_memory_arch()
Recently objtool started complaining about dead code in the object files,
in particular
vmlinux.o: warning: objtool: early_init_dt_scan_memory+0x191: unreachable instruction
when CONFIG_OF=y.
Indeed, early_init_dt_scan() is not used on x86 and making it compile (with
help of CONFIG_OF) will abrupt the code flow since in the middle of it
there is a BUG() instruction.
Remove the pointless function.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions