Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp434866lqm; Wed, 1 May 2024 05:30:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi1RLV91D6uvLIQQ9Zkop0trMNV+9ADyfGaQvIgXR0efS05SfqmW5ih19udotNzFwh/GAFAuHjENdUDPJhFXvk+x3SBcjazYejuc8SJQ== X-Google-Smtp-Source: AGHT+IF21RSlqyWMFVcOarYoTjTBdUq4x6CqT7Lq+r+aydDSbZPQvupxF/Wxsslh7TAFWtSFVQca X-Received: by 2002:a17:902:dac3:b0:1e2:a61e:47fa with SMTP id q3-20020a170902dac300b001e2a61e47famr4209313plx.15.1714566657228; Wed, 01 May 2024 05:30:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714566657; cv=pass; d=google.com; s=arc-20160816; b=sQrU9vXek8wzpoAxQf/Ia8JXBsoXdilTfHf2/DUrOmzLniPFxblcUy2Nk3xt859AMi iWrV1qJy9OtzHnXWCv6+MMBLFpaBPG5Vce90CqvhI7cbm5Fcgf62EssOpui+WS8MLILq nat/y9u4awO+AO8csrLY86M8chXvVuk9HI69aCEWiUIfKzffta2Dg6STWp4Z/tm9Uct5 Vor1XD+77tuowp8SNlM44bX3BZ1SK8PBe8hL/S42UV1tw6FJon9PNGpX1PAA5HgsuKeU mEmR3Vf1CVDJQomk3XvOZAjUE3BAjWvrEL+hlFNQPynetG8iovLAANn7IIeoOkbD2S4b OJiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=kQkiIVtNvyFraiPWy/jSh6Yd3MlDvygHlz8wVO/JCpE=; fh=Js7PpvEQ3ReoFQaPq6pHhg2QeHNA1tL1BLhj7+72Abo=; b=It7W83mX+0lF8L2P/qnWh4l3PN91ym1gEZj6cVtXB/43Q7FXB7na5x2/apJ6MYnO6b SRkYToJ3nWs4r0eqjkIrqa7sUgAzcYy41RLs0RA6R1MZ7YXvTmFL1jpK2FcBMaZbhC1I ImktnzxylOu/WRdTbUwlsls+/Eae9UvwVhRhlZ3jYrNrEAC9RScuSjTs358+UJ2pka7g dhU7tJFVfNe+/DUR6hB89WfQyV094SmAvu3wb8GM2FBK7g18QfsMxubRPv29IUHUYbP5 AqjrPmrrlhodurKy5BZ6IKdj2w7EA0LVLx8mtX0IvEdWqaGe3QPIvAZdiBsUBCiVHW7X wTCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=I6qmm694; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-165240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e11-20020a170902784b00b001e41c8728f2si3373350pln.1.2024.05.01.05.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=I6qmm694; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-165240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DDF54B21993 for ; Wed, 1 May 2024 12:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B85F384D3F; Wed, 1 May 2024 12:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="I6qmm694" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 7BFD9824A3; Wed, 1 May 2024 12:29:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714566553; cv=none; b=aPpLa6N7hwBa/IWBFfdQXBLO1qAvHLCwx0vl4t4Hs1Y94LPSQ3l43kVkhwJGrSehPr1huoHfMJ6F1RKuop286y7tdGYKQmwFspAIvPOc26fkTP8XeyK9aIxqU6438pa2sH557T9UIDVCPYU2Jty3B86oofQlXf79fganWUwHS9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714566553; c=relaxed/simple; bh=uEklwwrSAICg3ZJuH9aSGtaFDX9QNKm+bswdtOYKTyQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Mrz/niueWkbDQuWmJVKRIC1mx7cdHsPBGZWpTQ3vXF++rFkXL3D0icxeo2Vl8jFMsPQ6U5nXMZyU09CpSyv94bEbObxinITJ63C9ZxxJ5HlP0B+cAcvEcj7Zzebd3EiDCjzSD/xpNs24F9lD/zG9+QvM0Yr6rS2LAte2mw+Hfz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=I6qmm694; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1714566550; bh=uEklwwrSAICg3ZJuH9aSGtaFDX9QNKm+bswdtOYKTyQ=; h=From:To:Cc:Subject:Date:From; b=I6qmm694cZMVt0apM2hmsxcVPdsMUQBd5aILDQHHntoBcm69Y0sT1V9VQa4QvK/R9 nVYmPk9Gcsi/9OumIJ4lxmVR270mZo5M0EUMJhNlyw5Z/Cmqeag99TYLneOpnPEGWr rOsFtZhtq9BUpzVRAroeGTnomZdT+4obv/0iMviG9jA/LfloyqdMnv8R0qzUN7DWQ5 sgnCixGApLNBc69tavPi67dgDyx4E7PG0KUwhb05Up+3q1fi4btnW7xTKVpHFIilHx nnldKuqqA3+Efn2oghgRcxsgu3VHop8kFmUrD2K/+WI/cGq5Zld3uE4fouI0pPwhMI 6floVzBTjdzAg== Received: from localhost.localdomain (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 9BC2F3781FE9; Wed, 1 May 2024 12:29:06 +0000 (UTC) From: Muhammad Usama Anjum To: Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Muhammad Usama Anjum , 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 Cc: kernel@collabora.com Subject: [PATCH 0/8] selftests: x86: build suite with clang Date: Wed, 1 May 2024 17:29:10 +0500 Message-Id: <20240501122918.3831734-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 =rm to =r 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