Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4817756imu; Tue, 8 Jan 2019 06:52:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN524KNPlgqX8bKu6ayFoU1wztycpY6If5hmNEHi8EvjBIQPT9XiNcVii9ORi8cZPNCKi6DA X-Received: by 2002:a17:902:b68d:: with SMTP id c13mr2089242pls.102.1546959166286; Tue, 08 Jan 2019 06:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546959166; cv=none; d=google.com; s=arc-20160816; b=tAfm8xmPTezAyVxwb3i4zW5ojZKy4fNic4Cn1uhA+pLgNX0DzYFl3c1LSrCeBIJFSv K1WAc5HSO515lQw0QmMJSAab4V2f0nt22seY544rIO+R/fP9Vkaa+uNowzuDnbzP4Eo/ bbsSKngfFwVlFVCO32bmYMuy7VDz3dkmk/9X25wT66v/nBTW3iJFnNdgG4Aibaao2gP4 T5Gurnrp5xP1Maasr3qMiXQSAy837E93FDK7Nn+Ke1MNmVmYFIMBne9aSNaB+HP70N8v qfRz1lNdUPCybgg4zJfVM5UyXSCtjEdHK4+X3SZeuxC2lU4gskyQdaNf0Y3VO56/a1Pc QPmA== 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 f127si64005913pfc.69.2019.01.08.06.52.30; Tue, 08 Jan 2019 06:52:46 -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 S1728604AbfAHOhT (ORCPT + 99 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) 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; -- 2.19.2