From patchwork Fri May 31 20:07:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13682091 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2052.outbound.protection.outlook.com [40.107.223.52]) (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 B07EB17E454; Fri, 31 May 2024 20:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186086; cv=fail; b=VHuulkJbszc5+1enZthw4zPdG6ocXJ+Mdz35R/TK4Vy6U6hJlZFHOnZdqLmEvkZvp61u8JLonG9qJ8AwQJttPKLxujp81wuL4O/avPwl/yycJjiuihOYQhOOw/vRkI0fjJoj7WdRQFlhACzBBwhvsygQc9M2MRsCGoexHvIQS+4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186086; c=relaxed/simple; bh=zBhQLTB8WkCdF8qUKVSvXWqLNz9Jx/yhF1CF0QcmCpc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=opwex4G6nz9V9pi5iYhnLWCGAPd4NlcWfme2/AAr0sgHNkB+qYtkfAgJyswHmuEJye6VnrhTgJ/uAYyH/qfjFfaM9DI5STtBaf/uz2iubLOS1cu2IJud+S60RV2Q1W9WdlyU9du72UHSl2JBjvMPuNq/Luz/e0V3VXb24C81ij4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Btkd57T0; arc=fail smtp.client-ip=40.107.223.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Btkd57T0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NpaEjkigaQyQeqZbGYXihmZpx4HE/RELE+lOpxtpybSMq/G8LdfQEr/dRs729bfmUFY4+3YpAJI9nmyHbwnugME3f58RQOiIiEctNN5nzpB+WaC6mDBsSKda3tYsOZxSkZUgGo4j7DRZsIJYB0aMerV6dV4Bjw4rJFEz6KPl7V70ex6iU4pQv3FquU12vAGE77Muu0XnwT0s/nGRtGaxea/2X25nrVs6LHzoIZXjWGjaH6GhJ47tGUS7rRhEEgQTH1FwqPHSIM2j09HHRaRkjHNpxUzWpVo9IwrONas5qOp5HZ+RWHcWIhr6Vn+pTpjZFDfvlkEylyWWmhV6kgKYFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=01YYcT/4NfWh0YHun2p0ZqrMm4xnTY2SOjGXZCbnC8E=; b=bi+zX8j/+tnyHy0FAyvG3karJFDiyTzKqjXhket/Lc9LAxiDJmQyvBIbm9RLXB2LMy+NLdfxFONZ+g2VXMlsnuzvP/+cLQFLZ8A0VB0pUhK924qqovB/w7dJSdk7cBHqlHjspEDAlSQjlU603zJLoq2spoTtoATWZBl8/pMW5TeeK70ZZWaxWzAV2/xR+iNFski6hZFV4NxY2UUoirx0SrbLk+b3Mxa9RnVRqAEWZNVmGjv58bMJivyv5rhjC85VFkAfbNxil+nLC81HAWZRPQ5tJuvuZWN4X/d3bU6ABBbbTIl8mNmztW2XiVLHk/xemyUp5B1XYSBkc6TqkQZ74g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=01YYcT/4NfWh0YHun2p0ZqrMm4xnTY2SOjGXZCbnC8E=; b=Btkd57T0Nns6md8EEdJ48isu/ZcaRPj6jud9wFw4+t91+snx69gwUSF2vBYlzqbwwyPvFi//T5suJI0QUchnWvYNxd8W/qGZp+aUl0NUt4Bp0nMDf3Neizrj4Z5Eyra4/OLhYjBwmi2rzGO+IfdqE6uWtfQtEMvZ8YTCogtRPrQ/O8a24VPPawXudw90iFmDOIpJ3ATvnD6fggbCdLCqyZahtYqoog/OANb48CbZW8ToQYeiew53JnbEjp2rDJ7HrvvlUUkZ6UhTfpEZZuD4GJyUHD+SDuBK5RZkaDYiDdYfDr0t49JGSqIZz9NZEsI4ZfZzkixPKi7JUca4tonXPQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by CH3PR12MB8880.namprd12.prod.outlook.com (2603:10b6:610:17b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Fri, 31 May 2024 20:08:00 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7633.021; Fri, 31 May 2024 20:08:00 +0000 From: John Hubbard To: Shuah Khan Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Edward Liaw , =?utf-8?q?Andr=C3=A9_Almeida?= , "Nysal Jan K . A" , Mark Brown , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH v3 1/3] selftests/futex: don't redefine .PHONY targets (all, clean) Date: Fri, 31 May 2024 13:07:53 -0700 Message-ID: <20240531200755.128749-2-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240531200755.128749-1-jhubbard@nvidia.com> References: <20240531200755.128749-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: BYAPR05CA0029.namprd05.prod.outlook.com (2603:10b6:a03:c0::42) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|CH3PR12MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ac63a3e-1f52-4776-3bc3-08dc81ad5ecb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: mlAD0H55Q7UYcXGPBnLpS8WkmMY323aYTrIxUJy3awEeOZ0QLyLkiMd7BT+Pm3CwT7IwsGvl7OHyCM0sKVI+oM7yhpMH5uOEKm+WaQ9zD9YTtOH+CHVHCa0/pfTHbqKq+/ixFFP6Gc5v//5bqCWMdyBYrRY2WVECUD1/fjjQI8ZgrLcyBRbWCIoKvby+M6kgQxOrzH5Zqnn6lXNM+WQ1a4eOZS9vvcF+BR9YcRy0ZVUFrLRribU3Y6LzQeYakF8NyQI+P2SzuRrURmcK4fLIe8cPre88BrBNFWtkEB05+w3H15PkPK4un6mydf+fOvjRlD7vlVwjyPDhlcLjp02dhvCkYeIpp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)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cuusBcxMl3AY+61aX+9c95fGqvayq3KDvVPwyqNQJFVvPcC8OZ4m69jIJxE5c4iOlc3ePLLrmfFaM561y1n7K/y3XWoGPN996/QOgXdW/E8Ax/ebzQ+/ouS+GEjl9dAvpUuw77E90Ku4qzy0Se8Gqy2KoLDKRlm6uBcoXPw2ZW6KmOdfVRXkyz15rZXXGQ+VjtZzjOWoHqowrw3Ln3PtZex2nDStiF9v+inHJiWJH5b77GvgUpUBrlgiK6tBQ4goy2m9sdPgGRhaAMSio/3FId1pH0bp+SlDhjbiESbcP/0PRg3YK1wSEVe8rGlLQsXXQce3wg3RJY98ZdpsipM2T7uKxoTajIR/YNf/t6VQLUW2buEqx2fZZc5/XY2qC+7XEW8/H14141K6qrlZye5+JIrDFFRrC6mL7qqY1yjDTxPs1YCTvUa/hEivuRm3hlND8oCwVcy9BqofAyV+w4E0q+jDj99oEXohDxIhP72fmB17gAWmCXGWZJyYcKlMPq/z9VjQECreVpqKEKt0r9jG9zrzxYtGEJzHBK3N35t0xyDzlxq0IhTR8VawnIsl8U/vv7zVDbCSEg3QIixO0zb/gon9t3TS3OWQcm4bWpXmhkR9RBvpx6af1WPQiSskgcpImhKnMOjCrbVaKia0QFtpuF0AjhMRl47BCcjl4I/XVXTvkko/wl2NlvL2pmyB4idk3ka+ceIjpCxi5Ic13rty1gR7ruuRmjRL5Z242MTlo2897vdm14va/YQPPqkmC+6MZmPqE+ddG/5cRquod/4PLVl17h6KlzzlmCe9PIdvlydVurhgv5jqcFb/fmhM+9EzIFXUy8w85D5EF0nGNDb04EBBw1PsfJyd7LaaqcZUygxT6ItGJBFl0ABl1izb+4R2CQPq9i7H+TEOAi832yFTVC/prpgcEMFJg+4fri15DSjCyDm/kEYph+P6SwT/NrZBdTIIVhiBI7s3+96PmbFRco+5mVN1ckmwb+xQvBxoawlMEBeAEfFEzUbKPMTcgjV7M+2ob3kax074ScaDq3ZzeFDaiwwy07im1mCsZJxQaNvUKwpUH11WFdlxYlXoUJZGMxT5KDwPewZU35dSuj9Th1rAngo0oZqBRzAqPHlNFhUmR/gyz/irUxZ+Eupo+UdQUUKYdxjfuHfR2NeFUCs6e+bqldYmhBK6gT7r4TPFGDhV0tWahDCtkx/GvGp1RS5LcK6WVE4NwgL5xAaj0ie8ukAPYITooJN1fdM20xY15l2kgs1NMi4CZ9iLnEHmKIg8c1muXvBMjcbwh2JV/VJl6MkxvvdM/2StDH6ayLaR/t2l/fZHZGIHYs/if0xHn305HyZPaspLxVf2LtuHzpsErPvRLr4qGziXi+zCR2RSJCMI3wzgb9ALWM5LdCXjONQeIFUSFsT20Icqi4hGENa252rRbCHhgHhIb1wEN02+2xPqf3pfF4iXaUyTYspxlyZ5GBNNYDSZw8eGPNsYhlLHIunaOXNj6Yaiu0HF2/mhimge6m8b3jwTy3T9vcJWcOy2qFezaasWCa0MH8eHmdlV7U5QqGCkCYSWbMz6GT7AVklHnSI+NEq8ckDdN/KAeGKh X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3ac63a3e-1f52-4776-3bc3-08dc81ad5ecb X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 20:08:00.0201 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: g+yZVa+3YVCCDo1hdRtyp882JZJX8EyvZ8mzOCaJ8m9wnw4fXhAunoXhX8qbburY7ukcLnXq4Khvfme8tJPG0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8880 The .PHONY targets "all" and "clean" are both already defined in the file that is included in the very next line: ../lib.mk. Remove this duplicate code. Reviewed-by: Davidlohr Bueso Signed-off-by: John Hubbard --- tools/testing/selftests/futex/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/futex/Makefile b/tools/testing/selftests/futex/Makefile index 11e157d7533b..78ab2cd111f6 100644 --- a/tools/testing/selftests/futex/Makefile +++ b/tools/testing/selftests/futex/Makefile @@ -3,8 +3,6 @@ SUBDIRS := functional TEST_PROGS := run.sh -.PHONY: all clean - include ../lib.mk all: From patchwork Fri May 31 20:07:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13682092 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2052.outbound.protection.outlook.com [40.107.223.52]) (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 7B35217E465; Fri, 31 May 2024 20:08:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186088; cv=fail; b=BEMIuMygvr07mvwbMPqnKflbMCXTRXTp0pmlGVZbJxAMVdxHQurKwHAqTlv8bVAbbVfmdm5I71jrGzjFdWCU/O889nmL2yn/tHBLrzQEtrryecM6OmzJCAc2m59YQYjgBwFbEU24pJnctyjlUmDq/ygXp0OX4NFynRHkDGZTSv4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186088; c=relaxed/simple; bh=lyrdU9ywPV6tQblRjHQpbjKpx0OqtvVmhYvFxRDitw4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=kNmYoLxNKstqBNu5v86ZMUYrRf0H3lEc3/wAK9Vl86QfJDzatZa99rYa5Bu2J2KPi1lfUHjQOnHvOm1TNuMBUgE6fAJQJ+Gs8rRQjK4Ko6JP2YvEunJMN4xdhf/2UVN4hfIMnQUyU7+4n7ksqyfaeezqX54BDUwRjW/TmaeQY1I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=YARHF+WK; arc=fail smtp.client-ip=40.107.223.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="YARHF+WK" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UqQtzuin7yHAgHd3/0yXAAVPF90Tw0jVGtLh8KVCGcXGqjRaAFn2B67B+7Ot22q4AYhcJeF1R8pqkkgfvwOSjLotvrR7vLyBL5FPlmNzQbUFTANDMpRCrbm0cxySuO5uFI3YOrC8mEpcxMmNQe2KEe3KizcuOq1av2bqw20hbSgwGcaODofTHwL30n8e0Qg9u+buTlap9HlTFGdsrp2qS+QDv1Pb8wrjs6MIohXj27TlvLTBzHparqUM7Q0XEQ1iLF03hm5e4eDK4VojUm+9bgq4ZkoQPTm0JuBuyTDHVfLhaPsTGqEspnJGhvreuS0inqUuJSqBj4QsnINR3JcILg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OJoxXBNzAu3/ZxgJhtTMelWsXD27WupqI8v837F8y+U=; b=ZQueBP7SPCj0sByQvwpJBFQd1KSoQhZhlHVOZRbpHwXmKUSGnL9WEk6f/FLw5L6ZQ+qE+dHII/HrntNRfEEGYsI539PLFVGk9cweTX9bQK68aCOvi68EM/BM/D0f0ZYFiIq7dCqCMF99DwYDpUHXC3Oj4VgmtZM6ZqdYBPF0iVUq+00OyGwVkXA7OXrWJMSjNBIlh+P0r//AoHbr0TRfiWG62B9A7l4S15eo1JWKKWd8FJsdYyJfUrsytBPlXT+QWJoJKm41gphCZNhriW1kvCgDCZXT5Jgl+dZvATZuvBnArUQLVa6btm3Vf/2L+d6qcozaaUGxWbyeBTxqDagIpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OJoxXBNzAu3/ZxgJhtTMelWsXD27WupqI8v837F8y+U=; b=YARHF+WKLGM2KgyJktS/2MrEiYZ8eePa5RUGKQBidwUcVqsmDCZRFtS95PGNQV3Al+3bGOOVbZsbPKNU+Cotxie7Ndzmz9qbrriVJNOiLJ1VhSYsvsP/BxY7y7/t3JE6PImy6Jhd0JRR48yEV30t4+ctVkAvizFl/5AonvbZkeegwTOV9haLb1yGR9Z+YpNQVh6gDfYuYEXfLW+U3/ZtEd0UjmM53E3/gqfOa1ym/sxnJPFePOpH/+TIxF/LaKuVmgvyQurQvo8XixteHDYtc7ZAF+EKMo5gl8r4OJDojzfim/k/vztLM3xqqyv5Jxt/S3/d+MMxxO4HavGlg1Xp6A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by CH3PR12MB8880.namprd12.prod.outlook.com (2603:10b6:610:17b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Fri, 31 May 2024 20:08:01 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7633.021; Fri, 31 May 2024 20:08:01 +0000 From: John Hubbard To: Shuah Khan Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Edward Liaw , =?utf-8?q?Andr=C3=A9_Almeida?= , "Nysal Jan K . A" , Mark Brown , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH v3 2/3] selftests/futex: don't pass a const char* to asprintf(3) Date: Fri, 31 May 2024 13:07:54 -0700 Message-ID: <20240531200755.128749-3-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240531200755.128749-1-jhubbard@nvidia.com> References: <20240531200755.128749-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: BY5PR20CA0018.namprd20.prod.outlook.com (2603:10b6:a03:1f4::31) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|CH3PR12MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 25abace0-c4fa-47f9-f76f-08dc81ad5f4f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: IUmLS/nyXtCYPQQ5WH5s+07fXIEyD0Th33l8/Ins8F5JnJSdUv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sFtH6dEpnaUhyP19QSetmXkOYkoFzCbCfwHtU1c4z+ueAAKbigvA8PyGAoeD2qTqmr6NHCMz49LKwe3GVAQxTD2ifYLDEASalq1C+qsqzzHZ5ZRqvLsSkUJFkvVA/cTx6R9cTdkcEcGQYwo302DQvbK4T7VpkeMrSB19jg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oLSKu0ryYG0Aa7MgQwB2f0U+/V3Fop1Rsr3SSz22Vjew1LzzLF2A3SL6Y+9uhkFx80m4e7vw7zAkTlHtmjPo74ocfp6OWYyF9FWuJwkRmuwVhUy6YbaLE31aXXoTLmEcZGEZx5v0ALKOANqsN82+YlukeqGprnV+DaSXCTC2zPT6peWRCa5g3Jc2q7RFGAwNlFD/RxXNjdw32T2jmubFIuJdQeEID8nNmN8huY4WlYgTbPbK4H2rZwzf4/o+Sec2vTjeX08RXpS7VLmmhg0EcUOPuJJbaQXvZ0G40tBgQxRf0EwMpBpzvaPsQ4lBpSb5i10cTQKS5bSopmivDRXsIKBkmyt+rsXVlub3aUBEdVcsgUIXnd2iu5fs37DE53gUXMKqshldMQ8oVdeZVuRdbNd+SDiWG1fp7KQ8HqV2xywvPXhjkXnhycX43bv88scxj53Gtbqk1EWAqCkctJj86Gkn013AeZW5Q9X264VpIEln11hIvrmxZAtiPFuZ8FzJpADCx9jhKhuUU80/EomYsYFndAOpvHD/gBPfDKcpe+0rysfSFu+GdECerthn63AeEfB5R3ApxoAYCVLS08lAxJvcUertAhLxSD1KLkY098R4fnDIsGPS369tNV1iqQJWd5X7n/RJWbcLQLdQfQV5yQCkagdOMOjev0+d8Fcu3C3SkcmtHG206lafeQ4xd5rj77sI4Ah9EI+2yqdI2bTmKmetP5WTFZ4+qsdfAwFHmK6Q3MJlkwk1Fl4lXwBxcHYL+ktzjlFXcsPt4btZbA9vmO3IVM49Efm59feko6AUr5OJpmEivBblWOzJ4Vlb+HubAfyNu8WmfPm4GyOJPWstBxjTUkmddgdnxZ/6Z9pnbwX/+d6618JYBhH4lZIrdVcMjOoRUX415IJJrK3jymX04Yhrl9o9hpSuE/COuSYTqBHRSVwyJ6kfMNP6LNhccyJZqMWiq7gg4NnzV1tIxur4jB/eYiQNf6ppM1bxEAtYq+8xXZw/p+jxXTsbfeKTGd2wrx3waVR5HlAzDA7+sw8j1DdC0rF0j+5FkGwr0ncvbiPsoErUsl+M7LRZFNibAT6c073hcYkXxsE7b1i3feopi75KqAGP/OtoYzj959wBMD/BqGvsc96+Tuy84SHG506Q9pukMphld0L4Zuu3mJADpIVWWwKuud6ahJpliY44GmQyIoN/P4efS5vowjLPMk98StJlKfKWk666J2y9irdWKZLwqix9RUuN/arOvtZcXIZkHQzNWprx1FvwFH5fk/cnQN161y6tS2F6i9EjW2NZ5T76MgC+7qAUZyqWJp0ICsBOIz3tcSOvFrYx7KZiO8pZbWCfE0paBDN0F1WrXBykSpmrI/MPjYAFaR7U6ved11aBe/2Bns6gmkfU7qk2Urkj86C5cFxzBHE1loSKGuqkTrH3lqu2DeK6rYCm54Hx/6//jYpuMtBIBVSpPGGEyCI6T76N7EHj0Jsbncq1LAa4OaQfEeoOnyU5VnYRQdHFgjTg3VHiw8iI3PsQcCaq7kOhMfSmqEwssr3zboeUYSrJHa+w8FImdlxbTyYPIFnJ8YZPkPYt/85zbXWWbGQ1Iv0q X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25abace0-c4fa-47f9-f76f-08dc81ad5f4f X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 20:08:00.8825 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LyGXHVkiLc0Y2OEzE5pYKh5cIJNV0BBknrupVB/3HPsJb8qgaIGfmnzWP8bZ4EXmjMqBfHTptkLlhG9jT7eg6g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8880 When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues this warning: futex_requeue_pi.c:403:17: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] This warning fires because test_name is passed into asprintf(3), which then changes it. Fix this by simply removing the const qualifier. This is a local automatic variable in a very short function, so there is not much need to use the compiler to enforce const-ness at this scope. [1] https://lore.kernel.org/all/20240329-selftests-libmk-llvm-rfc-v1-1-2f9ed7d1c49f@valentinobst.de/ Fixes: f17d8a87ecb5 ("selftests: fuxex: Report a unique test name per run of futex_requeue_pi") Reviewed-by: Davidlohr Bueso Signed-off-by: John Hubbard --- tools/testing/selftests/futex/functional/futex_requeue_pi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/tools/testing/selftests/futex/functional/futex_requeue_pi.c index 7f3ca5c78df1..215c6cb539b4 100644 --- a/tools/testing/selftests/futex/functional/futex_requeue_pi.c +++ b/tools/testing/selftests/futex/functional/futex_requeue_pi.c @@ -360,7 +360,7 @@ int unit_test(int broadcast, long lock, int third_party_owner, long timeout_ns) int main(int argc, char *argv[]) { - const char *test_name; + char *test_name; int c, ret; while ((c = getopt(argc, argv, "bchlot:v:")) != -1) { From patchwork Fri May 31 20:07:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13682094 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2052.outbound.protection.outlook.com [40.107.223.52]) (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 AA0D717F4F0; Fri, 31 May 2024 20:08:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186093; cv=fail; b=IefZjAGaXTgKNX6ucBkHXSYHuTC5CRwjHD+fXlhSvrk8RxM3izVvYEvNZK+EmfPaMBKhGNYE+J7F8MiToIGyFVKGuj83VkC06cFSFIa/HiCNiIzv2DxbTSEpyO55HOTDqDPnrMsz50mW/MYithxb0Zcjeh+F+Vpi2Y7tsWzRc9k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717186093; c=relaxed/simple; bh=xkF1tllS7e+DZTZ9jHJSvdZ+FCkY0pPkBri0DoOV1RM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=ZYj5OKVsOPJ61SVvf8ediqf487yh07xbAWXN2gt/mEjGmYE+aLfIBGmrMd0lnyO2EXoxCI4ODQ2EFKnbtRfzo1p30qR3mzYgdxvTSD3Q0uxXoS6nD73OJ9ODmryyEl/jZ5eeTcKkS1rLkaVYIpFHDbvvqTsBKVCBcS1eC4M+0ho= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=tYtzQq/B; arc=fail smtp.client-ip=40.107.223.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="tYtzQq/B" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OP7SfuQwCRaGtLJw4ZsfJkFN0k2qBjbAY75s3Pn/HN1eFk/CcfOaGyGfDNL3oXOIbvpdAjOGJjvUd2Y23Z5q2je9MSnQyiFUuprBqoq5dMutP5ZbyGeTk1oEPPuiu5LU0bkyH8IFBwi2l5Bn2SfDs1KuYbaZVRdDL8mYxzSuPgtNOxo8tJ01X41SsBeNau9cCTNlq2Uf+U64KIjb7C7xk9YobBWt3ek5j0M1uZJFIS4FpqXJwNiXAzYAUz7FZjzGQpqc0NGPX2YzFZWipWT6fu2g3cwqQ+baOPXom7y5leUDzK2TialiphXBLZ3cmGCnSxit+PTbdrQj1kGvOmQl1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kec8cUwqo8PXdu5+3RBtwP8N5SJ9HTi/RyoulnN5bi4=; b=CncQB156/S4gbS/Y/6EkAR81LiScEDAF1y1oI+tLPxbfOHM2vBeRPq5HdbnXO8mKit0+kj8d7xWGM/HC2Kn+SE7Wo+7p5uoquFOEsHXEeUAnROuPvUbzYMtN2H6kQyFYu3cxfG3KoNeaACLty8YZ2HKvTSm3lj5BQ7ipFYrc1rtvqK0AnUbypH9fQMeYHf9j7A5Ld2APVB+JwwH0NDermzzJpFmHS0FC+sPGFfIzjcDpUeuQ/ymgAy+u9GrCnslqe8GACxlQatN1MH5CHStllx+3nXmzpgapfU2dnVjMRYWpas0ZHLDGpcH482CPf+07pSMW0FD5IYf1xg7ZX6kKoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kec8cUwqo8PXdu5+3RBtwP8N5SJ9HTi/RyoulnN5bi4=; b=tYtzQq/BobCI6EX8YHbd+W6oiOEL3mFZsPkoh1+NBuWGT+lE9SCTn49wdzhDBZs0klC2wd6kQNV70Dki3VCEwuUN+ze+MfXD3GtAlD17YBf+0WybVmkAXWCXLxNGVZlD3LfcQRUs8f2GiRrIyMhTrcog8B+3HekfeF5yE/Bqs1n3WtW3awA8mG7OoHZehbb/Sj7NOue2KpDG+JYEfIsGtph7+htBtwE3aLvhobuhR89v+bD9aD46qr2HL4v/fTpAf/RmGGQC/OcSgUmsHQWaVCS26rErGEdlzJol5mB51pxyXgB0gXxp6yuDClR8sp+qiPxmkjFKseqCbaSAqmuaEQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by CH3PR12MB8880.namprd12.prod.outlook.com (2603:10b6:610:17b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Fri, 31 May 2024 20:08:01 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%4]) with mapi id 15.20.7633.021; Fri, 31 May 2024 20:08:01 +0000 From: John Hubbard To: Shuah Khan Cc: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , Edward Liaw , =?utf-8?q?Andr=C3=A9_Almeida?= , "Nysal Jan K . A" , Mark Brown , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH v3 3/3] selftests/futex: pass _GNU_SOURCE without a value to the compiler Date: Fri, 31 May 2024 13:07:55 -0700 Message-ID: <20240531200755.128749-4-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240531200755.128749-1-jhubbard@nvidia.com> References: <20240531200755.128749-1-jhubbard@nvidia.com> X-NVConfidentiality: public X-ClientProxiedBy: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|CH3PR12MB8880:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c8d40b6-9056-461f-6020-08dc81ad5fbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|7416005|1800799015; X-Microsoft-Antispam-Message-Info: tEF/tLgv4sa5bXDoZgd7AX6ndBhs1pf0EHRmLjTjRSkxo49jwNAw4lB5pJ7CDWTZ7zV2nzO16seN5cyyh7KGDiTeVDrXd2Q3+wapWOtWxxBYTz69jLUo0N1CCeiFF+4sqGwmcb4h7iuiO9uU0F4axeBDPFuk7g2qjfmGiyElgkUN3AXQMSNR61iahpDLgTCDkZNwSGRJn6/csMZKS2r0czOzBSCw1sTxpPfhwLj9NGy72dPJAVxR7rckTAXLOERLWxgI0UKoEAJKDv9uoQ5Fd8fgUzVMLCeIb0/jOZMkP3qjKkywt81dbi7zl52coPodaV+F5KUYwETPcuqEyYIXIxONxpTDjY0nBwV7F3jHi1NSTtJZ+sEGUPhVhNaoWUrSIjl1QQdtCUrXIQtkXmhKA9gbmOJcVZ/oCfi+Dc4oDOWTNBU89yWo2o0biYneKGrNM/wql04MANY42Em5NKCcZCrgRkdVMWjdcPjFp4OW8gAaDTmOHGLs7HREAo5ZuHznVgRYcj5KSq+L9WgArCplmOm+O3+tmOFJER/aHEuq5kTJ/RzcRggDlJs1o3UuFl4DH92wde5T4gbME5UNgwHrxaAolj50C7g8+xIpSrkPQuUnxyicAfMMR8AbaBBc1vIE6/hzKdAPlYQ45GCPTt/iQvNtGRtRGDLCTNCRIIhOGb9sQEgdMixnizUlRuqoWDmOpBjyIOQ8Lc+JyTHSuUMNj4d9aU3fHrQ2mmb4hv7Bib3fp+tPl65dg2A8xwpyZUyAdmguJlN6ketJ6Zxd8MAK8/FaiZfIo4WjpkZvT4m7TcWSN8FpebQ0YKXbfqCgupPN1PBrbAwZlOBqmNEpSTTJkOsPrGRGtfWCJFqbr7vuhK/rvVqyKdS/DOFaBJKRllUZR1N/K7gWi1FmJPADPnT9MlmFEG5Fsl7rJ4TCd0uYHWGDH4oWgvrz/coB+rBv4qZgH7NNI2gtCbhz2wxQmuBGEDrznDSZmxo6FTRyUYlgQ9F7Utjyi6c9RPQTT7LGvwCDf75ipMQqsqoCF+RFOqk+6wFBDbSoeiQnchwb7Ri1zvfHsFlUPYF71ToynViUzbvM5DhUvrKhHwvb9nBhiMkrhG3G8a63A3xZwwW1OHWau4G5cyHQUeUFDiTZetppB4+aJ4ZZwYP4rabrPJXiNJmp5VHWCnB6XCtk7MlOHKD2EaDojYriCAUKDaWTXxc0raE0JwkaOcdxyvv4Aee/uaj/yfj9nz62MMX+fTk5rpl10nKoMwByJENuV7qDj8wb2S7ieaIijdye+uUe6YQRr11kow== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData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w7615OEP1IMfeMpfwzD3V0P7Zdq6+amvOEwKtZ7BLTjNLMOcIUOB8sZPN7QAZwCUhwQA5eHcB0AUzl4Vy6r7Muaqf0i5bjDpGeln0yjgcNJhJRn2IKEbA9cbyYOCn8iCpNbLyAyf+k8ASpV6p/pl9Oi2DPrVbP6r+aY7ReFfNDcPQs7JatQs24QULKlW321nkcFZObKLtPw5VdRCRIVeH5r2m8axGFQjzEW4k7lS5Xono4zIONSQlg6bp+4onukH/CU2yJT36ZbgKcpdvra/wLnBHWoHXQpO0iw0qLH0HsqFSU5YfMLTpWQBicO3SWjk8gy7cBc+70yJxcJz+Ok+tW8lEaaWIQqWsFLaP+RuaIh13DuKo+3eZR3yNo4PDcZKnjOwavWIkou+domeDfUUM6hU6qxa4eNvQCj2MMbgXLL8ZilkLRoLIHTl0nww1rQrtDb38tZQzf8/r0KXkJVVRRwZaLYGzz9TseL0WlPjQNVTyPhsLlIuvoq4MTry757S9b220XjqNm6IWmTrIQy6OuB9VjeyYq85N+h2nHdmOk1qg X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c8d40b6-9056-461f-6020-08dc81ad5fbe X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 20:08:01.6616 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TSnSRU0lxLdPUunJKyR9cxI6LryTrSwuOnXA0qmF//1TdR1S4h6XcfYL4DSSSoADjlCUVMDj/Dp0jeEUcg9lkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8880 It's slightly better to set _GNU_SOURCE in the source code, but if one must do it via the compiler invocation, then the best way to do so is this: $(CC) -D_GNU_SOURCE= ...because otherwise, if this form is used: $(CC) -D_GNU_SOURCE ...then that leads the compiler to set a value, as if you had passed in: $(CC) -D_GNU_SOURCE=1 That, in turn, leads to warnings under both gcc and clang, like this: futex_requeue_pi.c:20: warning: "_GNU_SOURCE" redefined Fix this by using the "-D_GNU_SOURCE=" form. Reviewed-by: Edward Liaw Reviewed-by: Davidlohr Bueso Signed-off-by: John Hubbard --- tools/testing/selftests/futex/functional/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/Makefile b/tools/testing/selftests/futex/functional/Makefile index a392d0917b4e..994fa3468f17 100644 --- a/tools/testing/selftests/futex/functional/Makefile +++ b/tools/testing/selftests/futex/functional/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 INCLUDES := -I../include -I../../ $(KHDR_INCLUDES) -CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) $(KHDR_INCLUDES) +CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE= -pthread $(INCLUDES) $(KHDR_INCLUDES) LDLIBS := -lpthread -lrt LOCAL_HDRS := \