From patchwork Thu Apr 21 14:43:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 12821785 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B64DDC4332F for ; Thu, 21 Apr 2022 14:44:28 +0000 (UTC) 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:MIME-Version:Message-Id:Date:Subject:Cc :To:From: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=kobtFEcbhsPNHh5YTxe5risJbT3AV7uPmvNt3mvcuyg=; b=0dYbmjfPbRuQjq ItrzJstpKclq/Qy9xqZYjZkFO9vi/qDc/j6TPna+pYHEnMWcfRtdh/P5T+/ukNAtbetkgNpqaydJL EV0qdIqKbE3/y0G5YQ9fOQUVz0yNkQXUCAQ2lue2MuI++cMfWyEe/s9biwECsGH0jjnSP//WPtbj4 giYkQEqXE7eGbSZSGHeHgjCKn/RxYQDmNr6K4VXbA//MEeYA7MCQg24lTv2CxhrSIcqf8K4Figp3F LfHUoHZsxlwqHJa6jFtJQe0l6hK0MrLClyfSzZaw1guedZqaaXWFx6U/Ug28d7TQg8TfdGMg9tLqs kOPTXwSy2VzA0Fv63kUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhY1q-00DqFF-Ph; Thu, 21 Apr 2022 14:43:30 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhY1g-00DqBZ-CR for linux-arm-kernel@lists.infradead.org; Thu, 21 Apr 2022 14:43:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650552199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ePPTKrCMwADglYVO5peeQ4QQVf5OFLO0wZ8LDZ1O6g8=; b=erRZR5ICQdFvpVNAjnxFGvaCDpa0E/uGpMFoaNCYvIju71v6KgPC8qsXpHdfjIjHsce0pn SdMjoqRHTJR6PKQU3vRKKJyU25d62Xad6FTyjpGDz2tI06jsaWZxAou5q1qnYQNZpcdauX evTwf/gnptmdeZ2P0/53main7J35bCc= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-389-OP0XYVW5N8Cv3tqAko06gg-1; Thu, 21 Apr 2022 10:43:15 -0400 X-MC-Unique: OP0XYVW5N8Cv3tqAko06gg-1 Received: by mail-qv1-f69.google.com with SMTP id cs5-20020ad44c45000000b004463a27fb3fso4076505qvb.9 for ; Thu, 21 Apr 2022 07:43:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ePPTKrCMwADglYVO5peeQ4QQVf5OFLO0wZ8LDZ1O6g8=; b=QoGAOdVPOM1ijM88xYjmRj0e9ojb7ViEP1ggXw/VhQrVdG/BjosxOZMpeqj4oYN1tB Kmzox9t7U0xIvAbXVJxYpztQMZrYBlI2npXRSLTwUwy1bfXHcoCVZKMVQfttynugO/3x q87e3Gjv2aH05vapjGbqh8q9jOEUPqZgY68OUROLiiENo/4neuTipiImW4CR3ZCcyqOe s0jrOK6W+WF7oSBx20KuE+Wiftu6efO8xMkYXSONwA7K1mbj+KMHRU/6vLfD2Sp94kLQ R7OVgt3pryUjN8cNWUTD/zY1I9hdblqKLMU8Z8sF+EDlyIs/oRI/r5R/SYe9JB0V5bQG xLsw== X-Gm-Message-State: AOAM531TLrA1dEYCoU/yaLUYoNxEBpVjhXOy4HoKMCGhyQxzsvzbKIEb pQGwleR5BWjiky33EMTLAPams/yjvgCQkJQBW4DBXhKNpI30bVbRsNI61CMGPYlGbdy7BT6AFBT RdvD7zYFsbVHRHpy50Q8Im7TMvY4qaW9ZD+8= X-Received: by 2002:ad4:5bc1:0:b0:42d:758c:f694 with SMTP id t1-20020ad45bc1000000b0042d758cf694mr19026795qvt.99.1650552194927; Thu, 21 Apr 2022 07:43:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2jn3q9z234SvBuh9QXKIyb+5gtFlLQqL5BZmnHLuyhZev75JSd04yeLJ/gjoODjM5Sghq+Q== X-Received: by 2002:ad4:5bc1:0:b0:42d:758c:f694 with SMTP id t1-20020ad45bc1000000b0042d758cf694mr19026774qvt.99.1650552194715; Thu, 21 Apr 2022 07:43:14 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o14-20020a05622a138e00b002f335c3dbf2sm3538660qtk.37.2022.04.21.07.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 07:43:14 -0700 (PDT) From: Tom Rix To: hjc@rock-chips.com, heiko@sntech.de, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] drm/rockchip: cdn-dp: change rk3399_cdn_dp from global to static Date: Thu, 21 Apr 2022 10:43:04 -0400 Message-Id: <20220421144304.586396-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=trix@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_074320_644142_2BD5C77F X-CRM114-Status: GOOD ( 12.87 ) 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 Smatch reports this issue cdn-dp-core.c:51:20: warning: symbol 'rk3399_cdn_dp' was not declared. Should it be static? rk3399_cdn_dp is only used in cdn-dp-core.c so change its storge-class specifier to static. Signed-off-by: Tom Rix --- 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 d3e6c93739bf..ce67c9daa2b1 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c @@ -48,7 +48,7 @@ struct cdn_dp_data { u8 max_phy; }; -struct cdn_dp_data rk3399_cdn_dp = { +static struct cdn_dp_data rk3399_cdn_dp = { .max_phy = 2, };