diff --git a/debian/changelog b/debian/changelog index 725b19884..6f6035283 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ linux (4.10~rc6-1~exp2) UNRELEASED; urgency=medium * [s390x] Un-revert upstream change moving exports to assembly sources (fixes FTBFS) + * [sparc64] topology_64.h: Fix condition for including cpudata.h + (might fix FTBFS) -- Ben Hutchings Wed, 01 Feb 2017 22:13:06 +0000 diff --git a/debian/patches/bugfix/sparc/sparc-topology_64.h-fix-condition-for-including-cpudata.h.patch b/debian/patches/bugfix/sparc/sparc-topology_64.h-fix-condition-for-including-cpudata.h.patch new file mode 100644 index 000000000..040f1ed80 --- /dev/null +++ b/debian/patches/bugfix/sparc/sparc-topology_64.h-fix-condition-for-including-cpudata.h.patch @@ -0,0 +1,30 @@ +From: Ben Hutchings +Date: Wed, 01 Feb 2017 22:45:06 +0000 +Subject: sparc: topology_64.h: Fix condition for including cpudata.h + +We currently define macros referring to cpu_data if CONFIG_SMP is +defined, but only include the declaration if CONFIG_NUMA is defined. + +Fixes: 541cc39433a8 ("sparc: fix a building error reported by kbuild") +Signed-off-by: Ben Hutchings +--- +--- a/arch/sparc/include/asm/topology_64.h ++++ b/arch/sparc/include/asm/topology_64.h +@@ -4,7 +4,6 @@ + #ifdef CONFIG_NUMA + + #include +-#include + + static inline int cpu_to_node(int cpu) + { +@@ -42,6 +41,9 @@ int __node_distance(int, int); + #endif /* !(CONFIG_NUMA) */ + + #ifdef CONFIG_SMP ++ ++#include ++ + #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) + #define topology_core_id(cpu) (cpu_data(cpu).core_id) + #define topology_core_cpumask(cpu) (&cpu_core_sib_map[cpu]) diff --git a/debian/patches/series b/debian/patches/series index 715f5fe6a..35648a126 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -47,6 +47,7 @@ debian/fanotify-taint-on-use-of-fanotify_access_permissions.patch # Arch bug fixes bugfix/x86/asoc-intel-select-dw_dmac_core-since-it-s-mandatory.patch +bugfix/sparc/sparc-topology_64.h-fix-condition-for-including-cpudata.h.patch # Arch features features/mips/MIPS-increase-MAX-PHYSMEM-BITS-on-Loongson-3-only.patch