Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp810746pxu; Wed, 2 Dec 2020 04:09:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCex25b/hsVbTeH0sv/dVVXMtgRB00E8sHzbEU64g15UspSps4VjU3hEV2y5nahTpkpui6 X-Received: by 2002:a17:906:1e93:: with SMTP id e19mr2058591ejj.440.1606910941702; Wed, 02 Dec 2020 04:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606910941; cv=none; d=google.com; s=arc-20160816; b=J4f7o5pFUOXUoxJpTqls5SEpcFyciiHm7nruhQl0f38urEEEm8zD+KUjr7kAiLEhkr 4EIg2HgILeUmqB3orvCTJLLjQD6Fsf5cpeunsX9pLZss14gS4Wx4wm2/N5qcESkq/Hb7 n6TUnkCRHJuw3nZtk6qEM3amEu2fzRDB8RYYQQ1kpI5RAJ/XwqZFXfLxvtkSyh0jc5kQ dOgnCgD80n2lzGw84utmyzgmyHooi4MZ0tT07HPfBZc6jkiSaeWDT5pFQtv77OpdaW3e QcyAT8l7X1mppizwVQJGsyfWRxJnjvZuDICpOmlb28hg2OLpwrjdSf/hmMQg86TRtdvQ twig== 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 :ironport-sdr:ironport-sdr; bh=3PZqftkZfuwCw0wZ5vOY/4u0o89/uV3WSN+B9l3thBw=; b=zlbqOe6x9trRwVKWn2dZSvpkPmTC2csv6Ic5uk6j08um+2EzeRclqc+Q/INleMrn3/ hJrs3Qf7Nx44bjHGi7h9XzrsROXhfUy1AYUFR9nGECm9gWRpduBaUVf5ZISYZDnLbu1Z /Nj6ymnXWisFrmiYCRI2cmwZErJ/0M1IBAVwceS6/HU0WDfGpWE8omI2CTPjGa0RPfjn UF+3CU0DTwsU9ZBL2yj1KXOWeUgh8dMzqaCXCnIjiyReuiwGhVPA/lgzgxCjmQooe2Fu jVT6AQchfUu2Godtp0XKVoFD/IQpBa48R9APsHJI7/MopZfQRSbCO4hH39WFaB9/Fzt3 baVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si912976edv.513.2020.12.02.04.08.37; Wed, 02 Dec 2020 04:09:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbgLBMHE (ORCPT + 99 others); Wed, 2 Dec 2020 07:07:04 -0500 Received: from mga17.intel.com ([192.55.52.151]:19652 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726589AbgLBMHE (ORCPT ); Wed, 2 Dec 2020 07:07:04 -0500 IronPort-SDR: uWgMTO5h/21hAoOB60nguGidrYrbPOS/li1EVOD7NwSHZ1wTPPEGZEOC3B1FH/oncwxCHaYMSV YcQmID/5wmhA== X-IronPort-AV: E=McAfee;i="6000,8403,9822"; a="152831686" X-IronPort-AV: E=Sophos;i="5.78,386,1599548400"; d="scan'208";a="152831686" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2020 04:05:22 -0800 IronPort-SDR: WI4jymxyNBTSTdCRD76CykCDJfzjFUg7by17rSz/SQFWb8oZWgQ3s4XoOqhvJPMSYi5SmHsrFW 1Ol6P4e4fVKQ== X-IronPort-AV: E=Sophos;i="5.78,386,1599548400"; d="scan'208";a="345844066" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2020 04:05:19 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kkQto-00BVBc-5E; Wed, 02 Dec 2020 14:06:20 +0200 Date: Wed, 2 Dec 2020 14:06:20 +0200 From: Andy Shevchenko To: Yun Levi Cc: Rasmus Villemoes , dushistov@mail.ru, arnd@arndb.de, akpm@linux-foundation.org, gustavo@embeddedor.com, vilhelm.gray@gmail.com, richard.weiyang@linux.alibaba.com, joseph.qi@linux.alibaba.com, skalluru@marvell.com, yury.norov@gmail.com, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH] lib/find_bit: Add find_prev_*_bit functions. Message-ID: <20201202120620.GC4077@smile.fi.intel.com> References: <20201202094717.GX4077@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2020 at 08:50:24PM +0900, Yun Levi wrote: > Thanks for kind advice. But I'm so afraid to have questions below: > > > - it proposes functionality w/o user (dead code) > Actually, I add these series functions to rewrite some of the > resource clean-up routine. > A typical case is ethtool_set_per_queue_coalesce 's rollback label. > Could this usage be an actual use case? Then create it as a patch in the series and in cover letter (0 message when you supply --cover-letter to your `git format-patch ...` command line) mention this. > >- it lacks extension of the bitmap test module to cover the new > > functions (that also wants to be a separate patch). > I see, then Could I add some of testcase on lib/test_bitops.c for testing? Sounds good to me. Most important is to have test cases, then we will see which test suite is the best fit, but as I said sounds like a good shot. And please do not top post in replies! > On Wed, Dec 2, 2020 at 7:04 PM Rasmus Villemoes > wrote: > > > > On 02/12/2020 10.47, Andy Shevchenko wrote: > > > On Wed, Dec 02, 2020 at 10:10:09AM +0900, Yun Levi wrote: > > >> Inspired find_next_*bit function series, add find_prev_*_bit series. > > >> I'm not sure whether it'll be used right now But, I add these functions > > >> for future usage. > > > > > > This patch has few issues: > > > - it has more things than described (should be several patches instead) > > > - new functionality can be split logically to couple or more pieces as well > > > - it proposes functionality w/o user (dead code) > > > > Yeah, the last point means it can't be applied - please submit it again > > if and when you have an actual use case. And I'll add > > > > - it lacks extension of the bitmap test module to cover the new > > functions (that also wants to be a separate patch). -- With Best Regards, Andy Shevchenko