diff options
author | Dmitri Vorobiev <dmitri.vorobiev@gmail.com> | 2008-04-19 22:54:33 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:35:46 -0400 |
commit | a2b4bd9c95a799ce1002e699187f17ddaa754eb1 (patch) | |
tree | 3f5ab57914b285b1f7ac06f4117c98ad9cbf8a0a /arch/x86/kernel/setup_64.c | |
parent | f3b14a32db9a74f2bbda980bc95cd4b1f136d80a (diff) |
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 <dmitri.vorobiev@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup_64.c')
-rw-r--r-- | arch/x86/kernel/setup_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c index c2ec3dcb6b99..17bdf2343095 100644 --- a/arch/x86/kernel/setup_64.c +++ b/arch/x86/kernel/setup_64.c | |||
@@ -116,7 +116,7 @@ extern int root_mountflags; | |||
116 | 116 | ||
117 | char __initdata command_line[COMMAND_LINE_SIZE]; | 117 | char __initdata command_line[COMMAND_LINE_SIZE]; |
118 | 118 | ||
119 | struct resource standard_io_resources[] = { | 119 | static struct resource standard_io_resources[] = { |
120 | { .name = "dma1", .start = 0x00, .end = 0x1f, | 120 | { .name = "dma1", .start = 0x00, .end = 0x1f, |
121 | .flags = IORESOURCE_BUSY | IORESOURCE_IO }, | 121 | .flags = IORESOURCE_BUSY | IORESOURCE_IO }, |
122 | { .name = "pic1", .start = 0x20, .end = 0x21, | 122 | { .name = "pic1", .start = 0x20, .end = 0x21, |