Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp196173lqh; Mon, 6 May 2024 16:26:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXeve6GCHcDQ780EnBC/2whKsu9w4CzRoFpJLDr/n5kdDKx+Wc1l2dsVQO+9341F76/uRknQ599RU4ru19gXSqHDQ9waL+TrMd7rF7Kcw== X-Google-Smtp-Source: AGHT+IEY0H9TQxHTwerZbI9iWxeYBTe+nOh6goCln+VpvBIjUn1utK21nAHnibM3qrU7V7eHlTmr X-Received: by 2002:a05:6358:71c9:b0:18e:aca:fd7e with SMTP id u9-20020a05635871c900b0018e0acafd7emr14537359rwu.7.1715038009499; Mon, 06 May 2024 16:26:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715038009; cv=pass; d=google.com; s=arc-20160816; b=fFqKSoYEYqrnFrxa342lNrZw7zfUPSZflx+RSAUu7BElfAAZS2idvdC33UmajZql7K VObJvbpjjfE9OjZlItLu/oACSv3eUJtt/yYbgdUvRSI8pEeSAaObns/JuTFz7EsY77fD Ng345yZ4IUPjbe8lVDpPAeyMyARWdpE0EdT2H70YSHcIqdE0wny1pwEqKGJnfGrz3rkA 6HDZbIuvCRnQLZFgJOGoajFJEoB3DgbtG0s+fpQ7Lr9+V7I3u2/IDISL2NKYUaYWnACC X50BQphmMEkBU8Ih6y2G45TF2KgCDmL8wCJzhYjG2KRK3weCnbBqbR032rnr1r5S1H/I cLMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=arg5k9e4eumU/21NxDFCZ0styz6cWNXoQ5vyGJusoQ8=; fh=j9XzmrJcu3bJMgksFBx/ItVrKIi025ufM8jbCCOTXd0=; b=T3hWBEjZdu7Rznoh0k9ZrWg7Pnapn+DmqwFoppgfbHHBvYYnP5GacU8WloOZKkwtlv 75sXOyiy0YfQBvrlxCETpkViahFXVahvCJOer235UI5sa6LR1gUs8H4jHJn2YBF2zy5n UNGppgThV96jFcSO654wD31KATjI5/VVsQeF9bKrofGe9I3IOv7Co71Nfbh01lYzQPJQ ELpd15qBwAKlRkJPotHfEGQepvFRcsbg8gQvxNGT7TQDird0MAzACxoif6QGRfmtEXL1 2BCx/jWAkybAXgn5stlX02axqG+0OjxzNHCvmls5dQl4XBP8c1KcnSBcAlwlI6T/5CCk 3fPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="gcS/kx1/"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-170505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t128-20020a632d86000000b0060f19e5f5e9si9205720pgt.63.2024.05.06.16.26.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 16:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="gcS/kx1/"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-170505-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 18CA4282E49 for ; Mon, 6 May 2024 23:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D48215D5A1; Mon, 6 May 2024 23:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gcS/kx1/" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 D398F8488 for ; Mon, 6 May 2024 23:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715038002; cv=none; b=lLrBIO+RnOd0bg9VzwtGUNl3f+WIAF4hgHZPr3qziBF9+0ACrTJNuw9m+LJUWurhgXdVWgmWxEBJArJujiZwscNDqVkc6+6VMp2QBR62Gi6pwSGE2ipaDEgJpNq0BlA5mWmpXgxYB4s6R9snqWMIcHG6ExmhjSGrm6qEA27+w7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715038002; c=relaxed/simple; bh=cJ9hyxh3nF+1An19GSvXwAC4s8YrykB9K2WJtVoH5bk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PBK1NkA6S1y/VmTjZJW1WyMyrvqfv+wZBgsnU22k8wb706MDCPINsEVN/F+gTAuBFsnxO8cCJu4D7zR/irdfqkLEdvwj1JRcfcolWHNm9tAG/S4fCzMgrkb4AFRhMvtyxdkQzpU2Sd+/xX34ToDDEGiGdIlGLN6lUwV7cb5/MdI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gcS/kx1/; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5724736770cso2315a12.1 for ; Mon, 06 May 2024 16:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1715037999; x=1715642799; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=arg5k9e4eumU/21NxDFCZ0styz6cWNXoQ5vyGJusoQ8=; b=gcS/kx1/4uQwRmvAXj49bbVHKWMUge5aWVFibTGOeNb1lZdlQIyu8tH34Si5vmLP9V PVtycKXIf/+ED7wLGsSImwyXOKI5V6Yu8es1FPdPfE1gA5Tkv43mwQLoh93/5B1f9O6m Ozl6StrWFSKWpIzBj1EXI+Y4wmyD6e6IDPaK7BL9iQkQxi6bCkcOlD4AJCzhg/lzt1Y/ L4K/RQNdGcSnpoOyP0hDlnbFLQQnlkXKwyGBNSnBdc8t1eVIL9iAq99BUW1HSFsi9WVj zSGCGgB2a/Z0/FE0g9FMq4hZxvh/tbg805un2GP85QJIIAScnmG9IcQkTSkjh40uPvWz O+9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715037999; x=1715642799; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=arg5k9e4eumU/21NxDFCZ0styz6cWNXoQ5vyGJusoQ8=; b=dk9eZfM3Q4g83YIBCZzfxg43cC/e3xTuAFAGyxFoLPk0CPnrXZXH9MstHwnUVoOiXT qFcuTDJS33DYRFJP9kZU2rDmWJsW+u/6zf7GM/CrNnY7qh+mgOAFhrChuxjQ/KXh1zDb 7SSbcPXpqFyOAF0yey//j9bRzSpR8rVK0y5PXUOtXICpRzdKMAp/mG2di6gw6H3iRg92 iYGpBaPL94bdK6pIaeua6qQu4iTj5P6q6I4xPsj5cb32VZYVsPJcmGY/Jh3TqZ3RcmBD gNmvbxQINVQEzpj71aN6bf1G2goOU/Ru5SlN3JdwXBO11eQ5a9K81xkQSTSL3aJHx+6G dtCg== X-Forwarded-Encrypted: i=1; AJvYcCURJUoPn17C3aAE4zeSVdHEhcLpOw1ExsSDxxhyogf8L3bchAAjdUM6bwQbNU2bJ2xdFOvtCt6WbOaqj9jmmkNfWNlukugglfG7Y41a X-Gm-Message-State: AOJu0YzXgQAR/jItsVW3/0EDXx3b1b4/BdeuI2LfpyjsXoi+eeqByww9 ao6g9FJvYLcDMorzzs3dM9g/bZfQw0ZyW1eJ7AbrqefMzRMxyl6T3ZgvuG9xvGeYmLewCm1na7z sTZLxpRu/0L11I7AHr50djsDpBYghAt2ibTfN X-Received: by 2002:a05:6402:34ce:b0:573:1366:d196 with SMTP id 4fb4d7f45d1cf-5731366d350mr39525a12.1.1715037999082; Mon, 06 May 2024 16:26:39 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501122918.3831734-1-usama.anjum@collabora.com> In-Reply-To: <20240501122918.3831734-1-usama.anjum@collabora.com> From: Fangrui Song Date: Mon, 6 May 2024 16:26:25 -0700 Message-ID: Subject: Re: [PATCH 0/8] selftests: x86: build suite with clang To: Muhammad Usama Anjum Cc: Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Rick Edgecombe , "Mike Rapoport (IBM)" , Ingo Molnar , Dave Hansen , Alexey Dobriyan , Binbin Wu , "Chang S. Bae" , "Kirill A. Shutemov" , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 1, 2024 at 5:29=E2=80=AFAM Muhammad Usama Anjum wrote: > > This series fixes build errors found by clang to allow the x86 suite to > get built with the clang. > > Unfortunately, there is one bug [1] in the clang becuase of which > extended asm isn't handled correctly by it and build fails for > sysret_rip.c. Hence even after this series the build of this test would > fail with clang. Should we disable this test for now when clang is used > until the bug is fixed in clang? Not sure. Any opinions? > > [1] https://github.com/llvm/llvm-project/issues/53728 I've closed https://github.com/llvm/llvm-project/issues/53728 (constant expression folding for relocatable file output (MCObjectStreamer)). I've sent a patch to address https://github.com/llvm/llvm-project/issues/62= 520 (constant expression folding for relocatable file output when inline assembly is used). (I am subscribed to llvm@lists.linux.dev but rarely read it. I noticed this message accidentally :) ) > Muhammad Usama Anjum (8): > selftests: x86: Remove dependence of headers file > selftests: x86: check_initial_reg_state: remove -no-pie while using > -static > selftests: x86: test_vsyscall: remove unused function > selftests: x86: fsgsbase_restore: fix asm directive from =3Drm to =3Dr > selftests: x86: syscall_arg_fault_32: remove unused variable > selftests: x86: test_FISTTP: use fisttps instead of ambigous fisttp > selftests: x86: fsgsbase: Remove unused function and variable > selftests: x86: amx: Remove unused functions > > tools/testing/selftests/x86/Makefile | 9 +++++---- > tools/testing/selftests/x86/amx.c | 16 ---------------- > tools/testing/selftests/x86/fsgsbase.c | 6 ------ > tools/testing/selftests/x86/fsgsbase_restore.c | 2 +- > tools/testing/selftests/x86/syscall_arg_fault.c | 1 - > tools/testing/selftests/x86/test_FISTTP.c | 8 ++++---- > tools/testing/selftests/x86/test_vsyscall.c | 5 ----- > 7 files changed, 10 insertions(+), 37 deletions(-) > > -- > 2.39.2 > > --=20 =E5=AE=8B=E6=96=B9=E7=9D=BF