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: 119949 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2862376qgn; Wed, 29 Nov 2017 02:19:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMb1UQRwtCFmLbvL1p7YfOPwbUw7NxpVFVS3QT6XjlMHpua5/YwykvCa8QVXc/cEcUe+2Wd+ X-Received: by 10.80.138.156 with SMTP id j28mr6910723edj.111.1511950750910; Wed, 29 Nov 2017 02:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511950750; cv=none; d=google.com; s=arc-20160816; b=imHtkUBSDUaz5eRpgeynYwEaeSrbDkpHiC6XNeUylKESE7nxn4l01AEOCsvFS2Qfs6 fp4NDwIWf9dFa1OSSq053ePRE8Z01wExpV7tjd6cUpluj/9+/B+cEkHbUb4jAL+djrgE rRT7K+uD9ssuRCMZpr+G7Lh81BPxEX7Wta/xtVBGhcxpyh8YnDxD7f1gjJWH3l0Ig3u/ VXlUmwe8yOHBMXTR2xeJL16eqtwieWZ5x1HvJvilhK0Rn0b9vu6z7shOxc04byKQep6T DbPCBbsd1BRIZgs4Z5IiDBkGI7JW43Lqz4aMQ8T9T6s/gZ8ijxXSW7F2QtD4/cZsacko bcjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=DHDeY46xkNNM/g8YAtVqB6Fi95tfTzUGbAD7Y1hHkZs=; b=N1dkLW5ijNMAbXnRgqpxQnwFkIq0H0FaH6JYJBGsi/IS8zbz50He/jDPn4hVwvU02t rNz0UWecSQA7F03uXvL5kga+THrSqPVSKTmwGV60x9a3BijHGghG6rtKIN5GpjvsLMvS GvEb8l1GC2DV2/w5db6D1TRHrmKHehkuA8QLSsk1OhVCGrnezOsylCXEw8eMfY/G3PXn 96qsLYdooIuQDRtyx1CYhV0FjCGutWaVFUWUOlMNhaZkA88KLqE3dRnFjdItY07VLzvC Ac1Dz4TbWIZL8SBonmKuSNuDjRZZNgkhD6SZe2ze2dyfM2U94bbk4g7q323e70q3SSCS Twbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=phbEj5sQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id u10si1427293edf.527.2017.11.29.02.19.10; Wed, 29 Nov 2017 02:19:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=phbEj5sQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 71C31C21E97; Wed, 29 Nov 2017 10:19:02 +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);