Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1124041pxf; Fri, 9 Apr 2021 00:04:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQUQaWBohEpNWvgY6GHex+B4mmBuPbOX0HgkzIcGbubgNlOWm5PUmwYpDhmsqLao80J78d X-Received: by 2002:a65:5849:: with SMTP id s9mr12142038pgr.309.1617951865843; Fri, 09 Apr 2021 00:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617951865; cv=none; d=google.com; s=arc-20160816; b=VunyqSGYgDO1Rn35OIfAZ3EeOiFANfr722EJeoXgykHNX3CtLlzhF94c3J138/hb79 xmzJq9dfLdXtiBJIPIApm4SNZxt6jdKyr53CyJ8WsK1G5HWgpL4o8efJYnH+uvJ2PnRU l+P6ObN49s8HE5hupYh/1N+Lu//LV/a/K+V6jGoZOmd5tlCqVp/8DFaSivPebOyxdROU IaUa3+xH93rPBFBULOLURARhbb3ki4skwraShNiS1so1+3B3Kp7CK1Rt7nYXG5yZuPdb EexzeKiKZ60KJN39g8M50nhKJerKEGu2vBLFQcQ0NDAUUvBh7x2oDnZ76GKlhCPlEEyq l1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=3FkIJ9PwVXFeb6m37a1441Vd1rjjU+mM4gCkau9Vhuk=; b=yZmH5EmKCTA+/4d+P2bZh0Eyy2H3l93ij9lpIGL2GEtuG1Qt7gaINjyL6j1bmDQ2N0 d2H73uNYTeDx5Jk6znD6/Oz0DJS4WEXXjzoHdQ97WbJwXIAeT0riTCCp5xDu3niGOB44 omzmFqhyozV4TQuv0Bh8WloWg5YQIvefeswXCl19UAGHx3vxMJ4NrcF+v6ea5ZMXBGQL sFkKK/YFR1d+W+GZivNMCZHwPSWHjlQpE8kcLA6JHLIABBGTSo+T9qtwPFjJOcrRft7P wWS7+YgRSBFYfEfQqIMxbTT2exQgGUfGuMOB9lMQCN5WGFSTUcp73MjsDBy0H+eqvfbR TGpg== 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 c13si1949030pgm.570.2021.04.09.00.04.12; Fri, 09 Apr 2021 00:04:25 -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 S233437AbhDIHCK (ORCPT + 99 others); Fri, 9 Apr 2021 03:02:10 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16109 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233335AbhDIHCJ (ORCPT ); Fri, 9 Apr 2021 03:02:09 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGpsW3GSXz1BGM9; Fri, 9 Apr 2021 14:59:43 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.98) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 15:01:46 +0800 From: Pu Lehui To: , , , , , , , , , , , CC: , , , , Subject: [PATCH -next] powerpc/xmon: Make symbol 'spu_inst_dump' static Date: Fri, 9 Apr 2021 15:01:51 +0800 Message-ID: <20210409070151.163424-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: arch/powerpc/xmon/xmon.c:4216:1: warning: symbol 'spu_inst_dump' was not declared. Should it be static? This symbol is not used outside of xmon.c, so make it static. Signed-off-by: Pu Lehui --- arch/powerpc/xmon/xmon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c index bf7d69625a2e..d4ae2a25781f 100644 --- a/arch/powerpc/xmon/xmon.c +++ b/arch/powerpc/xmon/xmon.c @@ -4212,8 +4212,7 @@ static void dump_spu_fields(struct spu *spu) DUMP_FIELD(spu, "0x%p", pdata); } -int -spu_inst_dump(unsigned long adr, long count, int praddr) +static int spu_inst_dump(unsigned long adr, long count, int praddr) { return generic_inst_dump(adr, count, praddr, print_insn_spu); } -- 2.17.1