Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1586275imc; Mon, 11 Mar 2019 18:01:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJHXU1zyfNUIagu1T0ePBVdFlsjOcVEifA54BCL8T8SusPkP+Sqc47Lf3YI1CRd634CZx4 X-Received: by 2002:a63:5725:: with SMTP id l37mr6107792pgb.186.1552352511415; Mon, 11 Mar 2019 18:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552352511; cv=none; d=google.com; s=arc-20160816; b=Hc1EYoQNW8mtJKklRhJ3QT3E4A3CRLXoOapshVcH39ouXEqlVRE2mPPkJLVgciVJEY O4GLTK+oO/hdOvwUVHXUqbeUketwEujY/O7yOflcsZbuHEvVSkdal8k1MfcizwU8re6d QHy6IgAOYiM/Rf/qMIQG8/mpyiz7HnTU4EbiI6JEZMLddufmB8dfyuM4z4iELTz9ZRk9 zyfPuyQMmY4kGkP/SRc8y5wPxOXGTSy84Vk5meKdK3nXlwYv8jTV7Zw+435BNVn7dwmH oQaZIM3oQUb9UcWulEvlE+Wf2mmoIxHP8ZL33vnk/n3U4ib0JHBDwNhzc++6eLfCnzau Xqiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=DGJpt2NSKqpf6emP2/yXs3jve+INvSvlm7cXQnPVIeI=; b=upma3Z4AhVxz8OgNEfCLaTJZzUVc3nsNkQ6Y7xJlSytcPmpqorxmFCuaUen/0aUg5j KQMYgxG4ZKI/kBuFfVdQTcCUcWoVEkKQlevDs1PDOWoQp+QTJ4cECCZv6g1OSvXkDOwb oV8UDPKzfpwz7HsFh3DQ1mSIGoes3goTgAZQdlVbl5xdTBkJ6i4WuJuoKIGbRv2QB5JM q8GSrSbuOlhFUxzCJpYg3r9AWjpcrkLQqEM6KZSm236Wm4W/SdWNDGCpRZoaoO/KpWtG SHPM5DyjWoBnS5Z0XV9SCgULQwdOnD4G5SViXwbnZsIX4k0UJy/E4CX58h7WWvaEB+W9 VslQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j7si6864039plb.349.2019.03.11.18.01.35; Mon, 11 Mar 2019 18:01:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726434AbfCLBBR (ORCPT + 99 others); Mon, 11 Mar 2019 21:01:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41144 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfCLBBQ (ORCPT ); Mon, 11 Mar 2019 21:01:16 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EC52BC2A; Tue, 12 Mar 2019 01:01:14 +0000 (UTC) Date: Mon, 11 Mar 2019 18:01:13 -0700 From: Andrew Morton To: Linus Walleij Cc: William Breathitt Gray , "open list:GPIO SUBSYSTEM" , linux-arch@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andy Shevchenko , Rasmus Villemoes , Masahiro Yamada , Bartosz Golaszewski , Linux ARM , Andy Shevchenko , Arnd Bergmann Subject: Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro Message-Id: <20190311180113.c283fdbcba3df10db2c815aa@linux-foundation.org> In-Reply-To: References: <12b3a364ac7fc32194fa6f55911dd800aca92a56.1551598603.git.vilhelm.gray@gmail.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Mar 2019 09:31:00 +0100 Linus Walleij wrote: > On Sun, Mar 3, 2019 at 8:47 AM William Breathitt Gray > wrote: > > > This macro iterates for each 8-bit group of bits (clump) with set bits, > > within a bitmap memory region. For each iteration, "start" is set to the > > bit offset of the found clump, while the respective clump value is > > stored to the location pointed by "clump". Additionally, the > > bitmap_get_value8 and bitmap_set_value8 functions are introduced to > > respectively get and set an 8-bit value in a bitmap memory region. > > > > Suggested-by: Andy Shevchenko > > Suggested-by: Rasmus Villemoes > > Cc: Arnd Bergmann > > Cc: Andrew Morton > > Reviewed-by: Andy Shevchenko > > Reviewed-by: Linus Walleij > > Signed-off-by: William Breathitt Gray > > Andrew: would you be OK with this being merged in v5.1? Yup. We have quite a few users there. I assume this will go via the gpio tree? Feel free to add Acked-by: Andrew Morton , although it probably isn't worth churning the git tree to do so at this late stage - your cvall.