Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp531036lql; Mon, 11 Mar 2024 09:34:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDDfR6yWOtx+iPrmZ7RZ829owAlS47gQTSMKY+pHAZFSlIlDHbQM4rDbmasvGmuAV9rwGwWW0wW8TJBrMVAab8Wc75kKj9V7N5Eqg0kg== X-Google-Smtp-Source: AGHT+IGK+YGIbcRGcmYYyeLblHVMNMBs+qW66Tce5zfJHPmN6P5vEdOiTktFWaXkYohf/7r1yH/I X-Received: by 2002:a05:6808:1703:b0:3c2:111d:1c77 with SMTP id bc3-20020a056808170300b003c2111d1c77mr9220160oib.14.1710174883558; Mon, 11 Mar 2024 09:34:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710174883; cv=pass; d=google.com; s=arc-20160816; b=0SVJ16JlrhTq/esQVk1xwEswlX4Esh/wFCu9/U0RoW/xq1WhjFM5TKJCvnIvym7JZL Zj8/GPIXYexuzi0eDN7+ejagzefh9WgxGysLHf4ZBIVzBkrAzLQH3F2RfQeDXoVXgvnx hG5AjqyfdvS4xY5KJ+xtsdQOvJKoayQXBBMTMk+VLQ7ae27EcnXbpBKKPwOwWgssKIXJ VprMjcU57erYwfxvV/5VY/Cv0E1rSUJGGO1vv5SVzqAly7SSxtSESjruoS9LZLm1i30h v2N20Qc7maM+EGZtbyi8TOWEDqT22DNS49cuoUi1wcZO1Sz0LizvTvl4OzRuvdZYos/g hpLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=OP54AL0u4mYUW4+G+q6PueY9xWzqtefUYinY3xRo9tA=; fh=KU1dHg9jg+qcG31BuVL9AtRqagGElNY7PCqao8ALPXg=; b=oB/+pMF9n0KBLsoY3qd51PTEy1fUcJjfN2oVn6ZGNE+XQVEN3GRMr2JpI6SyXWZ4rk MHrMNh3GifOFAohbPtHyZmLuXKWR/FzS1VAs/Bjb5UxHm6ZU7Kbw/+YayhngfLo9ank2 0QdhIn3iOd3LGhqCI3IW5G3/cjp8S5Nho2OS/GVn082F0MAe+DUcsHUYlTGhvM8ZWQ70 F8buk2LcoMe6j8cqY/0Xb3M/KcvKPiQGNpkAxzX1myy7NKM+ScE+PUk2z18lVAi7Ourn kiFGZA/xqHwPBe6YXOhwseZPEWlUb9P621n630BWvhz/qYUeGFGxCIBHSvAyx4NBWvFq qihw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-99248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e8-20020a05622a110800b0042e618bb20fsi5812267qty.566.2024.03.11.09.34.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:34:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-99248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 49FF31C21F0F for ; Mon, 11 Mar 2024 16:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A9C482DB; Mon, 11 Mar 2024 16:34:29 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5317F138E; Mon, 11 Mar 2024 16:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710174868; cv=none; b=I+3uuGsgLSOAOouTbufhyX+3njPNomwdBAO+bbZtlH3vtfxmIXDFLF6UlFQXdIi6H1T9XT9FPw4ebvV8xIywzRtEsrZ2FB6Tejr4iP7k/vn7F+gHYn6mUKb2DQVOHJZ2lMrZN//t4evkKn1d8u4eCt0oi1otJlwrXCNqeio0RQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710174868; c=relaxed/simple; bh=WixOqrZR+rJh/Fbz+wWrf8dVTfQslX0GeSZNmY4xbK4=; h=Message-ID:Date:MIME-Version:Subject:To:References:Cc:From: In-Reply-To:Content-Type; b=sgNdPA3bpwooKtZGLXUbTSNmXqj4NYWytNwjZUQIDTva+meTuCLnUzYVjFXodSXztS8aGozb4Svzws0v8wD6dL/4xi0A8goC6joZMPAl0oCS+EX+RbAjtZQ+SBGuR4Vd2G0MmRBSNWppn6rjs9aVJF+K2z5V6ENDfoIxYYUhL7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8A7831007; Mon, 11 Mar 2024 09:35:02 -0700 (PDT) Received: from [192.168.1.100] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1D3233F762; Mon, 11 Mar 2024 09:34:12 -0700 (PDT) Message-ID: <1ab20914-b6d2-fe39-7b14-c1ccebaa34f6@arm.com> Date: Mon, 11 Mar 2024 16:34:10 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v1 12/13] tools headers: Sync compiler.h headers Content-Language: en-US To: Ian Rogers References: <20240310020509.647319-1-irogers@google.com> <20240310020509.647319-13-irogers@google.com> Cc: Arnd Bergmann , Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Adrian Hunter , Paolo Bonzini , Shuah Khan , Kees Cook , "Gustavo A. R. Silva" , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andrew Morton , Liam Howlett , Miguel Ojeda , Will Deacon , Mark Brown , David Laight , "Michael S. Tsirkin" , Shunsuke Mie , Yafang Shao , Kui-Feng Lee , Nick Forrington , Leo Yan , German Gomez , Rob Herring , John Garry , Sean Christopherson , Anup Patel , Fuad Tabba , Andrew Jones , Chao Peng , Haibo Xu , Peter Xu , Vishal Annapurve , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-hardening@vger.kernel.org, llvm@lists.linux.dev From: James Clark In-Reply-To: <20240310020509.647319-13-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/03/2024 02:05, Ian Rogers wrote: > compiler.h - synced from include/linux/compiler.h, guards were > added to definitions to avoid redefinition of macros > in libc. ftrace, CONFIG_OBJTOOL and kentry logic was removed as > redundant. > Hi Ian, This commit breaks the Arm build (and cross compilation for Arm on x86): $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Something like this, but I won't paste the whole output because it's huge: tools/include/linux/ring_buffer.h: In function ‘ring_buffer_read_head’: tools/include/asm/../../arch/arm64/include/asm/barrier.h:72:35: error: ‘__u8_alias_t’ undeclared (first use in this function) 72 | : "=r" (*(__u8_alias_t *)__u.__c) \ | ^~~~~~~~~~~~ tools/include/linux/ring_buffer.h:59:16: note: in expansion of macro ‘smp_load_acquire’ 59 | return smp_load_acquire(&base->data_head); | ^~~~~~~~~~~~~~~~ Thanks James