From nobody Wed Dec 24 01:47:17 2025 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 999DD5645C; Tue, 30 Jan 2024 08:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706604058; cv=none; b=Q0VKQqyjlJdoHwjdmkCKDVhRjFtNkTmDHUksBywFHRCYY1lspDV/EwJClZVj0wsm09jbPZAZ+oevXkRu5Az+wBXL1NL08wMACYQf64Dn9VeJIY+NmSdYsf10Ug/ZKnX3zuWUlK5DgbHlkd3SXWbmpE0sUb236qg99A0m62VvuXk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706604058; c=relaxed/simple; bh=Y4mTOkugzPKhkBlTmeRYr77COSSEZXPzeIqX8b/CK74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l3wQx6KkV0MaFdgmilRlnf52YQQ6rPOUNwYwbImiexJ6zxKFnA9XDptJLKRjMOYtFyLPt83S8Ptt4mFSUJZqkaW/VZHYLjmRkPMPtvIpj1wcGfT8RwFnds6zU3N9NiCHcurEud7OXJUrZt2zJudkIfK6H8aHTxgYc70r0eLHdic= 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=Uw6yrSkU; arc=none smtp.client-ip=217.70.183.195 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="Uw6yrSkU" Received: by mail.gandi.net (Postfix) with ESMTPA id D0F3760009; Tue, 30 Jan 2024 08:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706604048; 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=Uw6yrSkUlrdIS5Zut2e2GX19e5AUteDIck4QirysvTiIcCrPwIu82YRu2a82qBPWCFVNhJ R3P3jWrakZ6fKJRC09dzFlszQMUxX4/CF4o+zR/WxVNrU569ZXqu0VJbLy6CxCNXOWh6Vq OS1NIhoPZWKoFCD33Dxr6YJHv6dOEjLD4i9Z0h5cAG9u/CL3y6wz5TmPCsZK6OXJ7qtBK4 UqJCHzDvMdEhkL0UlCHUZLljlJ8xLHjkMuGAvHTwvfuoc0t9UU++d3K9Euo16lySiU1//z bmFwSCrIuMVt/F+9cqm5TAHUJ5J6Soeycpy7kU84DrBKS4P4hYfRWmSSpA8URg== 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 v2 3/6] bitmap: Make bitmap_onto() available to users Date: Tue, 30 Jan 2024 09:40:18 +0100 Message-ID: <20240130084035.115086-4-herve.codina@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240130084035.115086-1-herve.codina@bootlin.com> References: <20240130084035.115086-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