Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp642446ybz; Fri, 24 Apr 2020 06:54:59 -0700 (PDT) X-Google-Smtp-Source: APiQypI+eaXOJrPt83C3Uo9wCt46OafWbhlgmngTboidR2D3gTJVjzu/mblxrXaXY2fRBX6K9e1l X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr7260316edr.76.1587736499598; Fri, 24 Apr 2020 06:54:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587736499; cv=none; d=google.com; s=arc-20160816; b=LI/kQOu/oqqn5tCxPIEGNfQZA1W7jsOkaUr9x7p/Q4B/LYpdTL3Jif4Ptna5iQP79O nIWkProm2s6HhCd7RRg5KTo4y95WGQkC9bQACoHVG2ePrykwBWx4BEZM21lOd68pgDTU j5yUNyWMY+0kUmoQd1CAZb5GeoU9RuhG8E8bRw3Gz9vDnaq3cNOl3/tOfApmtr1sXXYV Mas+LdL11Fxs9fiH4FgROczb7LOpAcjYKHTEqHEY76Ud88eqW5hYXxa8BxLCZNJQKVhk 9Zb6fRBSZLnNsEtxwmbwu+1LK5uU4S3y4tVH+0e9PQ2qhg+dEtuLoX4BXOo7zjPv/Eci OJWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fgJguWGGGlAwhNoBLU8EzUqvt2IciwBdbaU2eBO5bRQ=; b=n9DcKElxiBoMJQFXF+S6Nf/mwOdDyzzd5mTUviC45F/5k54AW6Twl4oiWDA+wGniRT Wxq9VhdnvJbnLq7Zj3Y6UthZasVDxleyECjF+jVe9x/eaA0XUfBt7nfJIKsFoQgsXaC3 6g0QJ8qc9nlpOwzxRsfCGW+6mx+NPUi7Mpyw+9+NsOrlVMeL6oWDMPzwZFmhF1z9Q9hA qu0DeN1vZEOvwYYBp1ZVMHCSon+tJIpDQGeKXKglJ05kNTYXb8MbT//T0T4tGrMBp+Aw V4Y0pXSL6vG7T3ngHL0T7e8GTR2Fdi1vW3AFJLl/MKb3b/3GsToIHPLgQPSS15v1RIBQ PYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZpSrIlJF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si3109519eju.8.2020.04.24.06.54.36; Fri, 24 Apr 2020 06:54:59 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=ZpSrIlJF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbgDXNvF (ORCPT + 99 others); Fri, 24 Apr 2020 09:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726301AbgDXNvE (ORCPT ); Fri, 24 Apr 2020 09:51:04 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71CF0C09B045; Fri, 24 Apr 2020 06:51:04 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id c63so10195759qke.2; Fri, 24 Apr 2020 06:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fgJguWGGGlAwhNoBLU8EzUqvt2IciwBdbaU2eBO5bRQ=; b=ZpSrIlJFDAQM2PzcbDXbif7ws5tgVsC+SiR4zGfEblxvm086ureP8r1nAITfl8TIOy GOkHU0Cscq5l+LM684La5i3gk7cPZbCa2RJz7An5lly6zB7wUEIpwukKeQrxg/oG4JB6 1epMl0zCFhVwi6KydpE32wQFW2goQwOzMyRv8uK6V9qzlwSYr1FEZFyRd223cPiKKFae kPQvywYLasJWWSG7jzSITghE7vV8tfJ7Csz9eEV7xaPJMDehUKU3jBZapUnzf0Q/e1Y7 zoJcJI1puU/0SYKl7j0YbtGFVfNcoIJ9G+HGChIzjOX48DIis3JCkKaqHiNpBNOyC70x szRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fgJguWGGGlAwhNoBLU8EzUqvt2IciwBdbaU2eBO5bRQ=; b=t/Jt/vJxZFswOQjE5k/dy+bQoex60vLAvryBlF7MudY1MnKxajXY6oHLN1WNIbhQkP a4UX2HvEBDPTjY/F5/6wiTVxm6r+/uNAde2fZVJyUwWguwPvk2gITNiHlO+Tp19xpCre 9pU/X3xJD5Rm8MyqI/V6zPFNEW9NdLWXfbHo7XwxFfGo3EAE6pi5nfso5yJzpQPXatdS j8Kd6j6yfh5Z/Y0N8vfydgBkGavrE9SDELCW3CeALA5uLtMAv4v3YByRsmRCf9HUaiRk m5teFkgjUKjPkj08UORO/Q36N/ryWL5VQHIOiiXcqsndwFtguPHIhPNMlBRioRsTgcZ/ eV1A== X-Gm-Message-State: AGi0PuYXxP49YLYcUY1zBLMMp91nkPbLBGQ093ZpnW5EzlgmWqZbbVXm yg6QKxa1QoSvYF7lz3RxCUo= X-Received: by 2002:a37:48a:: with SMTP id 132mr9342479qke.390.1587736263497; Fri, 24 Apr 2020 06:51:03 -0700 (PDT) Received: from icarus (072-189-064-225.res.spectrum.com. [72.189.64.225]) by smtp.gmail.com with ESMTPSA id z6sm3741966qke.56.2020.04.24.06.51.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Apr 2020 06:51:02 -0700 (PDT) Date: Fri, 24 Apr 2020 09:50:33 -0400 From: William Breathitt Gray To: akpm@linux-foundation.org Cc: Syed Nayyar Waris , andriy.shevchenko@linux.intel.com, michal.simek@xilinx.com, arnd@arndb.de, rrichter@marvell.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, yamada.masahiro@socionext.com, rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, linux-arch@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH 0/6] Introduce the for_each_set_clump macro Message-ID: <20200424135011.GA3255@icarus> References: <20200424122407.GA5523@syed> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline In-Reply-To: <20200424122407.GA5523@syed> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WYTEVAkct0FjGQmd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 24, 2020 at 05:54:07PM +0530, Syed Nayyar Waris wrote: > This patchset introduces a new generic version of for_each_set_clump.=20 > The previous version of for_each_set_clump8 used a fixed size 8-bit > clump, but the new generic version can work with clump of any size but > less than or equal to BITS_PER_LONG. The patchset utilizes the new macro= =20 > in several GPIO drivers. Regarding the nomenclature, I created the term "clump" to represent an 8-bit value that was not necessarily a byte yet was a contiguous grouping of bits. With this patchset, we now have a more generic for_each_set_clump macro that can handle values larger and smaller than 8-bits. Would it make sense to retire the term "clump" and instead use "nbits" where applicable, in order to match the existing convention used by the bitmap functions; for instance, would it be better to name this macro for_each_set_nbits? William Breathitt Gray --WYTEVAkct0FjGQmd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEk5I4PDJ2w1cDf/bghvpINdm7VJIFAl6i7qkACgkQhvpINdm7 VJIciBAA4lGCd+eUHQXeYgvLK14UXVfbjASoiUjFVFetkDeXj+GGFQG7W/fVMxrM LoJV4wXwNl9qyedfdNI8aZmjUwF2Tyy+XEaxo/wa6XyfIXvKrqDYNpESIhvFgMv9 BcxDVlWrMixZ440pQqqFRfGx7bLM2pryn05hh5yr46Y3kZZRISeAlygC+cZfDmzT O7KXcRIB4ZTeZ0irSlLKsEFpp42YIKUX+gt3zwkxSoRIhfBRToE2KU42oLhez48t WuUHpZ2TexCV35B+QAjjAXqMdnL3Rg43pRCJG614VuvSleY2hAkED5lqMlt0SIh4 4kEbvK/fea2QInYY/WA5EKxtFka9huXJ1dhqqUUSFFQfUPhqA/GSxpZ+5o7EeWjr v4d4uzg897E5BwZhrWOJUHBIfA4LXkQMV+ZGL1ijWmNnYy3uigREGZYrNylShQ1O INlHzTcoqy++g+kETBV/MEZJWGbtqRGqr4/u1UaECO/Ccy0cHDhp9mQ0JmSoXdQe pIIhBDfm3raffCMVjSqfVToHENxHuwqcTIgxJ+CAR7j2BOAF/oeNULgsKnRZrfMu UE32VfmG2xXdHiqw4R/fBzK1g/DLF7c04RYBPjY7S1/Tvrox9dTnfJbPA1r4KB35 vIQf2L/hGGV/F/IRYgVdtVVVNaB3qEsrimj0CJjnpQYNkE3fUoM= =A+Kx -----END PGP SIGNATURE----- --WYTEVAkct0FjGQmd--