[Skiboot] [PATCH 19/25] sparse: libflash_debug is unused

Joel Stanley joel at jms.id.au
Wed Feb 25 12:08:34 AEDT 2015


On Tue, Feb 24, 2015 at 9:44 PM, Cédric Le Goater <clg at fr.ibm.com> wrote:
> Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
> ---
>  libflash/libflash.c |    2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/libflash/libflash.c b/libflash/libflash.c
> index 5badbffde9a8..2cc89777caae 100644
> --- a/libflash/libflash.c
> +++ b/libflash/libflash.c
> @@ -40,8 +40,6 @@ struct flash_chip {
>         void                    *smart_buf;     /* Buffer for smart writes */
>  };
>
> -bool libflash_debug;

This is used when using libflash in userspace, eg. pflash and
opal-prd. If you want to avoid the warning then perhaps wrap it in
#ifndef __SKIBOOT__.

Cheers,

Joel

>  int fl_read_stat(struct spi_flash_ctrl *ct, uint8_t *stat)
>  {
>         return ct->cmd_rd(ct, CMD_RDSR, false, 0, stat, 1);
> --
> 1.7.10.4
>
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot


More information about the Skiboot mailing list