Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp518768yba; Thu, 16 May 2019 04:53:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+jHiAuKWmz17MfFn5xnkUEAeNC/F94AgPLuwScuErDQhoS1Mc+E+OFjQNmZwrUcvDJZdr X-Received: by 2002:a65:614a:: with SMTP id o10mr32879315pgv.258.1558007607676; Thu, 16 May 2019 04:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558007607; cv=none; d=google.com; s=arc-20160816; b=sYA+EwbZqGrtBca/lsFMkvbpcMefHpM0BjlKKOjqcrAazpBLRyRp7+bVBJRgTrYfac 83Ud0nrm73eJQP7XJ/ybrMzOUvWMLt4jzqpTOiP2+m2N00W6WDyFm74Sr5LdwYhTP8cY 07RigQFOGev2EeYLOTRCE9E8AkJ4Uo6VSjO1ijjOt26HSfdIS6UjSkcCPMXnQSlxM54r smCRFxiuTe1isGp0QXox4noS95N38uUVq2QEwogHYt1NJSl4PR/QESDYmPwn1QHHM93d BuSnE9ozoh88WSzZVsNPLSO2bsPv+VwE+aGP323RGUESl8sBhYyz1aDj+1Wkuu2sdB3o /49w== 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:dkim-signature; bh=ZfZWKHa7k32vSF2Rgion0TnHTAjuA1aCE2qsRonqXP0=; b=SuCYvSWYplIkXTV0coirrC2WRHf9VFMkGapxs+QSV5DzPpsFwMuB3PGim4LQ3iV1qt IAgjVk+WDpJ178FCeo3ILfXgvmFgKHhD9GOueLlipmkwZw+1Lv3fUyqEtCJWX/ZgmdXg PpynIo5Oofiv0o0GGen4iZ6DDLLRPnDXEgJhYYAWlex0/u72BB376/54guIdF95+mb98 5ODu78c/cyJNTT7UKLiP6BJ2pKG9/+aUZ+5zEsI60FoZeFFulYC1RpU/T2ijn9lP7blM p4YpSYq3pm35LF5xQ81n905Cmaq44/WDyylF9QZGZijZ5sgAdNub2pgKbIFW05A+qB7M d+Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=axwfrku8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si5135563pfn.225.2019.05.16.04.52.56; Thu, 16 May 2019 04:53:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=axwfrku8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727568AbfEPLul (ORCPT + 99 others); Thu, 16 May 2019 07:50:41 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:44998 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbfEPLuk (ORCPT ); Thu, 16 May 2019 07:50:40 -0400 Received: by mail-lj1-f193.google.com with SMTP id e13so2776909ljl.11 for ; Thu, 16 May 2019 04:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZfZWKHa7k32vSF2Rgion0TnHTAjuA1aCE2qsRonqXP0=; b=axwfrku8av26C74Qcnj8NMFl8LQW3ytVsyxJwHyHrABKFSul4eTIQRAgniBSpRNR2T SUCKllbRVUhjH9a5M8vQ2ZctPU2aRCPW2zzHfrExJfmGQGGJKj+UZ8gMQKIIKMCg8q+W d71EwYTR3Nq/rACyFL4CAxYsp4QgSeBRv2U7Q+fNBUsAFO7pdw4soy6W9pOYAyCeXSbD CqdAcuzevt6wp/8joMtEkxOTMm36jy27fYgJD0kUVC1x24NqeVW7JvAfFlnUf7AVqtb0 wSTH5rhMPlygfwvgCPaK4TGfEgwd4+eSNjsCqRVenL0HNST+g99Optp097VsBxKhX9Dm 4j2A== 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=ZfZWKHa7k32vSF2Rgion0TnHTAjuA1aCE2qsRonqXP0=; b=qwfm5GkHBIUQPS6NPEeHYSyt850neH38+1e7fRlIoYRxl+OfoSHJm5Z5611YuKGPfi S1VJhw58QQxXBTE2eFShwSqKP3C1ewxQ9c877cgVdS9OSV7VxTLP8hzAmBS5cLAOJgyX qf6/3HD5qLvfNTNyrkun40FNmvVvphDYgSea4MZf++ZfJi8CmteuZ1eJ0izi7clhL+gY /D/qq3NnmXy+24TT6Vii2lqVfpCxlptgtP5Fp4ZvtyIDPmvskznjkkERlN/O28joYFxO bDqmgDzymOHvX/p9wsmrN62VOayZTUxeWTXZAV49D41WQ8YZ4Hp9gRVK5PxfTqmzFmeI plGQ== X-Gm-Message-State: APjAAAUY0ddMPKxDNvbj2ZgGdWyAiit9nrzwRPXs0PAE77XS6gT2AQHD rCWyewK77q8hXMB8jLo9uxcjNdgBhf4UiN5JHsBm6g== X-Received: by 2002:a2e:60a:: with SMTP id 10mr3127929ljg.126.1558007438447; Thu, 16 May 2019 04:50:38 -0700 (PDT) MIME-Version: 1.0 References: <1cc8b30bb3954ca2a0961ffb0a2eed8a005ed670.1553828158.git.vilhelm.gray@gmail.com> In-Reply-To: <1cc8b30bb3954ca2a0961ffb0a2eed8a005ed670.1553828158.git.vilhelm.gray@gmail.com> From: Linus Walleij Date: Thu, 16 May 2019 13:50:26 +0200 Message-ID: Subject: Re: [PATCH v14 01/11] bitops: Introduce the for_each_set_clump8 macro To: William Breathitt Gray Cc: Bartosz Golaszewski , Andrew Morton , "open list:GPIO SUBSYSTEM" , linux-arch@vger.kernel.org, "linux-kernel@vger.kernel.org" , Andy Shevchenko , Rasmus Villemoes , Masahiro Yamada , Linux ARM , Linux PM list , Geert Uytterhoeven , Phil Reid , Lukas Wunner , Andy Shevchenko , Arnd Bergmann 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 Fri, Mar 29, 2019 at 4:03 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 > Suggested-by: Lukas Wunner > Cc: Arnd Bergmann > Cc: Andrew Morton > Cc: Linus Walleij > Acked-by: Andy Shevchenko > Signed-off-by: William Breathitt Gray Reviewed-by: Linus Walleij Yours, Linus Walleij