From patchwork Tue Jan 8 14:37:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 154974 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4952422jaa; Tue, 8 Jan 2019 06:37:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN6B/FRe7h0Eh9gbMXIyb7ViJD6zGJZs7MTm7IfPdCUoylK1WaMkpGOTjUgw2qWUerkmaVZq X-Received: by 2002:a63:3e05:: with SMTP id l5mr1645408pga.96.1546958240910; Tue, 08 Jan 2019 06:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546958240; cv=none; d=google.com; s=arc-20160816; b=nH4xztfyJsSDCfk7cXy0GEpBQ5MyY2LOefwIxMc5F2gcQLwsZfO6BGma/XR/AIO5On KJ4P3GrPwQ4YGhr450XKy/nbAzQYzsZTyuFaFLycU2qAnNphjdAtxA70Xv5+cBkNlv2u jnGpZF5gP0PbB4la9suB6siA/pP1PZzZ1E5jWdeNgIIY1M6tfGstKU0g7iz9RQS2FLOk YJOzlCMqzdg55RrSlZNqdQc6t1075tO7VK25ovmBEK02LIGpRzZBvrKGoVnbRe1Y9AbR IIqV3DNii+eEFq94/pCCGBOMZ9quB+tSglTt+WPUuSjUdOH0s2NhMPkx8zbeRdm5RRFP 0g0Q== 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:dkim-signature; bh=pTGRl9dd/QDz3icFhVgKltyUomrjK5khoIaVsDynIT4=; b=yE+AhNLOZlSdZpIpxDDwDwtVrjmNVpHlmXJuDwt8UaKBepM4gBYhvBke7RIOstnpcQ JSoXqbtYFh4/slncxuM3Sxux6Tkyin/Kr5zRAhXDXFWfxIhwmwAlPNPS/z1z6vLqGQA6 Y6t5gV98MzA6fiFw38Tl4ujxdXDvUKFiY+WoJ8Wj5WVdnuH/zzvKceVwn/CaMP2SUOey NiAxWMgbbuSSnct/7cebw/ujVO3gSf5dVAGpVlGjRtvrTSxAuwYPZi5wZC20RnnWnSGU zBhdIGH5EZGXkg7SJ9MEz4HKLOXgf6fOHdv8UFVBXjE2JwOOITuNUwMnE98IZJBD4pid YmAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cG/y3GtH"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si64608422pgh.172.2019.01.08.06.37.20; Tue, 08 Jan 2019 06:37:20 -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; dkim=pass header.i=@linaro.org header.s=google header.b="cG/y3GtH"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbfAHOhT (ORCPT + 31 others); Tue, 8 Jan 2019 09:37:19 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41978 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfAHOhT (ORCPT ); Tue, 8 Jan 2019 09:37:19 -0500 Received: by mail-lf1-f68.google.com with SMTP id c16so3066478lfj.8 for ; Tue, 08 Jan 2019 06:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pTGRl9dd/QDz3icFhVgKltyUomrjK5khoIaVsDynIT4=; b=cG/y3GtHyp02GOqUBjThMBXgyBTbyTxI7wvWCFbIOp0uipkDAaMggEN8PfxlHfzYZW /vPOPE9Jzb5Q+u654VlgI/cyBekO6C6LjzChBKfLO5q8JKmJrBifF5Whv5nSNS1J4nO3 HRroOkRGjcn+qzHz3eZcwy7sG2O1Rh560cd/Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pTGRl9dd/QDz3icFhVgKltyUomrjK5khoIaVsDynIT4=; b=k+Ee2b151I09xa5ix8bgLFLa6Q3IXsLq9UFAbgzQvSsTvBXfVnLRbJ52qExo8OWgGN 0ALQcKiYX1OQQ2P/v1smQKP4TIgUNPI9T6WehN8Uxe9zZD5ZPpjp2PEjyJFvTzir7ufV 0s6qloWml9TJiqmkKMtRFV04ePNp1arQpPLavtEuMJVvPbHu6qGMsgcYQsnfD+b6UIzp GfSalogtdE2UJgN+MmvBJY9NZr3XMcNZ+IWpZ8FsCBjF6fiPM9rWgfcBFlcIHyavBhv5 7/Xr5O9xPq4Z+0lqBQ6gY9i7pbnefKpx6tNCYz00Cbp/CKHrsm7g+eif/UjssYNsx1wq tTXw== X-Gm-Message-State: AJcUukffzDVxnWz7wL90GcWvfLwlOKGz+2SKoiPEo9+3Szm+6lLlI94K PPLJFNzoh99QPvS/bsabzvj6VA== X-Received: by 2002:a19:c014:: with SMTP id q20mr1136336lff.16.1546958236745; Tue, 08 Jan 2019 06:37:16 -0800 (PST) Received: from localhost (c-573670d5.07-21-73746f28.bbcust.telenor.se. [213.112.54.87]) by smtp.gmail.com with ESMTPSA id o17sm12964665lff.77.2019.01.08.06.37.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Jan 2019 06:37:16 -0800 (PST) From: Anders Roxell To: jassisinghbrar@gmail.com, thierry.reding@gmail.com, jonathanh@nvidia.com Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Anders Roxell Subject: [PATCH] mailbox: tegra-hsp: mark PM functions as __maybe_unused Date: Tue, 8 Jan 2019 15:37:13 +0100 Message-Id: <20190108143713.15120-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without CONFIG_PM_SLEEP, we get annoying warnings about unused functions: drivers/mailbox/tegra-hsp.c:782:12: warning: ‘tegra_hsp_resume’ defined but not used [-Wunused-function] static int tegra_hsp_resume(struct device *dev) ^~~~~~~~~~~~~~~~ Mark them as __maybe_unused to shut up the warning and silently drop the functions without having to add ugly #ifdefs. Fixes: 9a63f0f40599 ("mailbox: tegra-hsp: Add suspend/resume support") Signed-off-by: Anders Roxell --- drivers/mailbox/tegra-hsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.19.2 Acked-by: Thierry Reding diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index e443f6a2ec4b..b9ce823f79ab 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -779,7 +779,7 @@ static int tegra_hsp_probe(struct platform_device *pdev) return 0; } -static int tegra_hsp_resume(struct device *dev) +static __maybe_unused int tegra_hsp_resume(struct device *dev) { struct tegra_hsp *hsp = dev_get_drvdata(dev); unsigned int i;