Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp922624lqh; Sun, 5 May 2024 07:53:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhs2Qe8CYZ7fKs0fb7h1kfTLWiNZjNcSfV78I5XHycaker+Oe6cXR3aT3tH+9u14q71buHTjR+VNGYgwWUQm8uelaVlKXzkdxnsoEJwA== X-Google-Smtp-Source: AGHT+IHwrgTjpgGFr+zCly/gH4RDiJL0txl68kfz6PMai/2mriJyoz9Cy1seJTVjSCH652fRZkhb X-Received: by 2002:a05:6a00:987:b0:6ed:7684:484b with SMTP id u7-20020a056a00098700b006ed7684484bmr9527232pfg.27.1714920786180; Sun, 05 May 2024 07:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714920786; cv=pass; d=google.com; s=arc-20160816; b=MECaI5LswoPYwqJxz3ZnXA5czEAlyWdNUY4WWe8udWMyaatcLFbuEzMBU9mBslXRGE 5gB+Svyp8YOj5Zm8Vvsh6m3uXMAt/p5/pFTcN1qgEP0wkAMpjKUB5aZ8oHA5xkh4XZ3h hHageKiWSh1dlUKMTAmdTYjt13KdEYv9VjsedNNfhwisXphx/sX0gdybRmwNUAHwYreL Vm/Y1jjMInG87SRa9wPq/iDEpEhHNhm8KnULFX6x8Z2tbzqXnqAiU7ssUwFZJjQuj4Qr QO/4H4vEsuQzVOj+bCovTnBvCve698/fyqtK2yenQytWIWi8upqw+geqHb3UxRpbRSSq wK9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cLi/OD6Nv4GmLWixjLOhIwm9E52Ae+QytQD8gX2NIB8=; fh=2pffZUcYEFM9oTIGfP+NPd2A6e8Mhrq/lzmpq30DQEM=; b=IwER20nl0UY0BpNJKXm+f45kZ5nE2i4Ba1fZXBJWL1ZB571MGF1/S1dGaUg3UIXie+ zVTKkdqeRQXA2DRfuKY+L30t9PMcwAOvRw3VE4+uZSlJuPOVPZF/Vj2HPSsPX/WTmpqc 8pHhcF2oQVKMq2juFGt3ob67yC/KpE/JmoBNr3EYIGcuWckGVvCQ7tjF5xCZHDmkqOCF GAR7nNmDj39Hh6u6CJvazxEUVeYTbmzQyOPmTpOxAsOyf5U2+cGsRmMSolfQjrUKOyRY A1uDhrr+KTjr+NfD9nD9yBhrqpK4vKvooJK3STeC8vQiHSawMksDqIwutC1AIyHz1zRQ dicQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QI52Dk0Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z3-20020a056a00240300b006ed4288276bsi6910119pfh.173.2024.05.05.07.53.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 07:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QI52Dk0Y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169021-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C5432B20ECE for ; Sun, 5 May 2024 14:53:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFEC92D638; Sun, 5 May 2024 14:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QI52Dk0Y" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0C57A1E48A; Sun, 5 May 2024 14:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714920774; cv=none; b=rxr++/w1vLFFJlCQLyMomgPGTbtzN6Pvq5x0GqYzTRDTRbdf77vAzWPRyZhNQXjeT1lN3OPLTNScRdwOIjkC9iM0idwFRaNIwLHh81s0JiZztFax/u8tXewtjn6TG9+4CUWRZylaw0BtX9nZMui/mZZJEq18ZmFVdi0DfOEM76Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714920774; c=relaxed/simple; bh=2KU9PdnxsTmlZXzYE8CTMxfSaPGkR5IcACPvprUSSq0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kyV9OmAMXEFK1qMtrDskQ4ahAnRfKkVAb6/lwnqmAjuTiOAfO7D+5GNgmWZ9KQkJEAiJUcTHwuplt0aanhJn14OqCJNvK4wpfSwPV0oYAKVzx/mghLNMUN1W1v0+c/5Mnhtwx80IY91V9s95fdspvv4QPZNRlaWinzwfTInvciM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QI52Dk0Y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FFB0C113CC; Sun, 5 May 2024 14:52:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714920773; bh=2KU9PdnxsTmlZXzYE8CTMxfSaPGkR5IcACPvprUSSq0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QI52Dk0YUZc7D+PeFsxlJUIDmpv3vsEMhjBn2zw+xFlLNqeE6JY0Ze8xufnRyBdYN +GqdN3jdJ1h7hZu2crL0ETWQKfpnxMoofqpcZJZjJkD06jIfs3J0pFfK+zi01Amb11 85RBEDfZO5FfUz3xrotyUUD3js3REtpmCFe847aLa7E6IDb2tvQLwdWdsQCVZX1WPT r0q8WAh2+65jymiZO2XOvBL4nh/viqDvmpFUDC9s/aQNNluzrf5JSq7PycFFYly4V8 ztBGAtCp1GLaPtLIf1IMLgAhXpl6ZDUks3a/TCwV3kJnzNU56kns6zLpvlfe3JC+Al /o5dsaMkHtiKg== Date: Sun, 5 May 2024 23:52:51 +0900 From: Mark Brown To: John Hubbard Cc: Shuah Khan , Jaroslav Kysela , Takashi Iwai , Ivan Orlov , linux-sound@vger.kernel.org, Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev Subject: Re: [PATCH] selftests/alsa: fix a build warning: return a value in all cases Message-ID: References: <20240504021330.33429-1-jhubbard@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kc7/Yw5jYfcwspOn" Content-Disposition: inline In-Reply-To: <20240504021330.33429-1-jhubbard@nvidia.com> X-Cookie: lisp, v.: --kc7/Yw5jYfcwspOn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 03, 2024 at 07:13:30PM -0700, John Hubbard wrote: > 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: >=20 > make LLVM=3D1 -C tools/testing/selftests >=20 > Fix this by unconditionally returning the "err" variable if the code > reaches the end of the function. Reviewed-by: Mark Brown --kc7/Yw5jYfcwspOn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmY3nUIACgkQJNaLcl1U h9A0DQf/Sm4T5cLBFo1crAijqgYhia2UFGRUbgX25oBNtteEGtseMCPCna58C8ZE qsKSLsvmhh69Af7mOs4LAp7b8tlp1tOvTEgbNPIZcHCM9mHJ7c5IHIiZ0gfr50hw eImQhq5m7nsbQzUoCcpV/e/1W6dL7F8ifAC0zfoa5d4pCpB/G9Vcyvi/efmgENCL NY6zclPKKNl34shTqOYbxid8Dnj+bad7197D8uAvL933qXxAOeBRwcjeFkSOEqsQ 3xhBdnD1mBk5qfLgz3LNinaLVWQWr3jucVMhYyYlYjODJy631dDT1zv0obK7n3+a fDF8SNhye8zKNxN6QNnL9BK0VkxQgg== =CkGU -----END PGP SIGNATURE----- --kc7/Yw5jYfcwspOn--