Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp964112ybb; Wed, 8 Apr 2020 13:28:52 -0700 (PDT) X-Google-Smtp-Source: APiQypKucUMK+7aUzpglaEoh0u22yo0sIsjUuSJHzmTQDJqaxNaUVmaqlLlbyRwVu9XikwXakAft X-Received: by 2002:aca:dc08:: with SMTP id t8mr3738308oig.135.1586377731859; Wed, 08 Apr 2020 13:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586377731; cv=none; d=google.com; s=arc-20160816; b=YPywezI4GoGzBZnoJVzOYK/R93my+cRyWBR0B10TX2BtlwJQLdu8oHusyUEgQzKIMA bdrN9H4NesF4on5iYr5pHobQANpzlrU0pdEgpjfMfygoB7X2fVSJvcDaYYNMjpdldhUe B8d4oRKs4Ef/5n0glhBrK7rrl8cJ4kUep0isU6WQxfre9rM5qZSNwl88OUfICWgwCfVx ojTEGD9/cBtLI1v60o/WvtbdTD322jgXa7BurwWiHPSt385YY2+8MFINVk4SNMV3AZqe yVfzBbQqvdOcnjsMn3e8lkebntEYzAevyWibba9DKgE4uxtd653e4M56fPFcwZgsGkLG aQYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pzxb/1C6F7uufqTTF4YHYahtvmcIN/p0URGzakaToig=; b=wn0pczPGExaTsIZCe16ulvQUyFI1Purqp3YMyLxBrurRVysHbO/4XCtPV3dlDzTj3/ QPe3moRp3SmZ/tM7+DaN6nU3yFVi8q+MqHQRIq8/Hamx/+LpR1OtWtmhkZ6o55KURflA k0Kf3/5fskpTAXn2Xv/ThezHz7Iir8qcs49KJlIuQ2iio452Nyl4AaKIshFHmQnwZW5I q39WcPEehcNqOtH5cBYT7mGZNuhZhe/4OCG7+QOGPOhKNshNeVrT5KMW+8wAfAGBTejV zoPzgjzIdovZbhx+P0h3d8igSiT5DwkQweBVnfVzd5BF/nkkG6PG5fmHYWiUFdKNz7LX kS+g== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si3153809ots.121.2020.04.08.13.28.39; Wed, 08 Apr 2020 13:28:51 -0700 (PDT) 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 S1728775AbgDHTAu (ORCPT + 99 others); Wed, 8 Apr 2020 15:00:50 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:37607 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726730AbgDHTAt (ORCPT ); Wed, 8 Apr 2020 15:00:49 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPA (Nemesis) id 1N33ZD-1jAeuX3IBJ-013QLf; Wed, 08 Apr 2020 21:00:44 +0200 From: Arnd Bergmann To: Thierry Reding , Jonathan Hunter Cc: Arnd Bergmann , Thierry Reding , linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] memory: tegra: avoid unused function warnings Date: Wed, 8 Apr 2020 21:00:30 +0200 Message-Id: <20200408190043.532711-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:vxi0ZoZ/gTKClwkqlSDz5/fhno22l9gBMFUMDwqFhI+YG00xmiG KeD3ufvZ6WWsY8hidN6p95Dk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Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The suspend/resume functions have no callers depending on configuration, so they must be marked __maybe_unused to avoid these harmless warnings: drivers/memory/tegra/tegra186.c:1578:12: error: 'tegra186_mc_resume' defined but not used [-Werror=unused-function] 1578 | static int tegra186_mc_resume(struct device *dev) | ^~~~~~~~~~~~~~~~~~ drivers/memory/tegra/tegra186.c:1573:12: error: 'tegra186_mc_suspend' defined but not used [-Werror=unused-function] 1573 | static int tegra186_mc_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~ Fixes: 177602b00641 ("memory: tegra: Add system sleep support") Signed-off-by: Arnd Bergmann --- drivers/memory/tegra/tegra186.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/tegra/tegra186.c b/drivers/memory/tegra/tegra186.c index 5d53f11ca7b6..e25c954dde2e 100644 --- a/drivers/memory/tegra/tegra186.c +++ b/drivers/memory/tegra/tegra186.c @@ -1570,12 +1570,12 @@ static const struct of_device_id tegra186_mc_of_match[] = { }; MODULE_DEVICE_TABLE(of, tegra186_mc_of_match); -static int tegra186_mc_suspend(struct device *dev) +static int __maybe_unused tegra186_mc_suspend(struct device *dev) { return 0; } -static int tegra186_mc_resume(struct device *dev) +static int __maybe_unused tegra186_mc_resume(struct device *dev) { struct tegra186_mc *mc = dev_get_drvdata(dev); -- 2.26.0