From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from flow-a6-smtp.messagingengine.com (flow-a6-smtp.messagingengine.com [103.168.172.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21E7023182D for ; Fri, 9 Jan 2026 18:50:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767984661; cv=none; b=Un6BqWSm9r7BfbDcU3Geequ+RRiia/iPLbejcqLXXQYwQSL/pl4jxY1YhJ3gzioEduB+G2JcbP9fF5jRuLD74WFUdW51qJNFa6Yy7zW7M4sZMowSrdnrKNfIo6va7rYbWiNhJIHeYDTLzPbVN8AdE5Jv/zroG6eWwplPq7yMFro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767984661; c=relaxed/simple; bh=khltb1qThv8hrLaW7NXRelmgaKBrLoB4OwL2pthyrGI=; h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References: Subject:Content-Type; b=ezpil3aiYK1+PVOOYUIHtcVAx5Qg6RjYSBWm++15ZoT58MBKJ66k/XShl8MlLXAuQ/VCEKwnLwMShMpvptJnuMYN3uWEr5V0gEczCZMDEHOYaq6fBnLBnvockIm932zERecUNZcVZvSxgK6QuLOcUr/DSl9z50uYTOoZ7vyHmSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=IBcBeJRi; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=S/Jv1H6b; arc=none smtp.client-ip=103.168.172.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="IBcBeJRi"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="S/Jv1H6b" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailflow.phl.internal (Postfix) with ESMTP id 29D131380453; Fri, 9 Jan 2026 13:50:58 -0500 (EST) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-04.internal (MEProxy); Fri, 09 Jan 2026 13:50:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1767984658; x=1767991858; bh=y+kd9TMzd/DLrw2jWFMwS1M6TqwBpaVfjGwzTJtmz1s=; b= IBcBeJRidB1LHMRgpV80pmaf0+1F2tb3ukciCMViYoatXpKjyPAiO2N6nGYd3hSh sXK8L2Kzk4M1TaQw5lDpPHMXzgUcS0RD24bUHEz5rLDzda8q1P5snRNLalbt2Et3 GDOYfUz5Z8PkbDaRARNsLfRg4mGUDMPORL2GShj09z09tPraQlZEXLPFvy8EBtQm 27cVe5pXDdjcEpXtixmJrdox629WsefkybQZrJ+XNrIQXXvla3tApdGzMUrSjy0T yCO80tnPe3UoBnqw0MN9L30MhMjCgruIGIxswRDZ65fjm/xp3M835EnnG5tVolPo GtvtJmZWPLeSI6ncezbflA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1767984658; x= 1767991858; bh=y+kd9TMzd/DLrw2jWFMwS1M6TqwBpaVfjGwzTJtmz1s=; b=S /Jv1H6bYFxxHZlrfyNRfSdeVNDe1QHB17Wlp9dxSrvd2jvSuHj6SeR/6MROxflNu /Di7pkbEkgFTMpPgFJBnUwCHC7zSwBq0HuoslFGY2TlFe0S+/g5xd9TUYH/g0VA6 qizRWIXDBG8pMMBnJXq/byKZKhwKiWyI6E4QZVSngiPYt2f21t0l7NgaF+1QEfpf waQlxoq30gbjLiFkZ1T5GmT7K8bOtG3XQGMmK945x7bLKGmyZr1kOatn7rE4H9Hd XISZ3FwbG9y9adW17ugYNQch82sYKCBjHIIcIUTMVnFt7YIUciScTvLrFfe4OlKR rj8Go5uKjy/C36wohGhsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddutdelheejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedftehrnhgu uceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrthhtvg hrnhephfdthfdvtdefhedukeetgefggffhjeeggeetfefggfevudegudevledvkefhvdei necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnh gusegrrhhnuggsrdguvgdpnhgspghrtghpthhtohepgedupdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehjohhroheskegshihtvghsrdhorhhgpdhrtghpthhtohepthhssg hoghgvnhgusegrlhhphhgrrdhfrhgrnhhkvghnrdguvgdprhgtphhtthhopehrohgsihhn rdhmuhhrphhhhiesrghrmhdrtghomhdprhgtphhtthhopegurghvvghmsegurghvvghmlh hofhhtrdhnvghtpdhrtghpthhtohepmhhpvgesvghllhgvrhhmrghnrdhiugdrrghupdhr tghpthhtohepshhimhhonhgrsehffhiflhhlrdgthhdprhgtphhtthhopegrihhrlhhivg gusehgmhgrihhlrdgtohhmpdhrtghpthhtohepjhgtmhhvsghksggtsehgmhgrihhlrdgt ohhmpdhrtghpthhtohepjhhohhgrnhdrhhgvuggsvghrghesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 685EA700065; Fri, 9 Jan 2026 13:50:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ThreadId: AMfBBwEbEMYc Date: Fri, 09 Jan 2026 19:50:35 +0100 From: "Arnd Bergmann" To: "Petr Tesarik" , "Yury Norov" Cc: "Yury Norov" , "Rasmus Villemoes" , "Richard Henderson" , "Matt Turner" , "Magnus Lindholm" , "Vineet Gupta" , "Geert Uytterhoeven" , "Maciej W. Rozycki" , "Thomas Bogendoerfer" , "Madhavan Srinivasan" , "Michael Ellerman" , "Heiko Carstens" , "Vasily Gorbik" , "Alexander Gordeev" , "Chris Zankel" , "Max Filippov" , "Patrik Jakobsson" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "Dave Airlie" , "Simona Vetter" , "Robin Murphy" , "Joerg Roedel" , "Will Deacon" , "Jakub Kicinski" , "Andrew Lunn" , "David S . Miller" , "Eric Dumazet" , "Paolo Abeni" , "Oliver Neukum" , "Kuan-Wei Chiu" , "Andrew Morton" , "Marcel Holtmann" , "Johan Hedberg" , "Luiz Augusto von Dentz" , "Pablo Neira Ayuso" , "Florian Westphal" , linux-kernel@vger.kernel.org Message-Id: <5ab59d72-00c7-435c-a47d-25333aabd1e3@app.fastmail.com> In-Reply-To: <20260109184614.7b3b9bb3@mordecai> References: <9767487fcab7dbe7a7282a48a492171629eb935b.1767975412.git.ptesarik@suse.com> <20260109184614.7b3b9bb3@mordecai> Subject: Re: [RFC PATCH 1/2] bits: introduce ffs_val() Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, Jan 9, 2026, at 18:46, Petr Tesarik wrote: > On Fri, 9 Jan 2026 12:16:06 -0500 Yury Norov wrote: >> > diff --git a/MAINTAINERS b/MAINTAINERS >> > index a0dd762f5648b..8f15c76a67ea2 100644 >> > --- a/MAINTAINERS >> > +++ b/MAINTAINERS >> > @@ -4466,6 +4466,7 @@ F: arch/*/lib/bitops.c >> > F: include/asm-generic/bitops >> > F: include/asm-generic/bitops.h >> > F: include/linux/bitops.h >> > +F: include/linux/ffs_val.h >> >> No need for a separate header. Just put int straight in bitops.h. > > Well, is a bit heavy, so I was afraid of spoiling > build times if I include it from , but if you say > it's fine, yes, why not, let's put it into bitops.h somewhere before > #include . A single macro definition makes zero difference for build times. What makes linux/bitops.h expensive is the 419kb of preprocessed source code that result from the generated atomics in asm/bitops.h that get included everywhere. Arnd