lkml.org 
[lkml]   [2013]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 45/93] ARM: 7742/1: topology: export cpu_topology
    Date
    3.5.7.15 -stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Arnd Bergmann <arnd@arndb.de>

    commit 92bdd3f5eba299b33c2f4407977d6fa2e2a6a0da upstream.

    The cpu_topology symbol is required by any driver using the topology
    interfaces, which leads to a couple of build errors:

    ERROR: "cpu_topology" [drivers/net/ethernet/sfc/sfc.ko] undefined!
    ERROR: "cpu_topology" [drivers/cpufreq/arm_big_little.ko] undefined!
    ERROR: "cpu_topology" [drivers/block/mtip32xx/mtip32xx.ko] undefined!

    The obvious solution is to export this symbol.

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Acked-by: Will Deacon <will.deacon@arm.com>
    Cc: Nicolas Pitre <nico@linaro.org>
    Cc: Vincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    [ luis: backport to 3.5: adjust context ]
    Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
    ---
    arch/arm/kernel/topology.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
    index 8200dea..140c817 100644
    --- a/arch/arm/kernel/topology.c
    +++ b/arch/arm/kernel/topology.c
    @@ -13,6 +13,7 @@

    #include <linux/cpu.h>
    #include <linux/cpumask.h>
    +#include <linux/export.h>
    #include <linux/init.h>
    #include <linux/percpu.h>
    #include <linux/node.h>
    @@ -42,6 +43,7 @@
    #define MPIDR_LEVEL2_SHIFT 16

    struct cputopo_arm cpu_topology[NR_CPUS];
    +EXPORT_SYMBOL_GPL(cpu_topology);

    const struct cpumask *cpu_coregroup_mask(int cpu)
    {
    --
    1.8.1.2


    \
     
     \ /
      Last update: 2013-06-18 15:21    [W:4.121 / U:0.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site