Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp873824rdb; Tue, 30 Jan 2024 00:42:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvqGO9WSeacr+01wBds7T0mMhN8pzsoDM2/NiQuVnCE5WsQsMF3ClUkYhhBp9HtRlgQskz X-Received: by 2002:a05:622a:5d3:b0:42a:a41e:f449 with SMTP id d19-20020a05622a05d300b0042aa41ef449mr5031641qtb.55.1706604163796; Tue, 30 Jan 2024 00:42:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706604163; cv=pass; d=google.com; s=arc-20160816; b=nCWuv0/+K4tjC7qHUN49v0JOJwgnqyYnxPS3vTiUm38vPBKwlYXYCxjZug3CKw0/FF O54x9fK69kgr1vpRzBzeptboCnhYzcL63NLBJFtHZvU6Y0VF7YneuhmS2lEajdx6QBKS B+huqJ3l6gVj8N87llMH36RWSklOhTJsAWNxslsSqGDeTYfUA3ZLLoZKIMYwIYnY+4kQ e761rU6dbokP5zz6FZSPsV2pMnSfn7McfK7xemvfJMf9wT0Gmz4r2QwE69T9eKasYfAc xNkqoXKLW29tynX13+6M2ZU463+0IJ5ecArzzuvR4uYWxfybrtfGXiFSUBXjLqmxCuFm eZPg== 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=s/vkN0CKwCHxl3xiysg2b4K3AQjMb0Me6zHwb/HBGyI=; b=u7oSaBTcjA37EzbbNfft05KzZbARUunH37nDa9rFhHLCb9OGrXaD2gBxgToQbgKw/I NeBXGNCxhvSbFV+E9GDhHoX8BoqNrzKb/sYEU0S7+bcXoCRq7Zm9633U+uGc2tR7sYq4 Eeh4Wsa0o/LALWyS02agZx5KWbmSooumkATS7F4ySCcUlTEaWCIRJXJGOrWM8/L1Uqop n1tvOKz3J1PmsgRb8kNybjdbZ6fdqvI5D9GJuMiGm8ohkrNprcMrolN9s5+KWiutEDe/ IIvukcgxIRSZrNUNP7v7MRc1S9GDBKoymQHFWLi5bZx0+EL7tB7H42FTciczKcUJLLQJ YbXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Uw6yrSkU; 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-44156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c31-20020a05620a269f00b00783fa0ebc38si5150840qkp.402.2024.01.30.00.42.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 00:42:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-44156-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=Uw6yrSkU; 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-44156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-44156-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 11D361C27AA0 for ; Tue, 30 Jan 2024 08:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F6C359B4E; Tue, 30 Jan 2024 08:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Uw6yrSkU" 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 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: 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