summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-11-03 19:26:00 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2024-11-03 19:26:00 +0100
commitb9021de3ec2f39074aae92ed69c3823e30cd8cdb (patch)
tree79acfa6d4ee7ffa55ed794d31faef2df9b518725 /arch/x86
parentMerge tag 'timers-urgent-2024-11-03' of git://git.kernel.org/pub/scm/linux/ke... (diff)
parentx86/amd_nb: Fix compile-testing without CONFIG_AMD_NB (diff)
downloadlinux-b9021de3ec2f39074aae92ed69c3823e30cd8cdb.tar.xz
linux-b9021de3ec2f39074aae92ed69c3823e30cd8cdb.zip
Merge tag 'x86-urgent-2024-11-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Thomas Gleixner: "A trivial compile test fix for x86: When CONFIG_AMD_NB is not set a COMPILE_TEST of an AMD specific driver fails due to a missing inline stub. Add the stub to cure it" * tag 'x86-urgent-2024-11-03' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/amd_nb: Fix compile-testing without CONFIG_AMD_NB
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/amd_nb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/include/asm/amd_nb.h b/arch/x86/include/asm/amd_nb.h
index 6f3b6aef47ba..d0caac26533f 100644
--- a/arch/x86/include/asm/amd_nb.h
+++ b/arch/x86/include/asm/amd_nb.h
@@ -116,7 +116,10 @@ static inline bool amd_gart_present(void)
#define amd_nb_num(x) 0
#define amd_nb_has_feature(x) false
-#define node_to_amd_nb(x) NULL
+static inline struct amd_northbridge *node_to_amd_nb(int node)
+{
+ return NULL;
+}
#define amd_gart_present(x) false
#endif