From patchwork Wed Nov 29 10:18:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 842515 X-Patchwork-Delegate: yamada.m@jp.panasonic.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="phbEj5sQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3ymxN56THtz9sBd for ; Wed, 29 Nov 2017 21:19:17 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 51962C21EC9; Wed, 29 Nov 2017 10:19:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id C48F8C21E1E; Wed, 29 Nov 2017 10:19:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1A9EDC21E31; Wed, 29 Nov 2017 10:18:58 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id 06A8EC21E1E for ; Wed, 29 Nov 2017 10:18:57 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id vATAIL9M029681; Wed, 29 Nov 2017 19:18:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com vATAIL9M029681 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511950701; bh=Dbn0WGTD7Zc9nAcYO1trPyTqoMMtFTHaDLK27uTl4/A=; h=From:To:Cc:Subject:Date:From; b=phbEj5sQ6cQPLnkMyyoGWiCA1b1rvzSCEkrP8Y5wVTL7TvDSpGxkO7CG1PbpRf+l0 tbv5sPvflP4jMkvJVKvgprEVJci3GEh3cyGYWCa0XY0bI9ZeboSFr5ExkoE0zdeOyl /R+nUWA9hTY7fzrj5GKzJsB2Kv/S4546rNevvGaY/6cG6A+RyCHHEjwTreUXdhG6ve imzxByE3jHZC2Hh3Fl0YO7hquXwl8yQYyONHIWhMsM9sJdg6dhCH4YfJodQTeHYgwA Skm589pUXtn7/DY9ZaWt+e2MI+5ahqso3I3IzhHpk9eQpcaHmRhg+UdkM2iR08KFhE 8Sfeu8iqp1h7A== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 29 Nov 2017 19:18:18 +0900 Message-Id: <1511950698-9322-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Scott Wood , Scott Wood Subject: [U-Boot] [PATCH] mtd: nand: denali: remove bogus __maybe_unused X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" denali_setup_data_interface() is always used. I put __maybe_unused for a temporal use, then forgot to delete it. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index b116d3a..7a87adc 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -938,7 +938,7 @@ static int denali_erase(struct mtd_info *mtd, int page) return irq_status & INTR__ERASE_COMP ? 0 : NAND_STATUS_FAIL; } -static int __maybe_unused denali_setup_data_interface(struct mtd_info *mtd, int chipnr, +static int denali_setup_data_interface(struct mtd_info *mtd, int chipnr, const struct nand_data_interface *conf) { struct denali_nand_info *denali = mtd_to_denali(mtd);