Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp193014rdb; Thu, 1 Feb 2024 06:08:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrIIJFxL7sK6zViYSY8j2wxRaczN1Nr0UR5jolPiPrOBnRsYqW18wxTFwWl44KNmtR6abg X-Received: by 2002:a9d:75c1:0:b0:6e1:29f3:6fb9 with SMTP id c1-20020a9d75c1000000b006e129f36fb9mr5511440otl.21.1706796487340; Thu, 01 Feb 2024 06:08:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706796487; cv=pass; d=google.com; s=arc-20160816; b=jGyYXgyLj+mhSdMpKMyKHgRhSdFk5CwBPY4fUHzt80sw8/QDlu1Y8qsNiX55Z4Cgke JPmGILSqPgA2VGG+fvnr/vVjyoqTxPQ1okOXiOOydFJx+Fa113Uog3+niVj3KMaOUPh0 60CigI9DRWROzBdClaRtxr+DgjxSAFbXK00Apb/CswdYX9VKvayWpYu0sas32xGAeioW 8wHCCv72mk7NPZxaTfvU+kgccz6WWLyDovWbdp4DHBDgZcKp9yXqO41MGnl5g30VZvOE S8SOgjFC+uYnfaXSf7q3L4asIGWvE7H2wZctTzlCjc5WDfgUBRVq0BleGQaFk5Ziy0/c UJrQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=SrMsYSSdXBYrmJby1JuNx2foZxC1DPyP8T36AKwqkBI=; fh=KS2DZkIB1dgx0SH+1YxU6GGMGnfmy6BiwzCBpYbgs6k=; b=N7/J4MfYNjh1MbEkleAuU3THbYMNmhrwC8odR2+yZ0LCXD7KtBVSziVJynoGF1e8bu 2UjrnaEfrn6st6XzpNor1jBtBHOyJAciEDrFv7hiHzb8rz464mUjQX5IrQv2CfzKd8Qx U15J8VuDJlB+u/sP3xn7VFXnwg6DWEkM0n9NqXvTjUxEeTH5ChkDUmUNMn32wu1LODFc wWamQI6X7Ii+gUHkRlI6LVWBx/gPpdQDVAuiYdaLuw9mAADXOD97bmiED+yjx/7R/Tl5 hmGmClbfCNGVlI+hTWyYzknoRyZnVpiE/ba97WrVVqHrdSg0XbK2kWBnFO59W2q06q+g QyKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=V6uoivNv; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EtUyAS1n; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-48279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de X-Forwarded-Encrypted: i=1; AJvYcCV1CQ8HF+feFGc9BApkdSkxA4tunUtWp5/gBRcFi+Ul3IKTU5U59S5NpEmE3ymL8txi9WT5RtutsdKqeRrr9pbuj0EF61nwxEdSP6DC7A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bd18-20020a056830359200b006dc03db0ba4si2774878otb.26.2024.02.01.06.08.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 06:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=V6uoivNv; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EtUyAS1n; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-48279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A265828373C for ; Thu, 1 Feb 2024 14:03:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A04C45D491; Thu, 1 Feb 2024 14:03:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="V6uoivNv"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="EtUyAS1n" Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 EE9625338E; Thu, 1 Feb 2024 14:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.27 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706796199; cv=none; b=BTbyd6zMFvYVIADLQjLKuSM6XA49oHbk20schr19IvwFQU5FGLEo1G5qX4cQISwxhZLdzUljkJu+0lYppEze5fftpyFiFA+7zF7MgKUM/fOryvLcinXUEMquhuniywxGNxUBURErkKZ3R6nj6ELGpynKywxHHPYLc6q2WPcoLh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706796199; c=relaxed/simple; bh=ca8fj2gTG3iRmOfEmYapKTreDfkQJ3NcDZ7iQMWLM0k=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=VGTizVjS8xtbv58wuSsbXRm+SKuIi21CW1KjzAKgC1PiDkphxrmQcR0uBzFamEr5fsMzYTqvshulVtwdn9ML3GPnX3zNIQU7h/U9XIyzTtPHeZDsbxFZHLGAPJ8gavZx//6Ks+QEh128IFtzRgLQPX94yrN6NEw4tLBBg3Z53Gw= 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=V6uoivNv; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=EtUyAS1n; arc=none smtp.client-ip=66.111.4.27 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 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DA5765C015A; Thu, 1 Feb 2024 09:03:11 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 01 Feb 2024 09:03:11 -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=fm2; t=1706796191; x=1706882591; bh=SrMsYSSdXBYrmJby1JuNx2foZxC1DPyP8T36AKwqkBI=; b= V6uoivNvjOsWV8cVN414irLYJXlAxzYQLgIylQ4tIF25byDBNWNzWAFRdI2GHwXG MqrpO04Rai1GLgT488yZbPpEnexlkT78FRbLnCRXSaWv2p3LNcpZ4KTQj6PDU8/q P6/4YK57n8AJ+xvxcKFoSC6LRAiV2duWOBxPr0Ritc2iBXQrQcEgJSax/ELkNevM omXro5wjkLCT/+BKTEDszb5lU6H1AUTKueRvQTV6brqfIO2Y0wc3RKBF4B/FODLZ 4aQe53Rg812/uIB13jRoudEycB0R4CeE+UWFQLBv5xdj1cR/SWQ31ELe4mPQ1LqG XjZupRbQN8z0d9JXMsNNpw== 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706796191; x= 1706882591; bh=SrMsYSSdXBYrmJby1JuNx2foZxC1DPyP8T36AKwqkBI=; b=E tUyAS1nQPJjZFmzE8hd+Xi0j0IDvz3Hj5hZHLkcVSkEToZ0xLDtzH9zrFdQhPVcK 4ORifOcYB+qP1esUYHQdMeUjevk2wtAGWtA5UVQDmm4sGazF/Amv2cM9/CwjrYeh cqXkC/mZeon+LU7GBTrjTrrs6bbSouPNyaRdnPvvcqNH3aSDpkzx5WwNltvOzj52 bCL7x7DU7gVGQk5urJJm/SOrdhx0sgIs5PgHAQl+Xq0zJhmcgVyX20aZjUQfJfS0 8cBWyDtfuOdcvqDZH0NEneABQY8yGy9zLW6Rl5VSXFOPPa7M9P9aeID1iBIZDvez RrfCGP2rJwYWO17+hRQSg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfeduuddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9F57BB6008D; Thu, 1 Feb 2024 09:03:10 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240201122216.2634007-1-aleksander.lobakin@intel.com> <20240201122216.2634007-2-aleksander.lobakin@intel.com> <3f6df876-4b25-4dc8-bbac-ce678c428d86@app.fastmail.com> Date: Thu, 01 Feb 2024 15:02:50 +0100 From: "Arnd Bergmann" To: "Alexander Potapenko" Cc: "Alexander Lobakin" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Michal Swiatkowski" , "Marcin Szycik" , "Wojciech Drewek" , "Yury Norov" , "Andy Shevchenko" , "Rasmus Villemoes" , "Jiri Pirko" , "Ido Schimmel" , "Przemek Kitszel" , "Simon Horman" , linux-btrfs@vger.kernel.org, dm-devel@redhat.com, ntfs3@lists.linux.dev, linux-s390@vger.kernel.org, "intel-wired-lan@lists.osuosl.org" , Netdev , linux-kernel@vger.kernel.org, "Syed Nayyar Waris" , "William Breathitt Gray" , "Andy Shevchenko" Subject: Re: [PATCH net-next v5 01/21] lib/bitmap: add bitmap_{read,write}() Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Thu, Feb 1, 2024, at 14:45, Alexander Potapenko wrote: > On Thu, Feb 1, 2024 at 2:23=E2=80=AFPM Arnd Bergmann w= rote: >> On Thu, Feb 1, 2024, at 13:21, Alexander Lobakin wrote: >> >> As far as I can tell, the header ends up being included >> indirectly almost everywhere, so just parsing these functions >> likey adds not just dependencies but also compile time. >> > > Removing particular functions from a header to reduce compilation time > does not really scale. > Do we know this case has a noticeable impact on the compilation time? > If yes, maybe we need to tackle this problem in a different way (e.g. > reduce the number of dependencies on it)? Cleaning up the header dependencies is definitely possible in theory, and there are other places we could start this, but it's also a multi-year effort that several people have tried without much success. All I'm asking here is to not make it worse by adding this one without need. If the function is not normally inlined anyway, there is no benefit to having it in the header. Arnd