From patchwork Mon Sep 20 16:43:22 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: 514361 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp2323276jao; Mon, 20 Sep 2021 11:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0ooULQWnRGTRU2NvQkTOrfYL7PZlGEB71lvnWfF3dA8JCPD9nyLiFwc0u/tSK1ogzLC4d X-Received: by 2002:a17:906:bcf5:: with SMTP id op21mr30574341ejb.114.1632162578437; Mon, 20 Sep 2021 11:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632162578; cv=none; d=google.com; s=arc-20160816; b=opwFJLxPRLRnuJn156bKrEwP/RcsmmkM2JbvrnWJU1b6LEnyI18gd2863wqMjHBBY1 HMhgMme3/0E/TEMtS/i7SdaYTConQhC/cCGBLu5YoOJbwu1zK98vUdRjOn0mGl4yI0oj YlP7xGsUIY9HVz/QzoJ4b1CNrbbsP4rvK0cvfusBkC/hLByK8MycM3S/KSrlFasdc1F0 8PZV9JTZ+a3TQ5VNdtSg1SfLSUZw28USvhSJKzwsZB0K7kJ+DsDblLw99gFstOU/go20 1eZKKI8PxwTSSLjFvI7QW+mbrKEohVpLmxDMDiBKC1KMBGIFjTWH1fhljBRYuDLi9uuS P70w== 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=dJk8dw5BWXHJ+5uyYzptV4DdzBM5KK9pDpBNPFhzraM=; b=Tbkourvj0rMjVMBlO57L+CiilKLSrc8gs/MUg78wpoWsRjUUKRitKlxAEexehTriqV cIrvmiwKbIfogeWNdTDowIm9k7bshAOp7S9r2jNc8wDQhEO25FgNSeTa8Vl+HwZG8iA4 J6UgZFCGg8x/VNoAO+3ikph4mBzLLSQFvWl2wBV6qQL1cvqWwhCjZJZvWih47vUWn7q9 WWrIwlrrEv1XEsCB9y0K2v8SbaDjypLVIIM1JwrYmGBjeUKgfsHAWBs17ZJ1rawvlLdw 4tq1YrohdGNFb96v22JZLZ0jgyFTU54G1bWYIXn9P2Tt17rFLSFko7hz6C/eWsSTj17/ 9HqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zbGmKqr3; 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 l8si16911255edi.356.2021.09.20.11.29.38; Mon, 20 Sep 2021 11:29:38 -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=zbGmKqr3; 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 S1348519AbhITSbD (ORCPT + 11 others); Mon, 20 Sep 2021 14:31:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:48138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379306AbhITS26 (ORCPT ); Mon, 20 Sep 2021 14:28:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2BEE61362; Mon, 20 Sep 2021 17:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158802; bh=8drDd3EAJ6H/8qs3pR5E3EP4p+gz4fhSiFbxHOCXAKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zbGmKqr3k8d40AOi1djLAwRAhyGWYSEO0s+t6pRMf6IA07ko2SGvZ9XGWPTqY7yhp SxQTRN1WZiQkC0ziAsuts+jOEm98i59RkKHwkK7dpZT+E9ZBUpDComvwJtwpm3lqAV 6Q8yQN49tGWmGKorMXdn7mb4TznLhb8/XMPqFFHI= 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.10 030/122] drm/rockchip: cdn-dp-core: Make cdn_dp_core_resume __maybe_unused Date: Mon, 20 Sep 2021 18:43:22 +0200 Message-Id: <20210920163916.789275673@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@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 @@ -1122,7 +1122,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);