Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp49186ybl; Tue, 7 Jan 2020 13:55:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzDmzMCRybTVC2uTrb7pzUEL7dg0u9cPr6GstPI0oct3sQiQLyfZmmHNHHeDsMZZ91lTIey X-Received: by 2002:a9d:369:: with SMTP id 96mr1714572otv.228.1578434135750; Tue, 07 Jan 2020 13:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578434135; cv=none; d=google.com; s=arc-20160816; b=BtzFsfIJulCxIrY3xD2yC6VTcEoyW1qBJz6+Eei3DNHxiDryi8XYfTt/57F+w2FyLQ iEeH1k4gkHdW7HXDWaKDIEvOPVs7ykfQ7yhJhujQ+l/gtHwx+j3IMG0CP2ra27IAOCD+ w4DrGYB+lbSiewzknSDEztPvCOCnVAoxWC6E1R67qSfqGoRX/7r7KCAmGTtirc1fFZZH Cu25CBeC1vbllx6y0CweAbvy+osHkXTKwnblVwERf4mGry3qXjuJWt9orvjAmSTfCpDF Rcgtuj8NvgwXxBuKLF+Y2xiPCKd2/QQwXzmh4KvdN9hiXB5v7hCQGvx11NxByA5BUAye wavA== 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=ndwe8S6XpgjJprZOyn1AbtT+kTTrN3i5pBONJ5ZJWMY=; b=RQB2qhfJO1iePPLtLXAeKNaC1E/3T/FZF8FkQnE9laMvlDwPNcwvjKg9zox8BghLWD tcTtk2IdtniSWUPB9LFtlaaLPHJpk4fXQ3T74dSe02zg2E45Uf3CrM3plbN4jNACd3G6 TGOL94Wzdjl1oRocLrf78CxO+ct++3y7TjYjzf5cszJifogtmKHNyBJ9bsdUxCRKWAmu 1yC1y6Jz6t2cY6ev+RCH19ROGD0nn1vbonEKhLESInXRwO1OjK46QBwoe5LITClVWEc/ TRGhQUUOcO9Tli6JU7YGKkPhRCqDl3+IyIWxIyiMWoQiMusBRnf05IH7XVBXJADiQk/k kT+w== 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 q2si563739oti.273.2020.01.07.13.55.22; Tue, 07 Jan 2020 13:55:35 -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; 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 S1727267AbgAGVxg (ORCPT + 99 others); Tue, 7 Jan 2020 16:53:36 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:50429 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbgAGVxg (ORCPT ); Tue, 7 Jan 2020 16:53:36 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPA (Nemesis) id 1MirX2-1jIUBC2F1g-00esF5; Tue, 07 Jan 2020 22:53:30 +0100 From: Arnd Bergmann To: "james qian wang (Arm Technology China)" , Liviu Dudau , Mihail Atanassov , Brian Starkey , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Nathan Chancellor , "Lowry Li (Arm Technology China)" , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/komeda: mark PM functions as __maybe_unused Date: Tue, 7 Jan 2020 22:53:19 +0100 Message-Id: <20200107215327.1579195-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-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hGAtADMlxZi0TyIc3Q2AfkwOy+oNMkMlVFVCpy0WnwVyK90idOOjvrBMuhqhF4k9 FzT73UCzS+/P5jMrXfLMrXmbctDc2xIs+vNy28bgdGMN8sx6hSX1ZDgiavIiJhP1r14Z8PWOR m1ZUb+z5VbMqSLbqVUcA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without this, we get a couple of warnings when CONFIG_PM is disabled: drivers/gpu/drm/arm/display/komeda/komeda_drv.c:156:12: error: 'komeda_rt_pm_resume' defined but not used [-Werror=unused-function] static int komeda_rt_pm_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/arm/display/komeda/komeda_drv.c:149:12: error: 'komeda_rt_pm_suspend' defined but not used [-Werror=unused-function] static int komeda_rt_pm_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~ Fixes: efb465088518 ("drm/komeda: Add runtime_pm support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/arm/display/komeda/komeda_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c index ea5cd1e17304..e7933930a657 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c @@ -146,14 +146,14 @@ static const struct of_device_id komeda_of_match[] = { MODULE_DEVICE_TABLE(of, komeda_of_match); -static int komeda_rt_pm_suspend(struct device *dev) +static int __maybe_unused komeda_rt_pm_suspend(struct device *dev) { struct komeda_drv *mdrv = dev_get_drvdata(dev); return komeda_dev_suspend(mdrv->mdev); } -static int komeda_rt_pm_resume(struct device *dev) +static int __maybe_unused komeda_rt_pm_resume(struct device *dev) { struct komeda_drv *mdrv = dev_get_drvdata(dev); -- 2.20.0