From patchwork Mon Sep 20 16:43:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 514370 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2331873jao; Mon, 20 Sep 2021 11:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+79JlpkBBxw4Xj5+sb/lDNaR1NzQdXLaw8Z9qi+z72Xdra8Yt16SGL99dQyLapBcUqDOy X-Received: by 2002:a05:6e02:8a7:: with SMTP id a7mr19399295ilt.246.1632163205045; Mon, 20 Sep 2021 11:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632163205; cv=none; d=google.com; s=arc-20160816; b=AsCEi3xfPPE19KU+j8YmRIj4z049/DYLoR2WdyXCKKxLB1YiLR3CaJ0jng1YPBNl02 Rn1Pbp1R9HtackequCCj0PUAdtrSOlPXg1mSHLlDIw9R3Kd+TUFBtGpfeSdI/rb6m6qv fSNVauSV2uMwhAm54EOF1qX5WWhdxoPS4nuLy7LlBiRfAsSx4JNgwTIuAVMO+OZAI/TA X26jbwbny3uKFHGQPk3Bi/UJy9EdRsC8alo9bhllSMAjyIiVjKb/4Wr23RYe8rvuW89A hR4iHnNqShYCpObTx7lFPeTCXynRm1UiyZ8173ifku2V1yHzoqyX1jLeegk0RidET+fN F4LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5LVVb1OKWgZwWclewhf2/rH2mWzxqottqgEso//iu/E=; b=teKEuuiYfCdSDtdnTWOrrSIltIw+6gdugKi6f6tmxyh0RESnqHLD4l5PukC7sOTsut 6kCzypizwOZyzCOz00vQ95k/mpWvVbVtove+sYEOczV8BrEE5ji6Rxz/QrI2kO4a8qw7 MK4sTxJPvfClH70pN+6VOPK/0b2oy8ZEtPo5DTVxqP+jv9kSIKuK+0Aeug70KOGjyy+B dIf3LukzQJtqcX0yDrYgHJBjN8KWd/NnSHSVcmi6KhkrvhQGqhVI8Knv7gpmxRG6bfb3 SB+fKfJc5VQuUgAzs4YbfJ9H96KEu1wMn+B2VeHHZf3pXZ06eSRyB3tft4kvgCfFO4hx F+zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dht1A681; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si1268829iow.31.2021.09.20.11.40.04; Mon, 20 Sep 2021 11:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dht1A681; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353642AbhITSlT (ORCPT + 11 others); Mon, 20 Sep 2021 14:41:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:56242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381810AbhITSjY (ORCPT ); Mon, 20 Sep 2021 14:39:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D81A6332F; Mon, 20 Sep 2021 17:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632159037; bh=Yo7QJlKkuJiBVS14uvsKjHFdFVdEYs0VGor2xfgVqFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dht1A681gOiG99u3OE/GuvZHwbuaXwO+nSdMynyOiT/ESv8wSQz+ijbSFb3Czm9uK QhXJZzs1uG1hiDWHlUgd2GAVSEPS5Hwnugg18kiPdEl2sQYyujHTsV2oRnQBP+BnAn YHSgWzZDHfVhj2o7wSEwyUlGySh9kzUgrENz5eSI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Enric Balletbo i Serra , Linus Torvalds Subject: [PATCH 5.14 047/168] drm/rockchip: cdn-dp-core: Make cdn_dp_core_resume __maybe_unused Date: Mon, 20 Sep 2021 18:43:05 +0200 Message-Id: <20210920163923.187989654@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163921.633181900@linuxfoundation.org> References: <20210920163921.633181900@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Arnd Bergmann commit 040b8907ccf1c78d020aca29800036565d761d73 upstream. With the new static annotation, the compiler warns when the functions are actually unused: drivers/gpu/drm/rockchip/cdn-dp-core.c:1123:12: error: 'cdn_dp_resume' defined but not used [-Werror=unused-function] 1123 | static int cdn_dp_resume(struct device *dev) | ^~~~~~~~~~~~~ Mark them __maybe_unused to suppress that warning as well. [ Not so 'new' static annotations any more, and I removed the part of the patch that added __maybe_unused to cdn_dp_suspend(), because it's used by the shutdown/remove code. So only the resume function ends up possibly unused if CONFIG_PM isn't set - Linus ] Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") Signed-off-by: Arnd Bergmann Reviewed-by: Enric Balletbo i Serra Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -1123,7 +1123,7 @@ static int cdn_dp_suspend(struct device return ret; } -static int cdn_dp_resume(struct device *dev) +static __maybe_unused int cdn_dp_resume(struct device *dev) { struct cdn_dp_device *dp = dev_get_drvdata(dev);