]> git.hungrycats.org Git - linux/commitdiff
[PATCH] namespace pollution in Dell SMM driver
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Jan 2003 12:12:50 +0000 (04:12 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 13 Jan 2003 12:12:50 +0000 (04:12 -0800)
From:  Arnd Bergmann <arnd@bergmann-dalldorf.de>

  The i8k driver has global variables named 'force' and 'power_status'
  that pollute the name space. This makes them static.

drivers/char/i8k.c

index 02a2d8867b20f040200e2c01358e785ad943e2af..d2305841c67679902ce42cf10677036e3f0a8001 100644 (file)
@@ -66,8 +66,8 @@ static char product_name [48] = "?";
 static char bios_version [4]  = "?";
 static char serial_number[16] = "?";
 
-int force = 0;
-int power_status = 0;
+static int force = 0;
+static int power_status = 0;
 
 MODULE_AUTHOR("Massimo Dal Zotto (dz@debian.org)");
 MODULE_DESCRIPTION("Driver for accessing SMM BIOS on Dell laptops");