From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76F382116 for ; Sat, 24 Dec 2022 09:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671873144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=K/8A/i9y6rIvKCnypgiTdopbEh62sIZ4224f2Kvswms=; b=fCEgmAYkIn2Rb15FU0PNY4V1KOchtXjhe3CNWAfJmkgZ81vBE68sTkCSdpRVyw0NQh6fum pGbhuRwMd7/C6XGkUDU66PBCpGt08YaDzY35Dl3OWY5YmCfVIhG/HsH2Kp7RvXOrY5YFEI 9mdfdGB6KPbTHBMFKU4poz6d/V3nJl0= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-240-_yuaswN9Nu2njUn3uAv4eQ-1; Sat, 24 Dec 2022 04:12:22 -0500 X-MC-Unique: _yuaswN9Nu2njUn3uAv4eQ-1 Received: by mail-ej1-f71.google.com with SMTP id hs18-20020a1709073e9200b007c0f9ac75f9so4627593ejc.9 for ; Sat, 24 Dec 2022 01:12:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K/8A/i9y6rIvKCnypgiTdopbEh62sIZ4224f2Kvswms=; b=AYdeDgfP2g9otMO7MIlfKHMN5QyF7RCSGTgfUrHa/YZb+/Bwm8tUkwwVbwZvqah+/2 Bh9HlBCS4IbmZ1ApFui65VjIS2HGHEFzldylDSWxE7d/yyhQzWOD8sdSTITWsTZP6TPI a5jWo7J/I2YW9ENUkOVShJBMkugxNykSnCY2ZwgHwA+lWKG2eiAGp3FG46dKzj1BzsvD dHPb2e/2x59VEEoFGA+Jurp8/InMQTFpZcxE/XUqsNVpLOV0kTFc+kZvixMZHH0wcg4+ Ubmcg/4XKMeWKeW35xq7QkriVv/m+aCL+dGubhR/bH9CJACQty8wHEnKJFGLdjiFnxqk R3XQ== X-Gm-Message-State: AFqh2krow5dr4EJ4VZFlvE/fGZwJCJAxc987/erPicBioBbL6/zBdpfp oeL3oSJctcHWoGnPmzT5SM5PFNEWIRJXXSMLt5mcniSFnlIo1NClPSMcThprK2x0i7U3tYReBVz UFMAJ4wV/+FGooQ== X-Received: by 2002:a17:906:4894:b0:7c0:beee:2f06 with SMTP id v20-20020a170906489400b007c0beee2f06mr10450206ejq.52.1671873141073; Sat, 24 Dec 2022 01:12:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlm/vA6G01U45Ww3rRE/hpJxyrrrVFeI3NtGzIAEN1d8PbapEpyn4qgCdB7ow6B9vpaz9eng== X-Received: by 2002:a17:906:4894:b0:7c0:beee:2f06 with SMTP id v20-20020a170906489400b007c0beee2f06mr10450165ejq.52.1671873140745; Sat, 24 Dec 2022 01:12:20 -0800 (PST) Received: from ?IPV6:2001:b07:6468:f312:63a7:c72e:ea0e:6045? ([2001:b07:6468:f312:63a7:c72e:ea0e:6045]) by smtp.googlemail.com with ESMTPSA id 10-20020a170906218a00b0073d796a1043sm2321829eju.123.2022.12.24.01.12.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Dec 2022 01:12:19 -0800 (PST) Message-ID: Date: Sat, 24 Dec 2022 10:12:09 +0100 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev 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.5.1 Subject: Re: [PATCH 06/14] KVM: selftests: Rename UNAME_M to ARCH_DIR, fill explicitly for x86 To: Sean Christopherson , Marc Zyngier , Paul Walmsley , Palmer Dabbelt , Albert Ou , Nathan Chancellor , Nick Desaulniers Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Tom Rix , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-riscv@lists.infradead.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, Ricardo Koller , Aaron Lewis , Raghavendra Rao Ananta References: <20221213001653.3852042-1-seanjc@google.com> <20221213001653.3852042-7-seanjc@google.com> From: Paolo Bonzini In-Reply-To: <20221213001653.3852042-7-seanjc@google.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/13/22 01:16, Sean Christopherson wrote: > -ifeq ($(ARCH),riscv) > - UNAME_M := riscv > +ifeq ($(ARCH),x86) > + ARCH_DIR := x86_64 > +else ifeq ($(ARCH),arm64) > + ARCH_DIR := aarch64 > +else ifeq ($(ARCH),s390) > + ARCH_DIR := s390x > +else ifeq ($(ARCH),riscv) > + ARCH_DIR := riscv > +else > +$(error Unknown architecture '$(ARCH)') > endif $(error) would break compiling via tools/testing/selftests/Makefile, so I am squashing this: diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index d761a77c3a80..59f3eb53c932 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -13,10 +13,8 @@ else ifeq ($(ARCH),arm64) ARCH_DIR := aarch64 else ifeq ($(ARCH),s390) ARCH_DIR := s390x -else ifeq ($(ARCH),riscv) - ARCH_DIR := riscv else -$(error Unknown architecture '$(ARCH)') + ARCH_DIR := $(ARCH) endif LIBKVM += lib/assert.c Then the aarch64 and s390x directories can be renamed---x86 too, but the ifeq needs to stay (just changed to do x86_64->x86 instead of the other way round). Paolo