From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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 16E9E17D892 for ; Thu, 30 May 2024 14:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081100; cv=none; b=G5hQRCZaFjIGZrJNjEgGvfi1ASaK9nZzSzfECPOLWR+6o4GLRz5+DHoMRbqQbIIRl5XluurNVPxaPDutON/qHPBDD/tU1gpVXOoafx0okrA68tMxq3kuKP6Zt14aj6OKkqcfbouUI4yTdj9hP3i0CzZZlRUd6Ku2/spVutPCSjc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081100; c=relaxed/simple; bh=6frT2cUqOy2QZwW8Jb/ICL917q3xtkQYsWty0q3A7EM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=esePtTkw4JxRHswyRrrtMMYD5ilQZqHZaAdGW2QO6/e6hs8O3mWYhgsbKJaf33dyXL9zPY/KO5xIn7QEkeWwYSybI0qxsc0uTetJQ5wxNPtUuaFfKSwpyrmiwCnQybBZKk/Tv6IfqbJiXI+EwTfhGlBtyiToZJ0n2/ywrzoAu5c= 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=BH3o7go5; arc=none smtp.client-ip=209.85.166.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BH3o7go5" Received: by mail-io1-f47.google.com with SMTP id ca18e2360f4ac-7e3b1981fe5so4942639f.0 for ; Thu, 30 May 2024 07:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1717081097; x=1717685897; 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=UYQWkDbOOCMyq/o0QgNOHjrEjyrRmklhwNgybQNhet8=; b=BH3o7go5uU9GFxLELhp5muo6xJ8S7whMvwe1K3VaD4bBzmCMSMv7mwDr3ulgp2Fm/y Z69oQUoGnQ/Spq7svVv9cpB/Lj14DPzZfkUaRdz3rFVgbpeZntqUjAX8vnA2Is8TRkpG nulYZLF2D0lNMgZW3sUT0coM3zHucQpq1oyK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717081097; x=1717685897; 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=UYQWkDbOOCMyq/o0QgNOHjrEjyrRmklhwNgybQNhet8=; b=OW7sXDwlqLq+TQkiB6TgZWqFoI4RotFJFLHFpFtRsWggzbvGghgj2nFbvi7IITWYob DSAwoUlYJx0vuc5ZeEB5X+a3ZgNOmHPI9tqN12tw1b84OeBnK10sPrNkSlh0WaE9+eUL jEnN+ytTvwH79BrIzbSmO8JG6Tiyx+HMQ2xryDlnQ9a+He/LwbPywFgwxemLMLZPgxJY vCFzKztATcCWt4EoWhplHuL9eCJbfQuwrCMO5v6586lEdnpo5cMKXzZ3LXm7XFdW6irA Q/Ke3rWHVykRbUSYUmdtD6W0ncdrJyr2BYD2Bajv/4bzpaAaqsY5w7RyebIvpTZanbrJ GqZg== X-Forwarded-Encrypted: i=1; AJvYcCWwctZjq3I2m6RYk6N3LmqvFiqsejhJzSepmQxxxOsWxXTv7sdNOOqqqLsYST6iZYrMzwhL8nST82Qhwh7g6Ym0QybATSQ/S2gr5F2w X-Gm-Message-State: AOJu0YyKe0j5QcLrWVno15E2x2ilLyrmrEOTfHIAMhgnBaoPczpI6JpY Y7tdtBId4NFbvr94JJ6Cn4qT8X8SR46P6WtGvtsLLpf4MkUu8iRI+xuwC6Yi5IA= X-Google-Smtp-Source: AGHT+IF+c5SyF4FomowgTAfuj5YYGj0MkoKjfwfa0To8fH/UHJshVIcQ2oirqjk7Q32H9m4sYBF/7A== X-Received: by 2002:a5d:970c:0:b0:7e1:d865:e700 with SMTP id ca18e2360f4ac-7eaf5d9611amr259019339f.2.1717081097098; Thu, 30 May 2024 07:58:17 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b0f152442asm1842750173.173.2024.05.30.07.58.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 May 2024 07:58:16 -0700 (PDT) Message-ID: Date: Thu, 30 May 2024 08:58:15 -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 v2 0/6] selftests/x86: fix build errors and warnings found via clang To: John Hubbard , Shuah Khan , Ingo Molnar Cc: angquan yu , "Kirill A . Shutemov" , Binbin Wu , Alexey Dobriyan , Rick Edgecombe , Sohil Mehta , Yu-cheng Yu , Dave Hansen , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, x86@kernel.org, Shuah Khan References: <20240527210042.220315-1-jhubbard@nvidia.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240527210042.220315-1-jhubbard@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/27/24 15:00, John Hubbard wrote: > Hi, > > Just a bunch of build and warnings fixes that show up when > building with clang. Some of these depend on each other, so > I'm sending them as a series. > > Changes since the first version: > > 1) Rebased onto Linux 6.10-rc1 x86 test patches usually go through x86 tree. This series requires x86 maintainer review and ack for me to take this through kselftest tree. > > Enjoy! > > thanks, > John Hubbard > > John Hubbard (6): > selftests/x86: build test_FISTTP.c with clang > selftests/x86: build fsgsbase_restore.c with clang > selftests/x86: build sysret_rip.c with clang > selftests/x86: avoid -no-pie warnings from clang during compilation > selftests/x86: remove (or use) unused variables and functions > selftests/x86: fix printk warnings reported by clang > > tools/testing/selftests/x86/Makefile | 10 +++++++ > tools/testing/selftests/x86/amx.c | 16 ----------- > .../testing/selftests/x86/clang_helpers_32.S | 11 ++++++++ > .../testing/selftests/x86/clang_helpers_64.S | 28 +++++++++++++++++++ > tools/testing/selftests/x86/fsgsbase.c | 6 ---- > .../testing/selftests/x86/fsgsbase_restore.c | 11 ++++---- > tools/testing/selftests/x86/sigreturn.c | 2 +- > .../testing/selftests/x86/syscall_arg_fault.c | 1 - > tools/testing/selftests/x86/sysret_rip.c | 20 ++++--------- > tools/testing/selftests/x86/test_FISTTP.c | 8 +++--- > tools/testing/selftests/x86/test_vsyscall.c | 15 ++++------ > tools/testing/selftests/x86/vdso_restorer.c | 2 ++ > 12 files changed, 72 insertions(+), 58 deletions(-) > create mode 100644 tools/testing/selftests/x86/clang_helpers_32.S > create mode 100644 tools/testing/selftests/x86/clang_helpers_64.S > > > base-commit: 2bfcfd584ff5ccc8bb7acde19b42570414bf880b > prerequisite-patch-id: 39d606b9b165077aa1a3a3b0a3b396dba0c20070 thanks, -- Shuah