Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp188382lqh; Fri, 3 May 2024 19:14:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXCuXz8cUvpWjOUZKbFEVFOhpk3XhyaIL/wKbWoHv3kMzN+vMOLG3FSh57XvrtTsvePLa2zEzAVWxmNZepVZFcYWs8CV5N+J5AsDankQ== X-Google-Smtp-Source: AGHT+IER+nL/ICBQVRf3XHJ9DoYiChRQ8OwQD+pNsKr8PFJdF/8FVKhIlHPFy1YtG2vIBVb+c/uc X-Received: by 2002:a05:6870:214f:b0:23c:c9bf:8316 with SMTP id g15-20020a056870214f00b0023cc9bf8316mr5125830oae.23.1714788849859; Fri, 03 May 2024 19:14:09 -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 fi37-20020a056a0039a500b006ecf1c1746bsi4092856pfb.56.2024.05.03.19.14.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 19:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168492-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=Q8h2nQZx; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-168492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168492-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 DAC31282A47 for ; Sat, 4 May 2024 02:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38B5FD304; Sat, 4 May 2024 02:13:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Q8h2nQZx" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2063.outbound.protection.outlook.com [40.107.236.63]) (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 629411FA1; Sat, 4 May 2024 02:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.63 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714788819; cv=fail; b=OsyrSqSn4jRKUZvzay9wXiQu3kCGDdJ7kVCcw5cgasg2UMUnPSvK9DXNx45LJmZ4PXgN6izMiT1NDBMcrUTExetPYuBXOGR/uGF9lkrrFiRfSYVB7+/UzRJdr1cGKlXmc+Uzqgj5R564UxiQyVuFhebX1qkIXLrRUcDqbG26gZo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714788819; c=relaxed/simple; bh=EzWNV42aokbFwCb0Ps+kTsAr8JgD9UP7D5/MX2Yb8so=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=vAhQYmpkwFCGCVkaSnI8bStMMAVlUlXt7ujBpad2rdifCmXd0L1CDMBYmPFFN8kjlpUz6JXW2sf334AQFoFTUklI29hysXFxW3X3y5FYyVfMJ8C7k0Wzf/XDBU2mATQ+UWjoCakDTjXUi4mAhUrFbEzWZTPxEnd3tAFrbJPUBMo= 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=Q8h2nQZx; arc=fail smtp.client-ip=40.107.236.63 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=hTRBiQkUPmSQjOa1GnygPp7xJ9mXfyAlxXqXdha+XHdyJQrMaG/YEsiX3Kp3mLw73RjA7ZFI73MzybcZnpvLAcf4ZAnaQJhIcHp0A+oVsettOcNw5Aqu5OwsjNw4PVoVx7YCQEPVfZAVWgWwKVRVyDiXTvrt1+SQGnJgkzNZ3pul3cfWsGfqq/cA30e8gh5CWwDBoqwP7VG81px8JVPAwz2D1BWLqpCc3A58pw+OVR+5R7K4VnwnANPf/1mKtgxzbXoswci4HCdGzUdZHUYeSHlvBwV3+lj9gNooJvp4uZamtIkUad3b/Gsaev/TNl0FZTjLrNlQQ9jspvyz1W9W9A== 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=r6IW/AGyRyhorJNSS/w2he1Rb1GVFfaj9dnJ/50C+qU=; b=Vg2fkKxOq3Hz56BpnrLKpVRCrrbyOJtOA1Fdp0lhQMr//CpZlRQSHj2e7tm3b3zqq3LVMqqOGVWEsuzre3lYzeS5BitzuIbIHFv+phixSqlVDWLWvBMFuAO++EuCZF+z2CH/TGPqbZnSdJUz6cm9UbXNojkLX38/ZmzUKjbj+UFKRcCpBOyrM9sesZDAwC6RJknu7RQZ1sVkdJjA2KCXICa5A2naMguFaw809NdVuWIagUbS/zz6UH24COSVG3/hEEFcrd7CAamsgpgY4FKYYIglkVlO//+H4NHdYpKM04feJRYjLT8SzjkzEBsUeaUu9ZFwIptOjK6MxhK3hkSO2Q== 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=r6IW/AGyRyhorJNSS/w2he1Rb1GVFfaj9dnJ/50C+qU=; b=Q8h2nQZxRTOyY+8UpEnrId+MKfAPDU+0sb7rxzpk+C5ZiFucQDxeeG4Qk9OucrtijrhIHGXJg6GEfQWrHFwwpRVVr3MXzNz7hm1SU1fkt5UA9QbfvOcHi2C76CG6i/SprxRP2UBQ3lEYgpMGzwIoUcKXjyaiMCUO99Cl25kGzlAGcZ4XBhd2ZOQA/RGB0jLHHI5IJY7+cj3j4xyT0qXK6s584AB1Je4OouGHmAHyQNMCllU1GhXooJs2ISETBHZ8ABhg9xBmOIkGvp1xJ5YhhepNL6F7TY5+hTLlYabbcml2GfIW2sMhLeNTtV4S5ObdAyJ2fVRZRALc35VW03+jlw== 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 DS7PR12MB6070.namprd12.prod.outlook.com (2603:10b6:8:9e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29; Sat, 4 May 2024 02:13:32 +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.7544.029; Sat, 4 May 2024 02:13:32 +0000 From: John Hubbard To: Shuah Khan Cc: Mark Brown , Jaroslav Kysela , Takashi Iwai , Ivan Orlov , linux-sound@vger.kernel.org, Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH] selftests/alsa: fix a build warning: return a value in all cases Date: Fri, 3 May 2024 19:13:30 -0700 Message-ID: <20240504021330.33429-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR06CA0029.namprd06.prod.outlook.com (2603:10b6:a03:d4::42) 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_|DS7PR12MB6070:EE_ X-MS-Office365-Filtering-Correlation-Id: c30daede-0714-4b04-de27-08dc6bdfcbdc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005|7416005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sw+mFbGWAQS9XQpw1ipEjB5MMYyABJAXswgNnO+U2x7KL3I3eAdvcXMprM6+?= =?us-ascii?Q?fP1t04q3sUNJcGboCVTou4BOqFjyIHEs8FVzYYGG0SIhf0El1LXpbYDS3RPx?= =?us-ascii?Q?yX6YT5J+DUsAxa8/CqWafEC2K78cqIUjvs33b8QYB4OM0xdJ7BIBMxrLhUeJ?= =?us-ascii?Q?gmiMmACEgilp0L3nlH8uPHha+on/uIbS5XfpFWeL9aboRKR3JasI6NkVve2m?= =?us-ascii?Q?nyXiPL3SzrsxAqSuRVqllVQVQRRzoi4mA7clLZzKuB6mjRp67DkFGQJqtLPk?= =?us-ascii?Q?iYtzwL6F0f7iXY1oldTuvzZqQwUQuX5OIz0Nmmt6WV7KGdBHPWUwMtQPGYt8?= =?us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ukLg7Nj2RKiVdM1VNB9aQEcZSMiddeh4oH5J?= =?us-ascii?Q?XuE0hfYghKjqfnn9sa6VvR3Qw59lfN1rcJhtP4S9rA=3D=3D?= 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)(366007)(376005)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?JuAP99HG7XkCccMGahz+87uYOeeIhsH0fo6zfexOrWzsnyOBPe4iY50xU9QR?= =?us-ascii?Q?fECa4wB2908LLDxLKzytqpGBp9K48FrWYr9sRZGybwzDu4CLozenz7SGaTTt?= =?us-ascii?Q?AzMEuk9+tw+HiX9lvAux3XeTqw+Inh/tzqhNUZI/F5dRfHWyDCQgUv0yJed0?= =?us-ascii?Q?sNNMDYY8sFqjZdRxl2fjFitJCppYz7uPTjieiiawTtFwO0dmuLyNLSfGWWZ1?= =?us-ascii?Q?S5KOGRkG9p0vIGgyjeGgYSm6T+99kY4T/RxZuAu2q8b6uBccNJCzVaJJXiwD?= =?us-ascii?Q?8MH8E/FYdCrq0H+mddHsHrlrMJNnhyxqN5vp6o829gsgIA9m+dfqNa8JGM3D?= =?us-ascii?Q?lOnUcubxP1Ehe7QTrNVN04RHn5t87LWVNQvEKWa0fsh3OWslZuDOuT+U46rW?= =?us-ascii?Q?BuIT5I9YTFx38Ilqj7jhDHvO2B9Pyu9IAV57VDAECpvGCS42tAZPx5VQE6IZ?= =?us-ascii?Q?ad8guxkWKDETYRN+Q6uJY6yXH2PGQU6hKT8eOraCTnhi7zHsmtkVQV3NNl3A?= =?us-ascii?Q?2ddVNnC7S7W956jzbf5eLsEgPcU39Pzr9tOG4LqZRPOQc1wLpYzGE/F45IeH?= =?us-ascii?Q?LegsyY66+8eMLE7O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=?us-ascii?Q?869zfsndsmL2qmW1CDU5w/zucFD6IhqAfPvWd/ThdycIhiZKFQsDRw7UQRG4?= =?us-ascii?Q?f9y3J9DTHBBi+/oEbG/pHmF40T4TApb6g1mWg8Sx?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: c30daede-0714-4b04-de27-08dc6bdfcbdc X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2024 02:13:32.2806 (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: 0AiRmrEw6VfzHZDkDcunST584lN/OZvmrIsrGxmIpOQTmVBdwdav8PxTFYi8U1jCgsuXYB0Z5TM7pq//fTVSvw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6070 dump_config_tree() is declared to return an int, but the compiler cannot prove that it always returns any value at all. This leads to a clang warning, when building via: make LLVM=1 -C tools/testing/selftests Fix this by unconditionally returning the "err" variable if the code reaches the end of the function. Signed-off-by: John Hubbard --- tools/testing/selftests/alsa/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/alsa/conf.c b/tools/testing/selftests/alsa/conf.c index 89e3656a042d..0109fde53e6f 100644 --- a/tools/testing/selftests/alsa/conf.c +++ b/tools/testing/selftests/alsa/conf.c @@ -116,6 +116,8 @@ static int dump_config_tree(snd_config_t *top) if (snd_config_save(top, out)) ksft_exit_fail_msg("config save\n"); snd_output_close(out); + + return err; } snd_config_t *conf_load_from_file(const char *filename) base-commit: ddb4c3f25b7b95df3d6932db0b379d768a6ebdf7 prerequisite-patch-id: b901ece2a5b78503e2fb5480f20e304d36a0ea27 -- 2.45.0