Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353566pxb; Mon, 20 Sep 2021 19:52:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxxKkAXz8G7076T6laLwHOfpYxqnwCIagq2TzXAGEy1uUUDK0bajcsFjrilkmB6UkCEg5K X-Received: by 2002:a50:9d85:: with SMTP id w5mr27841792ede.268.1632192722554; Mon, 20 Sep 2021 19:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192722; cv=none; d=google.com; s=arc-20160816; b=zDARbDpk95bSWlBwsuxqgnYee6r40rmMPFKfM2dCS+z3pnDTowpPGOpjLW9KW+gQV8 9YWTGpXAaZElcs7wrGsd4pDpmTzQExhVv5cBP9Ch7n2yfSdJ+J1dCp/Ed82IvRW3UeZn F87ToU/kOMN182QtVGnRGKzC7lHe/i3oTtO/mYN1yPfxD0tx6HPx6+olRJurH2xI3NYn psdGg2XcUR12If8FdpbilQpaI9ppXlW9+D3dZ2xxdBIIFVJ5XFDux379pz4JuCi2Ufp0 d4xWx5ELutz8KiTW0sqRyTPHW4mA+e4HJMzl7e9Yf1LHYhuXf41z5Jp7xkwkW2Cgjz+0 a1ow== 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=FXRM+FD4tG6/hlDtt/T52euanngH0TYlT4t4ymza+t7IJufv2HPj/hNKxKEacmLBvG /VNfrsUdm/QlWwlMKKm43/aIRrQyLirY8TCT9Fr72gKVVzey0tWFPt1xZUxcRbi18sC5 7Y5MeVQzKrGfMVj37PJMmclZ/yJzWAMcbug5msfoaarYxHf/8PTkKbuiTeJT+rBAcsgd DuVtF5/6CN5/5drithhiYhA4pq6l8Vj91aCsJGsQ47D/yGvfY8tU2yTJs8Xuimeo47WJ vWod1ed90WxYhPDDsVVRQJQWDWMU0Lzka9BybnjWeI1S34pj++3IfIdMAq5lo7g6qmRV jQtg== 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 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 os28si12793983ejb.559.2021.09.20.19.51.38; Mon, 20 Sep 2021 19:52:02 -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=Dht1A681; 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 S1353691AbhITSnU (ORCPT + 99 others); Mon, 20 Sep 2021 14:43:20 -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 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 @@ -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);