diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-10-30 02:08:07 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-30 02:08:07 +0000 |
commit | 7943fe61df9e72721a8ceddb0120e4826552d5f9 (patch) | |
tree | 21073df83a4ff79a90ddb6fc8ed534a5ccde11aa /src/northbridge/amd/amdk8 | |
parent | 8f6354b6d3d00a7041f3c770569e797da74acd04 (diff) |
Remove some warnings from the tyan s2895.
Declare superio functions to be static and remove duplicates.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd/amdk8')
-rw-r--r-- | src/northbridge/amd/amdk8/amdk8_acpi.c | 3 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/raminit.c | 2 | ||||
-rw-r--r-- | src/northbridge/amd/amdk8/raminit_f.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/northbridge/amd/amdk8/amdk8_acpi.c b/src/northbridge/amd/amdk8/amdk8_acpi.c index e7c9b5c0fc..b5062bd092 100644 --- a/src/northbridge/amd/amdk8/amdk8_acpi.c +++ b/src/northbridge/amd/amdk8/amdk8_acpi.c @@ -45,6 +45,7 @@ acknowledgement of AMD's proprietary rights in them. #include <cpu/x86/msr.h> #include <cpu/amd/mtrr.h> #include <cpu/amd/amdk8_sysconf.h> +#include "amdk8_acpi.h" //it seems some functions can be moved arch/i386/boot/acpi.c @@ -102,7 +103,7 @@ struct acpi_srat_mem_state { unsigned long current; }; -void set_srat_mem(void *gp, struct device *dev, struct resource *res) +static void set_srat_mem(void *gp, struct device *dev, struct resource *res) { struct acpi_srat_mem_state *state = gp; unsigned long basek, sizek; diff --git a/src/northbridge/amd/amdk8/raminit.c b/src/northbridge/amd/amdk8/raminit.c index 1b040aed6b..22b672f0e9 100644 --- a/src/northbridge/amd/amdk8/raminit.c +++ b/src/northbridge/amd/amdk8/raminit.c @@ -1080,7 +1080,7 @@ static unsigned long order_chip_selects(const struct mem_controller *ctrl) return (tom & ~0xff000000) << 15; } -unsigned long memory_end_k(const struct mem_controller *ctrl, int max_node_id) +static unsigned long memory_end_k(const struct mem_controller *ctrl, int max_node_id) { unsigned node_id; unsigned end_k; diff --git a/src/northbridge/amd/amdk8/raminit_f.c b/src/northbridge/amd/amdk8/raminit_f.c index dc3f14bde2..a7feb61bf3 100644 --- a/src/northbridge/amd/amdk8/raminit_f.c +++ b/src/northbridge/amd/amdk8/raminit_f.c @@ -1253,7 +1253,7 @@ static unsigned long order_chip_selects(const struct mem_controller *ctrl) return (tom & ~0xff000000) << (27-10); } -unsigned long memory_end_k(const struct mem_controller *ctrl, int max_node_id) +static unsigned long memory_end_k(const struct mem_controller *ctrl, int max_node_id) { unsigned node_id; unsigned end_k; |