Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1356591ybj; Thu, 7 May 2020 22:38:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJIxZINSYuC20tqYfo0rsutJ2A7vXChE3cCLv+1sT/fmfa5OmpEJNqKEGz1EwUA7mfynorl X-Received: by 2002:a17:906:74c:: with SMTP id z12mr465512ejb.87.1588916308450; Thu, 07 May 2020 22:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588916308; cv=none; d=google.com; s=arc-20160816; b=HiezoCywNQ+Dj3OzBEI0ExUE/v8KHpi1c3ZC+/x+73eYOVn1T8H947dmWUNcEzLNG0 d4zcsK0ln2461brbpejt/kIlIlEFtXgKnzHxfWaSjAu8lfD7+f7/dc1oklwpT1/k3/5a oI1UOWNQROe5XwOFmAKuoF7bFBohVYj04E6MD29TyIZrMAv4QxYivapXE6RkiJoqu3qv eTM2BoTxs6/ZVOsY3LGn7W6jAKHq29yErV57tTgLjWI3GWcbptcQWgR95GGd0FTfUT5Y coMZZFq/pw9QoZyENqncuYDv1jhyhN2mY3wa2NqnGPgwIx7lPomVxJKoqGAM2YAI8H7A mfhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=xEil2WDfEhybqR01BVqKRFgy+bYbolDc7L63+QdH+a4=; b=Bc64gWTDbdFrIQhundyTzEP3Fp4DUggnVB/1T5la96c9b92puIB3ZgFHCIp6Cov/a2 L3cKzJhqT69QDqhixTz8qe7xAGw6B1Caa4SfwIhMkF8kDSQ76hEWN4/lpcALWmY4IXWS Ez5hNR52Mf+t42lQm4yDGjGv4Tfn+JRLAJCAqtRsQ0eYg1XHn+XmMcTC1hHY+zYl1ZWW D10qtkLr5F1NGYiXmS1CdxMD+Kc41GkpQx28kx111YLMWtqKdI0DNWwNsuaxCzNBi3hT IWSV/AuRLhpPGw0IFDzMaFoCb7D/S9C3s/FNgiKN+p4JFeXgtFWM+/NVy0T7zXCJAtWf OAyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Z0ljUuBj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si366843edy.349.2020.05.07.22.38.06; Thu, 07 May 2020 22:38:28 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=Z0ljUuBj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbgEHFgm (ORCPT + 99 others); Fri, 8 May 2020 01:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726922AbgEHFgj (ORCPT ); Fri, 8 May 2020 01:36:39 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8E48C05BD0B for ; Thu, 7 May 2020 22:36:39 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id w9so665795qvs.22 for ; Thu, 07 May 2020 22:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=xEil2WDfEhybqR01BVqKRFgy+bYbolDc7L63+QdH+a4=; b=Z0ljUuBjZuel8FVMhdEIP6iuikaiOPXb5XJ5IyPczjvVE8tdgXDiKyuf1Q21ntROY5 S8NQAckAn1KF0xxF7+++QeZNQc5rZKdDDsKPqbvbBugZ2Njtk7rlMoCuqtRdSSo2JjY4 Y7+aZeVQKk/L/K4HgU3cUFXLa7AVK9V+hpqRUC+H0acPueVczP5OlwNVXSdhQGOxqIU4 mRhwy8ndzG13L0yYeEI6AWMgiYtIQnVi+VzENXsHEAOrWwBF+DC2XxO640aE9gP2Kgte drgbVCEOEHct5PpavYF0gG7IdYTYEBdDA9LLLfojSVl/JrwfPlrRg42hlWVPCd16o5Fm dD+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=xEil2WDfEhybqR01BVqKRFgy+bYbolDc7L63+QdH+a4=; b=kOkmX8Rnqtqjk+kfV7o6ws2MSPPkNA+Ss9BsG7ZAI+AVmpIH1vcQOpojz6Uo1ykTS6 cFVUi2PiiQbftfr57vdZ2Qe/XjNXrOO4Rm+LWNzYmfITvXQyQSgzFzS6XEEpFaxOSBgF JI3/qSZMILj10QUeUCVYQMin5PB+nHfAnGr7qWkCdp3uQ0GBSeBIuLprVESaqRpXYNT4 zV9rWcz3DGK6vEY39uHY3PI4VLXVqR8SiQWecU1s3a/N4Rh3UQ3gH+aOWCRzkdnp4bK+ jHOXAij7lYCX1XFdi+ERkNK+EDxKlYdiPO/wAmszZn1R6LX5LbJF1aI4TcJKptM7L21V dhzQ== X-Gm-Message-State: AGi0PuYUHuRjqMpCVYY0jinKUoR33EHEXRcxgRhhz2A8BpvVzu2CwvJr xOUFHkDYUomoRz4q5JSLYto+2i5L275s X-Received: by 2002:a05:6214:16c8:: with SMTP id d8mr1042832qvz.93.1588916198597; Thu, 07 May 2020 22:36:38 -0700 (PDT) Date: Thu, 7 May 2020 22:36:18 -0700 In-Reply-To: <20200508053629.210324-1-irogers@google.com> Message-Id: <20200508053629.210324-4-irogers@google.com> Mime-Version: 1.0 References: <20200508053629.210324-1-irogers@google.com> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog Subject: [RFC PATCH v3 03/14] lib/bpf hashmap: increase portability From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Kajol Jain , Andi Kleen , John Garry , Jin Yao , Kan Liang , Cong Wang , Kim Phillips , linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Vince Weaver , Stephane Eranian , Ian Rogers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't include libbpf_internal.h as it is unused and has conflicting definitions, for example, with tools/perf/util/debug.h. Fix a non-glibc include path. Signed-off-by: Ian Rogers --- tools/lib/bpf/hashmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/lib/bpf/hashmap.h b/tools/lib/bpf/hashmap.h index bae8879cdf58..d5ef212a55ba 100644 --- a/tools/lib/bpf/hashmap.h +++ b/tools/lib/bpf/hashmap.h @@ -13,9 +13,8 @@ #ifdef __GLIBC__ #include #else -#include +#include #endif -#include "libbpf_internal.h" static inline size_t hash_bits(size_t h, int bits) { -- 2.26.2.645.ge9eca65c58-goog