lkml.org 
[lkml]   [2005]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] srat: initdata section references

srat's node_to_pxm() references pxm2node[] after init. so pxm2node[]
should not be __initdata.

Error: ./arch/x86_64/mm/srat.o .text refers to 0000000000000008 R_X86_64_32S .init.data
Error: ./arch/x86_64/mm/srat.o .text refers to 0000000000000015 R_X86_64_32S .init.data

Signed-off-by: Randy Dunlap <rddunlap@osdl.org>

diffstat:=
arch/x86_64/mm/srat.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./arch/x86_64/mm/srat.c~srat_sections ./arch/x86_64/mm/srat.c
--- ./arch/x86_64/mm/srat.c~srat_sections 2005-02-27 12:54:05.127144000 -0800
+++ ./arch/x86_64/mm/srat.c 2005-02-27 14:46:03.202841256 -0800
@@ -23,7 +23,7 @@ static struct acpi_table_slit *acpi_slit
static nodemask_t nodes_parsed __initdata;
static nodemask_t nodes_found __initdata;
static struct node nodes[MAX_NUMNODES] __initdata;
-static __u8 pxm2node[256] __initdata = { [0 ... 255] = 0xff };
+static __u8 pxm2node[256] = { [0 ... 255] = 0xff };

static __init int setup_node(int pxm)
{

---
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.177 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site