Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp972476rwl; Fri, 4 Nov 2022 08:23:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4K6XsfGX9xXMh3N8OTQyZU0MmIMN58/uK5DvqHxI67GSv79CGdiLcG1+hIGsvWjYW28X3h X-Received: by 2002:a17:906:7843:b0:7ad:e82b:b635 with SMTP id p3-20020a170906784300b007ade82bb635mr22700590ejm.23.1667575423088; Fri, 04 Nov 2022 08:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667575423; cv=none; d=google.com; s=arc-20160816; b=r1kQqRjJ4V3e0MqzcgICjC2Z68RY5GBSCegiR/+YCXjz6mrgs02cEOXbjFacVuuVny sBoEUhZWz42GGr5LXhZ0VgO4Jz7s0QqStMBcDNXqs3KAQREfT82BPMxu5sbB0xZoMfAn k/95tHzDe6KLmq3qMVUBRTbT3pHw/cyBbpidbhqZEnmJas8btspul2FeOC4wLmGao3L9 2t7uRt+Im1d2sasMfVLRyxk/0rrR9ELJDh66EJv23nnHbuM4rQkI0JHQ8y70szKHoEHy 4sW57ePpEyKoKVu9cJTUkzzFFMN3hYxoCMmakYTVrxov6JXbs+Gws/bKru21MIb2Kj2z NU1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=4cnJPJQ+nbKept0Ew1a+U/dc6Zlg/G53MLpB72br7+I=; b=w6ZCm9IX2z16u+0AN/nN6+LHsJKdJLlIt/2604LEzOAESsOB0RXRxa/ZRdrTWb3G6+ AgUj4dZoiD8nw6JoDgiA0DsApA/t1ipp0HAG/QR5xvw70wsZx5dsw+L8TTxlGdBKbKkf ZHZVYoyAvZCuKgygFYqx7Hr0ORe7SzojbpjwaLSyjWwi0pYEbTSPCcwA5wsDEJJiih2r wl0E7Z+4wrIBaxpn4eiLfCPBJsMMQ8KX+D+2rbP6AG8ZB7xe8oEGaNimptquDcNCGf0o c1rQFQYHu9IELjV0IVP4pIb5wvOdpGWrDdnk1UpHVGLDoWPk9uHzWyBhIzigEb0ieUV2 F86w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go37-20020a1709070da500b007ade82b938asi6535132ejc.784.2022.11.04.08.23.15; Fri, 04 Nov 2022 08:23:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbiKDOh2 convert rfc822-to-8bit (ORCPT + 96 others); Fri, 4 Nov 2022 10:37:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231842AbiKDOgh (ORCPT ); Fri, 4 Nov 2022 10:36:37 -0400 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914FE31FA0 for ; Fri, 4 Nov 2022 07:33:45 -0700 (PDT) Received: from omf09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B1E30A1409; Fri, 4 Nov 2022 14:33:43 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA id 4B6D220028; Fri, 4 Nov 2022 14:33:40 +0000 (UTC) Message-ID: Subject: Re: [PATCH -next v2] checkpatch: Add check for array allocator family argument order From: Joe Perches To: Lukas Bulwahn , Liao Chang Cc: apw@canonical.com, dwaipayanray1@gmail.com, linux-kernel@vger.kernel.org, bagasdotme@gmail.com, pbonzini@redhat.com Date: Fri, 04 Nov 2022 07:33:39 -0700 In-Reply-To: References: <20221104070523.60296-1-liaochang1@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Rspamd-Server: rspamout05 X-Rspamd-Queue-Id: 4B6D220028 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: 4sjyohrgqpg944iu7h8hd45b31x5o5r7 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19wD3RqL7rcRrcmMu0rbTYsZy3DyVjpZy4= X-HE-Tag: 1667572420-735852 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2022-11-04 at 09:35 +0100, Lukas Bulwahn wrote: > On Fri, Nov 4, 2022 at 8:08 AM Liao Chang wrote: > > > > These array allocator family are sometimes misused with the first and > > second arguments switchted. > > Just a nit: > > s/switchted/switched/ > > But probably you actually mean "swapped". I think there is a slight > difference between the two words, "switched" and "swapped". And here > the arguments are swapped. Note: I am also not a native speaker. > > For the implementation change: > > Acked-by: Lukas Bulwahn > > How many new findings are now identified with this extended check on > linux-next? Could you run checkpatch on all files of linux-next and > share the new findings? Then we can do a quick scan if some instances > should be immediately fixed or some janitor should follow through with > such a task. There are ~25. It's fairly trivial Lukas and only cosmetic. https://lore.kernel.org/lkml/d92ada3062bc1c3a7557bfa0499fc4a8cee3aa10.camel@perches.com/