From patchwork Wed Oct 13 14:41:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 515723 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp6604550ime; Wed, 13 Oct 2021 07:41:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2qe2j7LaiVKyZk5gEUPy83OHgCsgfIWzo/V6hQq+5mOBb3uUkbpjLV6RdOUZ+pLQ7Oeto X-Received: by 2002:a05:6a00:1a8e:b0:44c:5f27:e971 with SMTP id e14-20020a056a001a8e00b0044c5f27e971mr38821783pfv.72.1634136114854; Wed, 13 Oct 2021 07:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136114; cv=none; d=google.com; s=arc-20160816; b=CC32zd7yIvJwij9CpHFJURaJVo06Xkiy+ESmumHB0jReNXMTdTXpPnsW59kLsyg1sO IcHj1r/GeO4TzA/CuxulU7XsLSkZdFI0/uuOlEqbX48wBYWuAszm7bAhr1JWBPy/6TGh yxhg+RP5/DgxeYd+P7Dguimdf5NpVDsCTpyGRhfcU+h3Z4SdZG/nWJfrx6gqs3OCub88 aq3scLSQGCbnWSRigq89dmvNb8tSAUrY9C63OPDNpJykab6Z9z9ARfQOC1tticByGo/z 2JaOIrDB6wP8/AlO5IJMHSbRYBw040kJQavywAMUKOVdT01ej6d1JB0U0tchqB5r7kmM h84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :delivered-to; bh=TDo6QMA6NRxY+XxhYlqvR8z2PFx9wSLbjsidKMfctfE=; b=I8XhJy3IPxGQiVEGzmS93q1vSrcq/TufpRifK8UN1DQPgLctVAHqdyGX6JummoFZRy HCNVaCSkMWTIhZLQ8bw9skmQXYhxx2tm1MhYv8qZB47XUEVtmw552JJQKa+AwGnb3KlW dnplwqgRbl4EkkKWZbIL2/qSSJudKz/0wBtiGl15okpJUQW/NAmTonYi4bDUExZ6GA6T Y+AImQpU5DUly5kDLplFfrBhSW16A2Ev1PKZiArRPOGgXhHIsiVufv9/1dIFoW0kGG7Q QugmffXqwbx3o5FiZzOq9Ox6fA8xOzslqBahLIqU7AML8gruMext0fM3j3ZiU34cKdJD 5uZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blmtjwVQ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j10si1896194pgq.452.2021.10.13.07.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 07:41:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blmtjwVQ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=pass (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 4CCAA6EA00; Wed, 13 Oct 2021 14:41:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD9126E875 for ; Wed, 13 Oct 2021 14:41:52 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id E372561164; Wed, 13 Oct 2021 14:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634136112; bh=FnygDVALxuB6jzfdbNL9ETJk+t+tvoto1moRUkWnoa4=; h=From:To:Cc:Subject:Date:From; b=blmtjwVQ44gx2yksClstXIIuCIKlj42Zg4rAXRmJbWq1jWfUHvwsNV1usBK/b+KoS Xm36wyw7WogQiiIK6XZ3PSBLcsC6rl2DfzWsRzVWIRIiRieZCKVYoaKWoUnbYuZqx8 OSiXJX+jGfaR7L1jX+NVL8tSkNGzDw1DblD4lQS1hBjUJbddYpxZnbdkcxBOW2IgaD OL3yWPnPjCDviqhkN9915JLQQz5mvcmrlY0VKF42opvMg9WPw6YDtydX+gZDAMQi5X thyDojZd++nO5AzUbPbN45fdvirIKUdNGrOwWyGemtIA2OmLTfV/u6h1S9VjBiCon2 59jTZa2hxWBuw== From: Arnd Bergmann To: Thierry Reding , David Airlie , Daniel Vetter , Jonathan Hunter , Mikko Perttunen Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/tegra: mark nvdec PM functions as __maybe_unused Date: Wed, 13 Oct 2021 16:41:36 +0200 Message-Id: <20211013144148.2208472-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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Arnd Bergmann The resume helper is called conditionally and causes a harmless warning when stubbed out: drivers/gpu/drm/tegra/nvdec.c:240:12: error: 'nvdec_runtime_resume' defined but not used [-Werror=unused-function] 240 | static int nvdec_runtime_resume(struct device *dev) Mark both suspend and resume as __maybe_unused for consistency to avoid this warning. Fixes: e76599df354d ("drm/tegra: Add NVDEC driver") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/nvdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/drivers/gpu/drm/tegra/nvdec.c b/drivers/gpu/drm/tegra/nvdec.c index 30105a93de9f..791bf1acf5f0 100644 --- a/drivers/gpu/drm/tegra/nvdec.c +++ b/drivers/gpu/drm/tegra/nvdec.c @@ -238,7 +238,7 @@ static int nvdec_load_firmware(struct nvdec *nvdec) } -static int nvdec_runtime_resume(struct device *dev) +static __maybe_unused int nvdec_runtime_resume(struct device *dev) { struct nvdec *nvdec = dev_get_drvdata(dev); int err; @@ -264,7 +264,7 @@ static int nvdec_runtime_resume(struct device *dev) return err; } -static int nvdec_runtime_suspend(struct device *dev) +static __maybe_unused int nvdec_runtime_suspend(struct device *dev) { struct nvdec *nvdec = dev_get_drvdata(dev);