From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECBD9C433B4 for ; Thu, 8 Apr 2021 16:54:41 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 81403610A7 for ; Thu, 8 Apr 2021 16:54:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 81403610A7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mxVgnsqEny4rj7QaFjjkxkODXIDWKSqcrEyutUXOHT0=; b=gnccjm7C/TPuKdTeUP3h7rmmq TBbdjxnnlcaMbCVQa4fOK9yVFGWJh4gy/hUPx1W1HXw3V/mAKW4kLqPFAuL4efRPOafwR6StOUyk9 18Fki5o/AZ08bU3oH2kaS3prIr2+39TxwCNTZ5wvyJwrUM1V8bBSdg/ksJLCLc/NtB74URkELCWWC 4VMXlwyiDaKt8UoDeXPAH7FRytaPQ/YHIYGzpB3pEdpBN7CKh1NyMigKJFsPEKXaWTWsypkiFL8dx K++LOtIqkYSS6Y9W1BNlcxLGZqAwAGIapTLnhzszl45Fa8Ncap1U3rjVPcQ0k5SCyv3NAxKDub+oL /H6xkhakA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUXtu-008gvi-1j; Thu, 08 Apr 2021 16:53:02 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUXtq-008gv2-R0 for linux-arm-kernel@lists.infradead.org; Thu, 08 Apr 2021 16:53:00 +0000 Received: by mail-qk1-x735.google.com with SMTP id 7so2882876qka.7 for ; 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=QqSNkWDhuinyurbgDwS6x24TfJRcjIBxWTXsfVF5/FSwE3AEIRq50rUHXS/QORScap JZl09dIBOtUEdNhxyJhWbb0/E9Rjxvj7x7ZsmY1WmtYAFcbjpBiOfL5Aj8W+9szdIzxx a4q1q0pk+6EeVVniaooadk6D61nbfo4nnjL6nt7IY8DdvhEgREqiXOnx5s2ah/5MVbAp poNXs1UgNKyPELB0ARtaUHYLSliicfVI9q9ICnMsBiFp2uzNgiK1HgvLoIw1Hn6eo9pt y/hHHXAv9+asCWX/xLij/uJL+XuPN9pTSZq/xmCd7u6tSyh41ZIVBBTXcja22xoydyLT uHHA== X-Gm-Message-State: AOAM532rbMdz0hUSjvjLF0qxgLv4BwlWEWWm8kFurAcR4w35YRBNEo7t e7ken3ukS6Acsa4aGWnBtFE= X-Google-Smtp-Source: ABdhPJxrxGlmXWR0qPQZrPJ3seGTzEpltbmaw7AEilMnmCNaLg7YMvIBQRnLkQyb/bXOKO/TMgmSoQ== 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-Disposition: inline In-Reply-To: <20210408145601.68651-2-andriy.shevchenko@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_175258_999555_5FD5D014 X-CRM114-Status: GOOD ( 18.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel