From patchwork Mon Dec 14 23:33:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 11974183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D760C2BBCA for ; Tue, 15 Dec 2020 08:07:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6CBFB2228A for ; Tue, 15 Dec 2020 08:07:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CBFB2228A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9D8A6E174; Tue, 15 Dec 2020 08:06:58 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id BD9A56E054 for ; Mon, 14 Dec 2020 23:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=vMhvU7UzeNy1QTs5M35EIFjoiT74uF3HtGRCg1kwYRk=; b=ORVpSO/nEfmsI4jHjB10cRl2WC LRrMJieOdajYK6itsRxYbd2yUOrQcP783vyEa1gkCQy1oQiFFiyZCSb8xApIjrznibmWVGwIY0nQu vQybrWEzdUUZypWTO2dRfG7PqKswcVlbrV6gOCTUf5ERze/aPdoqOJC0u+Nd6Ll65WfUSfE6k6Llz RX+LkmqxFnTyB4KsEvLkGq6SofOPQU5/uE2QD13VfKXkQJPNtWG9rNSWrCO+nXzlg7/0dCB5N7Ekq cfZ5zrb+csAaGa5UKey+BIG74VaEMe4vM6ioEyjcD+xSl9ApEBhMusLAHOnzK1oXeBT3CNWav9qWf S34H1oOg==; Received: from [2601:1c0:6280:3f0::1494] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1koxLG-0007d4-FX; Mon, 14 Dec 2020 23:33:23 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Subject: [PATCH v2 -next] drm/rockchip: cdn-dp-core: fix function not used when PM_SLEEP is not set Date: Mon, 14 Dec 2020 15:33:16 -0800 Message-Id: <20201214233316.19725-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 15 Dec 2020 08:06:55 +0000 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: , Cc: David Airlie , Randy Dunlap , Sandy Huang , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix build warning when CONFIG_PM_SLEEP is not enabled. ../drivers/gpu/drm/rockchip/cdn-dp-core.c:1124:12: warning: ‘cdn_dp_resume’ defined but not used [-Wunused-function] static int cdn_dp_resume(struct device *dev) Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") Signed-off-by: Randy Dunlap Cc: Sandy Huang Cc: Heiko Stübner Cc: dri-devel@lists.freedesktop.org Cc: David Airlie Cc: Daniel Vetter --- v2: use preferred __maybe_unused instead of ifdeffery: https://lore.kernel.org/patchwork/patch/732981/ drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20201214.orig/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ linux-next-20201214/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -1121,7 +1121,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);