From patchwork Wed Nov 30 21:03:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9454951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CABA76074E for ; Wed, 30 Nov 2016 21:10:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDAF1283E8 for ; Wed, 30 Nov 2016 21:10:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B08ED2849E; Wed, 30 Nov 2016 21:10:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A720283E8 for ; Wed, 30 Nov 2016 21:10:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755098AbcK3VHq (ORCPT ); Wed, 30 Nov 2016 16:07:46 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:60175 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751150AbcK3VGs (ORCPT ); Wed, 30 Nov 2016 16:06:48 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lm4OX-1clFp115EH-00ZdM6; Wed, 30 Nov 2016 22:04:30 +0100 From: Arnd Bergmann To: Ulf Hansson Cc: Arnd Bergmann , Linus Walleij , Adrian Hunter , Jens Axboe , Harjani Ritesh , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: queue: add #ifdef around bounce buffer code Date: Wed, 30 Nov 2016 22:03:59 +0100 Message-Id: <20161130210427.1721327-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:D3Gip70WRmdTs0e7tlJNQPlhyVznMZiwoJnC9zOI8ucznYY24xJ puXVRI9G+DDRP6hoyeLRM634Wfl0LrfuELnhAJQApjgDYlRufwtk/9in5l+yUYwnCOfP5IL R5DGb/knSkrYP90kLIFyGKgfY4u5LwzBXeYxXnkPGdVV3ydJRC48bfx6vWssaNdiB8ADzfi cgFSaPkTrnSpJmiujAANA== X-UI-Out-Filterresults: notjunk:1; V01:K0:APTPQzcstBg=:GG8OYwIrK/VH+XoIH8WXAP X8uV7EEiC2Or/YNF31Ef1dFuT4Zvem6hZa9RlQIwGLyxZ526CFPkFm+MSVTO5IIyyq0xBHAEa cXEC15+Q5H/e295Hy9pUVOMRjUub6RNfnPeErtlD+IaAyVlLAVOUQ5cIL2/CLjrS7RJ7Zw4h2 PAF+QupgzGYrD03VKmQNZUHGYaNmpRsbPpigZ48DpiIeNYtu24GQpNjK16b4WD33exSw/4qTB 6RF03/kGEFHfVrSSrBNnlTkA6WXPglpJ5z/bcoP27LuHN5J+ODG4JUriPxwj+Vh4zla0kZjKg Dyef2RvgkVRMIHmJbqPuXvfOhmIbvmpQf/LDTVWBgkqCfeknkuv+hNS9Ct6oXF2/RIQihjfT6 mxFDBoelxH4NTqdOBEjLSXl0ae2ltxIB3Wv8RAcP1fKzz0AnIAfAmM5YKis90Vslcy2OHnnyh JvNnkpq8JpMJ0iVcxTBqkZiGOVMyd2eVmBXlv+rVYLHveq+P2IrXGIMpxkEyzChuZ+FatZV5J J+IDuQDhJXj6dMi27MmFC+PAFLAVaV2hbzAafJ7UDco1NZ8zv0DcKMjCkqTLpevOwXdUaALI7 jsAC7VATYkiWpbbH3SRTi05kumlIWfKTb8hpamr3Zx/BWOfS/3v76FY2YaM/Ab8KlPHNC1mCI cuKISl8lQkMV6lysRN8EUTlBID4994QH6QOtoIhL4yvCTfzXdq5v2jBmk7m0nDHx2jRo= Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The two functions that got split out from the bounce buffer handling are now unused when CONFIG_MMC_BLOCK_BOUNCE is disabled: mmc/card/queue.c:212:12: error: 'mmc_queue_alloc_bounce_sgs' defined but not used [-Werror=unused-function] mmc/card/queue.c:189:13: error: 'mmc_queue_alloc_bounce_bufs' defined but not used [-Werror=unused-function] This adds a new #ifdef around them. Fixes: 0a6321310492 ("mmc: queue: Factor out mmc_queue_alloc_bounce_bufs()") Signed-off-by: Arnd Bergmann --- drivers/mmc/card/queue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/card/queue.c b/drivers/mmc/card/queue.c index 8d10fab701b6..6ae6bfb8b221 100644 --- a/drivers/mmc/card/queue.c +++ b/drivers/mmc/card/queue.c @@ -186,6 +186,7 @@ static void mmc_queue_setup_discard(struct request_queue *q, queue_flag_set_unlocked(QUEUE_FLAG_SECERASE, q); } +#ifdef CONFIG_MMC_BLOCK_BOUNCE static bool mmc_queue_alloc_bounce_bufs(struct mmc_queue *mq, unsigned int bouncesz) { @@ -226,6 +227,7 @@ static int mmc_queue_alloc_bounce_sgs(struct mmc_queue *mq, return 0; } +#endif static int mmc_queue_alloc_sgs(struct mmc_queue *mq, int max_segs) {