Message ID | 1424869494-10886-1-git-send-email-clg@fr.ibm.com |
---|---|
State | Accepted |
Headers | show |
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) {
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@fr.ibm.com> Suggested-by: Joel Stanley <joel@jms.id.au> --- libflash/libflash.c | 2 ++ 1 file changed, 2 insertions(+)