From: Dmitri Vorobiev Date: Sun, 20 Apr 2008 02:54:33 +0000 (+0400) Subject: x86: array can become static X-Git-Tag: v2.6.26-rc1~1045^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2b4bd9c95a799ce1002e699187f17ddaa754eb1;p=platform%2Fkernel%2Flinux-3.10.git x86: array can become static In arch/x86/kernel/setup_64.c, the standard_io_resources array is needlessly defined as global. This patch makes this variable static. This patch was successfully build-tested using the defconfig for x86_64. Runtime test was performed by booting a 64-bit x86 box up to the shell prompt. Signed-off-by: Dmitri Vorobiev Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index c2ec3dcb..17bdf23 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c @@ -116,7 +116,7 @@ extern int root_mountflags; char __initdata command_line[COMMAND_LINE_SIZE]; -struct resource standard_io_resources[] = { +static struct resource standard_io_resources[] = { { .name = "dma1", .start = 0x00, .end = 0x1f, .flags = IORESOURCE_BUSY | IORESOURCE_IO }, { .name = "pic1", .start = 0x20, .end = 0x21,