Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp614786lqm; Wed, 1 May 2024 10:14:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvyZXX8q4gpkux7DOc13AWdBBFxbhDrshXQKTheaG4aBWdSKGcLKJgvexEN/zh/1NcJIVKbbwK8KAua6Z6/IO6e/i/f2kiKm7Wkverwg== X-Google-Smtp-Source: AGHT+IFpDQjOzRMMGxvHIPdHuYynI85WKS+soDpCiShsBz57nPVuqqIJViGzlX1GSc0eekEoC8Cr X-Received: by 2002:a05:6a21:8183:b0:1af:4e5e:307e with SMTP id pd3-20020a056a21818300b001af4e5e307emr406944pzb.22.1714583673831; Wed, 01 May 2024 10:14:33 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j27-20020a634a5b000000b00608e9754056si12786865pgl.133.2024.05.01.10.14.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 10:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165631-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=@Nvidia.com header.s=selector2 header.b=mx4f71EG; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-165631-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165631-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.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 403D2281B1A for ; Wed, 1 May 2024 17:14:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7DC318C08; Wed, 1 May 2024 17:14:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="mx4f71EG" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2082.outbound.protection.outlook.com [40.107.236.82]) (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 53C7914012; Wed, 1 May 2024 17:14:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583667; cv=fail; b=APulUF2MAJ2sCz4MHEp1LHS2F+/UEDEfK+n1/Zr1zu3Xiund9az1ILhaZsGYapCE81fGCbY1dRzgzZUs35Q2O2upcS6duqMpn0Ily7/EpYum79z1ARolRQ38muvRcgg68Nipys3f/9bZyPbRCJugUKUG7MnvOAT1and5FpjOxKw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714583667; c=relaxed/simple; bh=zjtrgpIp2X3M4Dgz30xld9WSKejk3Q5v3FcwhSuNUS0=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=kNMv90qxqjZANDy/MKYV+rISpHf6Bl7WxXw2R7PNtVc/+Ptbe9nm1zzIBw6/KmH6pYmEhW/oxS5zoFTpM12/h9jFphdAO7Ul69rBeYux8sYUHhTgGJrGOBRklZFtlIRVO7WBvb+Y7qNAQSpop2v1Np4azd737HuJJ0mMpHlZSjI= 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=mx4f71EG; arc=fail smtp.client-ip=40.107.236.82 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KZ5vMG6uWFHZFSuGt5FdNoAqP9lY7NrvNa8oCl1VzH/tYoEBqQHhP+48xO6khb+321ZqXjjc9VlpZCx+k8xRwvyrFetNDwdZYByF1pbEb+tx9a71/BbnPPSjTfHMokydOJFKU9P9KB8eOLQRP53jGCNYpo45thF7bOpOM/NB9CZSJZV+x+HW8i5nd4PrLMTMCUy2uUY0bXosXyfoxYJbuAEuDFka0q7xvzAW6YZZMVUIRzeAg5B0pHgtXZSuEyeolYuG6hnB+CEo8xdeDatpk6sVXqrjxJtz/veLQCCsxwS5QqaG+J22f/dxAOMTVZXmwHGyyq6S5s4d9eUcvG9QMw== 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=qRgPck3ub2xtx2rXFl2+3E78FV153Em99LUlha1hxJs=; b=mVxR5F6dqDcjio/oRgny49WQb25U+HNsehMMsclgqVTjTKIc2NxQWjU/1pT7LU9CyatWlxLYS8WMwp8XBrrTvVxxojYizrBBxl45VMpAXE6GisXglSmjx6Rggf/gx7Hm1uQv9ALwWBBUZV8wL3DRfIeGOYRFrVne6RG/Ikht4m+hNf49Z+0nbcsNzGwg79A1v2DLN1BcZu8ydCc/JlhFMKLkU4WiEad9rFEinmRBtoKPcDlD7NvJ1JMEYxgRHZcRJp02f0Fgs2EcFMY5XtJEK60PHscBzUIDNlJBxXt+5X4KoVj9bfJCvM9/LgsG+iU2Ha08InwoRwo6fnijcHHNDQ== 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=qRgPck3ub2xtx2rXFl2+3E78FV153Em99LUlha1hxJs=; b=mx4f71EGRgtFFV/IeEjG5MXcpN4V/QsKEpmf8Nxfi/Pf47FSt91IngcP/Hf0wRXz0zQd+H9ucXoA2vs6sHdQJwMlDuV7nswWgxpB+g4LgXwDB9Iflltwt7/EczCVLURvSMHf6SgeXMoiL+XQ5c0Y42/ASKqwhSEmWWDVV9JgSGY9uaR858wHyAzReSsHyDPmo4kqSQAAT2s3xoFSnMuZvd0IEOncMToQEIPZRFuJDP5MutleGbNkH5/5nmhPsfNhiIX3giB6ds8kmv94qUVachHGukm2sDohvRlOdToSoQq3s7wXkDltkMhR61P7aleXFGHkO0QZ9TCnfIheEVReNw== 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 MW4PR12MB5625.namprd12.prod.outlook.com (2603:10b6:303:168::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.28; Wed, 1 May 2024 17:14:20 +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.7519.035; Wed, 1 May 2024 17:14:20 +0000 Message-ID: <26435372-004c-4f8d-b16e-a26a1806147e@nvidia.com> Date: Wed, 1 May 2024 10:14:11 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/harness: fix many "format string is empty" warnings To: Nathan Chancellor Cc: Shuah Khan , linux-kselftest@vger.kernel.org, LKML , Valentin Obst , Kees Cook , Nick Desaulniers , Justin Stitt , Bill Wendling References: <20240501020813.264878-1-jhubbard@nvidia.com> <20240501151343.GA1018661@dev-arch.thelio-3990X> Content-Language: en-US From: John Hubbard In-Reply-To: <20240501151343.GA1018661@dev-arch.thelio-3990X> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0168.namprd03.prod.outlook.com (2603:10b6:a03:338::23) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|MW4PR12MB5625:EE_ X-MS-Office365-Filtering-Correlation-Id: 517832c5-0fc9-4cd2-6804-08dc6a02239f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?cUhTVm41ZjY3aDFyblFmOEUvVUlReUdhWVI0aHBSTDh2L1VVSko0a2phSEIy?= =?utf-8?B?bjZ3akpMZ2Y0RTltRjRWeXFXaUZNNkU5cUJFOTJUZGw4SDc0dktsSXh5a25Z?= =?utf-8?B?R1NiZWFaYzMrTzJDUTg3ODIxcWxVbC9GY3QyNjV5WXVqeFVQSkFQNlBWVzRZ?= =?utf-8?B?Si9EczdSTUZpbUZVVWM0VXV5elowbkNTYjlhRmd5M3JCQW9ISjVqT1ZxaEtF?= =?utf-8?B?MW1qQ1JIMHAwWUJRQ3hoZ2Evd3pHS1R2VTFMMDdSRis3K3JxNkZBeHNibTAx?= =?utf-8?B?SXdLSUZKcFhFbVRNaTRBYjE5UzhZNTd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1Y3ZwejUrUTNlVmlFMmwvcGdreTlM?= =?utf-8?B?ajVSdE1mbFVJNGlFT2lzeTQwMGNwTG01bFhKYlhTeUZCNHY0dkUrQU9UeVJF?= =?utf-8?B?dWpRbjJ4dDhQdVdlQzE0OXE0b256WU1hQm1tdmZLWlgvb2VYV1pWYlFUeUVK?= =?utf-8?B?SGFuTnVQdWFacnJ0cDB0MlFZUUpub0RkSTFNeHFkTmsrU3JsYzZnV3hKb3Ft?= =?utf-8?B?U2hGL1crVUZlVlM2L3N4NVRkSU96dWVHOXBPcDBUcUtDbjhIL0JpSDdqYlo4?= =?utf-8?B?SnppZG45ZTFhbHVZcmNTK1R3YkdhZUk1S0dVOS8yeGEyM3ZDc0dNaS8zOGxa?= =?utf-8?B?Q3RXdnVLQ2NMbk55WUpHeW00bHI2WDlOVElUbzdzcWQ0ZFlMT0ZKd2JJY3Bl?= =?utf-8?B?RTVLeGdKQnBlRDJKb0taTGFpbkRmRG1QOTFFUzU4aDhSckpDWlRLTDZUUnpY?= =?utf-8?B?TEdVSlBEV0NSS29USU5yeHFTelpBTmczMmNIRXVPQWJVUEw4M1FWYWRRPT0=?= 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)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eDRXNHNpNTVzZklqaXZ1aXc5M0x5MkZRaUFJWlRjWWV3YklmWk1mc0orZXND?= =?utf-8?B?blJHNVY4OFp1K1JrdVBkTlRKaExzdW1RNmw5UFZQTmczM3IwWkNVY2JUZE5H?= =?utf-8?B?UFM4Wm95QWlReStreTlqRWRNcHJyR1JCSVlvQlVGSGRENlBEMjhnUjdQdGdl?= =?utf-8?B?SGpwL3hKM1JUTXJMcEd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yaGtLL09QQk9kRGgv?= =?utf-8?B?NndIS2pQNWVWQ3llVHBDT3pxcXJnYi9BbytUUDNzVDl4MDQwWnVucjZMR0VF?= =?utf-8?B?MnpkK0ROUklhdnMxQnhyMDJoekExRUFsa3h4eDcrUEJrUEJBTkdHaVMrc0Nz?= =?utf-8?B?S2xHODlpT1NBaVVaNzhTckpmK2FXOXpNVzZRVHN0OFpvYnEwMVZtNmx4RWto?= =?utf-8?B?M0E9PQ==?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 517832c5-0fc9-4cd2-6804-08dc6a02239f X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 May 2024 17:14:20.1117 (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: fbgLK7JSu8481ukBr56SQCeSzROwxbgQBPkHwXkaU0LQQ74Od1rLOTRYRJa8f5GjYRBY3W+48DrZzki4+MJE8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5625 On 5/1/24 8:13 AM, Nathan Chancellor wrote: > Hi John, > > On Tue, Apr 30, 2024 at 07:08:13PM -0700, John Hubbard wrote: >> In order to build with clang at all, in order to see these symptoms, one >> must first apply Valentin Obst's build fix for LLVM [1]. Once that is >> done, then when building with clang, via: >> >> make LLVM=1 -C tools/testing/selftests >> >> ...clang emits a "format string is empty" warning. (gcc also emits a >> similar warning.) > > The warning you are describing here sounds like the same exact one that > commit caed8eba2215 ("selftests: kselftest_harness: fix Clang warning > about zero-length format") should have addressed in 6.9-rc5. Is this > patch actually necessary? Apparently not! > >> Fix by passing NULL, instead of "", for the msg argument to > > Because this text is describing what was done in caed8eba2215... Yes. I took a while between discovering the issue, and posting a fix, I think that's why. > >> ksft_test_result_code(). This removes dozens of warnings and a few >> errors (some tests have -Werror set). >> >> [1] https://lore.kernel.org/all/20240329-selftests-libmk-llvm-rfc-v1-1-2f9ed7d1c49f@valentinobst.de/ >> >> Cc: Valentin Obst >> Cc: Kees Cook >> Cc: Nick Desaulniers >> Cc: Nathan Chancellor >> Cc: Shuah Khan >> Cc: Justin Stitt >> Cc: Bill Wendling >> Signed-off-by: John Hubbard >> --- >> tools/testing/selftests/kselftest_harness.h | 6 ++++-- >> 1 file changed, 4 insertions(+), 2 deletions(-) >> >> diff --git a/tools/testing/selftests/kselftest_harness.h b/tools/testing/selftests/kselftest_harness.h >> index d98702b6955d..456b8694e678 100644 >> --- a/tools/testing/selftests/kselftest_harness.h >> +++ b/tools/testing/selftests/kselftest_harness.h >> @@ -1207,8 +1207,10 @@ void __run_test(struct __fixture_metadata *f, >> else >> diagnostic = "unknown"; >> >> - ksft_test_result_code(t->exit_code, test_name, >> - diagnostic ? "%s" : NULL, diagnostic); >> + if (diagnostic) >> + ksft_test_result_code(t->exit_code, test_name, "%s", diagnostic); >> + else >> + ksft_test_result_code(t->exit_code, test_name, NULL); > > but this diff is not doing that because it is based on a tree that has > caed8eba2215; instead, it appears to be a completely identical > transformation? > It's nice to see that someone else had the same fix, anyway. Sorry about the noise, and yes let's please just drop this one. thanks, -- John Hubbard NVIDIA