Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp265561pxf; Thu, 8 Apr 2021 02:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ5ogFpNgU16WmcvIyxosUTBQh2m0GPcqzSFABEe5JPi1o1fsnjqUNw5qDOHhXwW58+b69 X-Received: by 2002:a05:6402:b9b:: with SMTP id cf27mr9787414edb.60.1617874550455; Thu, 08 Apr 2021 02:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617874550; cv=none; d=google.com; s=arc-20160816; b=bPfv/wPhoVDfMbHThyPg5AoNvxo4Eevf+sxI+yYIT3yi7MR7QGq9Vypo7EkObB8Y7K MbDYYubzIF+rPOCB9nJxAcs7JLc2ZGA5j1nNZ55W9VB3XBLHtkTdusQIrL/hKkGjVoUE ACUTnHcuaAC19S+FSrTkx9G9q4B2dyztM+kruqLOyNuXj5BhSC8zLj9r1pJ4KYSoZRCW NDSWJuFSxPUSa0CtxYGt7DZzM4apZq3TcrpKjzJrk1LBPHV1X+kZOYP001zFPYQ32mS6 T5qoHu+CrIdfw7owFwVoGU/Bl1lhxc41LJ3RJ9RexjXqrN+v/7nwh83PNlkNhF+Zku8T Zt+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=l9Z52I6EhtxxNZiiOsBMtkGwXzt/JrBZjKh4wodLP4o=; b=d1uiItRoFxtuNl4En7NH6z8a0fO8FbDpgCZT20hj1DXfywdp08an0wxgKfTnUtMhYB 9rzGxc10pTND6bGtQOteDCWnzXfyNkOoVHX5PKh7qw20WUp2fJESvSFhw4GZbZGeD253 v7ZeJfPQYXelaQ+YksHWVhdl4L+fYPbcO+j+686gO6O+MJWnh/JkPQFYA+4ygMASg6hP vrrLrKNNgK69DGV1vEPe4XxOQBnJdiT1wu5RUAf0aby2ZtdUp/UK78y9wJxC2hJ1FzL0 tcga2r/YEvU6UDRAEKu3/yyLNJE1roH4zQDw0o5HK1zCQgcMYqUusYTROVKfvhpq7M9e rcfQ== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si25803852edc.150.2021.04.08.02.35.27; Thu, 08 Apr 2021 02:35:50 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbhDHJe3 (ORCPT + 99 others); Thu, 8 Apr 2021 05:34:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15970 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhDHJe1 (ORCPT ); Thu, 8 Apr 2021 05:34:27 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FGGHm43xxzyNkS; Thu, 8 Apr 2021 17:32:04 +0800 (CST) Received: from [10.174.179.129] (10.174.179.129) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 17:34:09 +0800 Subject: Re: [PATCH 2/2] powerpc: make 'boot_text_mapped' static To: Christophe Leroy , CC: , , References: <20210408011801.557004-1-yukuai3@huawei.com> <20210408011801.557004-3-yukuai3@huawei.com> <5b91cd3f-d171-f510-7dae-8cbabb13b23c@csgroup.eu> From: "yukuai (C)" Message-ID: <5ea1644d-8b75-eafb-9ad5-d729f430d884@huawei.com> Date: Thu, 8 Apr 2021 17:34:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <5b91cd3f-d171-f510-7dae-8cbabb13b23c@csgroup.eu> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.129] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/04/08 13:04, Christophe Leroy wrote: > > > Le 08/04/2021 à 03:18, Yu Kuai a écrit : >> The sparse tool complains as follow: >> >> arch/powerpc/kernel/btext.c:48:5: warning: >>   symbol 'boot_text_mapped' was not declared. Should it be static? >> >> This symbol is not used outside of btext.c, so this commit make >> it static. >> >> Signed-off-by: Yu Kuai >> --- >>   arch/powerpc/kernel/btext.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c >> index 359d0f4ca532..8df9230be6fa 100644 >> --- a/arch/powerpc/kernel/btext.c >> +++ b/arch/powerpc/kernel/btext.c >> @@ -45,7 +45,7 @@ unsigned long disp_BAT[2] __initdata = {0, 0}; >>   static unsigned char vga_font[cmapsz]; >> -int boot_text_mapped __force_data = 0; >> +static int boot_text_mapped __force_data; > > Are you sure the initialisation to 0 can be removed ? Usually > initialisation to 0 is not needed because not initialised variables go > in the BSS section which is zeroed at startup. But here the variable is > flagged with __force_data so it is not going in the BSS section. Hi, I removed the initialisation to 0 because checkpatch complained about it, I do not familiar with '__force_data', thanks for pointing it out. Thanks, Yu Kuai > > >>   extern void rmci_on(void); >>   extern void rmci_off(void); >> > . >