Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3679347imw; Mon, 18 Jul 2022 12:31:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tntqRwEr2YV+fYivDnxgaaI049F6vdqSWwlEZq4j7qSuAMKkBEER/WmHwgCrEGFHHzpA5m X-Received: by 2002:a17:902:c947:b0:16c:5897:7e9a with SMTP id i7-20020a170902c94700b0016c58977e9amr29158923pla.70.1658172674662; Mon, 18 Jul 2022 12:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658172674; cv=none; d=google.com; s=arc-20160816; b=W1BIoLwATOXPStW6spiRk982pVOxc+ImOYPoEWbqvncxfRcgn7XdhL/BSLbD1uE/4I mgpgREIRCT+kSpMwcOXVSDjnZuakp3+k+Pd+ky93vyIcIwil16Zx74Ud7VKEiJC3OViz 685Gf1+IRi7GI5bWXlZH0OH86YsZlyz/Umwwgyf+aSNrfk1aMt3KB+QPpQCcxOGk0Euo UwGILXfMAfbKhy1nX9lkUxPpK+1YAeRCNEqFD1HN4MY2YIvr6JgskT1LPwoz/ALNslaY VMIwT9+eesHByNuYn/1gswRT5Cj0S+dwI9EyFfAPMpydNf6bfp1mKleZHzzgzlFck+8n 65NA== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=h/b9Gor8OmaVbqlus0N8Yerswqy364XPSWWiuokjuPU=; b=IH0jb2lkSQHlJz4YqD4YulvRXzpDrwPGYNCVFaABl2flV2K+z3z2RfDgb+bnPBFXWt 04+U9PoPsQFG0yJS+SyE+FQffQvYOFksNIkszXimEHdBHffttNFk5u5YEfP43Nvu9D62 aZoYyn/LHgnba3JhtFjAQw5XouvJ5V3geN5maeQtAc3sF07KF94FlmRDCUE9Hcj40Qdi dXGaD1ytDVd3YZuYbTsAkcBXTwQ4lWXKSINpsqWB+M9EUNIx4a4xW+EPoAz71ZK2iHgF 7oMz2I/oviljG8X+WuKSaqWVZZCbS+V7SbImwvAuz8oKQM4KuHBhowWWUwsCmaikQ/I5 SYtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fqFJufaE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a630401000000b0040d20139d09si16509028pge.243.2022.07.18.12.30.59; Mon, 18 Jul 2022 12:31:14 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fqFJufaE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234367AbiGRT3O (ORCPT + 99 others); Mon, 18 Jul 2022 15:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235947AbiGRT2w (ORCPT ); Mon, 18 Jul 2022 15:28:52 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5081D2BFE; Mon, 18 Jul 2022 12:28:51 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id bz13so3157863qtb.7; Mon, 18 Jul 2022 12:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=h/b9Gor8OmaVbqlus0N8Yerswqy364XPSWWiuokjuPU=; b=fqFJufaEGeNpfSwDeHLXACT8OnWWXz+SS1j38SVvv2XI3V7V8WDZtxIfdvIaKQ8y9v 0B0WY2lTYT/i7+LGAA/Ip2Q7u/fJdoSJt/07tIAob70ImqR7TtZlTUPoT1LuMgFcuWY4 7HFka6L2jlYH/h5SMQBpAZF9w4mMJC5VPkP+4naKoLuGj5PEwF6S3Vgsnqe9/5kDZX5n E1qaAdoAy7EOEd3ji4eGl8J7TIvZC5UE2R5Le3yIwidlKTaWO/goPl8ml+dCO0JT7Ivy 7rMLL+xDqIc/xTUV4ajY3ZNx4vpyBfXc91TeNvsl4Lz9YhlMBkra7r0yzMzayL5h8PUk nvoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=h/b9Gor8OmaVbqlus0N8Yerswqy364XPSWWiuokjuPU=; b=H1IGxrZocn1L1esbYq2CGQZz58XNJecCBmV2ErVkRaobHnabTvabDSKGDxpXRAyOZ0 +VcCtN9JmReKwliaFj5JUdqpfoaB9Y1IIr2fQu+d8xw0OovdYwATLJSFJlwkN6RJnt0n oV7WBh3YpQ30WtSP/bSfY8su9IpHLtwUtS/OAOkAhzjwaZKte4onZG1Ui27ko1B/j4pP OMAy2yM6PxlrEwmpoghmDqXZdvGszUpEGoXQ5lHz5fi8uclZFHTId2ZOLq42efOQfKXr lOCjNjqnOOSkiKfXyhcVS0iULhEarcedj95aTAPY+QoFN/dQ5g8ilhbhbSBRVmBncyse KmnQ== X-Gm-Message-State: AJIora94bnyIKu0vOi4OaLrgFIxMwJ47ZcSk11ZFA6jV+HMA1TDajSSF yiRqIltMQFVCIEpNpnO1Qdx7cJH7psfVOA== X-Received: by 2002:a05:622a:198b:b0:31e:ec25:8ead with SMTP id u11-20020a05622a198b00b0031eec258eadmr5759733qtc.423.1658172530262; Mon, 18 Jul 2022 12:28:50 -0700 (PDT) Received: from localhost ([2601:4c1:c100:1230:ab01:d009:465a:5ab1]) by smtp.gmail.com with ESMTPSA id x27-20020a05620a0b5b00b006b5e43466ebsm4634117qkg.59.2022.07.18.12.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 12:28:49 -0700 (PDT) From: Yury Norov To: linux-kernel@vger.kernel.org, Alexander Lobakin , Alexei Starovoitov , Alexey Klimov , Andrew Morton , Andrii Nakryiko , Andy Shevchenko , Ben Segall , Christoph Lameter , Dan Williams , Daniel Borkmann , Daniel Bristot de Oliveira , Dennis Zhou , Dietmar Eggemann , Eric Dumazet , Frederic Weisbecker , Guenter Roeck , Ingo Molnar , Isabella Basso , John Fastabend , Josh Poimboeuf , Juergen Gross , Juri Lelli , KP Singh , Kees Cook , Martin KaFai Lau , Mel Gorman , Miroslav Benes , Nathan Chancellor , "Paul E . McKenney" , Peter Zijlstra , Randy Dunlap , Rasmus Villemoes , Sebastian Andrzej Siewior , Song Liu , Steven Rostedt , Tejun Heo , Thomas Gleixner , Valentin Schneider , Vincent Guittot , Vlastimil Babka , Yonghong Song , Yury Norov , linux-mm@kvack.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: [PATCH 03/16] lib/test_bitmap: don't test bitmap_set if nbits == 0 Date: Mon, 18 Jul 2022 12:28:31 -0700 Message-Id: <20220718192844.1805158-4-yury.norov@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220718192844.1805158-1-yury.norov@gmail.com> References: <20220718192844.1805158-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Don't test bitmap_set(bitmap, start, 0) as it's useless, most probably a sign of error in real code, and makes CONFIG_DEBUG_BITMAP barking. Signed-off-by: Yury Norov --- lib/test_bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 98754ff9fe68..2a70393ac011 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -622,7 +622,7 @@ static void noinline __init test_mem_optimisations(void) unsigned int start, nbits; for (start = 0; start < 1024; start += 8) { - for (nbits = 0; nbits < 1024 - start; nbits += 8) { + for (nbits = 1; nbits < 1024 - start; nbits += 8) { memset(bmap1, 0x5a, sizeof(bmap1)); memset(bmap2, 0x5a, sizeof(bmap2)); -- 2.34.1