Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1515787imm; Wed, 1 Aug 2018 18:04:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpebUkcaNLT3JQzUYm8aFMGB5xO0JSC+F1p0JiT/9GoEu/JMYana17P/u3ngxM3Bp4gSiWei X-Received: by 2002:a63:c902:: with SMTP id o2-v6mr614961pgg.118.1533171893688; Wed, 01 Aug 2018 18:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533171893; cv=none; d=google.com; s=arc-20160816; b=FBBD9avcBCbVJWZ43dY615Pmi4HVDXT7J5uWjj+zzQJW148dGfkJXGbwyQKSgNxFgf KUKlK68UxqW3WKxpxF1Hz4HuKjl44rzYubeD7z3kfsv5VkNvwgahIqARODAozKDvC9PK /PJDvsQ/MwPvlV6t0/I76nlSTA18XhkW681h3nud7kGJH93NEd9DguB7oyk+NynvP1ie pA9kNJdX1qq1j9bvn5FYz02682OSULz0Rintd+tcH7MW2jZqEOwPfC10nOK6niCtrhHj VSzYJFQtxyevB4HCkY38n9AUKHGz2zf/YecWBVQJcwsVv4roi0GYmnn7vZMAItwziG7F Z2pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=HDjYTifBppH3WUhuYDN3+Zgx+HAInc1xhVL1mYEmD2g=; b=i7e/3ke+SAkfMR6nUOhE0HnS4I4KMkFkWLeu544R4x3TauDROv11IPdr6yJFUqthiv FE1yu4p5QKmbUxi13mmXntRpV8L7YSZpEePZP6WORUbTup5zl11iAVvO65rqI1W39b69 OyjpGXg/jkPFWXD2xpUTWFlRis4JW3IRbCkEEXZ9guEhSW00q8/go1Hnv9w1YBhcK2D6 0emMPSN2mLB/0bbUHj7zdKWEqj/p3xhOm8k7Qx18jlG7shUfD+aQ7XwBIXg2kkGv8Fxv T+ty2hpP3bBFR+y933MiKUqka0Jd1RxFlCmHsze2gNPV/ZI0YkRGYSUEx7Zqjz+adgy+ mgvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nj4lTKG8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o7-v6si481983pga.393.2018.08.01.18.04.39; Wed, 01 Aug 2018 18:04:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nj4lTKG8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1732468AbeHBCwD (ORCPT + 99 others); Wed, 1 Aug 2018 22:52:03 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44163 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729888AbeHBCwD (ORCPT ); Wed, 1 Aug 2018 22:52:03 -0400 Received: by mail-pl0-f66.google.com with SMTP id ba4-v6so212353plb.11; Wed, 01 Aug 2018 18:03:30 -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:user-agent; bh=HDjYTifBppH3WUhuYDN3+Zgx+HAInc1xhVL1mYEmD2g=; b=nj4lTKG8poYlIiwQqU2bvBAaYN2E6FNH5+bZQE1Q8lOhDCr7kqGVlyzUAPvOeRTogT Foq4bS7EC8YhZUA0nh8HG/NKfh0NGx0ZykJTUC8LIZrE6pTFe0BvGkV1O9BtyDtTIJDu 9KAfATg8/Ga5S1Oxe5ZRcjwgamsBZ+elpFK9fRRJzLQ/IUs/+bQ5ICprPv0Pj6WrfJnj BLUCx6lwu18ex2Y6y/J9+HwSazp4+7lvzYcRmDf262KSO1tMUk5GyxKxJtnCrqIQXulj ywJHL90Hcy4kbYLQh4cPrjaFwGJw8gN4wPkJFhruodd+CbTKmoGgrZVRTd9tVp94gHuH JHhA== 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:user-agent; bh=HDjYTifBppH3WUhuYDN3+Zgx+HAInc1xhVL1mYEmD2g=; b=CoZtWENNsiXxdxRaV+1Bf4JbxO7TSEWuU/BeMIJIbMmRAWItFM4/KLThgUZdML1BFf wNJJh2ImiG7UxQA4GjsWfCcxaAyvfLeXyFnojIn+jEs2EBCMpFgl8DyrHzNVaPbcuWUx 2uIQBj93ATmyWWy7llgc1zKAbII2UFtxW8ogh7Nqcz+yI3DHlW0NqqiupxSFL/LnujzQ SiTd5xB46FT1CAs+pVSQTqDerfKKOEILLKqxM+P4evNoM1Trk8gk7AwYNKNmR2ObIpQQ 76LI9d94iQ5kDvV4uaKhdcyT6tqa3iZmCxaW9EMtY8vVebqrKTz7lNuDSmwTNLoAJCQA qOEg== X-Gm-Message-State: AOUpUlHbtrNghiYCi4vyIiJfve6DYGmLsZpRzvpVprVTRXrgFFMoWdnN P+2QCJEiVPZS9OW54tfUXQI= X-Received: by 2002:a17:902:b708:: with SMTP id d8-v6mr509571pls.184.1533171810094; Wed, 01 Aug 2018 18:03:30 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id e132-v6sm417313pfc.49.2018.08.01.18.03.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Aug 2018 18:03:28 -0700 (PDT) Date: Wed, 1 Aug 2018 18:03:25 -0700 From: Dmitry Torokhov To: Andy Shevchenko Cc: Andy Shevchenko , Alasdair Kergon , Mike Snitzer , device-mapper development , Shaohua Li , linux-raid@vger.kernel.org, linux-input , Andrew Morton , Yury Norov , Linux Kernel Mailing List , Mika Westerberg , Joe Perches Subject: Re: [PATCH v4 0/5] bitmap: Introduce alloc/free helpers Message-ID: <20180802010325.GB184797@dtor-ws> References: <20180630201750.2588-1-andriy.shevchenko@linux.intel.com> <2310fa540b9e5db3b94f4917ecae76dce2a2ca65.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2310fa540b9e5db3b94f4917ecae76dce2a2ca65.camel@linux.intel.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 02:35:53PM +0300, Andy Shevchenko wrote: > On Thu, 2018-07-05 at 00:30 +0300, Andy Shevchenko wrote: > > On Sat, Jun 30, 2018 at 11:17 PM, Andy Shevchenko > > wrote: > > > A lot of code is using allocation of bitmaps using BITS_PER_LONG() > > > macro and > > > sizeof(unsigned long) operator. The readability suffers because of > > > this. > > > > > > The series introduces three helpers, i.e. bitmap_alloc(), > > > bitmap_zalloc() and > > > bitmap_free(), to make it more cleaner. > > > > > > > Dmitry, it seems we are all set now and if you have no objections > > against this version, it would be nice to see it in your tree followed > > by upstream. > > Gentle ping! I put the first 3 patches into an immutable branch off 4.17: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git ib/4.17-bitmap and queued it and the other 2 patches for the next merge window. Thanks. -- Dmitry