From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: Re: [PATCH v2 5/5] Input: evdev - Switch to bitmap_zalloc() Date: Mon, 18 Jun 2018 13:40:20 -0700 Message-ID: <0ac0c93919e40d0c610419fa12e852e889d490e6.camel@perches.com> References: <20180615132017.23889-1-andriy.shevchenko@linux.intel.com> <20180615132017.23889-6-andriy.shevchenko@linux.intel.com> <20180615214231.GA371@yury-thinkpad> <0a3d86d7746792a2f848cef386941fc182653515.camel@perches.com> <8cfbdf809f531f8aa315fe1679c3273858038f41.camel@linux.intel.com> <780cba4e119110f2d2a81e237874592cff4d7868.camel@perches.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Shevchenko Cc: Andy Shevchenko , Yury Norov , agk@redhat.com, Mike Snitzer , dm-devel@redhat.com, shli@kernel.org, linux-raid@vger.kernel.org, Dmitry Torokhov , linux-input , Andrew Morton , Linux Kernel Mailing List , Mika Westerberg List-Id: linux-input@vger.kernel.org On Mon, 2018-06-18 at 22:56 +0300, Andy Shevchenko wrote: > On Mon, Jun 18, 2018 at 6:49 PM, Joe Perches wrote: > > Perhaps bitmap_dup_user [or some better name] could or should > > be one of the helpers. > > Can you help with estimation how many existing users need this kind of > functionality? One of them evdev, which has an open coded variant. My estimation via cocci script below is 1 existing user, so it's almost certainly not worthwhile. $ cat copy_from_user.cocci @@ unsigned long *p; expression e1, e2; @@ * copy_from_user(p, e1, e2)