aboutsummaryrefslogtreecommitdiff
path: root/libflash
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-02-25 14:04:54 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-03 14:15:44 +1100
commitb54631ed4c45df5da61fb77b1af672389ddd8c3d (patch)
treef739cbb015246ffb827734935a7b82ae5bebbe2e /libflash
parentac0a72f82db63681fb957ca1d0f616ef7fc6b3bb (diff)
downloadskiboot-b54631ed4c45df5da61fb77b1af672389ddd8c3d.zip
skiboot-b54631ed4c45df5da61fb77b1af672389ddd8c3d.tar.gz
skiboot-b54631ed4c45df5da61fb77b1af672389ddd8c3d.tar.bz2
sparse: libflash_debug is unused
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> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r--libflash/libflash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libflash/libflash.c b/libflash/libflash.c
index 31a347b..8be73b2 100644
--- a/libflash/libflash.c
+++ b/libflash/libflash.c
@@ -45,7 +45,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)
{