Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp743290pxu; Wed, 2 Dec 2020 02:07:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX2Sg1OwTP5Hm8UlHAp2rpq8JKsNH+cT2EEePWzYCt+RpNWgA5uUAd7HU+MQ7eLwJq/MRd X-Received: by 2002:a17:906:a85:: with SMTP id y5mr1552920ejf.296.1606903656866; Wed, 02 Dec 2020 02:07:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606903656; cv=none; d=google.com; s=arc-20160816; b=x5L4IxOAL4kFdPVqmHmtvk19EDE2XviFffFZiwi/vp+tGjspOJxC6/4PdDsLlmONiE HccBc2KuDpZFzqU3Mp672yXt9h1jTp5hCjVXtVUTCyzWw+7k8m34oqDKrLQopfUe7+Wo CHw7mt0l6gvcghgiimYxjTQcqWkgBZ7Scskb05eZ5rthNZCaqDstaRHOMzhDKYvB+GHj c26vdOe2wcsRWJkYiCdWogqFvrm+Im27bc/X176FhYgCblDNQ9ycVX7Syd6nJ1RO1qjG SuLlRF0iPPa32qcVPJyxhMB6GC01CWSRY2urHc3gXDCImJuBrC28EOt44AFCURYmZQuY nCGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=k2wK+SflPRbjYVi77tMFczNFaefq/+v7eYCY6aqL0Dk=; b=FcnXRfJov65rPTkVavxGa4d3WYnTT/jr8Nih2f8A/7BVqZq3kxHp/P5AuOCFd2xesW an21TJ8efQ/Z8sBHcF3b6vHP+EaMO4DUi9RooHaGvXzoZHsRRHRMm1cA8DO5N/WwahzK fauxGxUkM+Q24dnsQvQeMQ0nORAxiQRFQWb9y7/hZN9dS/SMrvvVFwYu/gFLDuKqKpqI fEg3hh36vCrykmlNvDQ4Y3NmDI1l/MIQGCTNdRVAO+lPjPtXyFXM2pZ083KhHI/uHC1O KqQSjqKYP+GBMqOGXUIFvkUxhX/oSHpTv3BKW1HB+G7oN6QciJeknEsNvgnWoaGJorOT PdRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=bVO0rlUv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si764610eds.453.2020.12.02.02.07.13; Wed, 02 Dec 2020 02:07:36 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=bVO0rlUv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388552AbgLBKFV (ORCPT + 99 others); Wed, 2 Dec 2020 05:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388535AbgLBKFV (ORCPT ); Wed, 2 Dec 2020 05:05:21 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C001CC0613D6 for ; Wed, 2 Dec 2020 02:04:40 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id lt17so3079905ejb.3 for ; Wed, 02 Dec 2020 02:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=k2wK+SflPRbjYVi77tMFczNFaefq/+v7eYCY6aqL0Dk=; b=bVO0rlUvIw1AdYtEvq7dl8VyY+qyie7H/qPxoruOvWHpd/77weF9FvlLWaD9YFfhgy QAOrQMvhAaApkQ4whj92STIDXdMQCyC+DZZV5hBUg4n/El62LpF6f6J3gSz9ORevu2wF i/TBCT02fWq2q47FXfhhPYhiJiRDtGyVFMHTA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k2wK+SflPRbjYVi77tMFczNFaefq/+v7eYCY6aqL0Dk=; b=iz8P/kErqDmg/SpuQu0tHw7Fdt+5tHtoT5CwQ5BPNuVHCU1amuKRUHQMuCGy6N4RD+ Mj4grj2MMQOW01Nj59bW9IKAEsTTMB9eNZg69AR2+t0cj/xOW8ZOt0DNz86cPuondWX/ xqyUqf7LTe+3bzhG5gLTM7yZ8Ywt/VRaGAMp243M/PpeoN7nBv//Fxsu3yg9H8fcQUdj +7TblbPqdxjNEAdFKItY7LaHOIqZIuZZ50SkL0SR/LMSeB2mtvZlTqOGQLfQE5/+QLDy w0f7aP+W2Zq9Ab2FP4Sivgk+gMT383bfMWbFgTyTwtdLk3FA0g2M155VK21kYcIs+qhZ tMUQ== X-Gm-Message-State: AOAM533RBw2DAR23SGfrAnf3P/Y70mm2qKDbV9VddvFxVQSOe4jx+5hp t2IUhqcBc/d/z22De9aov6FcDg== X-Received: by 2002:a17:906:a1cb:: with SMTP id bx11mr1509253ejb.508.1606903479488; Wed, 02 Dec 2020 02:04:39 -0800 (PST) Received: from [192.168.1.149] (5.186.115.188.cgn.fibianet.dk. [5.186.115.188]) by smtp.gmail.com with ESMTPSA id pk19sm806705ejb.32.2020.12.02.02.04.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 02:04:38 -0800 (PST) Subject: Re: [PATCH] lib/find_bit: Add find_prev_*_bit functions. To: Andy Shevchenko , Yun Levi Cc: 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 References: <20201202094717.GX4077@smile.fi.intel.com> From: Rasmus Villemoes Message-ID: Date: Wed, 2 Dec 2020 11:04:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201202094717.GX4077@smile.fi.intel.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). Rasmus