瀏覽代碼

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>
Dmitri Vorobiev 17 年之前
父節點
當前提交
a2b4bd9c95
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/kernel/setup_64.c

+ 1 - 1
arch/x86/kernel/setup_64.c

@@ -116,7 +116,7 @@ extern int root_mountflags;
 
 
 char __initdata command_line[COMMAND_LINE_SIZE];
 char __initdata command_line[COMMAND_LINE_SIZE];
 
 
-struct resource standard_io_resources[] = {
+static struct resource standard_io_resources[] = {
 	{ .name = "dma1", .start = 0x00, .end = 0x1f,
 	{ .name = "dma1", .start = 0x00, .end = 0x1f,
 		.flags = IORESOURCE_BUSY | IORESOURCE_IO },
 		.flags = IORESOURCE_BUSY | IORESOURCE_IO },
 	{ .name = "pic1", .start = 0x20, .end = 0x21,
 	{ .name = "pic1", .start = 0x20, .end = 0x21,