From nobody Thu May 14 10:29:59 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC7DAC433F5 for ; Mon, 11 Apr 2022 15:06:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244207AbiDKPIX (ORCPT ); Mon, 11 Apr 2022 11:08:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242472AbiDKPIV (ORCPT ); Mon, 11 Apr 2022 11:08:21 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D3A26AC9 for ; Mon, 11 Apr 2022 08:06:02 -0700 (PDT) From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649689560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0SpnBUNYF7IdMykaPknEWXlhXxtB3Szs3zjTPH9JYdo=; b=PbAYyuPoBduMJ19YSTPzj9A2Gvz5vsQgcCKAWM6Qoxq+pR+NvhdrAmMJ3SYVjwuCFp7cuM 7iS+grK0BeRrbzPES145R2S4pNPb3mIv8vDkH5jEAnsWvwB1gS2jIY6jkCFb14hiq1TFx0 8mH3bNeoVPvov0ufXIVjq7wWcqiBv5qGl0O0JBJq6o7ibE/GVirsTdNHM3k1Am2xhyOokF /S8rbwLejiB3II9RRB+GKnUQ44a/QtjM3e9XP7aEZwg4MRdPiwiWD4lMLsaX6Ln0r6Fkit uotwOTRjjZZynh/PfcCbCMu/hk1DqUBugPqjG5WeCaS+Qywq0Ah7m9ZTdpuK0w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649689560; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0SpnBUNYF7IdMykaPknEWXlhXxtB3Szs3zjTPH9JYdo=; b=5/yKKDhzWh3KVs5E5CvoSqXM8e4bIzDIfkmR9Zp/g1VNZgrmU77N/vRPQjOwuQUKkolqql IOXi8pi+Ee3WLvDQ== To: linux-kernel@vger.kernel.org Cc: Thomas Gleixner , Yury Norov , Andy Shevchenko , Rasmus Villemoes Subject: [PATCH] include/linux/find: Fix documentation Date: Mon, 11 Apr 2022 17:05:55 +0200 Message-Id: <20220411150555.26023-1-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The order of the arguments in function documentation doesn't fit the implementation. Change the documentation so that it corresponds to the code. This prevent people to get confused when reading the documentation. Signed-off-by: Anna-Maria Behnsen Reviewed-by: Andy Shevchenko --- include/linux/find.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/find.h b/include/linux/find.h index 5bb6db213bcb..424ef67d4a42 100644 --- a/include/linux/find.h +++ b/include/linux/find.h @@ -21,8 +21,8 @@ extern unsigned long _find_last_bit(const unsigned long *= addr, unsigned long siz /** * find_next_bit - find the next set bit in a memory region * @addr: The address to base the search on - * @offset: The bitnumber to start searching at * @size: The bitmap size in bits + * @offset: The bitnumber to start searching at * * Returns the bit number for the next set bit * If no bits are set, returns @size. @@ -50,8 +50,8 @@ unsigned long find_next_bit(const unsigned long *addr, un= signed long size, * find_next_and_bit - find the next set bit in both memory regions * @addr1: The first address to base the search on * @addr2: The second address to base the search on - * @offset: The bitnumber to start searching at * @size: The bitmap size in bits + * @offset: The bitnumber to start searching at * * Returns the bit number for the next set bit * If no bits are set, returns @size. @@ -79,8 +79,8 @@ unsigned long find_next_and_bit(const unsigned long *addr= 1, /** * find_next_zero_bit - find the next cleared bit in a memory region * @addr: The address to base the search on - * @offset: The bitnumber to start searching at * @size: The bitmap size in bits + * @offset: The bitnumber to start searching at * * Returns the bit number of the next zero bit * If no bits are zero, returns @size. --=20 2.20.1