Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp301128imm; Fri, 1 Jun 2018 00:47:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdoh6wS95tPuQTd/pBGV5FGRbehsOiCojHvogK4nY86cDYEjwZgIA1gcylaQzFIZclzpvt X-Received: by 2002:a17:902:15a8:: with SMTP id m37-v6mr7193081pla.219.1527839255422; Fri, 01 Jun 2018 00:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527839255; cv=none; d=google.com; s=arc-20160816; b=uKKgcYzNK4G/o65bxHdG9yucR72BqBuvibe3TYw9kWYRiqn9TQA3P4ifjTL6o2cuq0 JzopSPEK2vgWe6HlHrCosuMT7A6VdpBPTDp8zDHCBHGe74HCwmzCidWRZ52JwyJxuT3V YIb5rgVnCvv0oz5RsXTiZGvGbWzRc1leG/IJmMFTqzUkNDsknjtdUiU3V/9G4qJtK8Ym f0GXSScCxpRCxi2JpfCeBLEAytvu1f67m7bOgSwMDeIBflb7y7VZ1nrDSQQ/qjMsgsVo aQxMV7LEJ685zREiQa/o2QuC5tJTf0AL93BygLDrXH56y0ANdKcwwC/qpCqMwmHb8jcR iJhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1aihfwt0N0YgOJHhSyvilV84DDVC957Vwr0ennUBaXY=; b=fEAUIdOrho8EK5ofx869OMdx072Xbdybov8DtZP5ikYXWs7sKzho3OK86t0+pTr3Qb DgXjZ8vmuCQ1x0tinHILFeoz+EMCTzA54UbtCW3nmURUxsT8wPVZIIlphXE3gg9i4uOi s2BThkAmIvBUxJMI5C9z5DKKHK8JCufZJsaNn8/IUXWoxewl3vFqqa1mYP1zuPhsa5qC G+ANfSWd+0QiWjPZke8p8N8bdBMKQKUqnsxw8KsbrNp9+USbqjHJBtB2NfF8cTRpUM3E kczwpbQNO63dGUKZQ9UK80kIRyxsiksy2BP4aq3gVlWzDLZfYhGUW7+YxW+FG4JPd1Zn DqWA== 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 d7-v6si40241593pfe.214.2018.06.01.00.47.18; Fri, 01 Jun 2018 00:47:35 -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 S1751194AbeFAHqs (ORCPT + 99 others); Fri, 1 Jun 2018 03:46:48 -0400 Received: from mail.us.es ([193.147.175.20]:54242 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbeFAHqo (ORCPT ); Fri, 1 Jun 2018 03:46:44 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id B0F007B561 for ; Fri, 1 Jun 2018 09:45:32 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 9C8A4DA4D4 for ; Fri, 1 Jun 2018 09:45:32 +0200 (CEST) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 9B202DA4D3; Fri, 1 Jun 2018 09:45:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id D6696DA73F; Fri, 1 Jun 2018 09:45:29 +0200 (CEST) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Fri, 01 Jun 2018 09:45:29 +0200 (CEST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (sys.soleta.eu [212.170.55.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id A38544265A4E; Fri, 1 Jun 2018 09:45:29 +0200 (CEST) Date: Fri, 1 Jun 2018 09:46:39 +0200 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Laura Garcia Cc: kbuild test robot , kbuild-all@01.org, Jozsef Kadlecsik , Florian Westphal , Netfilter Development Mailing list , coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfilter: nft_numgen: fix ptr_ret.cocci warnings Message-ID: <20180601074639.ptk6zpp2crvunzap@salvia> References: <201805231855.2507c2Vh%fengguang.wu@intel.com> <20180523105859.GA74092@ivb42> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 24, 2018 at 12:40:04PM +0200, Laura Garcia wrote: > On Wed, May 23, 2018 at 12:58 PM, kbuild test robot > wrote: > > From: kbuild test robot > > > > net/netfilter/nft_numgen.c:117:1-3: WARNING: PTR_ERR_OR_ZERO can be used > > > > > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR > > > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > > > Fixes: d734a2888922 ("netfilter: nft_numgen: add map lookups for numgen statements") > > CC: Laura Garcia Liebana > > Signed-off-by: kbuild test robot > > Acked-by: Laura Garcia Liebana Applied, thanks.