Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2186271img; Sun, 24 Mar 2019 01:55:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK7olsknwkpGr5V9JMfpmFjg978dfHkz97QZX8yUWTjNiik1lIsZoUPmRmX5nlF8F3DTW3 X-Received: by 2002:a17:902:b20e:: with SMTP id t14mr18628720plr.97.1553417718822; Sun, 24 Mar 2019 01:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553417718; cv=none; d=google.com; s=arc-20160816; b=HpxMg7ud2Ly3l9WK1NIqdJtI0tCrInorsYLnuauN/J9ZLrbxE4UIbN5xXE/rX+cPpq eWIs3K8XQgsjCwYXg+dKgsTM+ZTDs0kgyVhgeuVemd9tDcDmpPt3gIEqzmEnm7v9MiQ8 WjA5Ov6F3zfz8fDD7KVhfgqV3q2AWhj9vA4S5qpk27x2GdBpToAkusFfGiVhO+OkO3Ii CFnQoFmZfzCV9d/Ia04/JSPoobrQQQVOdBy/qEamUrU3ocpc/UlC2ko+Q8hZWeCojTFA Fkx8JSpAC84r7JqoMK5I2SChJ/2bHCku2fAJzr8nQmRb/UFWFx0HffEeGJb+cw4UNaG/ Hp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=OlX5NVZHDNgHoVz3vRrZP7Qr5w4ujkQOALBwEQe8WUM=; b=gmoW4zOMYBT6Gke9R5Ipr3TC3Obohc18Eui1CDS55eJF8Brfkp1VpddnWl/upVI9US bZWCNWVH0ZuFLhurnbdWdGKlzh4qWGZL1c8SAQ04iXmXkzZ2BgwHbtm4Y5Ke0WnI4c7Z gkz029xIB2cy+bwHIs0qY5EDDoku/+hAOB9MiDIrXT3YIMcVJ8w2R3vWh4e+XfVgeEc0 vnwO22kX6I9P6xYHL1zNsFIDqeJrWjROB93EuCKePD15bbt472rCsVH64ulRXU8cx1mA tNTzTgKQqLb6xgyvvJYCMA/lcwuWpkUdqmLoGsIXRuB6w1qxTW8dYUBR+eNeW3tyGQ4s 2a7w== 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 q7si4765733pls.259.2019.03.24.01.55.04; Sun, 24 Mar 2019 01:55:18 -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 S1728570AbfCXIyN (ORCPT + 99 others); Sun, 24 Mar 2019 04:54:13 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:38482 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfCXIyN (ORCPT ); Sun, 24 Mar 2019 04:54:13 -0400 Received: by mail-vs1-f67.google.com with SMTP id s2so2380586vsi.5; Sun, 24 Mar 2019 01:54:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OlX5NVZHDNgHoVz3vRrZP7Qr5w4ujkQOALBwEQe8WUM=; b=IIJeemqcj1XxJjAPax03JtLTPelnQSckjCIuBqoTCwJJW2G704arhntEqWQfT40fHm 7Rp2/5O/5aaFlanNOcTyE2f3nKZ961YVJtHWy153u/j/eMmxZ271VmOw+NnY/MXjQCst FmG7VE5k5oM1Fk21pL5XjjWwwlhpToIzV0lA5iHv5N8OqNSksGXiQ6mYerKUFFdbRSKE euKFnM/IHShQICyvwUR965AKSoVAgNyWD2qUtkj8ywz4AEKlf0+CPgc7brNjNp+SBYtz oR1IEec0bgZlDH9xcqLoUOr/2AAJ2rVsqVVw0Na0+jGNriOWgVgXbglTNu+p1Wlpjl9Y XZHA== X-Gm-Message-State: APjAAAXS/jUIDtpgLIVX9kFT7SooOABOlw7hfKvSFdotN6KsE2KbCl6y AxQ7V0S1qJK/aXr3I3vM1gDXCWQgOx+4Ha+KBa4= X-Received: by 2002:a67:f843:: with SMTP id b3mr11388126vsp.152.1553417652024; Sun, 24 Mar 2019 01:54:12 -0700 (PDT) MIME-Version: 1.0 References: <20190322191202.GC9224@smile.fi.intel.com> <20190324040704.GA8285@icarus> In-Reply-To: <20190324040704.GA8285@icarus> From: Geert Uytterhoeven Date: Sun, 24 Mar 2019 09:53:59 +0100 Message-ID: Subject: Re: [PATCH v10 00/10] Introduce the for_each_set_clump8 macro To: William Breathitt Gray Cc: Andy Shevchenko , Geert Uytterhoeven , Phil Reid , Linus Walleij , Andrew Morton , "open list:GPIO SUBSYSTEM" , Linux-Arch , Linux Kernel Mailing List , Rasmus Villemoes , Masahiro Yamada , Bartosz Golaszewski , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 24, 2019 at 5:07 AM William Breathitt Gray wrote: > On Fri, Mar 22, 2019 at 09:12:02PM +0200, Andy Shevchenko wrote: > > On Thu, Mar 14, 2019 at 09:29:32PM +0900, William Breathitt Gray wrote: > > > Changes in v10: > > > - Fix off-by-one error in bitmap initialization in the > > > test_for_each_set_clump8 function > > > - Fix typos in clump_exp array definition in test_bitmap.c ("0x28" > > > should have been "0x38") > > > - Utilize for_each_set_clump8 macro in intel_soc_dts_iosf.c > > > > One more, can you look at gen_74x164_set_multiple() ? It seems a candidate as > > well, if I'm not mistaken. > > We can utilize the for_each_set_clump8 macro in the > gen_74x164_set_multiple function, but I skipped over it earlier since I > noticed it used the BITS_PER_BYTE define rather than a hardcoded 8. If > it always loops 8 bits at a time, then we can use the > for_each_set_clump8 macro; otherwise we would need the more generic > for_each_set_clump macro to handle the non-8-bit looping cases. > > Will BITS_PER_BYTE always be defined as 8 bits? Yes, Linux cannot run on platforms where BITS_PER_BYTE != 8 (no 9-bit bytes ;) include/linux/bits.h:#define BITS_PER_BYTE 8 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds