Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4878000imm; Mon, 14 May 2018 15:00:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqZlTr13fFFh41yNu0umqFFs2Y4TZP4xurDuRv5J1gJKMcjkP4ty4Beox25NrEVaGAlZdLN X-Received: by 2002:a17:902:74c6:: with SMTP id f6-v6mr11643106plt.7.1526335248947; Mon, 14 May 2018 15:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526335248; cv=none; d=google.com; s=arc-20160816; b=oqtYDQZ4Fq+zquAE50ydRS35AjAqo5qi6ccb3Yv1fzMVz2xbdqK/1zQ2kGP1LGXZ8Q 8yVBZWLGfFedYzk9pA4zxfGwhZ7AJr6yB30cEqcZV+gjEHN4X0GzHG0czM5j3h8MZGiI vzuIX0zwcDXIvlci3KzpvAIvuA0KyDoAT6k55j96naL7fvhgRRpjB7aNzhaanAFS1n76 1gd5R3nPLnswcgeMgAyc68Q2UXLVqhSyMvlLI/2aMz66qdME5PfWr86ur3EhGBp0QNgX lZjnFAT3hleKBcu7aDNdxEjWTYL7fV/sJ8lkIboytU6LFc6YiTPRq1cxxWspw4b+UW8V DBLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=W61G5ZYootScIhSbHL/0QT3+d0Go9qPiQvO4Wv6x2MU=; b=b3HEH6oeclk9Zbx4s+imSu1sMI5oVEkQD5MZU7aUNRkm3cvslzHCkX12EugRRPjLv6 rhArUuLoYHVC7Xm81cbbwKaDb9JzGiEacg0TOE/LFY3262lHTNhQkK/RZfGFAb4g5ghj xW8CdXiVPBsh9ACjKnL+7bL0KWPhD+BkimYl1nm5GYqmnRU29Fw5mcppTJlgF9/aiN1S n2LrqT0W9EpgoDJQsAB/C/oD3XUj3HPihQrEPsoEuNXPV6WgiA7vaOqSCERMz/SokSTT b7L4tTJfTLURGMjVOf7XPcuTWSTn0nBlPKTmwJE7S087K/5QRaH17jMHSoo5VBPo6uOJ qAGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=G8xZtGNv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si9797954pfh.346.2018.05.14.15.00.33; Mon, 14 May 2018 15:00:48 -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=@canb.auug.org.au header.s=201702 header.b=G8xZtGNv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752561AbeENV5b (ORCPT + 99 others); Mon, 14 May 2018 17:57:31 -0400 Received: from ozlabs.org ([203.11.71.1]:49701 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbeENV51 (ORCPT ); Mon, 14 May 2018 17:57:27 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 40lF1042Psz9s1B; Tue, 15 May 2018 07:57:24 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1526335045; bh=ncmnyCMRHqQzqQBjKwo7RahJo1HV/Q3DI95YpnPmTfc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=G8xZtGNvIBOTv0Zal5METkwNIAs9zEEmLSzYUT9l0j5O1WxD9XKnEi2FMUPRVuGR7 NejMRJ+shknHbE6GsYFwRa8Q/k9wVkePNYyZ3MRnEES+/eoi1YC+liKZLixL5Pv03y Ah+2XvbnBu/uhNIyQ/gDcdpQjqNi+5DxD40t+6WxLloqZMQ55zzCI5xOMStpMgwLJE x2anyF5GxRCtymp7ABfNIwwiKjo1D8iGVhbykZtCKpkx+7+5ZiEgZX0hxImcS5fth8 bqeN6d16yIFVtkXJXp8RpKG1lPq3Yqo7BNtJb7JajCByY/zOXHAtcaSPPgVXxdL69x jMl9A9rn7j1Qg== Date: Tue, 15 May 2018 07:57:23 +1000 From: Stephen Rothwell To: Jakub Kicinski , Alexei Starovoitov Cc: Daniel Borkmann , Networking , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: manual merge of the bpf-next tree with the bpf tree Message-ID: <20180515075723.658e19fd@canb.auug.org.au> In-Reply-To: <20180514134140.0c468174@cakuba> References: <20180514115700.0faadd6f@canb.auug.org.au> <20180514134140.0c468174@cakuba> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Pr=9fcFrD43j/RAAXwnkS8h"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/Pr=9fcFrD43j/RAAXwnkS8h Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Jakub, On Mon, 14 May 2018 13:41:40 -0700 Jakub Kicinski wrote: > > On Mon, 14 May 2018 11:57:00 +1000, Stephen Rothwell wrote: > > diff --cc tools/lib/bpf/libbpf.c > > index 8da4eeb101a6,df54c4c9e48a..000000000000 > > --- a/tools/lib/bpf/libbpf.c > > +++ b/tools/lib/bpf/libbpf.c > > @@@ -2163,9 -2193,12 +2193,12 @@@ int bpf_prog_load_xattr(const struct = bp > > =20 > > if (!attr) > > return -EINVAL; > > + if (!attr->file) > > + return -EINVAL; > > =20 > > - obj =3D bpf_object__open(attr->file); > > + obj =3D __bpf_object__open(attr->file, NULL, 0, > > + bpf_prog_type__needs_kver(attr->prog_type)); > > - if (IS_ERR(obj)) > > + if (IS_ERR_OR_NULL(obj)) > > return -ENOENT; =20 >=20 > This is okay, thanks. The OR_NULL is unnecessary just using the > bpf-next code is a better merge IMO. Thanks, I have updated my merge resolution from today. --=20 Cheers, Stephen Rothwell --Sig_/Pr=9fcFrD43j/RAAXwnkS8h Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlr6BkMACgkQAVBC80lX 0GzYCggApJbT2qM26AAH+0X4WpBUcKTUrVY9PGu8tuVJABfTNrxHe66WGhYJYYU6 QZmZBD+Q8OpGWqssPMk/LphbOKtiNi7cZh5gUiOtVwcV84z6Oh0Cj5KqW0OROmtQ QCsZjTThKsDgL0R0DHou1TeOOTK1OgMQThfE4nnNRKDy8eX9T8r0eTssZPegQv2I Al+3pnphZota2eV19oKhxYTqyx7TbGbPZqUxYcMlRKR1v1bquNhTzHBmPUoekztj MwvxQJiniaVU2CDVu//wR3yfp2OSW45l+e3YC/1TorwjETRj2AgximwJbtkFjdo9 0wKvT14XD3Olmd+tL9MpFOLxgBgP5Q== =XrJg -----END PGP SIGNATURE----- --Sig_/Pr=9fcFrD43j/RAAXwnkS8h--