Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp171583imi; Wed, 20 Jul 2022 20:23:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vYS+cEnx9uWbeq+ZzrbVklicLpcVWPsFsb/Vu0Ped5t8luRbsg0OnTC0dh7fiw3wwlJEKn X-Received: by 2002:a63:82c1:0:b0:415:d42c:1653 with SMTP id w184-20020a6382c1000000b00415d42c1653mr35976566pgd.334.1658373831295; Wed, 20 Jul 2022 20:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658373831; cv=none; d=google.com; s=arc-20160816; b=KWAONNnA9BRVIEflandzqU68aOv4AZXkxIIGsCriryIEAgEmpb00SNNiUEf1TvTjy/ I5dNho7SPJEgkpkGqti4VhkT+mkEOlTgTxzJf4qantmHrDR8RXdYR3m4x2bidT8tUSYq FT+91ZPzypiqcX+sEZtsJq4uP3S2ruGMPoPUOukHdhcr7vclDHf5eYouOIwIq7NgPhzd hKtli6NMJrPXk+pL3fvnV+p35+McuSf+id3rKEmP+7OUdiQtNCJfGcL01ZmJCSnEINrp eMQmtRUaHvqKCFRVGY2UnpIzLf8EsmQWxYRhFTIXmg+b8DkCFcEZ0OFZ7voICxjxeJcu q1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Fqh3M9Fpg4PLkHPSOAamEt62/SRIbXamz/Wmh/PZNNU=; b=l0vibSAG5fKh8AjiVJzCaxHtrvCQe4cgt8Uvl6GR7ieZoLjUu8t0cHNZbw3WRzteq5 +z0alrwBBodq+exvKPehjyuko0HX9J6jqYieLASARTyqgOdJ4nTzopaFHo7obKw6sDmM zblHwwalJF5Z8Oxf4lT282zRbzmG5VmJfrMqabpHpArdyhTSczxxF/2jU3OVd44wnoL/ GA+KSlIoBtw225jzNsxNjewBRR0whdntuJYiO+FVmr2H9uq32sYNtUEe9tQg4YKztap9 nGdDljfRfwZ3bnB4NORv+yRbYwGiG2ZK1vpWR9G4g24Ug7GGgWJdGBTt5AyZt2znA3vE iCWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp17-20020a17090b4a9100b001efc1b228f4si5371870pjb.104.2022.07.20.20.23.36; Wed, 20 Jul 2022 20:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbiGUDS6 (ORCPT + 99 others); Wed, 20 Jul 2022 23:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiGUDS4 (ORCPT ); Wed, 20 Jul 2022 23:18:56 -0400 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664885A17D for ; Wed, 20 Jul 2022 20:18:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VJzWb5G_1658373523; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VJzWb5G_1658373523) by smtp.aliyun-inc.com; Thu, 21 Jul 2022 11:18:52 +0800 From: Jiapeng Chong To: almaz.alexandrovich@paragon-software.com Cc: ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] fs/ntfs3: Remove unused function wnd_bits Date: Thu, 21 Jul 2022 11:18:41 +0800 Message-Id: <20220721031841.24571-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the function wnd_bits is defined but not called in any file, it is a useless function, and we delete it in view of the brevity of the code. Remove some warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. fs/ntfs3/bitmap.c:54:19: warning: unused function 'wnd_bits' [-Wunused-function]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/ntfs3/bitmap.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/fs/ntfs3/bitmap.c b/fs/ntfs3/bitmap.c index e3b5680fd516..177c5bc53373 100644 --- a/fs/ntfs3/bitmap.c +++ b/fs/ntfs3/bitmap.c @@ -51,11 +51,6 @@ void ntfs3_exit_bitmap(void) kmem_cache_destroy(ntfs_enode_cachep); } -static inline u32 wnd_bits(const struct wnd_bitmap *wnd, size_t i) -{ - return i + 1 == wnd->nwnd ? wnd->bits_last : wnd->sb->s_blocksize * 8; -} - /* * wnd_scan * -- 2.20.1.7.g153144c