Received: by 10.192.165.148 with SMTP id m20csp1189956imm; Fri, 27 Apr 2018 14:29:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq1k9HBWggDiip8bPwaU5RVxQPuRtWI0qm7+UyjeYmnplX6cCGtdkJNvjItp4bV8eCCHD5d X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr3628362plo.310.1524864541174; Fri, 27 Apr 2018 14:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524864540; cv=none; d=google.com; s=arc-20160816; b=LT7d+DFxBoVwG7bQN0zIHA+kryHsMpQTbn/l0a0ga6TADSEJCaOjoMAn69avjUS2f2 Z/pCFptvUiuER3OzEmIPEPu3xN8xyfQ+t3Zl+5ZXUhaJffIE/JItk7sv/DSdcnuRiJJc nXQ+BErLAxCa+rmwizL28/Nmn6hM1V7XhVaXWEps2GTmDDS9Sv++rekVyccyP1FbcExx CBbE/D8TfTVztwnKnqXa7+Epph4pnb3YvfC00PNEd6FrY8LOgV1kDOvaB57XZRGk6P3k a+FHxQTG+Pz1/wvH0+NA3CM9So5ctbNkt5KEaIWB1rK4LVTIziybl62O9HL6ovJL37RW K0zg== 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=h7fQcW0Z/vUqQhamIyHNwJV6ar3OjzGB/EX0hoW8Lko=; b=q8X5Sm6pKxj+7ISS6xcGgG6HMTf/Co9KSBvKkbnpqCR5UBx6o4QlFSQrenptqO+Ovw 3f70jhp3alD8/aLBbYhrLpHeTzbAN2FWN7TwZ7fK9QdBRMSRLcxnvVAiq9iImIXRGV3e Sv0pcKzlrpcj7CWZRaIr5sjjUEk8sRSUYOr2DxE6NZZKDNZTrZILe5HVZZYBxiAz201z zmk0NnzpojhundNdpIBhG7ecYDT0wuTDFlRR4En0dHEoJ0Q9aGqNJtt/5U8h4r+KeIXk qK8DYd2SsdlzvJizlLvqUrsx0h4NdIziWztEWebgx8OsUsoYAZmGehXDyfACXnUrrX/g RYtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=fNE/0ppn; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13-v6si1818981pgr.676.2018.04.27.14.28.46; Fri, 27 Apr 2018 14:29:00 -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=@fb.com header.s=facebook header.b=fNE/0ppn; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759311AbeD0V1g (ORCPT + 99 others); Fri, 27 Apr 2018 17:27:36 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:49752 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757815AbeD0V1e (ORCPT ); Fri, 27 Apr 2018 17:27:34 -0400 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3RLIcGt010348; Fri, 27 Apr 2018 14:26:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=h7fQcW0Z/vUqQhamIyHNwJV6ar3OjzGB/EX0hoW8Lko=; b=fNE/0ppn4L5lU1gnczwHjQ5xwt2uE+AmuZIno2ykn+JEW2JaqWkH+tBoarMaBJlP0xY1 Gj0o/OyrRpUO/jn7ppv4WxacdDSiV0qoE3Eo3K1+ltLf3twGyTGI5ZX4GRm2qMKmHfqi 4KIqQunrpb7jNE9O/ZUD+06gqSunNrRBVbo= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hmb3e03nq-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Apr 2018 14:26:55 -0700 Received: from kafai-mbp.dhcp.thefacebook.com (192.168.52.123) by mail.thefacebook.com (192.168.16.23) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 27 Apr 2018 14:26:53 -0700 Date: Fri, 27 Apr 2018 14:26:50 -0700 From: Martin KaFai Lau To: Dan Carpenter , Daniel Borkmann CC: Alexei Starovoitov , , , Subject: Re: [PATCH 2/2] bpf: btf: remove a couple conditions Message-ID: <20180427212648.zskc5bk2hunkwvsg@kafai-mbp.dhcp.thefacebook.com> References: <20180427140459.GB19583@mwanda> <20180427172023.6japncdd3nbqauzn@kafai-mbp> <20180427175544.vydqf4iufopcyv6d@kafai-mbp> <20180427193959.3nebosalgl3ch4mv@mwanda> <21126ae9-5178-5d09-679c-6bca57ad48e8@iogearbox.net> <20180427203135.mjkqoofbanozxzkd@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180427203135.mjkqoofbanozxzkd@mwanda> User-Agent: NeoMutt/20171208 X-Originating-IP: [192.168.52.123] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-27_06:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe 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 11:31:36PM +0300, Dan Carpenter wrote: > 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. Right, I think patch 1 is not needed. I would prefer to use a comment in those cases. > Should I instead initialize the > size to zero or something just to silence it? > > regards, > dan carpenter >