[Skiboot] [PATCH] flash: Fix compilation error

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Fri Jun 26 15:52:25 AEST 2015


On gcc v4.9.2 we are hitting below compiliation error.

[CC]  core/flash.o
	core/flash.c: In function ‘flash_find_subpartition’:
	core/flash.c:421:3: error: implicit declaration of function ‘ecc_buffer_size_minus_ecc’ [-Werror=implicit-function-declaration]
	partsize = ecc_buffer_size_minus_ecc(*total_size);
		      ^
	core/flash.c:486:4: error: implicit declaration of function ‘ecc_size’ [-Werror=implicit-function-declaration]
	*start += ecc_size(offset);
			      ^
	core/flash.c: In function ‘flash_load_resource’:
	core/flash.c:580:3: error: implicit declaration of function ‘ecc_buffer_size_check’ [-Werror=implicit-function-declaration]
	if (ecc_buffer_size_check(part_size)) {
					    ^
Probably Commit 7c4cea4a introduced this issue.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
CC: Jeremy Kerr <jk at ozlabs.org>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/flash.c b/core/flash.c
index f2c70e7..746db6f 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -23,7 +23,7 @@
 #include <libflash/libflash.h>
 #include <libflash/libffs.h>
 #include <libflash/blocklevel.h>
-#include <ecc.h>
+#include <libflash/ecc.h>
 
 struct flash {
 	bool			registered;
-- 
2.1.0



More information about the Skiboot mailing list