x86: array can become static
authorDmitri Vorobiev <dmitri.vorobiev@gmail.com>
Sun, 20 Apr 2008 02:54:33 +0000 (06:54 +0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 15:35:46 +0000 (17:35 +0200)
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 <dmitri.vorobiev@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_64.c

index c2ec3dcb6b991304633ed138098e974fc9ff3ff5..17bdf2343095df5e8ddfeb4d20a1a06bf7d3d8b9 100644 (file)
@@ -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,