aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorValdis Kletnieks <valdis.kletnieks@vt.edu>2019-08-08 16:32:27 +0200
committerBorislav Petkov <bp@suse.de>2019-08-08 17:44:02 +0200
commitb6ff24f7b5101101ff897dfdde3f37924e676bc2 (patch)
tree2041bfdfd50649ce25a004145235aef1eb8e2bf4 /arch
parentRAS: Fix prototype warnings (diff)
downloadlinux-dev-b6ff24f7b5101101ff897dfdde3f37924e676bc2.tar.xz
linux-dev-b6ff24f7b5101101ff897dfdde3f37924e676bc2.zip
RAS: Build debugfs.o only when enabled in Kconfig
In addition, the 0day bot reported this build error: >> drivers/ras/debugfs.c:10:5: error: redefinition of 'ras_userspace_consumers' int ras_userspace_consumers(void) ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/ras/debugfs.c:3:0: include/linux/ras.h:14:19: note: previous definition of 'ras_userspace_consumers' was here static inline int ras_userspace_consumers(void) { return 0; } ^~~~~~~~~~~~~~~~~~~~~~~ for a riscv-specific .config where CONFIG_DEBUG_FS is not set. Fix all that by making debugfs.o depend on that define. [ bp: Rewrite commit message. ] Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Tony Luck <tony.luck@intel.com> Cc: linux-edac@vger.kernel.org Cc: x86@kernel.org Link: http://lkml.kernel.org/r/7053.1565218556@turing-police
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions