Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1172430lqo; Sat, 11 May 2024 10:19:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoO7ypAHsnLiODy+WVmY+xBsvowk6gXeblES2gjOgVQ9XBMk/g76KW3nZxGxnOHpYzFRb3psJliZVLVHWHaDWVwYXneua5w7ZXaSZI7g== X-Google-Smtp-Source: AGHT+IEvKFLPE+JMGcrlltEOjOdFcvdwm55tsyg9WmHEQNjzsNHUlGV9RHz3g/kEJ1Gy/uTEqRrC X-Received: by 2002:a2e:9d14:0:b0:2e1:a504:f9ec with SMTP id 38308e7fff4ca-2e51fe542bdmr47134331fa.23.1715447986608; Sat, 11 May 2024 10:19:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715447986; cv=pass; d=google.com; s=arc-20160816; b=e0b+ZT3oQhrskWtcUGCt56AdtSsgpgi+wariW+v/aKMYYxAN+Tch9W5dIe8VvCp8y8 vs6KbQfCDBdFwXrtfcCp/YH3usxgCmVxqSZGjXunOZ7AeyKghv5nl/p+/6CZx4cGgDKp 17pfk+jJndpEeLPlCbi3DfrtPencbymKIJDbx8CisHSZfZWoai+hztu7dcZFhO/CM2CW HZbBz35s8Sd6iOd8ut54HQvk2OPuYSy4RUSY6hSoqR7M6l+BHHaOymq/SHsxuReUiMCV qM7tc9TK9Mejr9hRwBpXADwcUg/H2b6fhQXOQvpr5POV0VkIAaCTdbn5lTqFuviJxsHg Ds+Q== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=ZqsZJG4AQ+EepiYbwQRE+WuUEkW8CV17rWvx7sUOoHY=; fh=4M73sSdhPJf/26hSDnpRBokq33I7RWZcosCaMteFitg=; b=qqhsMhxmABQE/TzJcigQuct9b7u3sah8WVkgHn+KSk4gYHN9jpxteveLwtbg6pNCPe ZG1iOXKMuGLsMwpaZxxbBuvq2SyiGvsc2y0JtmYAi11vSNKdx4Dlz3TQKGqW/kJm3aYt dqN4+Aa395dWvK8m9lmjNJoOJJz1YpmKvvV8LzCESrtLJi9rLM/xkbx0nKXNO6ibMTAU 5k/f5EmTeNmqbM7DuNNiO3fT1D7TLNBOS4MqhIegZX0mSlJbU69Ha5Usy1troGKZG5cs +dWx4n1+QOcUP1HJoDnON18O5KB7hRRJ3dBH++LYPNHLqkV/kRROERUs+PoY62rM3qaZ G3Ng==; 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-176665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176665-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be6645si313899766b.724.2024.05.11.10.19.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 10:19:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-176665-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176665-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 221C41F21E35 for ; Sat, 11 May 2024 17:19:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B4CA1CAA2; Sat, 11 May 2024 17:19:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 991741C69C; Sat, 11 May 2024 17:19:24 +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=1715447966; cv=none; b=C6SaR2QHt7lxJfuuacLs/d767FbR5DyFIJQfOO5/U9c9pEOcpR4RU1Dl23GW8iJWTaCCZLgkrHNj/N16SaQWdxhtx+7FAzBZtQ7h/jKfgxLTEeTyLDi636/n0KZJyv0dX+50SvzUMVOSTG+8o+pHfTc9NWfeH3mDYGmvRPGEoVQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715447966; c=relaxed/simple; bh=pgsGnygtsFDYBZVmkmNEae+IbcuJAAlPGbGMWWujjy8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BwPXAsS2gC3hYu4tvCXJFTVG5uh5EJlWSwqpUsq9SBMMMTElZjNkh5Dj1vhDTDVEtVADoAH6JDaXBnY7S4epLxNzjAREmySxPW3ku+CT4kHGoBgk0CaleQRz08j/YamLZkuhi5pYssuqxr07Gz2rLLj90eydAB3PF6HhQt1tbSI= 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 4A84D113E; Sat, 11 May 2024 10:19:44 -0700 (PDT) Received: from [10.57.65.1] (unknown [10.57.65.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9D0C53F641; Sat, 11 May 2024 10:19:16 -0700 (PDT) Message-ID: <3022c21b-a34d-4592-a0da-79e047372eef@arm.com> Date: Sat, 11 May 2024 18:19:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] selftests/openat2: fix clang build failures: -static-libasan, LOCAL_HDRS Content-Language: en-GB To: John Hubbard , Shuah Khan Cc: Andrew Morton , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Maciej Wieczor-Retman , Christian Brauner , Muhammad Usama Anjum , Alexey Gladkov , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev References: <20240504044336.14411-1-jhubbard@nvidia.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/05/2024 19:22, John Hubbard wrote: > On 5/10/24 10:56 AM, John Hubbard wrote: >> On 5/10/24 4:52 AM, Ryan Roberts wrote: >>> On 04/05/2024 05:43, John Hubbard wrote: >> ... >>> It just occured to me that the bug report I was fixing with my attempt was >>> invoking make like this (see [1]): >>> >>> # tools/testing/selftests/fchmodat2$ make CC=clang >>> # tools/testing/selftests/openat2$ make CC=clang >>> >>> So LLVM is not set in this case. Perhaps my approach [2] (suggested by Arnd) of >>> using cc-option is more robust? (cc-option is alredy used by other selftests). >>> >> >> Yes, I think that would better handle the two cases: setting LLVM, >> and/or setting CC (!). >> >> For that, some nits, but only worth fussing over if the patch hasn't >> gone in yet, or if you're changing it for some other reason: >> > > I just remembered it needs the LOCAL_HDRS approach as well. Did your > patch already go in? Should I fix up this one here to use cc-option, > or go with yours? Either way is fine with me. I don't think my patch has been taken into any branch - I didn't see a notification anyway. So it would be great if you are happy to take ownership of it? - I'm on Paternity leave for the next 3 weeks so wouldn't get it done until I get back. > > thanks,