Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1071242pxj; Fri, 21 May 2021 05:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyYteMMrNSvMVoRCcQpNhVSeu/eze1ap8glDc1jhf5wl5WLQn/VGT4S0neGCGMalmQlhUM X-Received: by 2002:a17:907:b03:: with SMTP id h3mr10038777ejl.118.1621601786126; Fri, 21 May 2021 05:56:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621601786; cv=none; d=google.com; s=arc-20160816; b=ySNEkCw7wvhe1OzWHHvoIbBr5ETpz6v3MpAEy6AECRg5VpDH/no8zAHbqzt3eWPd+B e08vdZfy0G+OfE+5Q3Hku8k+tvkv6HXD8XGzNeq+f7Yz7lq8RsdfwSUYCpTV2lO9HnLF 1LVY12xNX4rTICm00RblDzVro20E/chDfx4hmgfy80Fs3h1fT2Z2XgFmkxvMTKtGHlDx QPbUqewT1fkeBtBDM9J5tNCMzT7BBdYIrpYgf4RTfDZdcyGURAjr/mn8tLKiMlY9WRiF vLCLscw3/4zwiDdo0YcOBf46jJhiwr2QyMD62m2zRvGiXnkdX6b9Q2CtFomiH4mnlwwt wTWA== 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=RSgkxZktECPE+ffTEayEWbKzTWDWf4Bks8f2nI2mtxk=; b=SafYe/HppYJ1+WURLyiRVFRmzSqVkDY3TQLJTn4MCauq3WoDk0rKQ++FM+VhpFuRVP 42Yrj28lU81tJJs/OyKq4fZIdj9edUI+CSTfQPh+rpq8C7zoK7IAi7gD4/mz8kN0iRYu CtvtCFbZ9moHC74hpeGBkZfjAxwe+1mNx7dasx/a781QNkepRp5mfVCmUT/wwWWOrmxa YQufx5uwypCkfHosLKpFPkzAa7syy4+NICnIhOCQ0ZHMXYNOZyEwGwmVkyceOlVhjavd eE3NH5pHNaQNV5+hL54kZ+j24gibH+IKiwVj5YGPsEjeTISIfwJhGoh4522bX9rZb2hs WuLg== 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 g16si4795027edr.585.2021.05.21.05.56.01; Fri, 21 May 2021 05:56:26 -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 S233232AbhEUMbk (ORCPT + 99 others); Fri, 21 May 2021 08:31:40 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5657 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbhEUMbg (ORCPT ); Fri, 21 May 2021 08:31:36 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fmm8D1NYGz1BPTy; Fri, 21 May 2021 20:27:24 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Fri, 21 May 2021 20:30:11 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 21 May 2021 20:30:11 +0800 From: Zou Wei To: , , CC: , Zou Wei Subject: [PATCH -next] dm btree: make symbol 'shadow_child' static Date: Fri, 21 May 2021 20:48:56 +0800 Message-ID: <1621601336-11279-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggemi762-chm.china.huawei.com (10.1.198.148) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sparse tool complains as follows: drivers/md/persistent-data/dm-btree.c:696:5: warning: symbol 'shadow_child' was not declared. Should it be static? This symbol is not used outside of dm-btree.c, so marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/md/persistent-data/dm-btree.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/md/persistent-data/dm-btree.c b/drivers/md/persistent-data/dm-btree.c index b8d21b6..a29bcb8 100644 --- a/drivers/md/persistent-data/dm-btree.c +++ b/drivers/md/persistent-data/dm-btree.c @@ -693,8 +693,10 @@ static int split_one_into_two(struct shadow_spine *s, unsigned parent_index, * child of the given parent node. Making sure to update the parent to point * to the new shadow. */ -int shadow_child(struct dm_btree_info *info, struct dm_btree_value_type *vt, - struct btree_node *parent, unsigned index, struct dm_block **result) +static int shadow_child(struct dm_btree_info *info, + struct dm_btree_value_type *vt, + struct btree_node *parent, + unsigned index, struct dm_block **result) { int r, inc; dm_block_t root; -- 2.6.2