Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1963574imm; Thu, 24 May 2018 03:41:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrXa5eeqCH+jM9jh8z2jN0fND7JLaf/Gck5L13MTk03gu5F0MY4n2z4L5/BTE6s6GmNL9jA X-Received: by 2002:a62:f55b:: with SMTP id n88-v6mr6730102pfh.208.1527158464604; Thu, 24 May 2018 03:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527158464; cv=none; d=google.com; s=arc-20160816; b=pRBOvDheQsO0UrUP9jzVp1VrT7OO3BRCKoGthIK9Fr4ZVxZXO4v6mOeobnnt9O7UMf eTjLFhpNLVrBaoi1AZopKH1ke4StLB6g5tmSgMGh4tUlIwsZ0nsDBFwB1RF5Ta1/hdfq +jMZS3lChQDrsKln/WsCgg3G3M2P7tFh4zqzifEQAI46G+d4TVHZDEXxinNkeERuAEiU gPTQ6QIVAMCD5U8ol5nMOPfUvoj/cVFZFtGoYPm7eEyDnSsx9a7nOm7U1t+PRX+/7hgo FvnlREkUKqnOd7JhqcBrP8B27VNwqaFvMU4lmlxX/ykSW/FETqr7YnBURfLg9y4pwsUw X6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FGB7T65jC44uqLliV/ND+NuwxvI10Fs2XEfhZPUlkF8=; b=JYMIuiQjGkekn+7lwPKaS8RkmSV70UMRuI/1cKUi8b/67YmTgMsneif8PhJTGEozJ6 f9RA8LGRc+ZIBWyoYcsFzFhTfGP1yTNgkFuw/G4jbUog0cFSJgzxtPJjrVoq2W1UGbU1 XTlLfRzYA/ld0OJx9y+4jUyGEfShWWzPPTLTzaGAPYcEUNu9VrE3F5e4iNxOd5jVb/IH HxlVvcie6xvcxV9MrXrWpkJ9iOz/tHHA6dVsE3cW4IYTZ1KsrBAtplsHPEFnRLE8wsvI IVUvGIEe33OROci9IAqva90dVauRVnQ9Rzrh15uxAvjHrPuS0M2zuQR1IiTgfYZWlY9y 6bCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sktyRox5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si20199769pls.460.2018.05.24.03.40.50; Thu, 24 May 2018 03:41:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sktyRox5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032278AbeEXKkM (ORCPT + 99 others); Thu, 24 May 2018 06:40:12 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:41816 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030728AbeEXKkG (ORCPT ); Thu, 24 May 2018 06:40:06 -0400 Received: by mail-qt0-f195.google.com with SMTP id g13-v6so1315437qth.8; Thu, 24 May 2018 03:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FGB7T65jC44uqLliV/ND+NuwxvI10Fs2XEfhZPUlkF8=; b=sktyRox5N9R2J5U4BUuyBayAd4mwPPwNHqB6Wt7l/iz7x/BLodf7mFCKBHgFuzNhg0 51K6aN5J9z//drf+5FO4HxHQWgkelLQkZ8+Nwa1NEyH63D1pwKs+/aO5FJVNEV4I8gXA wlMYSHk+ytFjObNDseES5pT4y9oyTyHM0Qg9CYU3cjCnTmnuWW7JVumW2Wz8dMRe/bZD b9rtGm/TkcqcIJren1p/B99t3zE3daZrkeY99R4iasxcBY0wBRmUmptvlnxVWNzL9R9E MNojmwRrJgCN4vN7Wm94QIERtrwyv7Xa0Bkyz1Z72TKl5dGJchP9EuA0QxGBeke1JWJj Wz0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FGB7T65jC44uqLliV/ND+NuwxvI10Fs2XEfhZPUlkF8=; b=ZQMK45UkuN+nqNCQKnBF9SoCLqh39t8aPYqcV4mFrMDXEzdg5Ac0hX5okJKn/oCTbG pSZjqAFK3buUY3dApj07DbNjt0OtxE+Ich1e+o6HVDbQK/sBCxJfzU0txeMExG89/RuC GSiixPnJrRs+q84u7E9splMrByKHX+KPE1dZW7wvFJbztyvniU1q0Ffy7cy4Is52+FcH b4WSWqELNNqBQzvt26JSyWOiGeRier7GDPRNjRLJdYCVN5dyOi8H5aYW6hyTOLrjlWb6 jywHe9Xhnd3ArDycYahqkL5CMEu+V9WgGCJcOquUSH0dvtnJYF73/TbZgyZkl4EG6dHb Y5SQ== X-Gm-Message-State: ALKqPwd2G+Z0/s9gsV9W9vjEw4mZl61A3bCi160ygNKik+McP6gykUz5 gYtGk5mwg/+oc10/uOzAq0hj54jHvDlao6CLN0Yu6Q== X-Received: by 2002:ac8:2f3b:: with SMTP id j56-v6mr6311832qta.224.1527158405219; Thu, 24 May 2018 03:40:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a0c:d44f:0:0:0:0:0 with HTTP; Thu, 24 May 2018 03:40:04 -0700 (PDT) In-Reply-To: <20180523105859.GA74092@ivb42> References: <201805231855.2507c2Vh%fengguang.wu@intel.com> <20180523105859.GA74092@ivb42> From: Laura Garcia Date: Thu, 24 May 2018 12:40:04 +0200 Message-ID: Subject: Re: [PATCH] netfilter: nft_numgen: fix ptr_ret.cocci warnings To: kbuild test robot Cc: kbuild-all@01.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Netfilter Development Mailing list , coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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