OSDN Git Service

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)
commit972727766ee4d9e8b455c09e8dcb1e7dc14c4967
tree07247fafa0427b53f3e43cce03fea026daeab1ca
parentb7340422cc16c5deff100812f38114bb5ec81203
MIPS: Fix CONFIG_OF_EARLY_FLATTREE=n builds

Configurations with CONFIG_OF_EARLY_FLATTREE=n fail to build since
commit 7784cac69735 ("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: 7784cac69735 ("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