Received: by 2002:a17:90a:2044:0:0:0:0 with SMTP id n62csp532395pjc; Mon, 20 May 2019 11:21:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+SDkPnLZZLZe00NEjGvKWclMMrcAkkc6aT0MM6HGOfv9Ntj9aN4kSmZ2jRrUJNtZbTntM X-Received: by 2002:a63:7d18:: with SMTP id y24mr63229286pgc.101.1558376513313; Mon, 20 May 2019 11:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558376513; cv=none; d=google.com; s=arc-20160816; b=ErHeYAXOnak2a8yIqcBdPwEQmWeGlUU9TXeyE01laNeqkpYWwS3S/1ZyyruaE3k4MJ fGhcqC+2FuosSp8xU3J8OX1ZZ4Q4hhN2N1fXkqKvQrBro91cunhYYHBCKQWWaF3Th4iU NTZx9ipI60YtanhNWu2q4av9cd7sUeeRPZKxqTZQ2wckHY3QpBi4tGSVpwq898idUjAD Hp+A0GMIVsnU8t8UKoDkyPO+ncJm/0haxL7dS0kW+kNQbfrZQzZkT0J1ODXI7I8wuGZf sntTGQJk0IMwTGJBsTcNwDJkPIs641Cs/FhBJyGeTSzSHlhQ09PsPfnvigiL+JDzjCoz Ej2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=2kzkTOMhP+LpP9R1xyw4h+WIpdeFuCrOVcTn7Ekwl/I=; b=tNv50U/VT9RBrTvdsUsQb7Vz8wtWM1qGX0xBo0G6VqrgAnEzS7cIfKUzaOEoCCU4X2 i39cmbvE0zbMjQXxZUEoAJ5yMEwf6SV2V5Z1LbGWmhcyRtUQtrlCIjkMpWoeT8qwUKQ+ og+QzUfsRYV7qOIdYM3upVcMUoyZ6FqlsM2WcPgRgOyx97c/VPgZbe1bakmwfCQ85ZQh 0dAVPj0DFByQxkG8e8aQYe5vZh0GotP2oS1QsUM8J20aN1cLBNeSSpY2zBs6j40HKzq0 /Gelk4VzzPCy8DtIV+2A23QdjvZpJxXq+aVXGF6cqce8FTvRkgAX1SfaTtJeYI8Vo8q+ axcA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16si18316979plr.238.2019.05.20.11.21.38; Mon, 20 May 2019 11:21:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393039AbfETRoU convert rfc822-to-8bit (ORCPT + 99 others); Mon, 20 May 2019 13:44:20 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35519 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393012AbfETRoP (ORCPT ); Mon, 20 May 2019 13:44:15 -0400 Received: by mail-lf1-f66.google.com with SMTP id c17so11007859lfi.2 for ; Mon, 20 May 2019 10:44:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=YCwqCrxUh2bH8XiEOdKZb9nS1aVmthT0KjuGZ5SGeWg=; b=WlowGKWVtKwKQESD/83zh+6T6MdhTjpdH19GJ33wSwkob4AjGk4zwdOomKMNlPpdtA acRxDB+x5P/SAodNTroXIOmbP0RqXbz2EydLGOTmfBCjvG8fUBfp+X2X5PazULy0raqI /3hyOJV1FLz+iMnCY1OMh+qFzA9duJxOZK091RXhLi3HWXOJdDNez5AzovxYeSBIvUgo MEi7V4r5xGGUfgN/4+q6PXBTDB7+/V+elLEXBSX3yOL+BilTY+XbC0n30U3udFu7njdG tNhq+3YrViULzihmEXXJWAHXesAMEyqJcLBEgxnOmU9dt+B1TAyaFQMAE523kRi0bLKE BIDw== X-Gm-Message-State: APjAAAWRXFqHF47PYWyS9r0h1FOY8eXuyiQEOOSW6I+OrafVq5Kzxw41 c22ZLFD/mtv22zd8D7HhUSjuZgK0IHiAe366m20Nag== X-Received: by 2002:a19:d612:: with SMTP id n18mr24957983lfg.162.1558374253977; Mon, 20 May 2019 10:44:13 -0700 (PDT) MIME-Version: 1.0 References: <20190518004639.20648-1-mcroce@redhat.com> <20190518004639.20648-2-mcroce@redhat.com> <20190520165322.GH10244@mini-arch> In-Reply-To: <20190520165322.GH10244@mini-arch> From: Matteo Croce Date: Mon, 20 May 2019 19:43:37 +0200 Message-ID: Subject: Re: [PATCH 2/5] libbpf: add missing typedef To: Stanislav Fomichev Cc: xdp-newbies@vger.kernel.org, bpf@vger.kernel.org, LKML , netdev , Alexei Starovoitov , Daniel Borkmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 20, 2019 at 6:53 PM Stanislav Fomichev wrote: > > On 05/18, Matteo Croce wrote: > > Sync tools/include/linux/types.h with the UAPI one to fix this build error: > > > > make -C samples/bpf/../../tools/lib/bpf/ RM='rm -rf' LDFLAGS= srctree=samples/bpf/../../ O= > > HOSTCC samples/bpf/sock_example > > In file included from samples/bpf/sock_example.c:27: > > /usr/include/linux/ip.h:102:2: error: unknown type name ‘__sum16’ > > 102 | __sum16 check; > > | ^~~~~~~ > > make[2]: *** [scripts/Makefile.host:92: samples/bpf/sock_example] Error 1 > > make[1]: *** [Makefile:1763: samples/bpf/] Error 2 > > > > Signed-off-by: Matteo Croce > > --- > > tools/include/linux/types.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h > > index 154eb4e3ca7c..5266dbfee945 100644 > > --- a/tools/include/linux/types.h > > +++ b/tools/include/linux/types.h > > @@ -58,6 +58,9 @@ typedef __u32 __bitwise __be32; > > typedef __u64 __bitwise __le64; > > typedef __u64 __bitwise __be64; > > > > +typedef __u16 __bitwise __sum16; > > +typedef __u32 __bitwise __wsum; > If you do that, you should probably remove 'typedef __u16 __sum16;' > from test_progs.h: > > https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/tree/tools/testing/selftests/bpf/test_progs.h#n13 > > > + > > typedef struct { > > int counter; > > } atomic_t; > > -- > > 2.21.0 > > Hi, I see test_progs.h only included in tools/testing/selftests/bpf/prog_tests/*, so maybe it's unreladed to my change in samples/bpf/. Maybe in a different patchset. Bye, -- Matteo Croce per aspera ad upstream