Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp452474pxb; Sat, 18 Sep 2021 07:34:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt04XN/w7bOyeZLCPz8sRRb2L1EXb/669QQ/6D8niCJXqiL8Y+cn6TB9XJu33KC8fDw6YX X-Received: by 2002:a17:906:4452:: with SMTP id i18mr17415414ejp.374.1631975646211; Sat, 18 Sep 2021 07:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631975646; cv=none; d=google.com; s=arc-20160816; b=mapkK9lTPV/PXPf6hiUw6mqC7w7f6MpzU+27TKGWY70OKDuF5xAaKcWxT/I2HXYm8z Cz6vL80wOI5OLELdsQXCvOOnkUuY84aCkaXXmbFbxcISOstq+TZ9khXSL+ruVQKTYce7 CamK+Ece9fQWlWId3znRPxznu6ys4Zu3w9LW6xkQfPz9L6qIbSM2eZ9L7V1BgcoThfH6 CJYrzeZ7u+i7yN7BWHLRbN9Pos+8WZ8Asrna3za2uOQtoAkBbongVLC9lZ9iwls5OPO8 AEQWNT4p0TElo7fjmCiMERJysRwy4vE5omyKATMedkbXzYh1+5egm8wpvg9tb+nXklse TQSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Z9vlg63f5IHk/B2Oyx7yeS9SVMbhPTSW/O7eLIH/440=; b=rIvmaGLAugYBtBpeb0kmIOeBo1Hl16jhYzWQF0HUBosmH3DSYNZzeO4/t8+pHkk2Y4 KF8g5O1xLkhnxBBb+AtPMWHUsOGByaflGHKJQUam4juXqkD7C6TIzOdEmjzcq112Cs5P IZaTnNmCiSESRps1/49jXiKlR5bpQarlXkJkTGOncjkLU54/hk/e9OV5Ik/sJ9vr/VFJ tueOtZcRR03WEMnMHAAWAN0Br5REje6KIk7z3qaNyqb8+mtKz5AmCyCb245ew7/B9SZH 2W21UC7l8/egPhCrpwSOgCwML3ye15H2Q6U3oQ11N4ZLusoVT+MLgOFp4XeiiYtjvzvJ mN5w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp9si10279023ejc.163.2021.09.18.07.33.42; Sat, 18 Sep 2021 07:34:06 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238218AbhIRJPK (ORCPT + 99 others); Sat, 18 Sep 2021 05:15:10 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:58071 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbhIRJPJ (ORCPT ); Sat, 18 Sep 2021 05:15:09 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0Uom.Rp3_1631956417; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Uom.Rp3_1631956417) by smtp.aliyun-inc.com(127.0.0.1); Sat, 18 Sep 2021 17:13:43 +0800 From: Jiapeng Chong To: robh@kernel.org Cc: tomeu.vizoso@collabora.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com, airlied@linux.ie, daniel@ffwll.ch, matthias.bgg@gmail.com, sumit.semwal@linaro.org, christian.koenig@amd.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Jiapeng Chong Subject: [PATCH] panfrost: make mediatek_mt8183_supplies and mediatek_mt8183_pm_domains static Date: Sat, 18 Sep 2021 17:13:34 +0800 Message-Id: <1631956414-85412-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This symbol is not used outside of panfrost_drv.c, so marks it static. Fix the following sparse warning: drivers/gpu/drm/panfrost/panfrost_drv.c:641:12: warning: symbol 'mediatek_mt8183_supplies' was not declared. Should it be static? drivers/gpu/drm/panfrost/panfrost_drv.c:642:12: warning: symbol 'mediatek_mt8183_pm_domains' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/panfrost/panfrost_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 077cbbf..82ad9a6 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -638,8 +638,8 @@ static int panfrost_remove(struct platform_device *pdev) .vendor_quirk = panfrost_gpu_amlogic_quirk, }; -const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; -const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; +static const char * const mediatek_mt8183_supplies[] = { "mali", "sram" }; +static const char * const mediatek_mt8183_pm_domains[] = { "core0", "core1", "core2" }; static const struct panfrost_compatible mediatek_mt8183_data = { .num_supplies = ARRAY_SIZE(mediatek_mt8183_supplies), .supply_names = mediatek_mt8183_supplies, -- 1.8.3.1