Andy Shevchenko 9b09927c0c 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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221124184824.9548-1-andriy.shevchenko@linux.intel.com
2022-12-02 14:57:13 +01:00
..
2022-04-11 18:04:27 +02:00
2022-11-27 09:08:40 -08:00
2022-04-14 14:09:43 +02:00
2022-10-09 08:56:54 -07:00
2022-11-16 10:49:06 -08:00
2022-07-25 10:32:32 +02:00
2021-12-11 09:09:45 +01:00
2022-10-10 12:00:45 -07:00