[Skiboot] [PATCH v2 19/25] sparse: libflash_debug is unused
Cédric Le Goater
clg at fr.ibm.com
Thu Feb 26 00:04:54 AEDT 2015
Let's wrap it with __SKIBOOT__ to avoid the warning. libflash_debug is
still being used by libflash in userspace, eg. pflash and opal-prd.
Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
Suggested-by: Joel Stanley <joel at jms.id.au>
---
libflash/libflash.c | 2 ++
1 file changed, 2 insertions(+)
Index: skiboot.git/libflash/libflash.c
===================================================================
--- skiboot.git.orig/libflash/libflash.c
+++ skiboot.git/libflash/libflash.c
@@ -40,7 +40,9 @@ struct flash_chip {
void *smart_buf; /* Buffer for smart writes */
};
+#ifndef __SKIBOOT__
bool libflash_debug;
+#endif
int fl_read_stat(struct spi_flash_ctrl *ct, uint8_t *stat)
{
More information about the Skiboot
mailing list