of: Move of_skipped_node_table within #ifdef CONFIG_OF_ADDRESS
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 22 Aug 2023 07:57:22 +0000 (13:27 +0530)
committerRob Herring <robh@kernel.org>
Tue, 22 Aug 2023 17:53:11 +0000 (12:53 -0500)
commitef04d2801c5d239b83932f8ce97af1d4a1ec1cf7
treec9fd9edd501a18810896585eb1cd1eb1ec910645
parentae23f14141d9174d9c8daff65ee84603a3feb6ba
of: Move of_skipped_node_table within #ifdef CONFIG_OF_ADDRESS

The `struct of_skipped_node_table` is used only when CONFIG_OF_ADDRESS
is defined, move it within the #ifdef/#endif to avoid warnings on
configurations where CONFIG_OF_ADDRESS isn't defined.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308212037.YopffWSU-lkp@intel.com/
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/73dea4f4b389359a8beadbc77b00eb26853f9ab5.1692691032.git.viresh.kumar@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/platform.c