Commit 48d37216 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc64: fix sparse warnings in int_64.c

Fix following warnings:
init_64.c:798:5: warning: symbol 'numa_cpu_lookup_table' was not declared. Should it be static?
init_64.c:799:11: warning: symbol 'numa_cpumask_lookup_table' was not declared. Should it be static?

The warnings were present with an allnoconfig
Fix so the variables are only declared if CONFIG_NEED_MULTIPLE_NODES is defined.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b6abce1f
...@@ -795,11 +795,11 @@ struct node_mem_mask { ...@@ -795,11 +795,11 @@ struct node_mem_mask {
static struct node_mem_mask node_masks[MAX_NUMNODES]; static struct node_mem_mask node_masks[MAX_NUMNODES];
static int num_node_masks; static int num_node_masks;
#ifdef CONFIG_NEED_MULTIPLE_NODES
int numa_cpu_lookup_table[NR_CPUS]; int numa_cpu_lookup_table[NR_CPUS];
cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES]; cpumask_t numa_cpumask_lookup_table[MAX_NUMNODES];
#ifdef CONFIG_NEED_MULTIPLE_NODES
struct mdesc_mblock { struct mdesc_mblock {
u64 base; u64 base;
u64 size; u64 size;
...@@ -888,17 +888,21 @@ static void __init allocate_node_data(int nid) ...@@ -888,17 +888,21 @@ static void __init allocate_node_data(int nid)
static void init_node_masks_nonnuma(void) static void init_node_masks_nonnuma(void)
{ {
#ifdef CONFIG_NEED_MULTIPLE_NODES
int i; int i;
#endif
numadbg("Initializing tables for non-numa.\n"); numadbg("Initializing tables for non-numa.\n");
node_masks[0].mask = node_masks[0].val = 0; node_masks[0].mask = node_masks[0].val = 0;
num_node_masks = 1; num_node_masks = 1;
#ifdef CONFIG_NEED_MULTIPLE_NODES
for (i = 0; i < NR_CPUS; i++) for (i = 0; i < NR_CPUS; i++)
numa_cpu_lookup_table[i] = 0; numa_cpu_lookup_table[i] = 0;
cpumask_setall(&numa_cpumask_lookup_table[0]); cpumask_setall(&numa_cpumask_lookup_table[0]);
#endif
} }
#ifdef CONFIG_NEED_MULTIPLE_NODES #ifdef CONFIG_NEED_MULTIPLE_NODES
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment