Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4364634imm; Mon, 18 Jun 2018 13:42:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIs3gnb7gGtkv2t5SBXI7oIDa6dE/t6yERbYJiaQUApxhGGMTgEXNo5A/uMzRJ77sHT/feN X-Received: by 2002:a63:27c6:: with SMTP id n189-v6mr12423770pgn.164.1529354575562; Mon, 18 Jun 2018 13:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529354575; cv=none; d=google.com; s=arc-20160816; b=nXeWT1XEB6CfXN4lbFUX+jvA7SEZA3mcb5DaK4xX/YKwbNCzV6Z8HzQrDv/lms+Lwr 8UWwCMUQtGgVpwwq0OW/nEtLoAY8TfybOXFaFF+N87MBij4eHd55BUqtF+MKAC37ymVa +jVk5S5Xz/n8KcPBA+qfZeO76v9zd7JJol2ZhIr2Qyfr6QM1ppC0NgWy73467YqD7Twl Z7pCPs1x2drgJhTazEnJwu4OoqMysvxdT284ZEFdZxzJQYB/K5UAOD0q+038DCwcnv48 EM4OV7IGGezIAi7TXatBOgdWPra1lvR05QGEGRHvMr+ZFo7pPFGoBrCKDhd+leedDa0A 1lWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=mJiJTgR1+UHN01wxt7ImhzusIK4LFRfqXlFGmdRIdh0=; b=lWUzC7ntRH1tUrNjRlZJvQegM8qN/TcM4epi5vaIaS5ceuSfccyThuAjWeho54THIF hiQDXJAWMaxnAv7LVYcSLtUuh321fC2QcEapLp65RQLn0rXAWGuT0aMizrS1F7nVOl6J eXKUy3zIGYV9ypYFrAaagicD8WNz2eDxDlCXvPNvegIOEVn2wG6uREQUUEhbIW3t3Nrt Huwp8UJkcuLtEPLGPKyR2uEC/sRvWP+NUnWMMJtoeFH1nsepqWlbcNY8Ozv+HW5EZjcN lxBqlQ2g0W15SAj66kp/D8b6U+wjlGw9KJuwwGIcxY4AwWyf9jFnLvI6jGSG0YEPg7ab xlMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si12457054pgo.309.2018.06.18.13.42.41; Mon, 18 Jun 2018 13:42:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935854AbeFRUk0 (ORCPT + 99 others); Mon, 18 Jun 2018 16:40:26 -0400 Received: from smtprelay0114.hostedemail.com ([216.40.44.114]:33972 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755326AbeFRUkZ (ORCPT ); Mon, 18 Jun 2018 16:40:25 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 6737A18225645; Mon, 18 Jun 2018 20:40:24 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3866:3871:3872:3873:4321:5007:6742:10004:10400:10848:11026:11232:11658:11914:12295:12740:12760:12895:13069:13160:13229:13311:13357:13439:14181:14659:14721:21080:21627:21795:30029:30051:30054:30060:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: bells69_3d6f8845e4b26 X-Filterd-Recvd-Size: 2246 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Mon, 18 Jun 2018 20:40:22 +0000 (UTC) Message-ID: <0ac0c93919e40d0c610419fa12e852e889d490e6.camel@perches.com> Subject: Re: [PATCH v2 5/5] Input: evdev - Switch to bitmap_zalloc() From: Joe Perches 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 Date: Mon, 18 Jun 2018 13:40:20 -0700 In-Reply-To: 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> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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)