From nobody Tue May 10 23:24:01 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EBABF1AD78C7; Tue, 10 May 2022 23:24:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyYyT6kxWz4bl7; Tue, 10 May 2022 23:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cPcegNRfynbGovv5IkTREK8cQl5XnMNJKbXSxtBXs3s=; b=sXQ6aYhT+V9fajWciEgF0TA7KXHfvZ+zH2R/ef8tn+CHFBtCEjOvEOeYRjQAjkt6NkVItq 3cJvuHYW/K6XQiZgMzQQCJdsiYdFg9Piraa3U0qzaNbZgssRbQWt2Ab9QbTEVwerSwOIeO BfhlbrdBnipEE2jqTw9Fcf86k1XWs9OPTXTTY+DUnCIAK+zIgApB838r4LNtGxD8G8fTOB gmX9gAP9lQkaPq54/Kvktx4va3hn3faS7row2G4BIIR9d+gNbro8My4qpdBF4TJwGYYEvj zrwrNo27jYIPhgjjEo36DCi4ZqSPyC8aCr+5BF1qwGMcyYqaDpOwPLLzaD+9tg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5A76369E1; Tue, 10 May 2022 23:24:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24ANO1tl072264; Tue, 10 May 2022 23:24:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24ANO1bt072263; Tue, 10 May 2022 23:24:01 GMT (envelope-from git) Date: Tue, 10 May 2022 23:24:01 GMT Message-Id: <202205102324.24ANO1bt072263@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: e66d34dfc5c2 - stable/13 - Assert that invalid bus widths can't be passed to bus_width_str(). List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e66d34dfc5c2f2c61fd534e3fc99feb22417ebb6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652225042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cPcegNRfynbGovv5IkTREK8cQl5XnMNJKbXSxtBXs3s=; b=CtYl8fkfXGI7aGsJW73pvQj1XVX2oQBPQp1hD9iXYFu6Yetm0Rd2tMjeh0tuGzII4cSVKN ueucF4ajCzPzHioaKQ0w6Aoq3hsKVb/atDRLfdJvK9erppSJOsTn7i0AaPlZf1FIY7xUFS Et0i4iE/xZTxfQwBbJ516TFVdS73irxPoBilUaa8ZWnYuSyHoz+OItG40BRMBFlFdEcRs9 AOTEk8HcSi9iqwgJNcgpw3662+paUwBqbRmHX8TgdogcoXHgLLSMdXOcT0+TU00EG2blu6 TuwV6QByP4LD8ypiAP9/BbWDs2+WeJHAHJrAtpTfAlqeZjd62BC/qzcSYIlLVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652225042; a=rsa-sha256; cv=none; b=QjVudxUByJL6RVavISU13WVvCOX5KjNGHYIMlqHffmd8fy5HKKG766D8QqjCJ23XTBewzR 3TOe8KTbWb1+AJ8MN7yrJadBvmFmMzGiq9FJXBsgEixUQUzMSEfFsQPID4YQax+fCsHtZP pxDkmO+WBIcGAoWvQeyIrl61JODRQXpuY9nE5SjN/KGvMvEqtc1UUA3skTTlOrRUE63Bfi DbwqivaJynQepNe3vTdkI9SS2Xo8+biPYHPm+puQUP+dq+E5CBzi/ibSyMKfSENAtQ9aDu mGQ8dwrbtnDSaE+ZjE++sE9QaUYcxw73OVT9oho3d1AJ2NjbQufINaaNGM2hkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e66d34dfc5c2f2c61fd534e3fc99feb22417ebb6 commit e66d34dfc5c2f2c61fd534e3fc99feb22417ebb6 Author: John Baldwin AuthorDate: 2021-09-15 16:03:17 +0000 Commit: John Baldwin CommitDate: 2022-05-10 22:51:49 +0000 Assert that invalid bus widths can't be passed to bus_width_str(). This appeases a -Wreturn-type warning from GCC. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D31935 (cherry picked from commit d2bc7754a226c031b76184277e32c4d65a763f67) --- sys/cam/mmc/mmc_da.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c index e13bee75c216..886b3ca2329f 100644 --- a/sys/cam/mmc/mmc_da.c +++ b/sys/cam/mmc/mmc_da.c @@ -1174,6 +1174,8 @@ static inline const char return ("4-bit"); case bus_width_8: return ("8-bit"); + default: + __assert_unreachable(); } }