Received: by 10.213.65.68 with SMTP id h4csp308956imn; Wed, 28 Mar 2018 04:08:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48S35AmNeo8ge/OXG93D42huQPXzhozyqpZgzvExvshM5EGmsMN3RNPCF49fZ4li4ulissw X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr3286148plo.304.1522235299793; Wed, 28 Mar 2018 04:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522235299; cv=none; d=google.com; s=arc-20160816; b=MHwcJnFl/ftDIUlvFujRIX10dGjw4CvzGCb6f2nFts7DpRYAidgkAjUBAaDm2s2r3b kn3MuDi/O0446z9wYboiG7YrYyAHyGhzcZ/GLuYdngbCIl+aiRJoehYEa5Kdk+Klp8lu CJ4X4lw8QSLEEhPPjQ2DRJhGh4pu84AIgfavbgSSyPkzg1bQizVeRyAXXVgG6aw23jC9 UKvEZ+ZzG+3iAkox1X5OI+SZT1A7hdglM1TykdMstj6HtrcTTxpAU7sXqN8xff1P12Zn Kq8p+S3aMQ6oQZa7ZL9RJU7GPACuhGqDSqPE448gMAIueJTZYOSgMKZYf4ZEBsNMK1yr xGGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:arc-authentication-results; bh=RTTfyGCo0NTOock7g/XxOUFGHMeZtVTgkTNwZeDb1YQ=; b=PQRXKjaELL2o3pv89M5IbvI4M3RlutvpoUilY1dlDKL/n2f/exoI/zccanbhmo/6i+ dLUUMqxUqx6yPEiqMUjqkN4+c3hX4KcOrNYvV1ApblU0nd62ENBXKPqLuiZO3H41Afx8 RGIskPF6GUHjg6+IctBfr40rW/qwBGm/NwHbt1s5/7PpjU790dKAv0TRvwaC/X75GITd iJdm4U3Xq7ycvjv8zCXZaTp7tbSOFabOz0tb0PpMrJtLwhnqtia5q+QNzxKbe2oc0YR0 NnZicJMZ1z5N8w1FK0zSjR7cnoDvSvqFhW5vpz2i8pJnySSN9v2A04yIKMrwiJJVFkAm v3LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s8-v6si3819057plk.550.2018.03.28.04.08.05; Wed, 28 Mar 2018 04:08:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752817AbeC1LGe (ORCPT + 99 others); Wed, 28 Mar 2018 07:06:34 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:33397 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752611AbeC1LGd (ORCPT ); Wed, 28 Mar 2018 07:06:33 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1329140D78C1C; Wed, 28 Mar 2018 19:06:29 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Wed, 28 Mar 2018 19:06:21 +0800 From: Wei Yongjun To: Alasdair Kergon , Mike Snitzer , yaeceh01 CC: Wei Yongjun , , , Subject: [PATCH -next] dm verity: make some functions static Date: Wed, 28 Mar 2018 11:11:58 +0000 Message-ID: <1522235518-20209-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following sparse warnings: drivers/md/dm-verity-target.c:375:6: warning: symbol 'verity_for_io_block' was not declared. Should it be static? drivers/md/dm-verity-target.c:403:14: warning: symbol 'verity_calc_buffs_for_bv' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/md/dm-verity-target.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c index da35f0e..e70d4d2 100644 --- a/drivers/md/dm-verity-target.c +++ b/drivers/md/dm-verity-target.c @@ -372,9 +372,9 @@ int verity_hash_for_block(struct dm_verity *v, struct dm_verity_io *io, /* * Calculates the digest for the given bio */ -void verity_for_io_block(struct dm_verity *v, struct dm_verity_io *io, - struct bvec_iter *iter, struct scatterlist *sg, - unsigned int *nents, unsigned int *total_len) +static void verity_for_io_block(struct dm_verity *v, struct dm_verity_io *io, + struct bvec_iter *iter, struct scatterlist *sg, + unsigned int *nents, unsigned int *total_len) { unsigned int todo = 1 << v->data_dev_block_bits; struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size); @@ -400,8 +400,9 @@ void verity_for_io_block(struct dm_verity *v, struct dm_verity_io *io, * Calculate how many buffers are required to accommodate * bio_vec starting from iter. */ -unsigned int verity_calc_buffs_for_bv(struct dm_verity *v, struct dm_verity_io *io, - struct bvec_iter *iter) +static unsigned int verity_calc_buffs_for_bv(struct dm_verity *v, + struct dm_verity_io *io, + struct bvec_iter *iter) { unsigned int todo = 1 << v->data_dev_block_bits; struct bio *bio = dm_bio_from_per_bio_data(io, v->ti->per_io_data_size);