Message ID | 20170531081950.2022014-1-arnd@arndb.de |
---|---|
State | Accepted |
Commit | 05b6c2313e91ac65915bde5e55bc6f194bfe22f3 |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp215637qge; Wed, 31 May 2017 01:20:45 -0700 (PDT) X-Received: by 10.84.217.21 with SMTP id o21mr597473pli.50.1496218845838; Wed, 31 May 2017 01:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496218845; cv=none; d=google.com; s=arc-20160816; b=tuIyvpV78AkfTrs7VOsYsOKUuEcbWxfybaFFK29NddxHcuvShXhiiWVJvDxebxPdhG jSO4rB2I1AkQTUDf7cqMj/kxw4P3Jc6z80yk1H6ZqWfl2SxXuGMjhMeisT69dYJeCq0U 7qZkgq4LeDvewXiFNq49sZx39Nk66ugHVuoL8g5EFAy6KWf4BLO/OMfOsLUvNZecWW8I HeWSWofAIN8R2pwLwwq0Pe1z0EhhMdoSRtJtOA/MhjbY4KNUBBScOCMu/TiCURRd7b6U T3lOj5qASdKEyZWof7a4QOT8RUnX/AHESBEEmv5E51D2q2Itpa5XtzxfBPU722jGD8y+ VLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=n/yTEIMZM7iUanQsjXY2sWJII5WHxTICYnxk51JiJbY=; b=ssG6McpZXySn1y74oqNq8HGfcTV8yO1UoamUl2VoEfUGtvy/tYC8V40qRqCQVzrh/j +JVNeHSFvqfgfTFpuoHRn1RBzumiSpGhJqbbFUT1r5iLb3dMu7FSs1jlT1Ze+Z8y7Ok6 EzoRclMXi+q+rBrn0MLJFCCKzinI6SJ8AWpsmAw2+qi8s7M6uNAmKHSOkeXIh95IdW8w 08cJeN2fqJLBpkBSmtP9Sj89zjVFppcS4keCmazQajc0ZVi0nUvPt86OjPJdMgC3BTPO h/1+usHFq+l2awCHr7gNVJn/h8ORFcLiuft41eX66qu/hCi1TKDs5+7p5eWXr2nVMY8d ZRgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 88si34828919pld.278.2017.05.31.01.20.45 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 May 2017 01:20:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=n/yTEIMZM7iUanQsjXY2sWJII5WHxTICYnxk51JiJbY=; b=UcT gxuTmkBprHoR6VGwV216WGMUZpywBQotoLxDQ1XhD/G8Wc/1wiLHafg8w5DDJbfJusUWmxKC31CyB HDRuHrraYwpgmp2fEKxzfpOCrI9nEo49f905EMS5TtD4qMrwlKoGNVwk5LtmS602mvzIOMFI8ZnVm cdwaDmMvclJ5z70YjHn8fPQPzGilPmNrxo8jTOYzYJuROwzkgYtJ4iXfGPt6/LS5QwAgVO2zPDopU jn9XFC5qrUiQ/gvSZ3suJsoBGr527r1fID8sv0IlzDclsQRZSecSdSIbT36t5alIsx5FP6MG//H6M 1xKgoH24KbYPeSEcIFPBdiovjeA2AmQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dFyrp-00017t-6v; Wed, 31 May 2017 08:20:33 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFyrl-000863-2a for linux-mtd@lists.infradead.org; Wed, 31 May 2017 08:20:31 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MVEDt-1dQ1UD07tF-00YQ34; Wed, 31 May 2017 10:19:52 +0200 From: Arnd Bergmann <arnd@arndb.de> To: Boris Brezillon <boris.brezillon@free-electrons.com> Subject: [PATCH] mtd: nand: atmel: mark resume function __maybe_unused Date: Wed, 31 May 2017 10:19:26 +0200 Message-Id: <20170531081950.2022014-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kUnr7H1Q8Dy2LZaWtktLqiLHgUlSGOp3iCixzsss3u2AMrGDMUG cuWKlAkHrfq47anSo9wocRSVHnjMNCB0kp0BEI4ZnrkKUrS11NKI3Rzxox+Zc1APHicrDtA /13E17VdVl1ZlXStthytK8I8SPE5Pa5sdFNeAMHSOQ9P3woc+iQS4Vk1KXrgOOz0F0QxOU8 LMCP/pd0tTydyBk31CTWQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:f4GUfG4VBy8=:AZoimnbS2A9DU2DJBUp+J/ g3bFW3oxaFuJvNU23tT/aCcp/f2/DtuJM2tfibkIObe/rO26uz3xAvGWnNaBSeJfdZdWrnWcE Oex4nKoCdDKt4Iuwl8MfqcDjGos3HUdtYJ5ZPBRzd3oU9tHzw+6hOnXkF8mXbXNOb7ZW9Jrvr WNJ6T/oOPU4Ku146hYYz2tBKeyLw4Quvxt32r5xuNZFZi5H2vbngGe2dsI+jqGZRREcJnSYT+ dVFYzRf+nHlI66KDs72GzM66Fnl3vX1cn8COk/KHFeE3jglxtykIFx23y5eYaLet8x6DHKAd1 GwMuQZ1tWUaA05SmbNQSW3J98FjEY4eLsYQ1J7DN6W7IRwx2ng2eYlTxb4fbg9+oq1V0WOKrN Pk/Ly/ZrAMI4qDFpKk2ybLL2BWAbEn/Xjx8GV+qm26H6xdQXrf3hMpB0wo0aFXA6UX+2HeXp0 L8WuXOhhabAzYmtn2QboEi6dwMRCktVd2u8Og3iuqRb7lcwRiBR6iwkpVn0a3oofphgOtmqvQ ULRuxSJx7iOXpvsCBf2kpRFbdGdsMXIWKyaF+E4zsRPRNcKJqL0//nCAaRXZXPQZiCbxvIyJo 78lUSAIVomXtComNfN61VtMYvlJgF2ysN5+W4qpF19mZHgk2Gn/ug6doATo/7YKC4sFaS1Liu hq6v50pnd3OMi5hMl6hdr3kdf7SV3dQjx16zHzRk1+1ePmbahqOIbgn7kR9LHm+yadHM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170531_012029_469243_0D9DA14D X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [212.227.126.133 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.133 listed in list.dnswl.org] -2.8 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.133 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: Arnd Bergmann <arnd@arndb.de>, Josh Wu <rainyfeeling@outlook.com>, Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>, Nicolas Ferre <nicolas.ferre@microchip.com>, Wenyou Yang <wenyou.yang@atmel.com>, Marek Vasut <marek.vasut@gmail.com>, linux-mtd@lists.infradead.org, Richard Weinberger <richard@nod.at>, Brian Norris <computersforpeace@gmail.com>, David Woodhouse <dwmw2@infradead.org>, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nand-controller.c index 6055831c953f..d24e67b95167 100644 --- a/drivers/mtd/nand/atmel/nand-controller.c +++ b/drivers/mtd/nand/atmel/nand-controller.c @@ -2510,7 +2510,7 @@ static int atmel_nand_controller_remove(struct platform_device *pdev) return nc->caps->ops->remove(nc); } -static int atmel_nand_controller_resume(struct device *dev) +static __maybe_unused int atmel_nand_controller_resume(struct device *dev) { struct atmel_nand_controller *nc = dev_get_drvdata(dev); struct atmel_nand *nand;
The newly added suspend/resume support causes a harmless warning: drivers/mtd/nand/atmel/nand-controller.c:2513:12: error: 'atmel_nand_controller_resume' defined but not used [-Werror=unused-function] This shuts up the warning with a __maybe_unused annotation. Fixes: b107007a7114 ("mtd: nand: atmel: Add PM ops") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/mtd/nand/atmel/nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/