Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2144
-gerrit
commit 4d27afacecaaf99ab41ef544b0f060494ca17cbf Author: Stefan Reinauer reinauer@chromium.org Date: Mon Jan 14 10:20:15 2013 -0800
libpayload: Style fixes
Change-Id: Ic3164fbffd8da6bd9d506d80e425ad89efc0f1af Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- payloads/libpayload/libcbfs/cbfs.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/payloads/libpayload/libcbfs/cbfs.c b/payloads/libpayload/libcbfs/cbfs.c index fd4cfb2..026b73c 100644 --- a/payloads/libpayload/libcbfs/cbfs.c +++ b/payloads/libpayload/libcbfs/cbfs.c @@ -47,11 +47,13 @@ uint32_t romstart(void); uint32_t romend(void);
#include <arch/virtual.h> -static uint32_t host_virt_to_phys(void *addr) { +static uint32_t host_virt_to_phys(void *addr) +{ return virt_to_phys(addr); }
-static void *host_phys_to_virt(uint32_t addr) { +static void *host_phys_to_virt(uint32_t addr) +{ return phys_to_virt(addr); } #undef virt_to_phys @@ -78,11 +80,13 @@ uint32_t romend(void)
static uint32_t ram_cbfs_offset;
-static uint32_t ram_virt_to_phys(void *addr) { +static uint32_t ram_virt_to_phys(void *addr) +{ return (uint32_t)addr - ram_cbfs_offset; }
-static void *ram_phys_to_virt(uint32_t addr) { +static void *ram_phys_to_virt(uint32_t addr) +{ return (void*)addr + ram_cbfs_offset; }
@@ -94,7 +98,7 @@ void setup_cbfs_from_ram(void* start, uint32_t size) phys_to_virt = ram_phys_to_virt; }
-void setup_cbfs_from_flash() +void setup_cbfs_from_flash(void) { virt_to_phys = host_virt_to_phys; phys_to_virt = host_phys_to_virt;