Re: [PATCH V8 04/20] mmc: queue: Factor out mmc_queue_alloc_bounce_bufs()

Ulf Hansson
2016-11-30T08:16:26Z

On 29 November 2016 at 11:09, Adrian Hunter <adrian.hunter@intel.com> wrote:
> In preparation for supporting a queue of requests, factor out
> mmc_queue_alloc_bounce_bufs().
>
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Reviewed-by: Harjani Ritesh <riteshh@codeaurora.org>
> ---
> drivers/mmc/card/queue.c | 45 +++++++++++++++++++++++++++------------------
> 1 file changed, 27 insertions(+), 18 deletions(-)
>
> diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c
> index 010888d8d97c..4497a218c245 100644
> --- a/drivers/mmc/card/queue.c
> +++ b/drivers/mmc/card/queue.c
> @@ -186,6 +186,31 @@ static void mmc_queue_setup_discard(struct request_queue *q,
> queue_flag_set_unlocked(QUEUE_FLAG_SECERASE, q);
> }
>
> +static bool mmc_queue_alloc_bounce_bufs(struct mmc_queue *mq,
> + unsigned int bouncesz)

This causes a compiler warning about unused function, in case when
CONFIG_MMC_BLOCK_BOUNCE is unset.
No worries, I fixed it and amended the patch.

[...]

Kind regards
Uffe