Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp815469ybp; Thu, 17 Oct 2019 04:04:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyC0D7xwBIpjmlMXBiBAQAtercCN5v0rwKKA2FFwNOCEw7Daw5HFD8zAafWRimqw771D1KU X-Received: by 2002:a17:906:7e17:: with SMTP id e23mr2886566ejr.205.1571310258836; Thu, 17 Oct 2019 04:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571310258; cv=none; d=google.com; s=arc-20160816; b=JcauMMh2fZQBZoyZ7pRBAxEohbMUIvkvKQE06qSFT8SQ9E2ApH7kX7izxX9DGLqPhR mk35Zid4Lf+s/PSt+ISIRkmEUNZ5g81n0ie2lwBEMD3OfW5m+rW7H8Wlp9fhXKk71B0T k27ON4+R6rESJ5VrqEpgBG4kyGaJLoqfT/LX0EziJOCDkaK0iI0YlsPjnkA45NYTMiF5 gStH0TpxaL/VXv54C4avYtbic0aEFUOEZcRRvSZqKIYhJyU6iXRuCQYizqvslwlN4zTJ 0gp3iCZD/tC0IXNTLu+aRTH48j5tqxu+OcWdCNTCMTgq7Y+n5xjl4qTzfXy9kOGVs3Al p1gQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SLHuUAI51zqpOoY4mLBl+fp0NibSGRXA+wwSOeMW2Ic=; b=eosuBEUUoWl91nDayyLVlGKjcKU8xLQWRR/FqG+3f3warIY1y761D85550G8paoJXp EfEAd7x4NU9rP9jVwSorXH/6BDkVWo7GE2bteE+kALD2YntEqppfdO8FVkBIanWelEHQ PlRO8MdufdfmNDK/xCAYWleMLHyQCDszLOHEHifdVAOI1EYgHj3IKgUDxIeEI7itoXHs Hm3P9B1w/mdFIRyHbpc+pT+vfkSUMOAPBrxCLR0IKtfMqpangB8N3qWYyP06FX+Yiq72 jGPxU5ljz7HVwuk1Uoh+TkgElunCOXb5cj+Hq364C2C8/XIWyrTiFv35RiKdshA1GHQX jFfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rvNQylRz; 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 b34si1440358edb.439.2019.10.17.04.03.55; Thu, 17 Oct 2019 04:04: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rvNQylRz; 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 S2393645AbfJPQSl (ORCPT + 99 others); Wed, 16 Oct 2019 12:18:41 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:40330 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbfJPQSk (ORCPT ); Wed, 16 Oct 2019 12:18:40 -0400 Received: by mail-yb1-f193.google.com with SMTP id s7so7993827ybq.7 for ; Wed, 16 Oct 2019 09:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SLHuUAI51zqpOoY4mLBl+fp0NibSGRXA+wwSOeMW2Ic=; b=rvNQylRzWjq/sDxLXksL1A5D7OVt0fv1VWMAQUOp3axuwKdUIgf5tbL8gr0T4DKdi5 ZFJrsYtCO847NNxoDTqX9vapUBRbPitGsZDOwONFhBaGiopmAN8nAI58Fcs7VIgtO2lm bYneVujpt3dX1gj8sQaZq8kY40rzC+NFypsPb3vvbnVoOAyV/QaqcQ7i/GXOytITeGE6 knmd9xZ+nlgweNjb+LJnd1uOy1E6ICn8xqOuT3QyrwCun0YrwFI4IkP3rkG10JlRn8l9 vKwsdmsOJTDO8CRqTnT/56MLs2Vxv9fktWaM4zvDSes/80088NJzk5eXs95AfAEu8Ryf ixLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SLHuUAI51zqpOoY4mLBl+fp0NibSGRXA+wwSOeMW2Ic=; b=fppm1X3rquQw9qi4XGYomk/NDxSYVrXaBiOnjSV2JIixvf37x+FzjJSrQXEnyM44Ij NB2E8mtGgbYssgTmF83PGwYYS4OPSuJVDuSeNDJC/lO2OlSYyepfbUjbM1JsveZstWkz 7Z+c3C8AIWv2X+8GOScoex8EIrg9eXXyTnys6cRWuyd3nLcDepWJ0D9Czb+4VItA+vqi oCcmdo/4Yshq7NMSeiWh+ZaRurfY3pJk53GiQinEMVBP1A76i5PjrERKlOTcmb0+XTzv aXnBwxIRBvQw33HyNQ3BKUiUoiiHu0Amtr0O3R0qsxBkcYbJsVyrPYwOP7t3yLUoKtPa /Cqg== X-Gm-Message-State: APjAAAW8ZW93Xi6GR3mBi5DNHk9j83OXEPglIx7UnXeqCKxUfrNZ6moT U5eN9P4Qss0pPtjAxIyHO9M= X-Received: by 2002:a25:3086:: with SMTP id w128mr29101340ybw.385.1571242719670; Wed, 16 Oct 2019 09:18:39 -0700 (PDT) Received: from localhost.localdomain (072-189-084-142.res.spectrum.com. [72.189.84.142]) by smtp.gmail.com with ESMTPSA id 5sm6037910ywb.73.2019.10.16.09.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 09:18:38 -0700 (PDT) From: William Breathitt Gray To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, andriy.shevchenko@linux.intel.com, William Breathitt Gray Subject: [PATCH] linux/bitopts.h: Add for_each_set_clump8 documentation Date: Wed, 16 Oct 2019 12:18:25 -0400 Message-Id: <20191016161825.301082-1-vilhelm.gray@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document in kerneldoc form the for_each_set_clump8 macro. Signed-off-by: William Breathitt Gray --- include/linux/bitops.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/bitops.h b/include/linux/bitops.h index fb94a10f7853..76ec8f0ce3e8 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h @@ -40,6 +40,13 @@ extern unsigned long __sw_hweight64(__u64 w); (bit) < (size); \ (bit) = find_next_zero_bit((addr), (size), (bit) + 1)) +/** + * for_each_set_clump8 - iterate over bitmap for each 8-bit clump with set bits + * @start: bit offset to start search and to store the current iteration offset + * @clump: location to store copy of current 8-bit clump + * @bits: bitmap address to base the search on + * @size: bitmap size in number of bits + */ #define for_each_set_clump8(start, clump, bits, size) \ for ((start) = find_first_clump8(&(clump), (bits), (size)); \ (start) < (size); \ -- 2.23.0