Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2251053pxb; Mon, 20 Sep 2021 16:38:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZouejTmYAjVc9P61pi6UxVYM4O7t3N77YS3UZydJBwYK71hFqzUjeSFMsWqsb3tH1vUlb X-Received: by 2002:a05:6e02:1bc3:: with SMTP id x3mr19939191ilv.113.1632181103761; Mon, 20 Sep 2021 16:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632181103; cv=none; d=google.com; s=arc-20160816; b=HSZ/j+Swzlis2+vk2al4RiYEr7ZLuJjR1MqM3LPdQ8O4LLrJSJNuGzrppPm98C1I9l Imo4PbcMBmz4mXcuXFfVKFs+h9CP4eIDZvy1RTKz1GL1S7Lmts96snI2PeSqUl8CUNyF E0Y/w9aZpD6xtbXX7oioePyZ0IREf5vp3JP71Dswa+5TTF8HXY5bXWcxHTa0VFrlxDq+ 80mtRHERX0yl78NYEhd0X8czki42WokiHGt2yXVydRYIBrfixK+gncjF3xwLy+BXOVmG MJF/I//lLQXH5DvEQSs1Kis/uM7ZhSYrmpMJUM1BTV/9nhwjJKMzG/GLkY0cp3lv0k0n d1qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=H4Vr30Smf3hL8Xqf87HvOmR9VsbswFb/UVHmuNNwwoM=; b=u8LLkmQv5sQgkdM21paUrd1OBNGn7Bbt6EzbY/jn+wIhOLnGw0qgNYe/57O5a/qvXd EndaWEqen94o3xtHR39B4gO0zFRQVHwhT0toVX+poX1c++yF4TYCLEHLXLXvySEoRHd6 6jTjgBUXyIF+/bnlxihwpzo04FaGNoDQPlVojw2f+6QmPGEDj7bCaBm78F/r8GQTc+Ce Cxui+ScVr1zfExZKY9aK7CN/xQ+PZll0z7hrrz5N3xrZF0e5uqalnOxxE+cw6Dcr0VOJ Yzad1kLAGE1e+64uYe5+Fm8j6nxu+RcW7B916EevaMGeMLtOOGswxIlzECnhzaUf+bjz ZnTw== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v11si15306435jas.4.2021.09.20.16.38.12; Mon, 20 Sep 2021 16:38:23 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234424AbhITNfV (ORCPT + 99 others); Mon, 20 Sep 2021 09:35:21 -0400 Received: from foss.arm.com ([217.140.110.172]:47750 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233455AbhITNfU (ORCPT ); Mon, 20 Sep 2021 09:35:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D0AF11B3; Mon, 20 Sep 2021 06:33:53 -0700 (PDT) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 27C6B3F719; Mon, 20 Sep 2021 06:33:50 -0700 (PDT) Subject: Re: [PATCH] panfrost: make mediatek_mt8183_supplies and mediatek_mt8183_pm_domains static To: Jiapeng Chong , robh@kernel.org Cc: tomeu.vizoso@collabora.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 References: <1631956414-85412-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Steven Price Message-ID: <616fa113-7718-918c-db07-4826ef61b57f@arm.com> Date: Mon, 20 Sep 2021 14:33:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <1631956414-85412-1-git-send-email-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/09/2021 10:13, Jiapeng Chong wrote: > 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 Reviewed-by: Steven Price I'll push to drm-misc-next. Thanks, Steve > --- > 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, >