Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1355068lqb; Thu, 30 May 2024 07:58:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXHoIIpdQlthY2BUbgXtuMCvuw2mO1L4Yq3h+Jpx3OXLOohor+/euChPDv5VlF0MevqspW/Og73uLB4Wh6oS7oh4eIyxM1peddKEp39Q== X-Google-Smtp-Source: AGHT+IHl767qxYO5yptz4DXmC9tmeKjbByKP48O4H8wYAtK5I2uag40vR0B/0Lqz0LE1xa8PPLux X-Received: by 2002:ac8:5d46:0:b0:43b:1546:f8a9 with SMTP id d75a77b69052e-43fe931d3c7mr27675921cf.51.1717081104882; Thu, 30 May 2024 07:58:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717081104; cv=pass; d=google.com; s=arc-20160816; b=1JtdG1qZ9rSQ8VlA78YxEPdBTwtEaDSFjmQ6prcF91qa6qGnrOKJBGHWiW697Fx3pm RsggJvsHKfQ3RyeRWjb+6tRNcC8cBiCHAi0qjgLNIwNFip70cyv+d7UAGTa0HJYdPBo2 xx8eyj5OUI41/7GF4cIExAWsOsi83zBXRbWjzmOvxiebxDmOBbCN9tuveJoQO4EqQYSF PT3Wtqcb0NywZlinrzmOoHYuFM/EaHwbqYMtdus99EDdM+At+ApPnJwk3zh4aCX6+2xa FN+n8h9YMbIF7Q24Dsr4bSEbCKHNTwpPLAJLFHhDJhN1wP81+KdoKAIMy/8x09CP3UoU f2zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UYQWkDbOOCMyq/o0QgNOHjrEjyrRmklhwNgybQNhet8=; fh=dMBe+2HBVxWQLcVMx+s7n0acBACBesnUS7SIkdGFRok=; b=rRpYZfNk9FO4iJP9aC7l+1/fmq1yf5atE54yOp6m43b53eIpoCqPNdHm+y6g3iZTqk LqyMRiDu3zhq+5XTxBja/C6SpsXYELVovvXwBse1INUxlbRys5ujYaySWqlydZoFeFEU fcMrtARxKC7C5DCz0eWEyV/CbQe8oXEIYTJY7jsmvu4rMUJYHCi9yWWRZZe7vkHOINsH 2gBumYKihV0C8uOf7MPA1GNGgxkpax5w2LC8MEpPz+jc2/yh/uPfAz9oWpggh/jRxRx9 Tc/+trTYdFzAvW7iYwBmNwNprM9jCXPzWYinoe92ewSFgzk7vzjPFWtBoq9mRk3/t7Ku FAfg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=BH3o7go5; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-195556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fdba1a794si62340581cf.773.2024.05.30.07.58.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 07:58:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=BH3o7go5; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linuxfoundation.org dmarc=pass fromdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-195556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9A8D81C225F6 for ; Thu, 30 May 2024 14:58:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 493D517D89F; Thu, 30 May 2024 14:58:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BH3o7go5" 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 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-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