Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6148614rwb; Tue, 9 Aug 2022 09:53:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UiiBuisvcL6AD/zaMDh9WIkCpSlsAwU6woszp0EIdzNH+PIXRkk6LVekwwgSZ3MT7twv2 X-Received: by 2002:a17:903:444:b0:16f:8937:6ad1 with SMTP id iw4-20020a170903044400b0016f89376ad1mr22341036plb.123.1660064033178; Tue, 09 Aug 2022 09:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660064033; cv=none; d=google.com; s=arc-20160816; b=zXfdKArmwwy9hk4vTBcH6wL1Kb7BH98n0O8F8rMAAGXPKupGAccggfBR4DUpMUvfU6 FnXr18TSW31oSoHTVdyPLFDb659svRLKDeQXI0M03U1bS9ZrlFl5FyGA4TVAgdBwnOJJ czLACrHmDsJN6DoEZrJrZnUZ4jZ7tCZkT0zxViycjqX1sT3UojU7oYuTdN6noii1b0VU ojqpgghJ+A+0LnsbKkcJPAdPK7T6GE5cPl07LOAfHlmo2wV5rgTU0Qo2vk6alFJYWEgE bSeJvRGQ0iUUV5vylgvvGQEWoCqPoASLO4NhGlXFDvNG/xsde77uRIO+4m2H9PDy5H2F nFXw== 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=0+NEQ6fuVT1Ad4zeljZbZwi69B4u7i6TyjVK78Y3CnI=; b=YeuMgtsS/7SbND7Dn77dXFqwCM0RDGcxV6X3Up1bPjGFttQYcM+DzeO+aVzCY5Ed+a DSVFM7mh0qKlqk3/Ko0X9p2bFmgQTg15L4JiPoWpFIJa+yFTRaG1uQakBOCiJWhE9EPX crSbjBs25sLtLUFh6pz9MfhMqT3ddVqVAiB0Uj1/gmDPaXkntvjjGBUWiFij4p6qdBEM 1+7TLPrjnXeE9LWI70/6SV41C5ZvPAkFL2lyF5IcXs0jQACcSujA3UZQ71o/X1ywGqDZ SHsbIzozhtMppY/4ZIpcdAogW5OgA2sZm6LRuYN8Hz9Nvu/XHsiOnMcp5E2IbM/TO2Lw Jc1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GVkaWOpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170902d2d100b0016d9bc38748si15576155plc.612.2022.08.09.09.53.38; Tue, 09 Aug 2022 09:53:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GVkaWOpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S244390AbiHIQmH (ORCPT + 99 others); Tue, 9 Aug 2022 12:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbiHIQmF (ORCPT ); Tue, 9 Aug 2022 12:42:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE2FEFD0A; Tue, 9 Aug 2022 09:42:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 786A4B81625; Tue, 9 Aug 2022 16:42:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C7C6C433D6; Tue, 9 Aug 2022 16:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660063322; bh=qT8jDmuiFc3HywToOTDU9Y76BLsYGRgW98tqTj1tplQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GVkaWOpXNUoUgOzIow1IXae7WD7ZKP+aZ6ZCwYT9KkpSb7JAd+Yr9XscF8m3Uy6mi d+MfT7LACepLGR7J3t1lDDXiFaTlzBBSFtTinMP50ffWBjSEWxP/46RN+wSvfDsSuC ZiG9OrcUbLtJrdXXNOUdQcHOS0C2UoxczZjumAoslLdsYhXT1LD1nAzf7TY9bWlPAn FbKbSycV7FXFXYT4XCN9HNZbzIH1e9cWC1qEWz0jMFqCZpTwSRbqBrJKvnaC6R4dMN 1ISVLvfhhaR3ZcrnImE3xjy854t7+3cenxovO9kgqjNuUvkX93JeUFN+khSV0OgGot I7d65rATiOYaA== Date: Tue, 9 Aug 2022 09:41:59 -0700 From: Nathan Chancellor To: Guillaume Tucker Cc: Shuah Khan , Nick Desaulniers , Tom Rix , Mark Brown , kernel@collabora.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] selftests: fix LLVM build for i386 and x86_64 Message-ID: References: <20220809142231.2419274-1-guillaume.tucker@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220809142231.2419274-1-guillaume.tucker@collabora.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 09, 2022 at 04:22:31PM +0200, Guillaume Tucker wrote: > Add missing cases for the i386 and x86_64 architectures when > determining the LLVM target for building kselftest. > > Fixes: 795285ef2425 ("selftests: Fix clang cross compilation") > Signed-off-by: Guillaume Tucker Right, I think this is the correct thing to do for the selftests. For the main kernel build, we use CLANG_TARGETS_FLAGS_x86 because ARCH=i386 and ARCH=x86_64 are covered by SUBARCH=x86, which is what we switch on, rather than ARCH. I do see a couple of references to SUBARCH in the tools directory but I am not sure if that is usable for this part so: Reviewed-by: Nathan Chancellor > --- > tools/testing/selftests/lib.mk | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk > index b1c62914366b..cc4c443d5b14 100644 > --- a/tools/testing/selftests/lib.mk > +++ b/tools/testing/selftests/lib.mk > @@ -10,12 +10,14 @@ endif > CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi > CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu > CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl > +CLANG_TARGET_FLAGS_i386 := i386-linux-gnu > CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu > CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu > CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu > CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu > CLANG_TARGET_FLAGS_s390 := s390x-linux-gnu > CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu > +CLANG_TARGET_FLAGS_x86_64 := x86_64-linux-gnu > CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(ARCH)) > > ifeq ($(CROSS_COMPILE),) > -- > 2.30.2 >