Received: by 10.192.165.148 with SMTP id m20csp493918imm; Wed, 25 Apr 2018 03:03:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LYjks5IncF1fIz7QUyM4Vi/Bodj9bYdbvo+2BSmBmQM8xs/JyQlQKTCBpf6IV6IT5cZcK X-Received: by 2002:a17:902:8b84:: with SMTP id ay4-v6mr28476595plb.57.1524650638789; Wed, 25 Apr 2018 03:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524650638; cv=none; d=google.com; s=arc-20160816; b=atWV87uEli7mVejHBypTQjmx//n01SN44/9Yr0jn2Wur00aDiTaKmqJyuH9RejG10R 3hLQ6C837YG9eTG8AMNJxfgg/e8mFkpvCsmKuzNI7Bsis4jl6Ptt+K27kWDbKE8K2dhp GeqpOalNELNS8xvLQU0VntiH7B3lahPFXsWx7b/W8qnYKReJIUMl5N2hF1vtSkT48/8A ZbeRA93RhfsZ5sGjJ4h3I+UpqjQoI2Y+/xAUslTqoeoBEpUdPSrU7vyFwtRkQ+S6vZEq Bs2iNysRQKwfnJpbzmeZQ/zzRZ3vEHfF92AWy3qd2C/v5/DGneKbFAKS/GK9xQEmKxKA V+5Q== 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=2ERo28/gFHBnmQR2H4AIJwAk1uzPV87+ndxuRBCgJmQ=; b=mCoeiR5DbnzwqOM6dZkJ5uceu2an2hx8f4iLD6qhRvhZI9d1uuuVa9lXPFZsfgAJVT YE4w+cW0I8T0hXLhUPIA8sI6YrHsm2o3GQOoJlF97f4KylWwPBUpEzFEWXik5EONuHd5 CgSAGIY5cmn2N3HeT/9dLRybUy383NBeiXUDJ4T2BZsk2fWzdzchSr4ixqfakikFZFTG L/NjQgDfLBIoHyqs89vAem6Pdc3V91haWEOyngYWkzKrBNHKyP2Rqa2+dmvqkIUrjpF5 1++fmWbRW7SwmFQBstYMvLlYk4LJ+ynHxZM3oWkI6Qqv4Qxgm0XrsPEX6m9+mw2ElJBb La+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TOr2e+cH; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11-v6si16487212plt.284.2018.04.25.03.03.44; Wed, 25 Apr 2018 03:03:58 -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=@linaro.org header.s=google header.b=TOr2e+cH; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbeDYKBY (ORCPT + 99 others); Wed, 25 Apr 2018 06:01:24 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36543 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbeDYKBU (ORCPT ); Wed, 25 Apr 2018 06:01:20 -0400 Received: by mail-pg0-f67.google.com with SMTP id i6so12975016pgv.3 for ; Wed, 25 Apr 2018 03:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2ERo28/gFHBnmQR2H4AIJwAk1uzPV87+ndxuRBCgJmQ=; b=TOr2e+cHoFfZ+7McGT19C6nTcMb90dqEZgvQogxtrF4sF3rZGvDbJVQtcZaIKD6gHe ZAHLQwjAUzPdBa11TPJGFAo9xpoTjyYlVhB2wmEhkas7WWl8A6BIsLYYXLP6F01Q3C1r Entk6A8iSVc1VGA5K3VYaCl4eSKWWnED+3K6k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2ERo28/gFHBnmQR2H4AIJwAk1uzPV87+ndxuRBCgJmQ=; b=MWFrEJLnU64WvKh87XPDUYeW5f9Z3b8PWp3/77/U0vrFaNyTPRGYlii713ZIY6MyTo jipp08HMS8ZQLwOWRrfrGBZ0Hpk85GP4Z/9oDfSk2iU4rnwNpHkTG1sb+BoyFo9Rw08J MzSG8oCERoEKVDNSrc3qz6PizuhdxbHqijZriM5O/4R7MbAknCqxJG0+S1hKh32FJ00t H0kLaXuhRwMKBCSSbkUuQdJh4K4sdtLLVBU0MEtMJyX29GBEn84VcrX0PSsSYE+pQu0E 3czzRK5OzYg3EZV2fu54US4oj9EoX6FjZqV93AzLeqtF2GsZbU/oWz8ST/5irLYEbHHE fTKQ== X-Gm-Message-State: ALQs6tCl9JzUbD9yRNKe8wf0V8oTns+6tWA1yinUkiu3XVIbp6IE89o7 KL+qQYJ0Jb/WLVNzFyLc+UbC4w== X-Received: by 10.99.126.82 with SMTP id o18mr23104396pgn.116.1524650479813; Wed, 25 Apr 2018 03:01:19 -0700 (PDT) Received: from leoy-ThinkPad-X240s (li1168-94.members.linode.com. [45.79.69.94]) by smtp.gmail.com with ESMTPSA id 125sm28384773pff.158.2018.04.25.03.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 03:01:18 -0700 (PDT) Date: Wed, 25 Apr 2018 18:01:13 +0800 From: Leo Yan To: Jesper Dangaard Brouer Cc: Daniel Thompson , Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH bpf-next 1/5] samples/bpf: Fix typo in comment Message-ID: <20180425100113.GA28567@leoy-ThinkPad-X240s> References: <1524101646-6544-1-git-send-email-leo.yan@linaro.org> <1524101646-6544-2-git-send-email-leo.yan@linaro.org> <20180420141004.259d7d6f@redhat.com> <20180420132116.uswpqniteogfu4zz@holly.lan> <20180420155213.2867fcf5@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420155213.2867fcf5@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 03:52:13PM +0200, Jesper Dangaard Brouer wrote: > On Fri, 20 Apr 2018 14:21:16 +0100 > Daniel Thompson wrote: > > > On Fri, Apr 20, 2018 at 02:10:04PM +0200, Jesper Dangaard Brouer wrote: > > > > > > On Thu, 19 Apr 2018 09:34:02 +0800 Leo Yan wrote: > > > > > > > Fix typo by replacing 'iif' with 'if'. > > > > > > > > Signed-off-by: Leo Yan > > > > --- > > > > samples/bpf/bpf_load.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c > > > > index bebe418..28e4678 100644 > > > > --- a/samples/bpf/bpf_load.c > > > > +++ b/samples/bpf/bpf_load.c > > > > @@ -393,7 +393,7 @@ static int load_elf_maps_section(struct bpf_map_data *maps, int maps_shndx, > > > > continue; > > > > if (sym[nr_maps].st_shndx != maps_shndx) > > > > continue; > > > > - /* Only increment iif maps section */ > > > > + /* Only increment if maps section */ > > > > nr_maps++; > > > > } > > > > > > This was actually not a typo from my side. > > > > > > With 'iif' I mean 'if and only if' ... but it doesn't matter much. > > > > I think 'if and only if' is more commonly abbreviated 'iff' isn't it? > > Ah, yes![1] -- then it *is* actually a typo! - LOL > > I'm fine with changing this to "if" :-) Thanks for the reviewing, Daniel & Jesper. I also learn it from the discussion :) > [1] https://en.wikipedia.org/wiki/If_and_only_if > > -- > Best regards, > Jesper Dangaard Brouer > MSc.CS, Principal Kernel Engineer at Red Hat > LinkedIn: http://www.linkedin.com/in/brouer