From nobody Tue Dec 16 05:53:27 2025 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LAaXU/V9" 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 To: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Herve Codina Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn , Mark Brown , Christophe Leroy , Thomas Petazzoni 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: herve.codina@bootlin.com Content-Type: text/plain; charset="utf-8" Currently the bitmap_onto() is available only for CONFIG_NUMA=3Dy 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 --- 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 *ol= d, } EXPORT_SYMBOL(bitmap_bitremap); =20 -#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 lon= g *orig, m++; } } +EXPORT_SYMBOL(bitmap_onto); =20 +#ifdef CONFIG_NUMA /** * bitmap_fold - fold larger bitmap into smaller, modulo specified size * @dst: resulting smaller bitmap --=20 2.43.0