From patchwork Sat Sep 11 03:43:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 12486169 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 F1735C433F5 for ; Sat, 11 Sep 2021 03:50:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AC5FB611EF for ; Sat, 11 Sep 2021 03:50:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AC5FB611EF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:From:Cc:MIME-Version:Message-Id:Date :Subject:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hX9YeBHAW1YD4JunflIbRkHITFqX5qPkkSUN3F2++co=; b=2710GJeC2JJZKN zio7Gw3n5ixNh4HD7+Y+5u0oc881Mv3QSad/G7hA3JYSJaG42tJJJA4Nj2lBN7dGmDK1g+6st591J vxgEju+6jvdMWjuHQKtfupb8lm7XUJs3JmmLGZVHMd9NYWipfjQ3B3AXYI0juvO6UCs/H4n6nL3XY 36ogo5UWPGQ55t8VhiToe9uZEmF4QIEkNFPhiCGLEK5qrk7EIiw/hcEmKmZ6BjyveKuHjgCOxZfOO eGiDoyDEXh9ZtDCDu13a0FHyuFX/rNamA/BYo4v0mmr1csgVDlsrx4OmQmuy1/OENVdfwkxdqqQFd 9/v34i3mM/+ZtpilDQFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOu0s-00EDzq-NK; Sat, 11 Sep 2021 03:49:10 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOu0o-00EDyf-C1 for linux-arm-kernel@lists.infradead.org; Sat, 11 Sep 2021 03:49:08 +0000 Received: by mail-pl1-x632.google.com with SMTP id c4so842935pls.6 for ; Fri, 10 Sep 2021 20:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=DzaIdSdfFubKopkCOrptYgOiLd7HKVfZtJyuoqzoNt8=; b=C8UBBiko8kEn/wSOUZVcwwN7OH6XGDrT1X48dR7/CZ7kTBkVKWQu5rR/jHct9gqFnU h/gmZWSW2MGUKMqlW7/AA/WhBbDPTc3n1mKjHYCPYj2+0f8ffubhgbjvujGkWobH/uAl ATnCNhGYlbPR0TLuymKV1KyJIfIN5aJ8Ry+iBkaO7AtYTR6hnZTJ4Dbi0Rf83N62Y+bi eEemDpRXY2M7PQaHc1HZ17clcosVJFGZg76MRO/QeF0F+z2L2QqOo9aQB/qkJn5ctKC9 plth2//1t4vWhVWIdxFprrxCz92FN+zRf4bNKfPudl2oeQSiLHus29sp6gNmLY7+7jNz lJHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=DzaIdSdfFubKopkCOrptYgOiLd7HKVfZtJyuoqzoNt8=; b=3hAi+LBCxa+Cd108doHbya02FmoXlQ+64+bLYQ4ARZkaYyQR2I1veazslmccJWqTRy A2wg07X0RLz1bueDBKHZKbUDK0Xj34b+AAr8w79xeQhnSf1A95UhNkY5JHd4eqEk9ZwX uRv56RR0U6tFjD6fRWmaT/GaNG5mEmzOrnc1KWo3V0kYWSE4VxEfWZhKP5V2hM+Ulov1 kN86NAAsvGc8SmLtfbrHrnNRZSPABd3vTQufRNPNIojtj5LoExtG109hkMa4+6KEDu9I 3uIc2kQhMmqrW9ZFELPCVfJOznMGbM9+HPdB1DzSYAOtq9yemGvbkig1oNVZJyP+XyGh 8YxA== X-Gm-Message-State: AOAM533mHvCysob27szvL6KPiKUIldhuwS1eTGtgDnhq421Ppeot2MmR SuL1R5JzWYjAzsUajZ5NhG2vfg== X-Google-Smtp-Source: ABdhPJwvLN8bfHfGluy9Iw3pbtnJt2AuK5+jLiz6yCRmD84GF/OziqDW9kPdqQEWqXQfc8FHYONa2g== X-Received: by 2002:a17:90a:da02:: with SMTP id e2mr1051170pjv.89.1631332144742; Fri, 10 Sep 2021 20:49:04 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id n1sm301315pfv.209.2021.09.10.20.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Sep 2021 20:49:04 -0700 (PDT) Subject: [PATCH v2] drm/rockchip: cdn-dp-core: Fix cdn_dp_resume unused warning Date: Fri, 10 Sep 2021 20:43:18 -0700 Message-Id: <20210911034317.1719619-1-palmer@dabbelt.com> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog MIME-Version: 1.0 Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Palmer Dabbelt , Geert Uytterhoeven From: Palmer Dabbelt To: hjc@rock-chips.com, heiko@sntech.de, Arnd Bergmann X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210910_204906_476666_4EE3C3D0 X-CRM114-Status: GOOD ( 15.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Palmer Dabbelt cdn_dp_resume is only used under PM_SLEEP, and now that it's static an unused function warning is triggered undner !PM_SLEEP. This marks the function as possibly unused, to avoid triggering compiler warnings. Fixes: 7c49abb4c2f8 ("drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static") Reviewed-by: Geert Uytterhoeven Signed-off-by: Palmer Dabbelt --- This is breaking my builds and looks like it'll land after -rc1, so I've put it on a shared tag for-rockchip-cdn_dp_resume-v2 which will let me pull it in to my fixes. LMK if you guys want me to send this up on my own, but I'm assuming that the drm/rockchip folks will handle it. --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index 8ab3247dbc4a..13c6b857158f 100644 --- 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 *dev) 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);