Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp153011ybj; Wed, 6 May 2020 13:55:01 -0700 (PDT) X-Google-Smtp-Source: APiQypI0oN7iSRbIeoaFGM6EK/n8kEk+RfbldOuxLxVWcAIsQPb7AQ4tX/r8aw9haZnIHh4ET1k1 X-Received: by 2002:a50:ec95:: with SMTP id e21mr8892230edr.253.1588798500940; Wed, 06 May 2020 13:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588798500; cv=none; d=google.com; s=arc-20160816; b=Y360g9oz8gHTYzmkU156Hh+Xli9M4ye0yeoOmZotG+yfl6XfiduhuEfEsE5ORJdKmE KV2x57Cg9vWtGBa04VmjPmB3+hB2oXqkKDCq0BjIHopSzn5DABzras10xd53wTpLpDO8 7E9yC5GNHgUi2aQGGe9g/TfFp9j+TQ3ahnJXMe0u6shUGPcuoxNA0/BlC+Z2gvUtrHoS dJAJA4Ol1B98B8Egm7U4GilewlvKii7LLKi1qbIh/sEPaMpcJezTAz9d9i6pmI10i1NA Vh/ypWDRCSPY3dZIvbLt8oxR9pEzGbCqdUJ9aFpp+H53aVu0a0/MhlBAdfBCBmBuA7pO ImRA== 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=dJgmTX+e/XhBfHBE3JA0uHT0QwjnDN/7PIiY44zE/Pk=; b=RaeweURHG9kW4OcIOT6LL65y5nWnxQqq48vJtQgKvLjY3GUDGTLsOAdMRzzHNvrQXO eov7iyYJjECSEmiT/x0S2iPGxFVNkGXsDHNTrJw+K0XHaCwJgzmNLIv00Y0cA7J0jwb4 XepI8q/OlWo4/zVDuvqq3QNNM9Dsy3pgo28ZnKdzBIyxxJET+jTOO/4ggah9uBtYj2f7 7vP1IxDolEyDNeTi83hWnNogPrXOIo/u+m/jwGZaWJoap/WWBM060DELLHEK2Q+Ozqom bbeMgAuX8+CgvfejSawxd6VHAmq3KySGjbQe4EARi3kvw5IKtmj85bSnM2SaPGrK5Rmn VkjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=gGVy3gtn; 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 p15si1790922edy.132.2020.05.06.13.54.36; Wed, 06 May 2020 13:55:00 -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=gGVy3gtn; 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 S1729353AbgEFUxI (ORCPT + 99 others); Wed, 6 May 2020 16:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729165AbgEFUxE (ORCPT ); Wed, 6 May 2020 16:53:04 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E97AC061A0F for ; Wed, 6 May 2020 13:53:03 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id o196so1078271ybg.8 for ; Wed, 06 May 2020 13:53:03 -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=dJgmTX+e/XhBfHBE3JA0uHT0QwjnDN/7PIiY44zE/Pk=; b=gGVy3gtntk0Uc7UCwP+FmllS0TJ0vTX+9b59y1mwtzGaZ5J6BH4aFo62Nffy6GZiem kHmIq/nTHs7zbLxFgy9Vx+DJMIYoErhptmmadYveT83LL5Lf/A/2Awy/UjMTMM7sQZ/1 M/35LWinZoz7iI8wHnRADpxYlDoCVRXD5FXpOjF5isTLqy/XmLhv/EUAhLve+SD7G4M+ 4dhykzxKlX4xmMGMj2lWZ/Rh08rY4eAfsd31rbAwWcx3xRIj4D+hVSGUh0TuYC4Q4Qli nZgdeAn8IcaMkrb0SMirMY/RnxpE2y45cDdNEbXGiwEPh0GCotYQAfeaYQzvbJFVPI2q htcQ== 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=dJgmTX+e/XhBfHBE3JA0uHT0QwjnDN/7PIiY44zE/Pk=; b=Mqpkk6GfMqQeGQ8boqM4roeBjUxyeDMkIfXQOFwC0ykO6XFAO7kBf0aSu4KExabzdy qGMeG3IbqrLJC36lTAKf4qyITAHd1LgwY3skk7+DR9EJd5XP3x52tiNec9A5DqjFGD2/ 2Tm4f1Myd3hW+hi4L/dzx27RHohgjfCh+KA+1BWLClGqNgzbewzKEFzJoAZ1XJ2ee2RA YZXYmQDxi/tkUcjekqgZaVUOavwL90wSLAFP5z7hpRzzmHZ+P0TADyeqqI+XoyLtJI67 /LW/Fywa3DswaLDLKZdhoMVcRezJ5vePrLmgv0P6vYpZ7D+qZ6Q+zPsrPOT97pC2JGpZ 7eAg== X-Gm-Message-State: AGi0PuYieUOTIWGtsvcumpHgi8UZBevyzsmLFYxtdP8bDlK0XKgGALsq q4e06HcVAJCcAsDJV/PwL9b89T0Euuze X-Received: by 2002:a25:60d6:: with SMTP id u205mr17106071ybb.440.1588798382336; Wed, 06 May 2020 13:53:02 -0700 (PDT) Date: Wed, 6 May 2020 13:52:56 -0700 In-Reply-To: <20200506205257.8964-1-irogers@google.com> Message-Id: <20200506205257.8964-2-irogers@google.com> Mime-Version: 1.0 References: <20200506205257.8964-1-irogers@google.com> X-Mailer: git-send-email 2.26.2.526.g744177e7f7-goog Subject: [PATCH 1/2] lib/bpf hashmap: increase portability From: Ian Rogers To: Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Cc: 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.526.g744177e7f7-goog