Re: [PATCH 1/2] mips: fix __node_distances undefined error on loongson3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks.
Reviewed-by: Huacai Chen <chenhc@xxxxxxxxxx>

On Thu, Nov 13, 2014 at 7:08 PM, James Cowgill <James.Cowgill@xxxxxxxxxx> wrote:
> export the __node_distances symbol in the loongson3 numa code to fix the
> build error:
>
>   Building modules, stage 2.
>   MODPOST 221 modules
> ERROR: "__node_distances" [drivers/block/nvme.ko] undefined!
> scripts/Makefile.modpost:90: recipe for target '__modpost' failed
>
> when building the kernel with:
>  CONFIG_CPU_LOONGSON3=y
>  CONFIG_NUMA=y
>  CONFIG_BLK_DEV_NVME=m
>
> Signed-off-by: James Cowgill <James.Cowgill@xxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx> # v3.17+
> Reviewed-by: James Hogan <james.hogan@xxxxxxxxxx>
> ---
>  arch/mips/loongson/loongson-3/numa.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/mips/loongson/loongson-3/numa.c b/arch/mips/loongson/loongson-3/numa.c
> index 37ed184..42323bc 100644
> --- a/arch/mips/loongson/loongson-3/numa.c
> +++ b/arch/mips/loongson/loongson-3/numa.c
> @@ -33,6 +33,7 @@
>
>  static struct node_data prealloc__node_data[MAX_NUMNODES];
>  unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
> +EXPORT_SYMBOL(__node_distances);
>  struct node_data *__node_data[MAX_NUMNODES];
>  EXPORT_SYMBOL(__node_data);
>
> --
> 2.1.3
>
>





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux