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: 101439 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp528352obb; Wed, 30 Nov 2016 13:08:21 -0800 (PST) X-Received: by 10.84.217.143 with SMTP id p15mr75891532pli.77.1480540101543; Wed, 30 Nov 2016 13:08:21 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t27si65854351pfj.212.2016.11.30.13.08.21; Wed, 30 Nov 2016 13:08:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758776AbcK3VIB (ORCPT + 25 others); Wed, 30 Nov 2016 16:08:01 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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) {