Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3289437imm; Sun, 13 May 2018 08:07:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDkmvMHVpsA0ppHYVOZaTUhFNsI6Vb/Dxx3ZNg2UZnKPhOMgarCNoR53RuzeZKbJ4xJUdR X-Received: by 2002:a62:a89:: with SMTP id 9-v6mr6748430pfk.112.1526224031233; Sun, 13 May 2018 08:07:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526224031; cv=none; d=google.com; s=arc-20160816; b=NKLZn4KkcXNYJaufRFKu7oJuz1hXhTnxrnlvgTs097c4wYVFc+Ia7jJQKQFnIVg1xU sp7w73KnNbyFkcQC0yl5ZdegcD9mvL1zgx1dncMIb+Ef1u0/xSRy8l4luncLaMaDQSV4 w8Xn7uJPHMBA4T2rSJmYkeTwRAbwrHiHm/7GMdX9sWqzcMMautd4G3GrOjVN7HrYJ3YO NtzEiOwdlfa3cUwyqoMH2b4PcLvKxzRhFs2s+aIOPooUR6zfHeiB7u1Bvtu6327xLxvA wSXnytDLwuY4QZDt4D85VuAka+2HGGKcD9Hgy5wZElT5xEHxfv2Ph6eDzU6h1HRDmyZh ZsKw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gYyWvsU+93odVZH2ZuK8V7EbVrbRL3huRfHb8xiy9ls=; b=QJct8Whyd0kIGyL9uuLt/2MrcpMQCb8S17KjHKW+gZDkiE7Y7T31v1Fc2d8KObOWjz 06yGJPDGCEdCi2UcAjn6m1cku1DAa7NTpMqZQuBxmg8cxiYAB/HFgIXPxaQIPrmXXBhM 6Lp88L748iLmA/7tF3bnT8HvDB96RYHjNwMcVH4ubmip12PRfVZza/vJMoRm3flc74/g DE7wWM0y3/bQ68spCMyfVR5Y3RZvS/mreE1l/pKJSBarVDtiq5bT/95fb4VOlDJXL4Ig HYlcAhBZkVTFyNcfvi2XxAZDmbgckOXBerxwppgwLuZF5GMnUzXM3k9+e86Qh/geRrEF cN3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RYQWO3Mw; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6-v6si6062274pgv.80.2018.05.13.08.06.55; Sun, 13 May 2018 08:07:11 -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=@gmail.com header.s=20161025 header.b=RYQWO3Mw; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751518AbeEMPGq (ORCPT + 99 others); Sun, 13 May 2018 11:06:46 -0400 Received: from mail-qt0-f170.google.com ([209.85.216.170]:46530 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbeEMPGo (ORCPT ); Sun, 13 May 2018 11:06:44 -0400 Received: by mail-qt0-f170.google.com with SMTP id m16-v6so13082221qtg.13; Sun, 13 May 2018 08:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=gYyWvsU+93odVZH2ZuK8V7EbVrbRL3huRfHb8xiy9ls=; b=RYQWO3MwUB7q97ET077PR1ib98HTAGIpfbbRxZ1NIGQCd0STZBxOcH4aP6JjI9lx4W /GpX57UISK1azO3q4sMjZAVyFME+hybD/V4nXPoghb3J/+jgn11U2yMJBR92HXEwAJaV v0R01em+zmFo7gRA7tTdOm8dR2wYlB4YK37OyGApQkztgKGKHBED8rc2KwSMGLqbEfJO fkqU7BRipo+MX3Bu1qcvIpbQOE0H9beAKr9qzhlIrf2ELgWSHaPKeuqcEva+Q0wBygJJ 4izCPBE6mlF8RnlyMHN2APIAdzUaGmzXJLChdO0/OAyd4bjimRTqQkrGgAkjlLw9usIy Hydw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=gYyWvsU+93odVZH2ZuK8V7EbVrbRL3huRfHb8xiy9ls=; b=k2paeUJwW/2FuoyRS+SZDckS0kOTQqtEY0lDwbx+87qBnZ4coDSCKRqJSh9xYZRqKe eUeLiml3QB063V92F8M2pbzoRrZNOLKAK8UunFJhNTyWpVgJ0/J0n3vq8PnafsHKWtn9 R+ZNyXwzDuYsPREAJVtxPUeDHdpznj7Xbwq8xsbvKFSGmChgz1H1KJlwqdWcGWcHXYX/ 0qUfTviPoDTDfJDS4KEXI+qgZWuSfQMudelxepGrJGK8vUa5g83X18MoBsMwPMSBNMvs Nb+4n5rH69fhoK1Tr3s0du9ihmWy/yyLS1rJjIGRIhNebYN2LYw56wGuTlovf8Pb/vG1 AIvw== X-Gm-Message-State: ALKqPwexO3quhIaCBKXiDP4MSitQfXdNxAeIzp9OjqUiAQM6zqmnL2bT NFa98KxxtK/PGz78Rl6YGd5V7IKF3qrpA698IRM= X-Received: by 2002:aed:2c43:: with SMTP id f61-v6mr5536997qtd.105.1526224003283; Sun, 13 May 2018 08:06:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Sun, 13 May 2018 08:06:42 -0700 (PDT) In-Reply-To: References: From: Andy Shevchenko Date: Sun, 13 May 2018 18:06:42 +0300 Message-ID: Subject: Re: [PATCH v2 1/7] bitops: Introduce the for_each_set_port_word macro To: William Breathitt Gray Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux-Arch , Linux Kernel Mailing List , 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 Tue, May 8, 2018 at 4:26 PM, William Breathitt Gray wrote: > This macro iterates for each group of bits (port word) with set bits, > within a bitmap memory region. For each iteration, "port_word" is set to > the found port word index, "word_index" is set to the word index of the > bitmap containing the found port word, and "word_offset" is set to the > bit offset of the found port word within the respective bitmap word. Isn't that idea we discussed some time ago? In any case, part "port" is too specific for a generic function like this. Please, get rid of it completely. No-one knows what port means here. Just makes a lot of confusion. > --- a/lib/find_bit.c > +++ b/lib/find_bit.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include No need. It's included by bitmap.h IIRC. -- With Best Regards, Andy Shevchenko