aboutsummaryrefslogtreecommitdiff
path: root/arch/openrisc
diff options
context:
space:
mode:
authorGravatar Stafford Horne <shorne@gmail.com> 2021-01-12 21:29:24 +0900
committerGravatar Stafford Horne <shorne@gmail.com> 2021-01-14 09:34:00 +0900
commite6dc077b7dffdc01d9c45a5a1f4caf1e51c756a3 (patch)
tree98988102cf81c99fb170a1502f6574d146aa6bbc /arch/openrisc
parentLinux 5.11-rc3 (diff)
downloadlinux-e6dc077b7dffdc01d9c45a5a1f4caf1e51c756a3.tar.gz
linux-e6dc077b7dffdc01d9c45a5a1f4caf1e51c756a3.tar.bz2
linux-e6dc077b7dffdc01d9c45a5a1f4caf1e51c756a3.zip
soc: litex: Fix compile warning when device tree is not configured
The test robot reported: drivers/soc/litex/litex_soc_ctrl.c:143:34: warning: unused variable 'litex_soc_ctrl_of_match' [-Wunused-const-variable] static const struct of_device_id litex_soc_ctrl_of_match[] = { ^ 1 warning generated. As per the random config device tree is not configured causing the litex_soc_ctrl_of_match match list to not be used. This would usually mean that we cannot even use this driver as it depends on device tree, but as we also have COMPILE_TEST configured we allow it. Fix the warning by surrounding the unused variable with an ifdef CONFIG_OF. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc')
0 files changed, 0 insertions, 0 deletions