From patchwork Fri Jan 22 18:37:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joe Perches X-Patchwork-Id: 369205 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4780DC433DB for ; Fri, 22 Jan 2021 22:26:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F213823AC0 for ; Fri, 22 Jan 2021 22:26:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730510AbhAVTyE (ORCPT ); Fri, 22 Jan 2021 14:54:04 -0500 Received: from smtprelay0224.hostedemail.com ([216.40.44.224]:49378 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728520AbhAVSiW (ORCPT ); Fri, 22 Jan 2021 13:38:22 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 15BA018026205; Fri, 22 Jan 2021 18:37:37 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: hook92_4a17fb32756e X-Filterd-Recvd-Size: 2090 Received: from [192.168.1.159] (unknown [47.151.137.21]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Fri, 22 Jan 2021 18:37:35 +0000 (UTC) Message-ID: Subject: [PATCH] checkpatch: Add kmalloc_array_node to unnecessary OOM message check From: Joe Perches To: Jakub Kicinski , Ronak Doshi , Andrew Morton Cc: "netdev@vger.kernel.org" , Petr Vandrovec , Pv-drivers , "David S. Miller" , open list Date: Fri, 22 Jan 2021 10:37:33 -0800 In-Reply-To: <20210122095006.58d258aa@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> References: <20210120021941.9655-1-doshir@vmware.com> <20210121170705.08ecb23d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <888F37FB-B8BD-43D8-9E75-4F1CE9D4FAC7@vmware.com> <20210122095006.58d258aa@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org commit 5799b255c491 ("include/linux/slab.h: add kmalloc_array_node() and kcalloc_node()") was added in 2017. Update the unnecessary OOM message test to include it. Signed-off-by: Joe Perches Reported-by: Jakub Kicinski --- Maybe not worth fixing, but no real effort to fix either. scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4f8494527139..8dbf1986a8de 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -487,7 +487,7 @@ our $logFunctions = qr{(?x: our $allocFunctions = qr{(?x: (?:(?:devm_)? - (?:kv|k|v)[czm]alloc(?:_node|_array)? | + (?:kv|k|v)[czm]alloc(?:_array)?(?:_node)? | kstrdup(?:_const)? | kmemdup(?:_nul)?) | (?:\w+)?alloc_skb(?:_ip_align)? |