Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2450474yba; Fri, 17 May 2019 17:53:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDOzmSgbz2N/4R2BEFPa00MDA2CXg1zKxTk2yT45ssT71udxb4HyuRAFUKDhxdvw2PpwqQ X-Received: by 2002:a63:7c54:: with SMTP id l20mr57174898pgn.167.1558140806371; Fri, 17 May 2019 17:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558140806; cv=none; d=google.com; s=arc-20160816; b=TT0jbDGuJ2oaetY4t87A9v4UDuULMLvNqvfO72+rBciHf1SD4EcL29c/j5xC354rpZ Q/OH6QUmbUMHLruPO93vjK+n5cSPeRIYD96TZKsEGvQCf5d9UnZlDsp6mWguuxNjOyRL j8tomwkM4l0h4RS2l640yVbvZD0n99kaZOX9EFjkMGAd6qtQPGAP1ibh8SU7wi7uvPqc lq0RiW+nvmW2zJUH+IxlnMZF7EFESZMDPYVmaiM9h8cjQTWp0yFmmYdWorLEE/dRLS4F WQSyGLQCNHXhgYD0suJvGYVoyoiCAZ74P8fO26a1zGv8cMEIQvssz6BIjr3xAg949Adb Vfhw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dVHOEkVV9mlfbXiBNiOTGc9iVLu9GHw8uX4Flvc6nzM=; b=oq3Bo9oUgPcgE/B2t7us9vQ6XBqs0CCEGCr3JhW0uu7/eR/hT9Nzrr81NaZgQhCXPy +jfCw+zxHl13qGoyMAVXN8opVazcumJ9/LYQo493bjXd1jECF6W4fFaeZik5yViMj335 LeKdOcq/+xM4q6V3O+oyjqGUOyMZ/8hDG/HTFjZS+lXryDj7iUKZSg4Zl5OgQKJVHoat cEaqEjOJApmETAixRcqDSIkGrhDxcgp6kJPJ1YShOb2QYSGJLOTGDbh4PWNOYeeizhi+ tQgkdkOP2FJtHWBe2GVrbdOT/OG5lqNb43/qeLneB4Rxm5lBJW8QhXHc0nSF/RiGI5to lqPg== 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 d21si8622679pgl.591.2019.05.17.17.53.11; Fri, 17 May 2019 17:53:26 -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 S1729195AbfERAq5 (ORCPT + 99 others); Fri, 17 May 2019 20:46:57 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51303 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfERAq4 (ORCPT ); Fri, 17 May 2019 20:46:56 -0400 Received: by mail-wm1-f68.google.com with SMTP id c77so6908130wmd.1 for ; Fri, 17 May 2019 17:46:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dVHOEkVV9mlfbXiBNiOTGc9iVLu9GHw8uX4Flvc6nzM=; b=LKlEixSAyElDInJLoMe3o1DgF5qdTGR4OlgrItWpu/qB/AW5hdoCwL2t74LuSWovwp yD04fEbbd/EkVhcDu9dMa+vQVrxuMCZJYnlOc+C5z0iveOcLKIWef5flYVA04JlqymLy 5o7TZ5fZRId2b7FpxIWjmkNY3irryD2Kd6biQqHbLb2vE73e/7oDMG5sG+jsj3eBN2er nKUcvqQlWlrojSPr9Add28osguEM43AYRO1WvZZdD8BsE7J1j+31qfyP17mbDy5bnMbR rKcje551qV0c/od8mV4GrqljaifJVkfPkFbF6HquUG0cxktnv60Dm2GYKGJu73OZAeil q6Jg== X-Gm-Message-State: APjAAAVO3z5uyhUw9R96eLjsLiRH5qneTstl1amp2Ik2MsF1LlTMKf/u x0ZjTXlXmkXMtnpC1so0XlkkDg== X-Received: by 2002:a1c:f606:: with SMTP id w6mr4206756wmc.130.1558140415076; Fri, 17 May 2019 17:46:55 -0700 (PDT) Received: from raver.teknoraver.net (net-47-53-225-211.cust.vodafonedsl.it. [47.53.225.211]) by smtp.gmail.com with ESMTPSA id b12sm12189924wmg.27.2019.05.17.17.46.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 May 2019 17:46:54 -0700 (PDT) From: Matteo Croce To: xdp-newbies@vger.kernel.org, bpf@vger.kernel.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann Subject: [PATCH 2/5] libbpf: add missing typedef Date: Sat, 18 May 2019 02:46:36 +0200 Message-Id: <20190518004639.20648-2-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190518004639.20648-1-mcroce@redhat.com> References: <20190518004639.20648-1-mcroce@redhat.com> MIME-Version: 1.0 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 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; + typedef struct { int counter; } atomic_t; -- 2.21.0