Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3769043imw; Mon, 18 Jul 2022 14:15:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uj3FdaMc8Ie40Gi0hH0DUs3eDziBQXY0vumSdmCUA/VO45VloxPfpdXP7UpnEG4qMt67OZ X-Received: by 2002:a17:902:d501:b0:16c:679e:51a1 with SMTP id b1-20020a170902d50100b0016c679e51a1mr29358330plg.140.1658178941020; Mon, 18 Jul 2022 14:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658178941; cv=none; d=google.com; s=arc-20160816; b=TdnEa+GFukvLb6pIKeZYO19GFWkX4EEncymQce13sgjLOcWQBCuJTXxb44m19UYQRq Kjd5Rvd01GAIkmFh8HFUJbjT3F8ePx+XNl0NhQKHA/FfuWqhZ8xYGdc6zddWjLxeE+ii K0WbXPbxRTJ+w8JOqsNKBdWONg0yEWrAbDGEsixMVc1CmM2wevRfDWTONsFN13lUBjOR IbCCVgWDvZ3+ykyou8pmbxIEBj4gRUgYafMTV1/yMcE+aN3HBsVvl5KZ1FdDCV5cTzro UGnRbSGiQyBCqtKSJrgqOvmtTFdkH72/1IGc6axnXcebUNjnpzlye4rkq/DbKyPwwlR/ 4HKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2Xs+eAbpdVhdnvI5RCff2wLvdoo3vK+gzLo5ZomaI40=; b=0qEmViJxg/0dNxHRtFNKf0Kh6xU/aV/PWSYLfiR3zOkvIoMP6tJwAZZCbppmUa+xNg pOsQk+x/QxNnjiyxyt8lABmObejcWFgteXoR5f92WMnWGYCw/H/H+npnuqCcppQIHrP0 L56JGqxEJxDG4P//K+f3G0pbAvKYj5SJ5Gxd8lCKDMIP+akLEPsoOSllOSlDMAHBJk0y pauonAaPy+V8qUPYa08nojmAScOxiNWFSn2v15Z4SKfdXIS1gEQqAOzQgvraBaUyBuy4 dgq2mdYLUm5jI6jUckFzMDBLFpuPn6WdjWa9PC6vr9HRet8DhHA/Y3IFj0v7QkOhgZij 1xNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dGzy6WHD; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb9-20020a17090b35c900b001ef6ea57d7esi19688445pjb.55.2022.07.18.14.15.26; Mon, 18 Jul 2022 14:15:41 -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=@intel.com header.s=Intel header.b=dGzy6WHD; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233080AbiGRVIy (ORCPT + 99 others); Mon, 18 Jul 2022 17:08:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbiGRVIv (ORCPT ); Mon, 18 Jul 2022 17:08:51 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09922E2B; Mon, 18 Jul 2022 14:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658178531; x=1689714531; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=KTQG4RmtxzPJAdkE4J2lkvPJbDNJSkkFFy8SjpeMAuI=; b=dGzy6WHDKy1HvTEQ8JCxDDeEQEmilUndMi0R1pu9UrBU2P83N7H5EnFY tCeYyMB2M5KcLFWovFbW699MDt01UoSbdVh+aYb2uyDBhcGQa0WDq9LzR md2sbe1ycr9GXDIkcnt5/0CWpCLnukROOXuxpKYtiXbwXvBRLzZb+5Umj ZsxwnDo7NPUUW/O2t/Umg+3U9UH6rgXvp7DeONmPpf2fnUzhQzeft49iv YSfRAbuQiV+++Hlk+TMoxf9vSjXCqZ6Wqyk+++xxXZrRgUsQu9kalVJrQ ggWa43OBO2/YTXWBeXAzlH86J41stoSKL5ruohAlMlaielG4mZil25A4x A==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="312007759" X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="312007759" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 14:08:50 -0700 X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="686874569" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 14:08:40 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oDXym-001OYZ-0w; Tue, 19 Jul 2022 00:08:36 +0300 Date: Tue, 19 Jul 2022 00:08:36 +0300 From: Andy Shevchenko To: Yury Norov Cc: linux-kernel@vger.kernel.org, Alexander Lobakin , Alexei Starovoitov , Alexey Klimov , Andrew Morton , Andrii Nakryiko , 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 , linux-mm@kvack.org, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH 03/16] lib/test_bitmap: don't test bitmap_set if nbits == 0 Message-ID: References: <20220718192844.1805158-1-yury.norov@gmail.com> <20220718192844.1805158-4-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220718192844.1805158-4-yury.norov@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 On Mon, Jul 18, 2022 at 12:28:31PM -0700, Yury Norov wrote: > 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. No, the test of not useful and sign of an error is a good thing to test! Test cases may be positive, may be negative. Code shouldn't fail badly because of that. I tend to give a NAK here. -- With Best Regards, Andy Shevchenko