Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp34242lqh; Fri, 3 May 2024 12:27:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0isNxtEcNEZdh7829HGHVzcF5gqlhd0XH+Qe5i8lFU4DBgi/U3O4V4AiLFWo0wYiQiv1d414KdkbGxKMfbIzbnpX9uUCtcgSDzmu0Mw== X-Google-Smtp-Source: AGHT+IFqnElG31RBt2XP+RpgWJHr4fasE+iXIdYdRvlo/QpJSfe4li/I/u/WInrWjOEYIfo71yN5 X-Received: by 2002:a05:6870:f688:b0:22e:98df:9a2 with SMTP id el8-20020a056870f68800b0022e98df09a2mr4074150oab.8.1714764443483; Fri, 03 May 2024 12:27:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714764443; cv=pass; d=google.com; s=arc-20160816; b=MrvP6v+2f7QZOMEXLGg3RmUu16/hIYeKHIjZNVBlWu/hgmbhE0Hns1vflUHqBXoVCz 4q8cWwIybYd9tV517ghfMD0I2lL0iA9QTwXuTrZW8TYzQEaL83E6tIxhoLFMosFqMQQ8 pcEzhfaClCOJNtS1ERfwYUHRTx8dVWLHZ9Z/bCOzE+O6LUX7muy9+gQgeSexXdmY9DVx xO4RPw1ic4TwhDHKoOE9i73cdNfyGu3c+gF+6M2vINp1s7UebD/w+qy0QlApgOmtvmFA lI4U3m7haiG5Yt3VQ8g4zTIYxDB3dsWcyJuqfyG8ExCGURe9FYJ3SGUsk8Br+XsoDMvH +o7w== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2KX9yLukoPi6iAtAAYiont6LefTtRljJSxxqAFKOfPw=; fh=t+yOLV/IZkOpWMACxSkqnUkCUkIjbrOOI59u3Wl0It4=; b=E32THgCtUs+vvQLxx166SbCaegq3pNrC5Pi3R6u2HEh+AsZU+tU/T4vPUbd8R7e9Ld EefjPElOKDzVmGRAEpjIxghJMpI8Q8+LimZ26xEl6EZOKnDfguXlx3uvx2SJs755Vg/I Sp+ZyeIqIp/F9QZLq64VbHcQBu+NiYdxgxz0/IU8+TK6BxI88D55VNYKuYuXkijNdm8k y9KaT+0SuprPdausNbCKfchqXaHv+oZIy+4qSACoW1EI5MDuuEI5cA+kUYGuWbHK487/ is8+j/s3ib9iv+75FkiZ3/818YcyhSqEwxt09XS5Ul2HdTfLj+q7GUql8Y1nW164i6vk xc7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=UK9hUteV; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c26-20020ae9e21a000000b0078e487d0a25si1186072qkc.208.2024.05.03.12.27.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 12:27:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=UK9hUteV; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168119-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 651371C23A3D for ; Fri, 3 May 2024 19:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70305158873; Fri, 3 May 2024 19:27:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UK9hUteV" Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F0911586C2 for ; Fri, 3 May 2024 19:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764421; cv=none; b=lhGq4jISHiGMtJyDruISPX8l83gmE1/k6kAR/eLd0U2IsILrVLKkmN65nBBLaybvVbFgXYwgjqKTg6Yim3YystTo6ZnQdH/fTSwdthymlc/AWKJFoDLLUgz2sblNaiJ2sgUTQyHHpPQaV7keGx+ZhSD/KnkQHyWOdzXqhKQYfGE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764421; c=relaxed/simple; bh=WvNlFxi7iBYAtjMjEa//mHPsqvxt5LdVHnEKn83dCEQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QnR/x8UFPlDkDaSbbocJfRy1Vwg57RgpHmw4ij6nKL1z1P2/GIgHp+WFnqqY8SDgQO9OoXhSrnQKhqd0I2Fn8MJJ79hhCDW0QHHsOyVo4Q4dNogp5n3eTjxzIssqPrNOxaiPGKD04eOS6f0jOG7V+ciaQp7q243NQCS2Ydq9Zhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UK9hUteV; arc=none smtp.client-ip=209.85.166.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-io1-f49.google.com with SMTP id ca18e2360f4ac-7d9c78d7f97so41839f.3 for ; Fri, 03 May 2024 12:26:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1714764419; x=1715369219; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2KX9yLukoPi6iAtAAYiont6LefTtRljJSxxqAFKOfPw=; b=UK9hUteVzUapAXjPw5PdHDU3VXwiskHRGQlEVGkPiMoJCAIFuZr1Ikw5XTJy17HIeN TSQXYDq1g3mxkVys1wx4l+ISIqbvYTJI0DgcmAiuLB697W20k2gKO+zg4LtbD4BJSJto 4Yn1a5YK/vMotMYocaNwf2huDgzDcI4pcqaew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714764419; x=1715369219; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2KX9yLukoPi6iAtAAYiont6LefTtRljJSxxqAFKOfPw=; b=tRX2BxMPSqzgIjSxiu80Cpzt+d4Eucvo13g/yblbiOsBR3Tn5mypOEIwQD2GuSEwuU JG757efoLWzZBTL7A3LZyT+ypu1D0TKxeah2Q30QYSJFsdokK7BbUAXK+Xm/PvASeK9B tBuS9wYkkTOQ35extIC/IZ8WCA1sJXXsHhY17DPTkzCippHNydQTvf38O6rb0ubtUTNU UtAZHq7KnYCLhhUa8WzWK5I17xw+14hjkgvwhcdQCnO6F1bEk4qa0htmr0pq2I5qKKuM sucWKWLbv8goa0zwzcFJfNYxqrikgMHzuXsow5iUbidkJ0CJEZhVh+4nBuOKle+HdUTe B1qw== X-Forwarded-Encrypted: i=1; AJvYcCVFvclpnFzJInsj+I1P+UxNtRmRKz6whtQba5AfIJXnpiWyYIS5gQiMoDadLxXUPCwd5teliOHfN1xLlI2KumtGPXXfXjKmnByUJezP X-Gm-Message-State: AOJu0Yx4z0pZna0BEtK9YvlrKAjhQVyHGlcmN2GXBumszBbIS0CeSEsZ /EsCnpsomUrv7cu65c7JdNd9Tufh7ufodLWs7c+ErIMs7V5VB/ByHFuPkSUayI0= X-Received: by 2002:a5d:8454:0:b0:7de:e04b:42c3 with SMTP id w20-20020a5d8454000000b007dee04b42c3mr3590661ior.0.1714764419230; Fri, 03 May 2024 12:26:59 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id g6-20020a056602150600b007deeb2d7c4csm790790iow.12.2024.05.03.12.26.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 May 2024 12:26:58 -0700 (PDT) Message-ID: <66bc5c54-d785-41c9-b0cf-3e6efe78d723@linuxfoundation.org> Date: Fri, 3 May 2024 13:26:57 -0600 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] selftests/resctrl: fix clang build failure: use LOCAL_HDRS To: Reinette Chatre , John Hubbard , Shuah Khan Cc: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Fenghua Yu , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Shuah Khan References: <20240503021712.78601-1-jhubbard@nvidia.com> <977ebfe0-4c12-4631-8309-a10d92e33fbd@intel.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <977ebfe0-4c12-4631-8309-a10d92e33fbd@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/3/24 12:39, Reinette Chatre wrote: > > > On 5/2/2024 7:17 PM, John Hubbard wrote: >> First of all, in order to build with clang at all, one must first apply >> Valentin Obst's build fix for LLVM [1]. Once that is done, then when >> building with clang, via: >> >> make LLVM=1 -C tools/testing/selftests >> >> ...the following error occurs: >> >> clang: error: cannot specify -o when generating multiple output files >> >> This is because clang, unlike gcc, won't accept invocations of this >> form: >> >> clang file1.c header2.h >> >> Fix this by using selftests/lib.mk facilities for tracking local header >> file dependencies: add them to LOCAL_HDRS, leaving only the .c files to >> be passed to the compiler. >> >> [1] https://lore.kernel.org/all/20240329-selftests-libmk-llvm-rfc-v1-1-2f9ed7d1c49f@valentinobst.de/ >> >> Fixes: 8e289f454289 ("selftests/resctrl: Add resctrl.h into build deps") >> Cc: Ilpo Järvinen >> Signed-off-by: John Hubbard >> --- > > Thank you. > > Acked-by: Reinette Chatre > > Reinette > Thank you. Applied to linux-kselftest next for Linux 6.10-rc1 thanks, -- Shuah