From 402d3292bbd6e04ffefb1bdf7ab61f3bfc36c44a Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 10 Apr 2010 19:38:15 +0800 Subject: [PATCH] NOR/DRIVERS: review scope of functions Add "static" qualifier to private functions. Remove unused "extern" in src/ecosboard.c Signed-off-by: Antonio Borneo --- src/ecosboard.c | 3 --- src/flash/nor/drivers.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ecosboard.c b/src/ecosboard.c index 4249e1b8c..1e3152e76 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -99,9 +99,6 @@ static bool writeLog = true; char hwaddr[512]; - -extern struct flash_driver *flash_drivers[]; - #ifdef CYGPKG_PROFILE_GPROF #include diff --git a/src/flash/nor/drivers.c b/src/flash/nor/drivers.c index 7f71d83a8..3e09a0045 100644 --- a/src/flash/nor/drivers.c +++ b/src/flash/nor/drivers.c @@ -44,7 +44,7 @@ extern struct flash_driver faux_flash; * The list of built-in flash drivers. * @todo Make this dynamically extendable with loadable modules. */ -struct flash_driver *flash_drivers[] = { +static struct flash_driver *flash_drivers[] = { &lpc2000_flash, &lpc288x_flash, &lpc2900_flash,