Received: by 10.192.165.148 with SMTP id m20csp1144461imm; Fri, 27 Apr 2018 13:33:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpSHEFh02+SN7sCYpJvRcOYNuP1t7vqeB7H+2AZCnBYD116exvYe1EsYqlvltnPS1CTPjbe X-Received: by 2002:a63:8849:: with SMTP id l70-v6mr3317296pgd.49.1524861219956; Fri, 27 Apr 2018 13:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524861219; cv=none; d=google.com; s=arc-20160816; b=0swmFqkUiKrU3Az5Q0ElzsCFel0YGVglhWlMVUloEkuCBI6IYFx6l1qjroXmosKd1V 4MI6+nijP1ahY5GDEynM5mJDZr/4zyU+1C0pfSDor4TQl/wfTIEpLevBUiwsd45HLWK9 gcGrGOasJo8zGJkiJAKnitTZ46na1LbT87L8a7rKKUpSoNLeroBob1maQWCMQFIlFR+V 1nHrLVTj4WCdPPmG2b0QHmrXt1K4qQ7WAiwEnsXTjyC3m+X9Y8UntU2/enOzYzQRKsCr 3xF4eLUX3QIHZeXAp/VcyJaIRfupCYeIHv9vHmHXpeasXLIbJ8EOVUl83RNa0kjqcuiL ETMw== 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:dkim-signature:arc-authentication-results; bh=y512mRucELaqq5gMGIctcGDYwaQF/ITNZvLjVCdpZaA=; b=AJtNPi94IAVAVlglsJucJKX0oj6DJwqcjcdhhICIfMivpH8MypQ4v30YUkQwuZj5l7 55iFQgShy/Z3smsqZtfvr6PtlCOFTLNBonx/Y5wxN4bvkK72br6iNowuNBJQJETXAPqp KtvP4awDd+2dYyGR+uiBgYZNCbxo6MFA2OJAegcHSkF8XqVARlFoTv1bYXOsd2RT6xPY 200s2GBuchcZo+dWZbMQpmCJJPS+D315yS+JIDPZmnP6Ft516vQR0037sPI3+LO4jSUc qV/of9jtQtnU7aZJrynI9f9eshu4Fv7hOOO+I3DaD7EW7XhrFPrKPJ3wGNWHGChgsDd+ s+0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=g871TKTQ; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1891543pfb.247.2018.04.27.13.33.25; Fri, 27 Apr 2018 13:33:39 -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=@oracle.com header.s=corp-2017-10-26 header.b=g871TKTQ; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759265AbeD0UcN (ORCPT + 99 others); Fri, 27 Apr 2018 16:32:13 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:60484 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759241AbeD0UcL (ORCPT ); Fri, 27 Apr 2018 16:32:11 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3RKVeS2125941; Fri, 27 Apr 2018 20:31:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=y512mRucELaqq5gMGIctcGDYwaQF/ITNZvLjVCdpZaA=; b=g871TKTQTzux0D1Y2NsAX06fd0qT+d4BR7Xv1+g4FNf1wD8pAcYSpIDz1DFHMLH1h++P GNf6zwVXlz+tweAC6K6UwQ8mHdxeCG8VYKrVNEVk2dQBhB6gQ8o5B6C4mdJo8jW5xAmE v6bnuS3hfaPDuys5IFkT2aga2xnx5Ga8ePoWOM+Onk1lEitSUtVU63my/+mwgYeFzYWj yiwbWFtnq72fiZOHXSPOmDoTWaks9x1IEPPZzJc2hm48zIuU21oUNWyFEyJlUdlckF+R RXLZ6nIjgdNWolP11SAJXln98P6SKKoCW6E6ecb5z5lQCV2sLlGCeedqtlQ70DLxejkO Lw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2hfw9as2tt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 20:31:47 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3RKVjqJ013147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Apr 2018 20:31:46 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3RKVjdf020268; Fri, 27 Apr 2018 20:31:45 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 27 Apr 2018 13:31:44 -0700 Date: Fri, 27 Apr 2018 23:31:36 +0300 From: Dan Carpenter To: Daniel Borkmann Cc: Martin KaFai Lau , Alexei Starovoitov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 2/2] bpf: btf: remove a couple conditions Message-ID: <20180427203135.mjkqoofbanozxzkd@mwanda> References: <20180427140459.GB19583@mwanda> <20180427172023.6japncdd3nbqauzn@kafai-mbp> <20180427175544.vydqf4iufopcyv6d@kafai-mbp> <20180427193959.3nebosalgl3ch4mv@mwanda> <21126ae9-5178-5d09-679c-6bca57ad48e8@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21126ae9-5178-5d09-679c-6bca57ad48e8@iogearbox.net> User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8876 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=787 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804270193 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 10:21:17PM +0200, Daniel Borkmann wrote: > On 04/27/2018 09:39 PM, Dan Carpenter wrote: > > On Fri, Apr 27, 2018 at 10:55:46AM -0700, Martin KaFai Lau wrote: > >> On Fri, Apr 27, 2018 at 10:20:25AM -0700, Martin KaFai Lau wrote: > >>> On Fri, Apr 27, 2018 at 05:04:59PM +0300, Dan Carpenter wrote: > >>>> We know "err" is zero so we can remove these and pull the code in one > >>>> indent level. > >>>> > >>>> Signed-off-by: Dan Carpenter > >>> Thanks for the simplification! > >>> > >>> Acked-by: Martin KaFai Lau > >> btw, it should be for bpf-next. Please tag the subject with bpf-next when > >> you respin. Thanks! > > Dan, thanks a lot for your fixes! Please respin with addressing Martin's > feedback when you get a chance. > My understanding is that he'd prefer we just ignore the static checker warning since it's a false positive. Should I instead initialize the size to zero or something just to silence it? regards, dan carpenter