]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Fix CONFIG_OF_EARLY_FLATTREE=n builds
authorPaul Burton <paul.burton@mips.com>
Sat, 12 Oct 2019 20:43:37 +0000 (20:43 +0000)
committerPaul Burton <paul.burton@mips.com>
Sat, 12 Oct 2019 20:44:23 +0000 (13:44 -0700)
commit3b956126c5ed0e0fd180943224b5d7fe33168493
tree07247fafa0427b53f3e43cce03fea026daeab1ca
parente036307d9fa8dea53d9607ed66e7dfebfb58cb9a
MIPS: Fix CONFIG_OF_EARLY_FLATTREE=n builds

Configurations with CONFIG_OF_EARLY_FLATTREE=n fail to build since
commit f430d78f5282 ("MIPS: cmdline: Clean up boot_command_line
initialization") because of_scan_flat_dt() & of_scan_flat_dt() are not
defined in these configurations. Fix this by #ifdef'ing the affected
code...

Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: f430d78f5282 ("MIPS: cmdline: Clean up boot_command_line initialization")
Reported-by: kbuild test robot <lkp@intel.com>
Cc: linux-mips@vger.kernel.org
arch/mips/kernel/setup.c