Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1534926pxb; Wed, 4 Nov 2020 11:32:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU35Y3U+N5SPF9lAyrWCcJ+xz0qxKw79dN6flfp8Q/syuFBOx8i5Y02NxBfuBhVfAiT4q/ X-Received: by 2002:a50:d78f:: with SMTP id w15mr22328628edi.227.1604518351273; Wed, 04 Nov 2020 11:32:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518351; cv=none; d=google.com; s=arc-20160816; b=kEJsex0WEV369YfH6LocBv4RNCPqjcIy6WJ+0PudB/n3X9a67HrH5L1FRqjVjqGit6 taYaFEqAlzrNRCvEt8LaKbJmMJPey5Qe051cNraM/YfEMJFg7jjBQf2ASBY/VSsSbF0J qOdb6Qgii9pAGzcWYuDjwVsILoCjwY+79ni6i4pBX5y8jn9XKcnh7Htg/TZ7Uv9O4fvG 2cTY7qiOzW/DFL1r0s8t8FJm3oJl+wNWA7G7GGiVE3nznIgL+5lVLa0lw2Z9NR7LH+Et pmaBQ4td4wk23dy0xxvpf14gDE6o6pzNxXoBYmG7DfKUsKDivED+ShuSo4vOkjQUmzaV 7rxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=gz5WtjKs0m8q7p+Y5q8+JmbEub8VEm+/kecg2iLZjKw=; b=nMV2A71lAunuF8wrDtZpmGJ+PoBta+PMsbUCNl9aVrsZ+n2DFWzWOybD53slSjjth4 Fu7TSMzF245zdkHRgQI/k1Zxw/0l0H2IkpDoqj/mgSyWgoYKFC8eXu7LRveM9bqN4dKb +9TufjUKAkhaJz7lFghgR8QVtpk2o+KIWRadR1aOqQR0gbISp1QqvH9ouaPDaAih/Fy5 wA9xdFnIToN9H6+O3fnWVeecgA16BiNmJDbN+jAn2Pb/deNGjtOr5nORyzzOFnyvVdYi VYXJIZnRboq8IB8SiDdQ/eK3fVl8U2gNqplQWN5BAW9jYI5cJd3VODrLr2LVLpokGMwX nuQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EsW35Zmv; 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 jr1si2172938ejb.164.2020.11.04.11.32.09; Wed, 04 Nov 2020 11:32:31 -0800 (PST) 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=EsW35Zmv; 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 S1730407AbgKDTLJ (ORCPT + 99 others); Wed, 4 Nov 2020 14:11:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730262AbgKDTLH (ORCPT ); Wed, 4 Nov 2020 14:11:07 -0500 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1960EC061A4C for ; Wed, 4 Nov 2020 11:11:06 -0800 (PST) Received: by mail-qv1-xf4a.google.com with SMTP id t13so13461846qvm.14 for ; Wed, 04 Nov 2020 11:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=gz5WtjKs0m8q7p+Y5q8+JmbEub8VEm+/kecg2iLZjKw=; b=EsW35ZmvLxRuca8q/4WsVMEXKOOcWAI+IZtfjnfqqDE4U4MLjllfGtcsMOf4vN1Z8F sCDuQYQEGKAAeuniI68VVBPH4nGP99IJnTLhSX8rCzF1/vTz5aFgVXtY/OTaKF9CaZZK Djz3ylgLOzL+Te9i20ZCxN0a096laVkVdb9RlfnsMFhgABTgsPy5ACgXS8UnDCk+B1Fh /tfTApWfYkT48/bsDcNN3nWUHgRPr209KCLuurjnhcWL82jbdStOWkq85NMu5BUK3kLB /egvdyqSkn/Q2MdaOelejjP9c+CBEPCgZTz1nL8WqgWfafgybvvUR49Cu/qeaCAsnLB+ lTCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=gz5WtjKs0m8q7p+Y5q8+JmbEub8VEm+/kecg2iLZjKw=; b=oXbh9kbD2LUwtTHSUUhUZoVBc3mC8RVnKMqrNvOQXSMPBuWiTo85E1gBX0KBsLVfwy eRN4J3EX1WHmtfM2ZrsBYYH1qI1xU31uvKtfjB7qzFrza+RLg07jqM8Ty0ROuvpHQsio YWn2pOW3x4rQKr2h0ZRl5oiO+47agKocVMaTUqNUsWEQlioBttd1NeYBEPHb9gZEnZ4h LAvIaqR/OAVFY3Lejlh44o50R5NwpssF08GYPD7/94u2P8vFbjnG697XyU8asSq/QABZ iFJgjbnD3uOU1VKKlEzxTDSKQTMHCKE5rRCNAwGNTC49LJS/9cuu69kRQft2NWdC/eKM VnFQ== X-Gm-Message-State: AOAM533zgVGrf+z+2uvuUeo3XQtJeqTBVrzKVi0nqgF7aVkci4WvX0fy TLdiUCCMEb3dYnh3RKJhU4kWy8koXEwoNXjMf6U= Sender: "ndesaulniers via sendgmr" X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:f693:9fff:fef4:4d25]) (user=ndesaulniers job=sendgmr) by 2002:a05:6214:186b:: with SMTP id eh11mr33319123qvb.49.1604517064979; Wed, 04 Nov 2020 11:11:04 -0800 (PST) Date: Wed, 4 Nov 2020 11:10:51 -0800 Message-Id: <20201104191052.390657-1-ndesaulniers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH] compiler-clang: remove version check for BPF Tracing From: Nick Desaulniers To: Andrew Morton Cc: Nick Desaulniers , stable@vger.kernel.org, Chen Yu , Jarkko Sakkinen , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Nathan Chancellor , Miguel Ojeda , Kees Cook , Marco Elver , Arvind Sankar , Randy Dunlap , Sami Tolvanen , Ingo Molnar , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bpftrace parses the kernel headers and uses Clang under the hood. Remove the version check when __BPF_TRACING__ is defined (as bpftrace does) so that this tool can continue to parse kernel headers, even with older clang sources. Cc: Fixes: commit 1f7a44f63e6c ("compiler-clang: add build check for clang 10.0.1") Reported-by: Chen Yu Reported-by: Jarkko Sakkinen Signed-off-by: Nick Desaulniers --- include/linux/compiler-clang.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index dd7233c48bf3..98cff1b4b088 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -8,8 +8,10 @@ + __clang_patchlevel__) #if CLANG_VERSION < 100001 +#ifndef __BPF_TRACING__ # error Sorry, your version of Clang is too old - please use 10.0.1 or newer. #endif +#endif /* Compiler specific definitions for Clang compiler */ -- 2.29.1.341.ge80a0c044ae-goog