Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6952369imm; Wed, 27 Jun 2018 16:52:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeNY+dzjbAUcHZeAGjxSgCN2fX3VrhwlFy94zFqvgvMmQYBKi7XNeTu/w06SChC6a4n8YbJ X-Received: by 2002:a62:ed13:: with SMTP id u19-v6mr7798023pfh.125.1530143563120; Wed, 27 Jun 2018 16:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530143563; cv=none; d=google.com; s=arc-20160816; b=xj138Tvx9uvw444fcF0Nys/PfuBqEvJcw8Ce7TGB0AZKycztQ3WUXlB8cuMDN8H8aK 2k/p43FurioD7rULAhXcB6qpc2ao/iSRF/GmNXu8o8n2lquk/1hq6jX7f49dbvqLiOvk ZTLFbcROxhttkkuSZExlt3a2f6aj/PeQ1IpCgUKJzcwGNIItSCTknpMq+JLG+SHLK7Vg j5KwCDKKQL5xJqTnfUazo2RoOC5EUU6aroehMaz5r4//t58kEjcURMTfNJhUVn2AkPka WuNk5EQ1bvypUstiivGEeXRGHE8XQOZX0tyQd+hI85jDkOlGrpTKm8PoWKAZL2kkZZU6 IJpQ== 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=J+n+HTcU1+2nFP/kLYRsgzfx9w8mNfNfZohneL4RbZE=; b=SdyycJ3lKpA7YRaQDJp7eeQfN5AQX6WoEWgOMU/tGPzJXlVEH1Z21t2zOZ3Lg/Pgyo sIBVb0UYqIMOwWWXDEKUn+NpfF/fJmvmxVHCwm8S8HnJB+CW3cV49zyFQnpUDhKmaw5D DeHkurLmZE0gBxvWcPQR11b1uk49VYwH0Z9HkazQf+7purDGWtaTfLh0Sid5M3J7m4nw yEA+BBhkx1IxDP6J3BA1VxjbFYx8nwK5Kas6NebQiPTrzTsYQaARqUP9jW8fNfKOWvX+ RtK+yzhM+biL6T4DM79zs4CE9Na/5sOLEbHI9lnjtfbbhctVF6+L5z6n6eYDbcjNHQTv 7oqA== 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 n7-v6si4479555pgp.434.2018.06.27.16.52.28; Wed, 27 Jun 2018 16:52:43 -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 S1751592AbeF0Wyb (ORCPT + 99 others); Wed, 27 Jun 2018 18:54:31 -0400 Received: from smtprelay0002.hostedemail.com ([216.40.44.2]:45418 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751391AbeF0Wy3 (ORCPT ); Wed, 27 Jun 2018 18:54:29 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id E7AD3182CED34; Wed, 27 Jun 2018 22:54:27 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: X-HE-Tag: table68_92b5c436ce36 X-Filterd-Recvd-Size: 3213 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Wed, 27 Jun 2018 22:54:22 +0000 (UTC) Message-ID: <8bf36e4025b6ec5198a668edda6bcbef3b06e97b.camel@perches.com> Subject: Re: [PATCH v5 09/10] gpio: Add a driver for Cadence I3C GPIO expander From: Joe Perches To: Boris Brezillon , Andy Shevchenko Cc: Wolfram Sang , linux-i2c , Jonathan Corbet , Linux Documentation List , Greg Kroah-Hartman , Arnd Bergmann , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree , Linux Kernel Mailing List , Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj , Marc Zyngier Date: Wed, 27 Jun 2018 15:54:21 -0700 In-Reply-To: <20180627213617.51e10712@bbrezillon> References: <20180622104930.32050-1-boris.brezillon@bootlin.com> <20180622104930.32050-10-boris.brezillon@bootlin.com> <20180626215648.1472b96e@bbrezillon> <20180626234638.076fb816@bbrezillon> <20180627213617.51e10712@bbrezillon> 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 Wed, 2018-06-27 at 21:36 +0200, Boris Brezillon wrote: > I mean, kzalloc() is not deprecated AFAIK and I don't really see the > benefit of using kmalloc_array(), but if that makes you happy, let's go > for kmalloc_array(). kcalloc > I do run checkpatch --strict and fix most of the thing reported except > those hurting readability. I don't remember seeing checkpatch complain > about kzalloc() usage, and I guess it's not smart enough to detect that > for_each_bit_set() can be used to replace the "for() if (BIT(x) & val)" > pattern. That would not an appropriate conversion suggestion in any case. coccinelle could at least look at whether or not x is allocated as a bitmap via DECLARE_BITMAP or bitmap_alloc