Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp638933pxf; Thu, 8 Apr 2021 09:54:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymTJYRkQx9uKXbDHvW7K2UskoYtdX8nGMaUdndh0LmPLZrSbj4WlvGftrEUa9YAZMdvzID X-Received: by 2002:a17:906:f283:: with SMTP id gu3mr11463890ejb.91.1617900873573; Thu, 08 Apr 2021 09:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617900873; cv=none; d=google.com; s=arc-20160816; b=vMauCI9J4EDrDW0K8ujhtg/5hlOoMpFXGx43oHCnuHDILGvYT0i/VzG4wwbTTpYfhF YOVwsD2ROc79dBox603yl6VQmVt7QhiI2NlJk8xM4FW8fx1UtRZSEb4Kjg3yRNI2tfoq ugzEertm9NkFmnzGQ/nbVBzCmn11N9/2Fu1Ba/rQFvQ9H+UpoMW/bgejIHiMOheN5veH FMd+PI7EMsWjqxXYFrgfcrrDN7FxhIE/jMV081RThnk/I41grWA2OLF14he1/yPZ6lOR npKthRXumzRTk+HWvBsQCErAlcv6k6BgF3Opvm29MjMZnfX/lYWAaKsilHYlIURsOswV BlIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Peqg9+DN2xDTvABOSV5xd4jxeGrojR9AJ8MkT215+f8=; b=ZjHv0wM+ySs4jA+CWlndDwgBONL8VyELseicy9J3AMcXw3XbK+0ECVLB+W7105XL7W awPx7V81riI1cht4h0qVoIbi5Nb59jDI9cbAflA7BTaM4CYx4ZWdjFbZUkEDKFg/D5A6 5PPSauWUtO4kVPb0O74oq3EGlh7xU7f/TYVhruVj4KjaYoyTIkapeIs3XB3ieZ0FYwCI dAtrBxmX4Wvk/+5UBWhHGP9Pa+ZsifyblXq8oJ4e7Xc8svnex6SqsrwgnYP8hg5P7ABz C4uUfHEEPLAEG+O4L4ePHkLo0Q3KGeQpczDMgzEZ2WiTQr1hKrXEnhLQJBtHzeF9JY0u 7osQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Av0kWGFR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si23062351ejc.691.2021.04.08.09.54.09; Thu, 08 Apr 2021 09:54:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Av0kWGFR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231875AbhDHQxL (ORCPT + 99 others); Thu, 8 Apr 2021 12:53:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231699AbhDHQxK (ORCPT ); Thu, 8 Apr 2021 12:53:10 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66608C061760; Thu, 8 Apr 2021 09:52:57 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id y5so2873404qkl.9; Thu, 08 Apr 2021 09:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Peqg9+DN2xDTvABOSV5xd4jxeGrojR9AJ8MkT215+f8=; b=Av0kWGFRKustfWNyGATPKHlwJJNxZerOktWVJZcex6eUn6KJvEXoDhrgg5vmVzclOa om2btBkdBjUj5Jta+3Szk0J33+LQqYj5oIscDrVrHK5VxfdUAYN/I0MGuHSlVcfhUuFa kcon9cLCCG1VDIx4vVeQqG1OWIGR8Ottb2clg4XB9kv1VFwCNhDnYuaZL0ktGS7gVrBe CpbOH1SoGPn/APrNUKF1q14u7MQ5juQk9iD/dN+pwdLoFKlSG8MIAlM2R8x2Qd3eEFjD mbPJam+u6UDFCUdha22S/Bk2Dov9zv5nZQ2v8LKA0bSqVrnamGuPGsorP1P4VgW41tYA Y0XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Peqg9+DN2xDTvABOSV5xd4jxeGrojR9AJ8MkT215+f8=; b=H3uBwbwSkZg9hsCG2TXKQlb/UE1r/o3NW1XsyNeCXVfm58tlptjyqhGCM7BEkPoD3i VBB3mJjIF4cqeB0hDliJ2PXSNGL2LXuswp/+kKYjR8if5PntUDxGLKp1WClZSGk5zLDm HG5z1IGpHFO4SBOGRY4w+TLEyoW+IXHGiEv3BofATX7XYteyITJFEXhdyC7+tLcR3KQ9 v3VjxCTVb3+0JXYeN7RhFofTJYeMp+JtYxSIBMsbiEgY+lD0+AhQ8ctNEo+17nQb4PUK 0J1J79EXrVl/21WxMmU92/NznNqPx97J4Bwf29G5eaa+Hrdx6ZjVjv6eede2XaS9hvcz wquQ== X-Gm-Message-State: AOAM532kjR1uGePBbR0uYCHbtmhcHrsyrNs4yw2dhvjHnu+Tp+E6jwoh qTQXyHuCfxVEOx3cxapmoHA= X-Received: by 2002:a05:620a:2095:: with SMTP id e21mr9454310qka.135.1617900776480; Thu, 08 Apr 2021 09:52:56 -0700 (PDT) Received: from localhost ([73.19.182.124]) by smtp.gmail.com with ESMTPSA id e3sm7506qtj.28.2021.04.08.09.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 09:52:55 -0700 (PDT) Date: Thu, 8 Apr 2021 09:52:54 -0700 From: Yury Norov To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Shubhrajyoti Datta , Srinivas Neeli , Michal Simek , Linus Walleij , Bartosz Golaszewski , Rasmus Villemoes , Syed Nayyar Waris , vilhelm.gray@gmail.com Subject: Re: [PATCH v1 1/5] bitmap: Make bitmap_remap() and bitmap_bitremap() available to users Message-ID: <20210408165254.GA1186882@yury-ThinkPad> References: <20210408145601.68651-1-andriy.shevchenko@linux.intel.com> <20210408145601.68651-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210408145601.68651-2-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 05:55:57PM +0300, Andy Shevchenko wrote: > Currently the bitmap_remap() and bitmap_bitremap() are available > only for CONFIG_NUMA=y case, while some users may benefit out of it > and being independent to NUMA code. Make them available to users > by moving out of ifdeffery and exporting for modules. > > Signed-off-by: Andy Shevchenko > --- > lib/bitmap.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lib/bitmap.c b/lib/bitmap.c > index 74ceb02f45e3..7b6b2a67a6a6 100644 > --- a/lib/bitmap.c > +++ b/lib/bitmap.c > @@ -784,8 +784,6 @@ int bitmap_parse(const char *start, unsigned int buflen, > } > EXPORT_SYMBOL(bitmap_parse); > > - > -#ifdef CONFIG_NUMA > /** > * bitmap_pos_to_ord - find ordinal of set bit at given position in bitmap > * @buf: pointer to a bitmap > @@ -894,6 +892,7 @@ void bitmap_remap(unsigned long *dst, const unsigned long *src, > set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst); > } > } > +EXPORT_SYMBOL(bitmap_remap); > > /** > * bitmap_bitremap - Apply map defined by a pair of bitmaps to a single bit > @@ -931,7 +930,9 @@ int bitmap_bitremap(int oldbit, const unsigned long *old, > else > return bitmap_ord_to_pos(new, n % w, bits); > } > +EXPORT_SYMBOL(bitmap_bitremap); > > +#ifdef CONFIG_NUMA > /** > * bitmap_onto - translate one bitmap relative to another > * @dst: resulting translated bitmap > -- > 2.30.2 Acked-by: Yury Norov