From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2947C04E87 for ; Sat, 18 May 2019 00:47:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A763121883 for ; Sat, 18 May 2019 00:47:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729256AbfERArB (ORCPT ); Fri, 17 May 2019 20:47:01 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34137 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728099AbfERAq5 (ORCPT ); Fri, 17 May 2019 20:46:57 -0400 Received: by mail-wm1-f65.google.com with SMTP id j187so10333076wma.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=KS7ZgWdpJ+oIl+8nPWc3qZAn1BOWoWhulMClJICjP6Pr+XUEqYPGuGpP2+y/fY3VMT LjEE+3VULriyVs1i8iIH8E7JA5qD59PseoLRSimRmtoAkD1UEZ3Pz05HNoqQO2rh162+ rjMiIFWiDYDM56wOiNnDwcwCYpl0XKAKHDiOJAezb6qn8/Q/nEtrAeK6CvtzKGmp2NJF uj3WEcvrLK96K2NHuEh5i9Ik5yxUVwVKiozdusLJJnVsTeHrwbs3mJbi5khmOHrZySF4 SUMBvNo43sBJRJf5PodTEzNnnTrZmpAz6+aP7Ud2524Fdre/ys1wvitj7BLoXQ94r2zT SlDA== X-Gm-Message-State: APjAAAUmtvTb39u7oUBpPHObFa2+iRDfUYR1QofI+y3n58yVEBQQyIKO w4wseDke12kH3SYEPeKpMFhX0Q== X-Google-Smtp-Source: APXvYqz9dVgMCVBct1AsG2RXTM2TI8XXuNWqSFcJ7VB0m1uiNeGfnNjK+La84/2whwbjh7SsBSR/0Q== 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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