Received: by 10.192.165.148 with SMTP id m20csp1356954imm; Fri, 27 Apr 2018 18:29:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpZOtjBkQzDfemJOYFFF9E9rwW/Co/yweJstW0nstb3pLknNQMJSM/1OPbpj9yaNSGkfEjw X-Received: by 2002:a17:902:b2c8:: with SMTP id x8-v6mr4400008plw.3.1524878981580; Fri, 27 Apr 2018 18:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524878981; cv=none; d=google.com; s=arc-20160816; b=yOYSunv+vlrXwc9XStmN3+nHLEhPdUeAYOGGIuBDEtio/iAD+kKECk+3fR3dtlwBot npheExyarFJjvRoSYYJimHiZXiSvhEzm0j3D2Kw4Hf7XSSXvr0q0MPeRZoNu5kgIlBlC vh2fJxZ8Tfc1D0RlfEcUtDeSaTY9MF5bfssfpgnhU8eIuqVnBu29YjTofpJerDUeZOGs ajXmVoh/rXUTj/JYs5dB/7OR5zUQ6N+vCnhRq5sIvXqcBTDlgoErbQlrtJPNU4lQKPOJ A68z4m9CHD5hnAuNb3FkykKUqMQnqTh5190qrQmCPKlwflpt+vvsFKTmhe6TBRluiPij vLnw== 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=FLzcWNc9tzO1YS5qng208rYF8ZUUT9AGiEGepNkhy0Q=; b=jYHc+PVj+KhsJf7PdKdcT6vTl+HfwpWQ5Lcn3HfUVGqVbDlCShXYAOt8YCp//HelgD by79J+DtoFpwDrHnpaRecV+5KXqhglsguQxSlWJket6f5KEPWBB1Onkk1UbUa9ccdorP Z+jErABlAIPMR4UovXeOQrYEoxaS3eaEIendIYSnVhPA4300e6suetycGm3MUfXVw7/j AQuGBKruOGDNLD9FgndDvtPOdZmQwST3Z1rS1GIQsvLgPk0X2a1Q0cWJ8jpgS61VF8hl PqYsOwMc5pI7KxI0tWavhZyVBrXCS9n2S1tC3tHxSF0wxe+I14Pb740+qS/SLZV4C8iy yVQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=rLw9GI48; 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 e18-v6si2219127pgt.3.2018.04.27.18.29.03; Fri, 27 Apr 2018 18:29:41 -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=rLw9GI48; 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 S933263AbeD1B1o (ORCPT + 99 others); Fri, 27 Apr 2018 21:27:44 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:49622 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932939AbeD1B1m (ORCPT ); Fri, 27 Apr 2018 21:27:42 -0400 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3S1JuJe012576; Fri, 27 Apr 2018 18:27:17 -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=FLzcWNc9tzO1YS5qng208rYF8ZUUT9AGiEGepNkhy0Q=; b=rLw9GI48Th9TsIFbm1r1tbYekVEk/FJtS2VuQ8ePyRKTDWD+Ka0RD+dMaaGAzoO4eZIh KVeDVoX7AXK0hWVC/786GNfXiwfTJLPcRbPWjwwBhPk1U7+OUIy7pkvgQxcEpWgCUejY qawLQt5j3zjKHVvpasLhSsF1KRvA6OjA860= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2hm9mnrt8n-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Apr 2018 18:27:17 -0700 Received: from PRN-CHUB02.TheFacebook.com (2620:10d:c081:35::11) by PRN-CHUB04.TheFacebook.com (2620:10d:c081:35::13) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 27 Apr 2018 18:27:16 -0700 Received: from kafai-mbp (192.168.52.123) by mail.thefacebook.com (192.168.16.12) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 27 Apr 2018 18:27:14 -0700 Date: Fri, 27 Apr 2018 18:27:11 -0700 From: Martin KaFai Lau To: Dan Carpenter CC: Alexei Starovoitov , Daniel Borkmann , , , Subject: Re: [PATCH 2/2] bpf: btf: remove a couple conditions Message-ID: <20180428012646.r6idamuylruykb7h@kafai-mbp> 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> <20180427212648.zskc5bk2hunkwvsg@kafai-mbp.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180427212648.zskc5bk2hunkwvsg@kafai-mbp.dhcp.thefacebook.com> 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_07:,, 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 02:26:50PM -0700, Martin KaFai Lau wrote: > 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? After another thought, I think init size to zero is fine which is less intrusive. Thanks! Martin > > > > regards, > > dan carpenter > >