Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2317025rdb; Sun, 11 Feb 2024 23:59:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5/Ua2Q5+k+pWuAqlxy+g02goL18+AKoMB+qgb3QPgTYeFKMDUaYRzxzd2Yy9rBMf3zXpD X-Received: by 2002:a05:620a:4591:b0:785:60d6:36f7 with SMTP id bp17-20020a05620a459100b0078560d636f7mr7279033qkb.69.1707724766805; Sun, 11 Feb 2024 23:59:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707724766; cv=pass; d=google.com; s=arc-20160816; b=J8MzRNSztmAbJPIwdaCtJ8FIrqF5fYmqJCND3ft12zO1eE6a5MSumU2nNuu6gu1tCD /3JHwarcJjsF7jkrsyb5GLa644DRGnCe0FDKQZTbA2fi4sAqLmE36d/wNXla2/M/3MlU z+hJXD5wumL0hzQtBsHVvJKS0VwBBwWze9qImy+X98uunRSOsnpctV+n/NaYX57rMkBG q6lhWE2ooL4tNJvRFIzhhrUeuOA7C5ePgeFRJBkNvCU4MBzP2dHlOAtc3tWQTGtJAkHA 2p0brwVHqiGn7zgdcnO5FC1VhKomRQJtAHFlKXkjFQ2J/eGvLr9fxNz2Y1kqP/VGkf0U JqZw== 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=o6JaObwVDV9L5c33ASesIJNmJ2BtC1UMddLeqOT43dU=; b=h2P8NbJ8gLCtgJAp3taXWr0piN/XYQ+fa5pGeEE+JeZUiDsNrZ5h01gwtYHDeTU8w6 fVt3WAm4PvOGoaS482mKNqXVdr3OneOdoyz9j7nFb+K/Y/orEuSErP+hAP9XJV89PjrW ceWIKg5doSUwMDVk90vWVWtwc2zi1zqxNbM4PKVTtu81TkICR/x/UD6NqPKymNane0IV jiFWPIhEIPTDVjlVHFxGz/i94woyckIvBAQAVDJYd4ZU8OiA55z7A6DoJ7Mm35Jq55SU DCtfN50D2jzUFTFlw+xeb6A2pz0fIMum+EdXJ3nq3mCKN3y2bmkgx0K2vYAkyYUoxbmd zFHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ReLx3Y7H; 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-61168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCVvcgwMnodM48VLoVwNsNBGQPw2LBDERtCJeRZrY0QjnJ6DyCZPF1mSlly22TV1lmGUV+qbPe9CcBqGfgJgKGe0KsjEC6SjN/Ir4osQQQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ea19-20020a05620a489300b00785d5173e19si2293394qkb.290.2024.02.11.23.59.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 23:59:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ReLx3Y7H; 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-61168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61168-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 51EAD1C215A1 for ; Mon, 12 Feb 2024 07:59:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D703B1799E; Mon, 12 Feb 2024 07:57:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ReLx3Y7H" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 3ACFD8BFE; Mon, 12 Feb 2024 07:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707724635; cv=none; b=UZ0n6a9Qwt4Ct3G323hEtSZbv2Fy/R61HUYm2iHwaGAPAX1REC8scZd/mCsGMMMebHOi/eVGJWJVrDc5qg5ChhEvMOm7Nl6bg9gmxdU5M9f8/9KAwSZcaq9sEl8Qb9F/R7f4xjEtqeBSuQPJnzywJwITH5ocnSOAKmhcYlCK9BM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707724635; c=relaxed/simple; bh=Y4mTOkugzPKhkBlTmeRYr77COSSEZXPzeIqX8b/CK74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GtQRm26pTP7z088paoUSaK3HWPctDhDCAo14jXxUaNeAbJGRKd2i46NCMtue2ElB3GeXyl/qr0GFhak77N/5rhoCjoAGVy3FPWDjeHjDJOesAqfFYVQCSCJX5ePnCgWTHAbmiGAu4S2pvVmoJ6X+b3zVhwm9yCgmLNwEKvNkraQ= 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=ReLx3Y7H; arc=none smtp.client-ip=217.70.183.194 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 E37B940002; Mon, 12 Feb 2024 07:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707724624; 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=ReLx3Y7H2Z8kXqTURnVOLFHzNHB1i04hX3X050KGh7A+qeS5NOW9IYAQ1yf28bdEnrRcD/ qusAHp5xbftd5wslkTA9JjgbIluCxh/kgU+AsqDNGTJxhz0rNFXtrnEL8IRstR0JCd8PTj 5+0Cm5kSw2U4twA4RX3DSJLhcpZhZRwve4BF8OcrVAAxINednQFmM4jiw+Vw+qF2hh44cx Re+zYfP6LJzt5mIJCds1eSrI3qgN/tcoXtNpVSRbkKTwq9I3E11Rmz/9PtXlwLEO/nQe69 ip3Yl2ggq0QVneSuiqSHFRk3Ctoy64CISO8zY1iaipxbsLgoHteNBPMgi8sewQ== From: Herve Codina To: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Herve Codina , Yury Norov , Andy Shevchenko , Rasmus Villemoes 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 RESEND 3/6] bitmap: Make bitmap_onto() available to users Date: Mon, 12 Feb 2024 08:56:31 +0100 Message-ID: <20240212075646.19114-4-herve.codina@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240212075646.19114-1-herve.codina@bootlin.com> References: <20240212075646.19114-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: 8bit X-GND-Sasl: herve.codina@bootlin.com 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 --- 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 -- 2.43.0