From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4597C76195 for ; Mon, 27 Mar 2023 10:27:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233692AbjC0K1B (ORCPT ); Mon, 27 Mar 2023 06:27:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233602AbjC0K0i (ORCPT ); Mon, 27 Mar 2023 06:26:38 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40430524A; Mon, 27 Mar 2023 03:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679912797; x=1711448797; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FDkJTIknpo1O0+dtID0O/BKWTRjLmtO8zZFy9jx/EcU=; b=Gk0eq/CkYtrS+KgeJDinXWfuGG32+k9G5z5lgflxclMNB6KnH90VjfZz 8+UvdESdFdd8Hzu26gU4nq6qZM3xONcjhj8+wGTrDoTv4kvEx/qFQCAzX UhqsG/DcO2z3qw+WejdZGsaISRIzGqtFRT4Yc5cw3iHm6WgsJaiL54FAK /uzc+Zj66bN80X9QqB0rIdj2WyHfcqLCkZyr+n17nprgR9SKN31pevHG7 w4ZjSWNd1pygPtJxwtds9YwYjw+ef3QIj4wUgfWB1tQEbV/0VSE+EBJqP sIn0AnjWhjfGc3fJ5VS7hSV+Cwa/AnXQD/OkhZPf7a6e7uE/G16pNeFzz Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="341804700" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="341804700" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 03:26:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="660789036" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="660789036" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga006.jf.intel.com with ESMTP; 27 Mar 2023 03:26:25 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pgk3R-009Auo-2y; Mon, 27 Mar 2023 13:26:21 +0300 Date: Mon, 27 Mar 2023 13:26:21 +0300 From: Andy Shevchenko To: Yury Norov Cc: Jakub Kicinski , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Saeed Mahameed , Pawel Chmielewski , Leon Romanovsky , "David S. Miller" , Eric Dumazet , Paolo Abeni , Rasmus Villemoes , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tariq Toukan , Gal Pressman , Greg Kroah-Hartman , Heiko Carstens , Barry Song Subject: Re: [PATCH 1/8] lib/find: add find_next_and_andnot_bit() Message-ID: References: <20230325185514.425745-1-yury.norov@gmail.com> <20230325185514.425745-2-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230325185514.425745-2-yury.norov@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 25, 2023 at 11:55:07AM -0700, Yury Norov wrote: > Similarly to find_nth_and_andnot_bit(), find_next_and_andnot_bit() is > a convenient helper that allows traversing bitmaps without storing > intermediate results in a temporary bitmap. > > In the following patches the function is used to implement NUMA-aware > CPUs enumeration. ... > +/** > + * find_next_and_andnot_bit - find the next bit set in *addr1 and *addr2, > + * excluding all the bits in *addr3 > + * @addr1: The first address to base the search on > + * @addr2: The second address to base the search on > + * @addr3: The third address to base the search on > + * @size: The bitmap size in bits > + * @offset: The bitnumber to start searching at > + * Returns the bit number for the next set bit > + * If no bits are set, returns @size. `kernel-doc -v` nowadays complains about absence of the Return: section. Can we start providing it in the expected format? Ditto for other documentation excerpts (old and new). > + */ -- With Best Regards, Andy Shevchenko