Message ID | 20240206140717.107930-4-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-55079-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1561313dyb; Tue, 6 Feb 2024 06:08:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IELVugrlpY1AqfQYxG5dV62KQifpX2SW/GVZrmPJ7HF0m8UBOWoJpA4NFqZ9F0WaZMG3iWm X-Received: by 2002:a05:6a20:1585:b0:19e:957f:c30a with SMTP id h5-20020a056a20158500b0019e957fc30amr2439520pzj.19.1707228530045; Tue, 06 Feb 2024 06:08:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707228530; cv=pass; d=google.com; s=arc-20160816; b=MllWausA95SgHdWoyTN4L/yhBkwcSGz6Wrck4Jd6dzoWE92NDOwpWPFIjwMxeT/eUC n0IC55ka2C7C2K9poK6b//QGdiSYcxoz0GLljYrjbJwNie4tdjPStIHd1mIKAIo4wldA t6n0NuV/7golGr6spCJszIiPDxXm1ILih+w1jx60eZ8RsYkAK1Cs5l2N0wK1s7GBrfy2 trDlwalO5suPoN/t2QY8r4xibSuYlwsnO6sRWsM4aUFQnY8HtQmX2qHbRcbjFZQymI9s fNEDeSV9o9uraZ/tnWLVmmA4+59FHVdnIw0oel4CT5g5fLYTVLWaYs7/6P8fxMIuAQvY vz3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9ic1ckcjchbcoVTjdKWShBulE5zgYlgBqlicFqMJYpM=; fh=KEWcp1WfMVYBcC1VZsKlPSpPNf0o2wC2hQPOwKawJVw=; b=LSiPsb7rZfivO6uN1fSH8R1g19rSbTtxf+SmoLK+We8YLavcAuAciV+Pi6uh5R5HCR g2IP+c/jZKqUcdnEw//sHgCtxv51UwsDZLY1W3yXuCWb+aXDu16Y3SWeJdeb//GaCGT9 GbKRTNj4arNQn8mc9XpHHg1qLdnrRQ560dV+aWe/MLADNu271dqVXMPPRD5/GtGuFHVm +J/7zIUErHb+rMGd8aRxdP/r2rZXhbF/e63TBn/Fa8i6bFIvEyBe3I0+IgCPkKBmkZ7H xtmfoWsirj2568UsvLF59rVjqssyt51d/NMoFtzuZUY44A/C1fMFIJ4CK9IxyeF7FWYr W1sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="LAaXU/V9"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-55079-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55079-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCVS42DCe0aQJgU8hMaF5B+KEdGjwGWwMj1SHO7x7hHmbBpQyE43ZVEKRYvWqs4fCSw5NKJuRgoV4pItk2TItwUuCH4r5Q== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z4-20020a63c044000000b005d8c55d9669si1774655pgi.366.2024.02.06.06.08.49 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 06:08:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55079-ouuuleilei=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=@bootlin.com header.s=gm1 header.b="LAaXU/V9"; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-55079-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55079-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 CCC9B284237 for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 14:08:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E24B713341F; Tue, 6 Feb 2024 14:07:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LAaXU/V9" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 0CBBE131721; Tue, 6 Feb 2024 14:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707228447; cv=none; b=pSWtlCpaCnxpfLhS8UUI9lCb3M5K82vS+20KuxpR+v1MNa9LLW9thZCEL3mI6nl95w1hjuOCWgBLUBuNl1GTi1jNU+px5gOtJbjCrWS7/LtL2MMxPQ+oj8NvnP6OseldTyp32fZTUn2sz9x5Vm62B8ccFgX/WX0E2t0lHu7LCcE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707228447; c=relaxed/simple; bh=Y4mTOkugzPKhkBlTmeRYr77COSSEZXPzeIqX8b/CK74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DRdeHLGirxiZQ3E4/q0TOlUsY5bh233oXSisRRtdhiwj6O8P1Ei7If0WZlzZq62mqKYIculOTP3CyL8hm1bzxCVpgyP3fA37UD6sB8OSRlXLl7GRFtI7d6dkQUnxXd0L23pW40kewSm/oyBAehDiSUn/W7nRlMljBnq8e5Fj53g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=LAaXU/V9; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPA id 8B4AA1C0008; Tue, 6 Feb 2024 14:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707228443; 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: in-reply-to:in-reply-to:references:references; bh=9ic1ckcjchbcoVTjdKWShBulE5zgYlgBqlicFqMJYpM=; b=LAaXU/V9rtjBK5XWJGUs979Sqa3L2I7mJytO05BnS5E/NW+xFuIr2unuv3yALQRxMbTOR1 dCS9XaVM2EHBIkopvxaMLc4qCDtZRj+Xge1tScjjhtTLsWbdE3aTvQ152gnTB62lOO/nzN EbFTaMm8YsRr7m5vr0U4Jtq3FynnvIJyf/GAjSYyZvu23q0dSqSIzG/e9d9pdDGfmvdAQA fCdPN2iPKD1Vi+zHc9KJsWUT1V3LN48MJPSuZYu/kqpxN2l81MQW1ts+gup5nDb++4UhCE R5PIRylaT/CmKufap55IVHqbWrfkGI7qIMwxbB1JfW3xHXZWkumPuI2kQUEkXw== From: Herve Codina <herve.codina@bootlin.com> To: Vadim Fedorenko <vadim.fedorenko@linux.dev>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Herve Codina <herve.codina@bootlin.com> Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn <andrew@lunn.ch>, Mark Brown <broonie@kernel.org>, Christophe Leroy <christophe.leroy@csgroup.eu>, Thomas Petazzoni <thomas.petazzoni@bootlin.com> Subject: [PATCH v3 3/6] bitmap: Make bitmap_onto() available to users Date: Tue, 6 Feb 2024 15:07:13 +0100 Message-ID: <20240206140717.107930-4-herve.codina@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240206140717.107930-1-herve.codina@bootlin.com> References: <20240206140717.107930-1-herve.codina@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790158863054078218 X-GMAIL-MSGID: 1790158863054078218 |
Series |
Add support for QMC HDLC
|
|
Commit Message
Herve Codina
Feb. 6, 2024, 2:07 p.m. UTC
Currently the bitmap_onto() is available only for CONFIG_NUMA=y case,
while some users may benefit out of it and being independent to NUMA
code.
Make it available to users by moving out of ifdeffery and exporting for
modules.
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
---
lib/bitmap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/bitmap.c b/lib/bitmap.c index 09522af227f1..2feccb5047dc 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -547,7 +547,6 @@ int bitmap_bitremap(int oldbit, const unsigned long *old, } EXPORT_SYMBOL(bitmap_bitremap); -#ifdef CONFIG_NUMA /** * bitmap_onto - translate one bitmap relative to another * @dst: resulting translated bitmap @@ -681,7 +680,9 @@ void bitmap_onto(unsigned long *dst, const unsigned long *orig, m++; } } +EXPORT_SYMBOL(bitmap_onto); +#ifdef CONFIG_NUMA /** * bitmap_fold - fold larger bitmap into smaller, modulo specified size * @dst: resulting smaller bitmap