From nobody Wed Jul 27 15:06:19 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 4LtHDC49wgz4XnBG;
	Wed, 27 Jul 2022 15:06:19 +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 4LtHDC3HDdz3mch;
	Wed, 27 Jul 2022 15:06:19 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1658934379;
	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=gwgvz2R+Y4IypGT6zQtH98vh/NXnsJEI045wPlgzb5M=;
	b=qqOi4+VX94UQ3e7Yp2hWCR1h2WCMUi/G9MjqNf3YExwDK03aDEWtlVygbSRDFuYyrVwnBN
	yVGsbqVvb1n8HhMyQ1oQQrpK8bZr1dhkvk4jxdHLT8zdo37c3og3Kv/gW9YUP3PtcC4vSh
	V87uoO/21yb4Q7DffmJqzySE91+At+FJirXreg+ot+d96nHUbBr7g27ZnSGKJ1mK8KZcot
	raTpnCJTgSEgWkKF0mv1M+F1Nr5NMVpNa6f0rh/O44GvNEFzmQ1npPnJ63Iwr4rOHfVTtS
	qwhae9sQuLxgwIR2oyoG3YUZg9zuwTdfrZzEWZL2bLyk0ajjKnTHchisBmwcyw==
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 4LtHDC24MPzKwn;
	Wed, 27 Jul 2022 15:06:19 +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 26RF6J7M019386;
	Wed, 27 Jul 2022 15:06:19 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26RF6JpA019385;
	Wed, 27 Jul 2022 15:06:19 GMT
	(envelope-from git)
Date: Wed, 27 Jul 2022 15:06:19 GMT
Message-Id: <202207271506.26RF6JpA019385@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-main@FreeBSD.org
From: Warner Losh <imp@FreeBSD.org>
Subject: git: 4932a6e41d1f - main - stand: Create DEV_NAMLEN for the length of a device name
List-Id: Commit messages for all branches of the src repository <dev-commits-src-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all
List-Help: <mailto:dev-commits-src-all+help@freebsd.org>
List-Post: <mailto:dev-commits-src-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-all+unsubscribe@freebsd.org>
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: imp
X-Git-Repository: src
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: 4932a6e41d1fc3fe474358501d5933e783066bdc
Auto-Submitted: auto-generated
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1658934379;
	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=gwgvz2R+Y4IypGT6zQtH98vh/NXnsJEI045wPlgzb5M=;
	b=pQ0q4Y6e8+qe0ZAWW0x3FkYqjz/UkdW4vvCVLapIi2IU5mr+uhQOU5u8XUM6bS3JGmvFnL
	cuhTxLD5Zbkwwm0UugJKWqfdLzkg0l9JoHaClI62m4axtiTVwPxnLq84D/+7hJ1I21ljww
	L80leDLlfepOHuicgQ2GX8l/ArzvchkZjmM/QcUgeOFxiPxfLDp+B/G82BoFTNrT7ZjEwh
	/KJo0GUaz8e8rbectBcLrmHm2FjPXjFSpNtzhX6jcf6Osv+op9UhMde+6ClP5qH+Ge2wmu
	ZJ//pkms/5ZmEfzvDaFhdv1fA1MmQaJ284JTYg0ARd7/MscCNwfTMLZHD+QbsA==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658934379; a=rsa-sha256; cv=none;
	b=u+F6bkiOolNctOff2Qn/68XbB9S7w8MtOJAjNnnH5rHzHxeRtV6y1FivJ7BgHFsqa/eeYv
	C/syIovf9ux91aygsbMtEYtf0coXKySKGCKjHNP00F7FnrqRRFf4/jaMHf+rSaTrWhETar
	FKEF/k95zApE/Za7503Pfov66SsfdUkuRPV/pBq4jgetXKoTC4u6mmJNyUVaPXe+/NiIu7
	uU3Ka2wD/8CDqExLb/EEa57jauIscR2lUT39nO2XIeNm5zYhZAeCkv9pp5sogew0nj35hL
	UT71A4/49mgpzAmKGN4tDyCaVXWV9RFrVJ/EVU2JyQCjN1k1Z3PZRM2FopujKA==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
X-ThisMailContainsUnwantedMimeParts: N

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4932a6e41d1fc3fe474358501d5933e783066bdc

commit 4932a6e41d1fc3fe474358501d5933e783066bdc
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-27 14:45:59 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-07-27 15:04:12 +0000

    stand: Create DEV_NAMLEN for the length of a device name
    
    Rather than hard coding 8 for the device name length, create a #define for it.
    
    Sponsored by:           Netflix
    Reviewed by:            tsoome
    Differential Revision:  https://reviews.freebsd.org/D35910
---
 stand/libsa/stand.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h
index 097d8ba28d0b..6ddbc188e6f6 100644
--- a/stand/libsa/stand.h
+++ b/stand/libsa/stand.h
@@ -139,8 +139,9 @@ extern struct fs_ops efihttp_fsops;
 /* 
  * Device switch
  */
+#define DEV_NAMLEN	8		/* Length of name of device class */
 struct devsw {
-    const char	dv_name[8];
+    const char	dv_name[DEV_NAMLEN];
     int		dv_type;		/* opaque type constant, arch-dependant */
 #define DEVT_NONE	0
 #define DEVT_DISK	1