aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-16 16:36:17 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-19 16:22:24 +0200
commita5dc9f1be86ad419a07b95640addf871a3c03ec6 (patch)
tree1f64cb328a07c2d6d9423dd8115a2c85a5515343 /src
parent89d17bb08718afc293bdab8b226c1557cf2deab6 (diff)
downloadcoreboot-a5dc9f1be86ad419a07b95640addf871a3c03ec6.tar.gz
coreboot-a5dc9f1be86ad419a07b95640addf871a3c03ec6.tar.xz
coreboot-a5dc9f1be86ad419a07b95640addf871a3c03ec6.zip
Remove useless extern gnvs declaration in smi handlers.
Change-Id: I3047badea8d4f61155f4e4f7d3d078426948162a Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10228 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/apple/macbook21/smihandler.c5
-rw-r--r--src/mainboard/gigabyte/ga-b75m-d3h/mainboard_smi.c5
-rw-r--r--src/mainboard/gigabyte/ga-b75m-d3v/mainboard_smi.c5
-rw-r--r--src/mainboard/lenovo/t420s/smihandler.c5
-rw-r--r--src/mainboard/lenovo/t430s/smihandler.c5
-rw-r--r--src/mainboard/lenovo/t520/smihandler.c5
-rw-r--r--src/mainboard/lenovo/t530/smihandler.c5
-rw-r--r--src/mainboard/lenovo/t60/smihandler.c4
-rw-r--r--src/mainboard/lenovo/x201/smihandler.c5
-rw-r--r--src/mainboard/lenovo/x220/smihandler.c5
-rw-r--r--src/mainboard/lenovo/x230/smihandler.c5
-rw-r--r--src/mainboard/lenovo/x60/smihandler.c5
-rw-r--r--src/mainboard/packardbell/ms2290/smihandler.c5
13 files changed, 0 insertions, 64 deletions
diff --git a/src/mainboard/apple/macbook21/smihandler.c b/src/mainboard/apple/macbook21/smihandler.c
index 5c6cd443d..a43ab26e2 100644
--- a/src/mainboard/apple/macbook21/smihandler.c
+++ b/src/mainboard/apple/macbook21/smihandler.c
@@ -29,11 +29,6 @@
#define GPE_EC_SCI 12
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/gigabyte/ga-b75m-d3h/mainboard_smi.c b/src/mainboard/gigabyte/ga-b75m-d3h/mainboard_smi.c
index 35702f087..85409fccb 100644
--- a/src/mainboard/gigabyte/ga-b75m-d3h/mainboard_smi.c
+++ b/src/mainboard/gigabyte/ga-b75m-d3h/mainboard_smi.c
@@ -31,11 +31,6 @@
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <cpu/intel/model_206ax/model_206ax.h>
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/gigabyte/ga-b75m-d3v/mainboard_smi.c b/src/mainboard/gigabyte/ga-b75m-d3v/mainboard_smi.c
index 35702f087..85409fccb 100644
--- a/src/mainboard/gigabyte/ga-b75m-d3v/mainboard_smi.c
+++ b/src/mainboard/gigabyte/ga-b75m-d3v/mainboard_smi.c
@@ -31,11 +31,6 @@
#include <northbridge/intel/sandybridge/sandybridge.h>
#include <cpu/intel/model_206ax/model_206ax.h>
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/t420s/smihandler.c b/src/mainboard/lenovo/t420s/smihandler.c
index 430ad1ba7..8acd989b4 100644
--- a/src/mainboard/lenovo/t420s/smihandler.c
+++ b/src/mainboard/lenovo/t420s/smihandler.c
@@ -36,11 +36,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/t430s/smihandler.c b/src/mainboard/lenovo/t430s/smihandler.c
index 2f690b481..44a39bcf1 100644
--- a/src/mainboard/lenovo/t430s/smihandler.c
+++ b/src/mainboard/lenovo/t430s/smihandler.c
@@ -34,11 +34,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/t520/smihandler.c b/src/mainboard/lenovo/t520/smihandler.c
index 4d874fd2e..0bd0d441d 100644
--- a/src/mainboard/lenovo/t520/smihandler.c
+++ b/src/mainboard/lenovo/t520/smihandler.c
@@ -36,11 +36,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/t530/smihandler.c b/src/mainboard/lenovo/t530/smihandler.c
index 8208fe735..cae590641 100644
--- a/src/mainboard/lenovo/t530/smihandler.c
+++ b/src/mainboard/lenovo/t530/smihandler.c
@@ -36,11 +36,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/t60/smihandler.c b/src/mainboard/lenovo/t60/smihandler.c
index 6e46bfd77..e25d4ce30 100644
--- a/src/mainboard/lenovo/t60/smihandler.c
+++ b/src/mainboard/lenovo/t60/smihandler.c
@@ -31,10 +31,6 @@
#define GPE_EC_SCI 12
#define LVTMA_BL_MOD_LEVEL 0x7af9 /* ATI Radeon backlight level */
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
static void mainboard_smm_init(void)
{
diff --git a/src/mainboard/lenovo/x201/smihandler.c b/src/mainboard/lenovo/x201/smihandler.c
index 35d960574..1bd7766eb 100644
--- a/src/mainboard/lenovo/x201/smihandler.c
+++ b/src/mainboard/lenovo/x201/smihandler.c
@@ -37,11 +37,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/x220/smihandler.c b/src/mainboard/lenovo/x220/smihandler.c
index 8208fe735..cae590641 100644
--- a/src/mainboard/lenovo/x220/smihandler.c
+++ b/src/mainboard/lenovo/x220/smihandler.c
@@ -36,11 +36,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/x230/smihandler.c b/src/mainboard/lenovo/x230/smihandler.c
index 3fbcce7ba..6b946fa68 100644
--- a/src/mainboard/lenovo/x230/smihandler.c
+++ b/src/mainboard/lenovo/x230/smihandler.c
@@ -36,11 +36,6 @@
#define GPE_EC_SCI 1
#define GPE_EC_WAKE 13
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/lenovo/x60/smihandler.c b/src/mainboard/lenovo/x60/smihandler.c
index be6efceaf..c037dfaa5 100644
--- a/src/mainboard/lenovo/x60/smihandler.c
+++ b/src/mainboard/lenovo/x60/smihandler.c
@@ -33,11 +33,6 @@
#define GPE_EC_SCI 12
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");
diff --git a/src/mainboard/packardbell/ms2290/smihandler.c b/src/mainboard/packardbell/ms2290/smihandler.c
index 5cc692b4c..b883872e2 100644
--- a/src/mainboard/packardbell/ms2290/smihandler.c
+++ b/src/mainboard/packardbell/ms2290/smihandler.c
@@ -31,11 +31,6 @@
#include <pc80/mc146818rtc.h>
#include <delay.h>
-/* The southbridge SMI handler checks whether gnvs has a
- * valid pointer before calling the trap handler
- */
-extern global_nvs_t *gnvs;
-
static void mainboard_smm_init(void)
{
printk(BIOS_DEBUG, "initializing SMI\n");