[coreboot] New patch to review for coreboot: d6691e3 fixed cbfs_find_file() type mismatch

David Griffith (dave@661.org) gerrit at coreboot.org
Fri Jul 27 12:19:07 CEST 2012

David Griffith (dave at 661.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1371


commit d6691e3f393334bf3faedbc7b931f39d168bda2c
Author: David Griffith <dave at 661.org>
Date:   Fri Jul 27 02:26:54 2012 -0700

    fixed cbfs_find_file() type mismatch
    Change-Id: I630000d4466d1cadc8519ad2cc9a4e840e2685e8
    Signed-off-by: David Griffith <dave at 661.org>
 payloads/libpayload/include/cbfs_core.h |    2 +-
 payloads/libpayload/libcbfs/cbfs_core.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/payloads/libpayload/include/cbfs_core.h b/payloads/libpayload/include/cbfs_core.h
index 70368f8..66df50e 100644
--- a/payloads/libpayload/include/cbfs_core.h
+++ b/payloads/libpayload/include/cbfs_core.h
@@ -172,7 +172,7 @@ struct cbfs_file *cbfs_find(const char *name);
 void *cbfs_get_file(const char *name);
 /* returns pointer to file data inside CBFS after if type is correct */
-void *cbfs_find_file(const char *name, int type);
+struct cbfs_stage *cbfs_find_file(const char *name, int type);
 /* returns 0 on success, -1 on failure */
 int cbfs_decompress(int algo, void *src, void *dst, int len);
diff --git a/payloads/libpayload/libcbfs/cbfs_core.c b/payloads/libpayload/libcbfs/cbfs_core.c
index 4bf755b..9468fce 100644
--- a/payloads/libpayload/libcbfs/cbfs_core.c
+++ b/payloads/libpayload/libcbfs/cbfs_core.c
@@ -137,7 +137,7 @@ void *cbfs_get_file(const char *name)
 	return (void*)CBFS_SUBHEADER(file);
-void *cbfs_find_file(const char *name, int type)
+struct cbfs_stage *cbfs_find_file(const char *name, int type)
 	struct cbfs_file *file = cbfs_find(name);

More information about the coreboot mailing list