Skip to content

Commit 17fbe00

Browse files
hormsaegl
authored andcommitted
[IA64] Guard elfcorehdr_addr with #if CONFIG_PROC_FS
Access to elfcorehdr_addr needs to be guarded by #if CONFIG_PROC_FS as well as the existing #if guards. Fixes the following build problem: arch/ia64/hp/common/built-in.o: In function `sba_init':arch/ia64/hp/common/sba_iommu.c:2043: undefined reference to `elfcorehdr_addr' :arch/ia64/hp/common/sba_iommu.c:2043: undefined reference to `elfcorehdr_addr' Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 64135fa commit 17fbe00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/ia64/hp/common/sba_iommu.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,8 @@ sba_init(void)
20342034
if (!ia64_platform_is("hpzx1") && !ia64_platform_is("hpzx1_swiotlb"))
20352035
return 0;
20362036

2037-
#if defined(CONFIG_IA64_GENERIC) && defined(CONFIG_CRASH_DUMP)
2037+
#if defined(CONFIG_IA64_GENERIC) && defined(CONFIG_CRASH_DUMP) && \
2038+
defined(CONFIG_PROC_FS)
20382039
/* If we are booting a kdump kernel, the sba_iommu will
20392040
* cause devices that were not shutdown properly to MCA
20402041
* as soon as they are turned back on. Our only option for

0 commit comments

Comments
 (0)