From patchwork Sun Nov 22 06:17:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 11923767 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 8DB39C56201 for ; Sun, 22 Nov 2020 06:17:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 13C46208B3 for ; Sun, 22 Nov 2020 06:17:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="Z5P+B2wx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13C46208B3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B22A16B0071; Sun, 22 Nov 2020 01:17:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AAD396B0072; Sun, 22 Nov 2020 01:17:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9760C6B0073; Sun, 22 Nov 2020 01:17:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id 6B1FA6B0071 for ; Sun, 22 Nov 2020 01:17:04 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 118EB8249980 for ; Sun, 22 Nov 2020 06:17:04 +0000 (UTC) X-FDA: 77511046368.06.road69_2c126912735a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin06.hostedemail.com (Postfix) with ESMTP id E3A001005850B for ; Sun, 22 Nov 2020 06:17:03 +0000 (UTC) X-HE-Tag: road69_2c126912735a X-Filterd-Recvd-Size: 2904 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Sun, 22 Nov 2020 06:17:03 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 565882078B; Sun, 22 Nov 2020 06:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1606025822; bh=DT/7cSkDhVoLo59pUa1i6kdTau1fJV22VRFvsyR2Jm0=; h=Date:From:To:Subject:In-Reply-To:From; b=Z5P+B2wxQzK1ga2jDVDcTeKZjfczhkg8fXs3ERPggTQwjTLD7QY7G3PyTqY2M6lAJ tKvxx9dDfqkAmSUGOiokuMn3lwJmpxhnJ3C51Sl5FFiEtyCdKfK/Cajy40q0mA3ocS dJrGYrazUEh0DZGwgKhrDlDgwSlp4dcgx/wLVwPM= Date: Sat, 21 Nov 2020 22:17:01 -0800 From: Andrew Morton To: akpm@linux-foundation.org, jarkko@kernel.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, natechancellor@gmail.com, ndesaulniers@google.com, ojeda@kernel.org, songliubraving@fb.com, torvalds@linux-foundation.org, yu.chen.surf@gmail.com Subject: [patch 2/8] compiler-clang: remove version check for BPF Tracing Message-ID: <20201122061701.Hak73b_uU%akpm@linux-foundation.org> In-Reply-To: <20201121221631.948ae4655e913a319d61700a@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Nick Desaulniers Subject: compiler-clang: remove version check for BPF Tracing 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. Link: https://lkml.kernel.org/r/20201104191052.390657-1-ndesaulniers@google.com Fixes: commit 1f7a44f63e6c ("compiler-clang: add build check for clang 10.0.1") Signed-off-by: Nick Desaulniers Reported-by: Chen Yu Reported-by: Jarkko Sakkinen Acked-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen Acked-by: Song Liu Acked-by: Nathan Chancellor Acked-by: Miguel Ojeda Signed-off-by: Andrew Morton --- include/linux/compiler-clang.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/linux/compiler-clang.h~compiler-clang-remove-version-check-for-bpf-tracing +++ a/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 */