Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4332609pxv; Tue, 27 Jul 2021 05:00:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKQsc5iMHabMwGdSqR6KR72A/F379SNPQsFLDhaznshxXBtczA9wjpnLdNAQoIuowPDsMr X-Received: by 2002:a05:6638:14d6:: with SMTP id l22mr21020703jak.99.1627387245686; Tue, 27 Jul 2021 05:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627387245; cv=none; d=google.com; s=arc-20160816; b=rx7X6FjcTR8DU7lU5H7VT37FCLbRMLKS7Nqy9qNQSqKsq1XDg+Cf+hwxPsClbjJEwm /TvbBivAQnuCOw9K+jCKNUnYUDtCzmPuWtpHVLc+d2lWtxG4VDZUQGnts9lymQUnsatS CQTzxDl8zpUMDBVsG1IOCobJS59faidfkL8JZkuWBYSuCOI8C4gL5rY6A7mXsqRbaWA5 yQZhojS3CCZIg6zhn+Es//OXHUfeNpA72cGGanXg8J1HpvVRVpeN5iq/EOX95ePzgSQI WuwxkToyhgucNAbDHSzLiwMGLOj5+MOhb+2aeNjVAqaDbnIzCT61+3tlFNkXDmG61YuN 4xtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=qztWpqKmdyNtlvXVkO6u99Fj4XVYv1fXNb0f3KLiMso=; b=z16By0B/qrPiPQ25xIPip7AimMVMYdjMl8fwKblE06cDzpJ1Yc4hfwZprqRVe9X1NT tEGimU5V69tsrwphdnVhTFYSeK2u4ccIYvLEb/3YSuWvdbLYUCAVBhXNEs9fk4/YMCJI D508dfOrKw4dX+JNPhT8Mh3CMMnPwYGBjREKIkGj4jOneExpDTNrLWn+JwotrWFlk+BR s+ECZOBFYTybori9Hg+zpf+58z+YZ5xDn9Nmr27UcEhbtDlfiGV8o1w/WPm54oSxssRH EvRvzeEPPTm0MsEUL06Ad1nTCBsUHpW0xhR/B43qtEtLcJh57hpmtrUQ4NW/gVA3IuAo FSsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si2852705jao.13.2021.07.27.05.00.32; Tue, 27 Jul 2021 05:00:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236312AbhG0L7q (ORCPT + 99 others); Tue, 27 Jul 2021 07:59:46 -0400 Received: from smtpbg126.qq.com ([106.55.201.22]:16661 "EHLO smtpbg587.qq.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231802AbhG0L7p (ORCPT ); Tue, 27 Jul 2021 07:59:45 -0400 X-QQ-mid: bizesmtp33t1627387177t3wv1n01 Received: from ficus.lan (unknown [171.223.99.141]) by esmtp6.qq.com (ESMTP) with id ; Tue, 27 Jul 2021 19:59:35 +0800 (CST) X-QQ-SSF: 01000000002000B0C000B00A0000000 X-QQ-FEAT: CXDQRtGtR3KzU4MBs10Nayaq8vi7JZkz9fRlw35l7TPh3pRJ+S+E8PbJ9MaZu inCttgpcKBS1AWJ9NturNkBJQGidOJGD29LKbOxxY9FjdXz65CP/SrnX1hVDYlPz3+jvIvq fuHX0WsA2NQQOJJF5vsnOL+74NlV3Hty7iEHVjVU2mzFP+b18p1xEhPAb8Zr+5ChJ7Dp5Pb JsusGjvZ9nxQtAZlhtxfUBuZ9SDSZpRlI+q+uL/iNWy5ob5mAvLIccDgqZ+D84Y+gBw0fdQ TPTEOsDKTakPHmkMLHL5OZJGW9D5NoO0334UrdRtSv0DMzALZAgG2hRtFwAB/Lp37lBRv/2 Hsdqh/+ X-QQ-GoodBg: 0 From: Jason Wang To: daniel@iogearbox.net Cc: ast@kernel.org, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] libbpf: fix commnet typo Date: Tue, 27 Jul 2021 19:59:28 +0800 Message-Id: <20210727115928.74600-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the repeated word 'the' in line 48. Signed-off-by: Jason Wang --- tools/lib/bpf/libbpf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 4c153c379989..d474816ecd70 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -7236,7 +7236,7 @@ static int bpf_object__collect_relos(struct bpf_object *obj) for (i = 0; i < obj->nr_programs; i++) { struct bpf_program *p = &obj->programs[i]; - + if (!p->nr_reloc) continue; @@ -9533,7 +9533,7 @@ static int find_btf_by_prefix_kind(const struct btf *btf, const char *prefix, ret = snprintf(btf_type_name, sizeof(btf_type_name), "%s%s", prefix, name); /* snprintf returns the number of characters written excluding the - * the terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it + * terminating null. So, if >= BTF_MAX_NAME_SIZE are written, it * indicates truncation. */ if (ret < 0 || ret >= sizeof(btf_type_name)) @@ -10075,7 +10075,7 @@ struct bpf_link { int bpf_link__update_program(struct bpf_link *link, struct bpf_program *prog) { int ret; - + ret = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), NULL); return libbpf_err_errno(ret); } -- 2.32.0