From patchwork Sun Oct 10 00:25:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Monnet X-Patchwork-Id: 12548197 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 027C0C433EF for ; Sun, 10 Oct 2021 00:25:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D40CA60F6D for ; Sun, 10 Oct 2021 00:25:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbhJJA1b (ORCPT ); Sat, 9 Oct 2021 20:27:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbhJJA13 (ORCPT ); Sat, 9 Oct 2021 20:27:29 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1336AC061570 for ; Sat, 9 Oct 2021 17:25:32 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id v25so42252245wra.2 for ; Sat, 09 Oct 2021 17:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gaEBWnN7KGr2n63duW+rw+8/bgZ3SGchgUY0qU4URic=; b=7gbjH53shg/8N6ikpTkld4Z6I9g75HQ9RdvzsbwX8487yFnFosHpEe9O8ta8ROwcpp 8XPSypp2C6CDZ1QcqbP+4dQK/EitHU+6T0NDZdUtsfmLFKrtcFnVujq0VXk2MUPQMSL0 w1Nr6sPK6daA1Lg/2PZzVAIPD1e4p/Rv4THjGzBcen/wl3GsdF0G8FI1Fg5m1norHYWA AXc7Y8eb3C2qLiX9rIKgAJwUJ9n+LE5TjMSduFhYGHs/qOmxkIwADTUojfgkxRsauqap uKGZNbhzmqkeePhaoStnczNIaeRgQAVp3JFAK7VVmDBceTseUCOyDFzqCKFd5EnjbkGP cWQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gaEBWnN7KGr2n63duW+rw+8/bgZ3SGchgUY0qU4URic=; b=EIcdP/0EK8jqDmM5jTwcBClCNc47TGgILf3M/ZQbcl17nhXYjdek+1YbSF1IsBhhsG T0kF+UA/e8ROu2J+4g/GJaP8BvHgYD5226P0MUWpswXMq28QyxijzjTwcHj3Q26ZWhwr yAK5ybRVMKCn7Hwk+WpnRmY5Bw8uCYruW6pJ7EIS8GLtqk1hHlhUC0tKUrx8PHeqc2lR I3uTplF/rJvjK+faA4kYrgrN4kjWeO4htTvxf0U5YUrvkmnVQ+GB2H6OBYgO4sYLINwE 5wpQuLMvgZIm6rEMSYdBxqMcE+qvv181LBaasy36buwMUyh0fDJSbGQnHPcX7DRBH6gX +Gkg== X-Gm-Message-State: AOAM532jVOHCArhGEUo9SDmtqVPDpYFSmmlwDBsfEEItVmQ+uQ5rgH8M ryj/PJV3wnc3cKmCvdxHfErnEw== X-Google-Smtp-Source: ABdhPJx1+aBr+jCl6Rcyb63yaa7VV8hB0xUoDN1Elve6/WpNSXGszjkQQWYIyEjgcoe4mXGZuOtjKQ== X-Received: by 2002:a05:600c:1c93:: with SMTP id k19mr12397456wms.80.1633825530715; Sat, 09 Oct 2021 17:25:30 -0700 (PDT) Received: from localhost.localdomain ([149.86.86.59]) by smtp.gmail.com with ESMTPSA id q12sm6633707wmj.6.2021.10.09.17.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Oct 2021 17:25:30 -0700 (PDT) From: Quentin Monnet To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, Quentin Monnet Subject: [PATCH bpf-next] libbpf: Remove Makefile warnings on out-of-sync netlink.h/if_link.h Date: Sun, 10 Oct 2021 01:25:28 +0100 Message-Id: <20211010002528.9772-1-quentin@isovalent.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Although relying on some definitions from the netlink.h and if_link.h headers copied into tools/include/uapi/linux/, libbpf does not need those headers to stay entirely up-to-date with their original versions, and the warnings emitted by the Makefile when it detects a difference are usually just noise. Let's remove those warnings. Suggested-by: Andrii Nakryiko Signed-off-by: Quentin Monnet --- tools/lib/bpf/Makefile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 9c6804ca5b45..b393b5e82380 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -146,12 +146,6 @@ $(BPF_IN_SHARED): force $(BPF_GENERATED) @(test -f ../../include/uapi/linux/bpf_common.h -a -f ../../../include/uapi/linux/bpf_common.h && ( \ (diff -B ../../include/uapi/linux/bpf_common.h ../../../include/uapi/linux/bpf_common.h >/dev/null) || \ echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf_common.h' differs from latest version at 'include/uapi/linux/bpf_common.h'" >&2 )) || true - @(test -f ../../include/uapi/linux/netlink.h -a -f ../../../include/uapi/linux/netlink.h && ( \ - (diff -B ../../include/uapi/linux/netlink.h ../../../include/uapi/linux/netlink.h >/dev/null) || \ - echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/netlink.h' differs from latest version at 'include/uapi/linux/netlink.h'" >&2 )) || true - @(test -f ../../include/uapi/linux/if_link.h -a -f ../../../include/uapi/linux/if_link.h && ( \ - (diff -B ../../include/uapi/linux/if_link.h ../../../include/uapi/linux/if_link.h >/dev/null) || \ - echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h'" >&2 )) || true @(test -f ../../include/uapi/linux/if_xdp.h -a -f ../../../include/uapi/linux/if_xdp.h && ( \ (diff -B ../../include/uapi/linux/if_xdp.h ../../../include/uapi/linux/if_xdp.h >/dev/null) || \ echo "Warning: Kernel ABI header at 'tools/include/uapi/linux/if_xdp.h' differs from latest version at 'include/uapi/linux/if_xdp.h'" >&2 )) || true