Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp14860pxb; Wed, 4 Nov 2020 13:05:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVV1yFLECKtzL0KbCXRZZMIFRAikzAdTZ24fvyBnSyBtsSgJqxaKdlGx3lCkiGtvA399Qi X-Received: by 2002:a05:6402:22c6:: with SMTP id dm6mr7996506edb.139.1604523932209; Wed, 04 Nov 2020 13:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604523932; cv=none; d=google.com; s=arc-20160816; b=F93/nxKD7Wt7zTKfedJuT5Xp7qXBg+iQZyCOqH2rmyqaorfMRy9Fm0EqI8/3CyBEPU wz4njidps2Ur7aeIG/Qv+TqHzOJeqn+u5IPxy92ywWsYz5Zkp6Z3Cedo5/YizYb6Mvv5 gyANU9j0PtSXU7DDuWJ9J5744IIFompSKo/pNadtVf1aI/1Of3C9gtrU1LslBqkVmiCi wWeW50d5H7SLSEcqDOfKcYoDQUgLZsuzhMWq3WnpfW87H61BOD2BWgkaQRbOb+yVqhaE Iqdu8XGjO9iejZvUAAj055gWrUpvT9h7x52bFyNvGb4ou0mvhmHRyXZmncgYT0l/ndkg O1qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CZCTrrJFxyZ8/PLPm4eaZ9VGQQc9UELFVeSk2ZHbeGU=; b=zM9Io7neTy1yTIuW8DBTr8lApINFtyq3Z+KXOW0SXOJgGAs6gxWEV0vo+x8QAvxhkf /C/rlXBg/YjsrhZPtzimSMfOleM45a+nXsz2zz9SFjAc1qWl8lgmlKGTon8vsKDZo9tI QWfkYo5F4UiFjvth57d3KVXMOpsvdxZCqeOq7t9H421LIMZF+bKqQqJ9iliLg+hOMJWO i/kfHKqg3BnobpvjCXeTbCTweHu5kYvZCxTDmGMkyvEY9rRtHdEuw24d9yWbBUfSK5k4 aaTXEk2Fpv8IxMOEuWDa3p9H2MWZy19GjW0UkYUDVKI0tc09umH8fzfo6KmPlI9aAOvE 9aSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zmfGPfjJ; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si2224932edf.136.2020.11.04.13.04.50; Wed, 04 Nov 2020 13:05:32 -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=@kernel.org header.s=default header.b=zmfGPfjJ; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732051AbgKDUdv (ORCPT + 99 others); Wed, 4 Nov 2020 15:33:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:55980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732027AbgKDUdu (ORCPT ); Wed, 4 Nov 2020 15:33:50 -0500 Received: from kernel.org (83-245-197-237.elisa-laajakaista.fi [83.245.197.237]) (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 DAF77221E2; Wed, 4 Nov 2020 20:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604522029; bh=eqryOwvWfKvR3/KbsIRgMeNj6AdkLgoFQKRZP0OIy74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zmfGPfjJV/mSi+//pJ1ML1C9xWr/RpmyKnCLbcuDp8IaVorPKhzS+n5yDmu7QkzLE lclUfwisl0ZPw4O3MyuRVCodfO2RCLohUd7x0M3fKtaKWWt4dHR7CcKvnv8io4XKSU KuLxhunZxx4bxZ0kpYfZFuz+sMmP+hCveDCMH1l0= Date: Wed, 4 Nov 2020 22:33:39 +0200 From: Jarkko Sakkinen To: Nick Desaulniers Cc: Andrew Morton , stable@vger.kernel.org, Chen Yu , 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 Subject: Re: [PATCH] compiler-clang: remove version check for BPF Tracing Message-ID: <20201104203339.GA692084@kernel.org> References: <20201104191052.390657-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104191052.390657-1-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 11:10:51AM -0800, Nick Desaulniers wrote: > 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 > --- Thank you, resolved my issue. Acked-by: Jarkko Sakkinen Tested-by: Jarkko Sakkinen > 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 > > /Jarkko