Skip to contentSkip to conversation

arm: double EXPORT_SYMBOL(cpu_online_map);

PATCH Dietmar Hahn 3 participants 5 messages Nov 15, 2013 – Nov 29, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I dont' know the arm architecture but while searching the code I found the following copy failure I think:

Dietmar.

xen/arch/arm/smpboot.c +1 -1
index b836be4..43fb821 100644
@@ -33,7 +33,7 @@
 cpumask_t cpu_online_map;
 EXPORT_SYMBOL(cpu_online_map);
 cpumask_t cpu_present_map;
-EXPORT_SYMBOL(cpu_online_map);
+EXPORT_SYMBOL(cpu_present_map);
 cpumask_t cpu_possible_map;
 EXPORT_SYMBOL(cpu_possible_map);
 
Signature · 1 line
Company details: http://ts.fujitsu.com/imprint.html
#1 lore raw
Quoted 7 lines · Dietmar Hahn

Hi,

I dont' know the arm architecture but while searching the code I found the following copy failure I think:

Dietmar.

Quoted 22 lines
xen/arch/arm/smpboot.c +1 -1
index b836be4..43fb821 100644
@@ -33,7 +33,7 @@
 cpumask_t cpu_online_map;
 EXPORT_SYMBOL(cpu_online_map);
 cpumask_t cpu_present_map;
-EXPORT_SYMBOL(cpu_online_map);
+EXPORT_SYMBOL(cpu_present_map);
 cpumask_t cpu_possible_map;
 EXPORT_SYMBOL(cpu_possible_map);
 
Signature · 7 lines
-- 
Company details: http://ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw
Quoted 11 lines · Stefano Stabellini
Quoted 7 lines · Dietmar Hahn

Hi,

I dont' know the arm architecture but while searching the code I found the following copy failure I think:

Dietmar.

EXPORT_SYMBOL is meaningless in Xen and provided only for compatibility with code taken from Linux. But our smpboot.c is not taken from Linux, I expect we blindly inherited them from the x86 version (which has also long since diverged).

I think we can just nuke them.

Ian.

#3 lore raw
Quoted 11 lines · Ian Campbell
Quoted 10 lines · Stefano Stabellini
Quoted 7 lines · Dietmar Hahn

Hi,

I dont' know the arm architecture but while searching the code I found the following copy failure I think:

Dietmar.

Quoted 8 lines
Quoted 1 line

EXPORT_SYMBOL is meaningless in Xen and provided only for compatibility with code taken from Linux. But our smpboot.c is not taken from Linux, I expect we blindly inherited them from the x86 version (which has also long since diverged).

I think we can just nuke them.

Like so:

8>-------------

Quoted 1 line

From 5f5cc43a23b89f095b00f654c698e85875d01998 Mon Sep 17 00:00:00 2001

From: Ian Campbell <[email protected]>
Date: Thu, 21 Nov 2013 10:49:14 +0000
Subject: [PATCH] xen: arm: Remove useless and incorrect EXPORT_SYMBOLS

Dietmar noticed that one of these was incorrect, but in actual fact they are not even used. They are defined as nops in Xen for the benefit of code imported to Linux which ARM's smpboot.c is not.

Just get rid of them.

---
 xen/arch/arm/smpboot.c |    3 ---
 1 file changed, 3 deletions(-)
xen/arch/arm/smpboot.c +0 -3
index 6c90fa6..ff712bb 100644
@@ -31,11 +31,8 @@
 #include <asm/gic.h>
 
 cpumask_t cpu_online_map;
-EXPORT_SYMBOL(cpu_online_map);
 cpumask_t cpu_present_map;
-EXPORT_SYMBOL(cpu_online_map);
 cpumask_t cpu_possible_map;
-EXPORT_SYMBOL(cpu_possible_map);
 
 struct cpuinfo_arm cpu_data[NR_CPUS];
 
Signature · 1 line
1.7.10.4
#4 lore raw
Quoted 30 lines · Ian Campbell
Quoted 11 lines · Ian Campbell
Quoted 10 lines · Stefano Stabellini
Quoted 7 lines · Dietmar Hahn

Hi,

I dont' know the arm architecture but while searching the code I found the following copy failure I think:

Dietmar.

Quoted 8 lines
Quoted 1 line

EXPORT_SYMBOL is meaningless in Xen and provided only for compatibility with code taken from Linux. But our smpboot.c is not taken from Linux, I expect we blindly inherited them from the x86 version (which has also long since diverged).

I think we can just nuke them.

Like so:

8>-------------

From 5f5cc43a23b89f095b00f654c698e85875d01998 Mon Sep 17 00:00:00 2001
From: Ian Campbell <[email protected]>
Date: Thu, 21 Nov 2013 10:49:14 +0000
Subject: [PATCH] xen: arm: Remove useless and incorrect EXPORT_SYMBOLS

Quoted 8 lines

Dietmar noticed that one of these was incorrect, but in actual fact they are not even used. They are defined as nops in Xen for the benefit of code imported to Linux which ARM's smpboot.c is not.

Just get rid of them.

This is so trivial I've just applied it.