]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.165/s390-mm-fix-error-__node_distance-undefined.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 4.4.165 / s390-mm-fix-error-__node_distance-undefined.patch
1 From de727d65177775a60c567b2e3935f6f964f80de9 Mon Sep 17 00:00:00 2001
2 From: "Justin M. Forbes" <jforbes@fedoraproject.org>
3 Date: Wed, 31 Oct 2018 13:02:03 -0500
4 Subject: s390/mm: Fix ERROR: "__node_distance" undefined!
5
6 [ Upstream commit a541f0ebcc08ed8bc0cc492eec9a86cb280a9f24 ]
7
8 Fixes:
9 ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined!
10 make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
11 make: *** [Makefile:1275: modules] Error 2
12 + exit 1
13
14 Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
15 Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
16 Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 Signed-off-by: Sasha Levin <sashal@kernel.org>
18 ---
19 arch/s390/numa/numa.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 diff --git a/arch/s390/numa/numa.c b/arch/s390/numa/numa.c
23 index 43f32ce60aa3..734f56d774bb 100644
24 --- a/arch/s390/numa/numa.c
25 +++ b/arch/s390/numa/numa.c
26 @@ -47,6 +47,7 @@ int __node_distance(int a, int b)
27 {
28 return mode->distance ? mode->distance(a, b) : 0;
29 }
30 +EXPORT_SYMBOL(__node_distance);
31
32 int numa_debug_enabled;
33
34 --
35 2.17.1
36