Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2352815pxb; Mon, 20 Sep 2021 19:50:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZomEGc9JYj5hT3i7tZA3Q7BWoqG1mT9KrNMlmLE46N8qT8nV2Vy46TYE/DUR1yL8Z7yY8 X-Received: by 2002:aa7:c952:: with SMTP id h18mr33109923edt.18.1632192617945; Mon, 20 Sep 2021 19:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192617; cv=none; d=google.com; s=arc-20160816; b=MPEEInCJG9DHoOPX0aKO2OfabR/8l67A25zwDqq91maEKJ5tYMetYvhYNLkrbHArpb eSLV7Jfh6t8lubnJgad4cSQ4BTLqjCqOWYJcgAiahNi6fNLKEs0zf+IZPFonE0AWU8K0 Fe79TAwSEIzhaBe34lzDce8sgws3N/9w2JTzCrpMqDlAOaiCuc7m7lvco/W3gveGN5Yu /Pw4Z0aPjesxjuBL5IqvBuyyCXnrD2kD/J/QXcVgpwGu+SWfW+c00ljG9yUguE/eX6SN oJDs0oU55LBFTE5a2o3pdguxT/pIU0w8OF85U7uDZcUMImV3McJiP7AeshuP+xRqvh51 h91A== 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=SPm2W2/ZCAfw4kj1NelAak+Xn38hZlXrbzoTHPov1fri2/YBXNPs3K4te8xE25+fFE xoofsGMkG39AuoQL8hJqFq7deAMKJBJb56JEHW3h8H9QBbggEXN1lZzsiL3r37c2ZzuS /IbxFUMzcdOeAbFz2c35XHyVt0i5hk6gxxmRHPnZaC+5ffllafxmP/cXaAxQVjWmjwbW 7Q+AIgFucRKBP28GoaVcy4aeOBR1OUvUrcKfBDg7LbDyE+q7C2GHz10wBNaDShKScIvK IBbT5+/G5bQt7he7Er1AebYxnouOgCx1o0cbYaUr9ZuvRzTvn5KkuPDtOysrrC9NiREg 1tKg== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 bm20si16366892edb.296.2021.09.20.19.49.54; Mon, 20 Sep 2021 19:50:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1380698AbhITSel (ORCPT + 99 others); Mon, 20 Sep 2021 14:34:41 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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);