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: 1021934 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=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-tegra-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="cG/y3GtH"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43Yvww2khyz9sDL for ; Wed, 9 Jan 2019 01:37:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728112AbfAHOhT (ORCPT ); Tue, 8 Jan 2019 09:37:19 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:33092 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727764AbfAHOhT (ORCPT ); Tue, 8 Jan 2019 09:37:19 -0500 Received: by mail-lf1-f66.google.com with SMTP id i26so3105025lfc.0 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=nSUYOST17/gUzSyTP9WtWLfyuhIRTYjKGhqzB1vUO9jLJgfmLDgZWPi0yLQbffI90R 6rKjdV7eSs3QYbWFDXnFF8stemBLLMWMCDOH02TYb5/C6OWQDq+gdIyQnqNRdX/Hh3az 4dIufcYf1PVEWMmYH98NuLJUcbx8ZNOpVr/pF4JjjFiqK/oz9bHkTuF7ZNZ1zZ3Rg9Xc Oxjl0Lgto6iUcSJX+j6viNW7BUF5cSk9MCZoNv+mHjD5i9pEi/yor88YclkowsS4uH+q ksJujKdMgJj4VRCEYHD/iAI1rxT9ORd+FTeeZyh3jbXun6b1Aj+R8qodQ0tKcMLhgqUq FDFw== X-Gm-Message-State: AJcUukdu6qDohxgKlVouUztC5potZ89MXlu0RvVUg8IQFgI+wWFeXZKg mRyeW+KLgCbgj86J+NcVrIiSEw== X-Google-Smtp-Source: ALg8bN5O0A8rq3+PM6IGcCnWxv7Mt2n9O+1RG1R0Wo68Acrha1X0TgxTj3m6j/LXeZO6vcybg9t4NA== 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-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@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 Acked-by: Thierry Reding --- 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;