From patchwork Sun Dec 5 13:15:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 520964 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp4468566imb; Mon, 6 Dec 2021 02:27:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzl54SPwQ3Xw2xSoZC/zw6jm61Yjh/Gnik6jJz7QdAJQUGqpjjO59LrQDBZIdukz6VNY+SF X-Received: by 2002:a17:90a:6a82:: with SMTP id u2mr36948002pjj.105.1638786454649; Mon, 06 Dec 2021 02:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638786454; cv=none; d=google.com; s=arc-20160816; b=pLzLMrhD18mcRE4nZu+XjS0N0ucJsaQWspiBqBuZyr62ma3Jwd67qwSaX+Dyai6KpS LZAri0RyaU4xrFwOagbJUSlWPQov6Mp3nmyc4XbZZzzEvCOn37Kf8njRa2i9XC+gUeCr xTbsPH1U98SDjzPQeI8397ngTLeKGtL2lBdmgJIw+6o8iJ53W8PBo/SaiWkFvR334wYD Bw37Ye+VOfYCy406T0stNF/aMCh/BwdRFbib1R5KVNBAgofJVMRDXpi0PesvyT3gNPBe FMjvY/qOZqn95KH5/OSAZe7iwg0IIyywFJYGmnTrqVWYq9vwyNeZ7yd+XxhF+vMqmvXS 2yKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=w67n5k9pmAnHV91vH04gz8YNpGAN+0PiLpqgcdsvsec=; b=xtksDfRWr7i30Eguf++zu4m6QWPoEA1a84bGVGfE7CDIi2MSg2maUc9Q/f8rcjklvO ZJtPN0wNIffQoWW/ALxTdLr36Eu+ZexmJsoug4DUiVJfdkycRU6FWJiASvv7Sf6acl2K Tk3N/TYRr2rlO0eMKDV01LRvgXliwYJfL3zLFu1rBGT4eFc7FBnBOt+2ZaXAoh5bGW1W 9rI1gkM8VDEypp6fDRq2k80ZNrHnTwLbebu5sCfm5HxsA0qNnDzTLV7M0eUWxzWkHNXe dxtys4vkFFCCGHk0G89shO+XuFXEdSmjNg3X4sbYLyAKwYw4lBKFYoY0WYV4e/763Juf uTWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=FHmz6iJ2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id o2si13317060plg.70.2021.12.06.02.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 02:27:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=FHmz6iJ2; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B19D7AB61; Mon, 6 Dec 2021 10:20:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6BF546FFE6 for ; Sun, 5 Dec 2021 13:16:20 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4BB8260F72; Sun, 5 Dec 2021 13:16:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E888C341C8; Sun, 5 Dec 2021 13:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1638710178; bh=WR2sGLUiGo/sjqIoR4o4HHQDLL57dPG1ww55q35uaZw=; h=From:To:Cc:Subject:Date:From; b=FHmz6iJ2Z/8x1FTzXdNP+j6dJXw5fPtytQUk5E59vOQ9san9B3HAEs7Jt4/32JVHF VA1auWCQupfib7OKIbTFD7MN2lkoXC+vZFRWq5tuBxqwsBxzB0J0YE2Q067dAaCiQ7 yU1i+H/QZG7iqaYHb74WOdLqqpUS6dm6530zpgg4e820KYKAiMCcAW3ANgR2QlhGet sOYok/ru/awRMnAsntpyu4yUXX8zuoebdXJtPb1EzoePjIiulUewAfRQGxrgnPBBCG 0Pk22JwiBIWmHO29x98yUnjURCIr9m0x05U8bfUFYJdp2myduc03F2y8kAxmdNDuTE 84tdoMCwIRYUg== From: Arnd Bergmann To: Tomi Valkeinen , David Airlie , Daniel Vetter , Cai Huoqing Subject: [PATCH] omapdrm: dss: mark runtime PM functions __maybe_unused Date: Sun, 5 Dec 2021 14:15:56 +0100 Message-Id: <20211205131612.3192652-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Neil Armstrong , Sebastian Reichel , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jyri Sarha , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann Using the SET_RUNTIME_PM_OPS() macro causes a warning about the referenced functions when they are marked static but not __maybe_unused: drivers/gpu/drm/omapdrm/dss/dss.c:1572:12: error: unused function 'dss_runtime_suspend' [-Werror,-Wunused-function] drivers/gpu/drm/omapdrm/dss/dss.c:1584:12: error: unused function 'dss_runtime_resume' [-Werror,-Wunused-function] drivers/gpu/drm/omapdrm/dss/dispc.c:4845:12: error: unused function 'dispc_runtime_suspend' [-Werror,-Wunused-function] drivers/gpu/drm/omapdrm/dss/dispc.c:4860:12: error: unused function 'dispc_runtime_resume' [-Werror,-Wunused-function] Fixes: b92f7ea556f8 ("drm/omap: dss: Make use of the helper macro SET_RUNTIME_PM_OPS()") Signed-off-by: Arnd Bergmann Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/omapdrm/dss/dispc.c | 4 ++-- drivers/gpu/drm/omapdrm/dss/dsi.c | 4 ++-- drivers/gpu/drm/omapdrm/dss/dss.c | 4 ++-- drivers/gpu/drm/omapdrm/dss/venc.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index b440147ae28b..ab259efe132b 100644 --- a/drivers/gpu/drm/omapdrm/dss/dispc.c +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c @@ -4842,7 +4842,7 @@ static int dispc_remove(struct platform_device *pdev) return 0; } -static int dispc_runtime_suspend(struct device *dev) +static __maybe_unused int dispc_runtime_suspend(struct device *dev) { struct dispc_device *dispc = dev_get_drvdata(dev); @@ -4857,7 +4857,7 @@ static int dispc_runtime_suspend(struct device *dev) return 0; } -static int dispc_runtime_resume(struct device *dev) +static __maybe_unused int dispc_runtime_resume(struct device *dev) { struct dispc_device *dispc = dev_get_drvdata(dev); diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c index d730bf67fed9..a6845856cbce 100644 --- a/drivers/gpu/drm/omapdrm/dss/dsi.c +++ b/drivers/gpu/drm/omapdrm/dss/dsi.c @@ -5058,7 +5058,7 @@ static int dsi_remove(struct platform_device *pdev) return 0; } -static int dsi_runtime_suspend(struct device *dev) +static __maybe_unused int dsi_runtime_suspend(struct device *dev) { struct dsi_data *dsi = dev_get_drvdata(dev); @@ -5071,7 +5071,7 @@ static int dsi_runtime_suspend(struct device *dev) return 0; } -static int dsi_runtime_resume(struct device *dev) +static __maybe_unused int dsi_runtime_resume(struct device *dev) { struct dsi_data *dsi = dev_get_drvdata(dev); diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 66db28bfe824..69b3e15b9356 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -1569,7 +1569,7 @@ static void dss_shutdown(struct platform_device *pdev) DSSDBG("shutdown\n"); } -static int dss_runtime_suspend(struct device *dev) +static __maybe_unused int dss_runtime_suspend(struct device *dev) { struct dss_device *dss = dev_get_drvdata(dev); @@ -1581,7 +1581,7 @@ static int dss_runtime_suspend(struct device *dev) return 0; } -static int dss_runtime_resume(struct device *dev) +static __maybe_unused int dss_runtime_resume(struct device *dev) { struct dss_device *dss = dev_get_drvdata(dev); int r; diff --git a/drivers/gpu/drm/omapdrm/dss/venc.c b/drivers/gpu/drm/omapdrm/dss/venc.c index 508fddd376cf..4480b69ab5a7 100644 --- a/drivers/gpu/drm/omapdrm/dss/venc.c +++ b/drivers/gpu/drm/omapdrm/dss/venc.c @@ -879,7 +879,7 @@ static int venc_remove(struct platform_device *pdev) return 0; } -static int venc_runtime_suspend(struct device *dev) +static __maybe_unused int venc_runtime_suspend(struct device *dev) { struct venc_device *venc = dev_get_drvdata(dev); @@ -889,7 +889,7 @@ static int venc_runtime_suspend(struct device *dev) return 0; } -static int venc_runtime_resume(struct device *dev) +static __maybe_unused int venc_runtime_resume(struct device *dev) { struct venc_device *venc = dev_get_drvdata(dev);