From nobody Mon Mar 18 10:49:15 2024 X-Original-To: dev-commits-src-main@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 4Tys6g4L7fz5DDKZ; Mon, 18 Mar 2024 10:49:15 +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 4Tys6g3qQSz4tF3; Mon, 18 Mar 2024 10:49:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710758955; 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=AKWm54m9RYDMM2a/SgmKYh0jfoOkEkdrrQvXyy2VT/0=; b=bqJJ+AePRon1Tx/eaIceg2jIzc0+9XNY4TSiU//QrLfTvnijq+ozzuXKQ+K3fkndZ7DAE7 UdMajQ8OmDjZeU3FGioRrn3+Ac9waUeV7NcZF/dVYBIVMEOPUgVHvqJ8ieTvX3eIr9Y6ML GvL609IAaniUMoTlsxSZ7PhTLD0xYqO/h4OVNL8GDHcHrt55QpwbTKd5g+2cU3GkqwjGf0 HIpF2JqFIzH5R/z+2whXZjP0rbGTpdhakoY/0sPo2XZ8EbGftY/T/OjxWLDYwf/mtXuPyj GYGssaoytcb0Tq0WMJsBQZ1gPbmnd2sMUbfFypyRrhegiPS5S0X71gkfnt8k1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710758955; a=rsa-sha256; cv=none; b=SoNGroTPigM/3CivVMPMApUMwVuna9GX1id6kvSGxJPg9O1pQc0JF+NpguxNrcX5e1E0l7 +yEL3XjXNXw0VxpMVrMEWelVSZ3vc6KX4ruh9zpmgbpJUfslKYEl2KzpkuPUggAtiIooTy n24brjRfB7gJJWQskfAxQ/S8/ZKYwyYwAPm9HNJlXfTlrKFZgE6SmqpH7I9XRyIkM0FODe BKXjXuox0sZHIILs3ykV+7YYprlvsaD9QC3yOFv1PQwImR+wutp3xGQxomWV4UXMqQN5id oQS4y1FKnyaX5RllwX8IWhRr7ZAVHHv4oLRwL5Oub+v5x8npie2VKvk2zlVyPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710758955; 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=AKWm54m9RYDMM2a/SgmKYh0jfoOkEkdrrQvXyy2VT/0=; b=x18ZlKYqbVtGVN/KLg5tCbqD5rm+pkwzHYb3SSmKa6D497cc8hduPKWD0bTDewbgtOn6ZI 4IIyVnnlLFxjmeeoI/ix8Ew/IhzL9UgWZRail4eyJ823NPrUMwfUkYlDi2F/+IgPTibsBH lWQX4eWOI2TY3RrmZpYNTE8Mbbkq39eHsfBJ8JEvyXs350gbRO42myaEjrr98tDaGZcqjb LKC2RzvsR44cEGJcyr4tJKg1H9yt85o/Rt5Qm0V2w2hso+LPhCw1Yf+bRkUTEJR0jIvNk/ AItazvMCGbA5p7dC/v08wKpdb2uo2UlgIBGC9sYylTFQe3/NKbvwng7xlMlPzQ== 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 4Tys6g3QMCzKRS; Mon, 18 Mar 2024 10:49:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42IAnFka076102; Mon, 18 Mar 2024 10:49:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42IAnFA3076099; Mon, 18 Mar 2024 10:49:15 GMT (envelope-from git) Date: Mon, 18 Mar 2024 10:49:15 GMT Message-Id: <202403181049.42IAnFA3076099@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: b0aaf8beb126 - main - Rename VM_LAST to more appropriate VM_GUEST_LAST List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b0aaf8beb12609f8a94575ee21f849474bf7e03a Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=b0aaf8beb12609f8a94575ee21f849474bf7e03a commit b0aaf8beb12609f8a94575ee21f849474bf7e03a Author: Mateusz Guzik AuthorDate: 2024-03-18 10:48:10 +0000 Commit: Mateusz Guzik CommitDate: 2024-03-18 10:49:09 +0000 Rename VM_LAST to more appropriate VM_GUEST_LAST NFC Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/kern/subr_param.c | 2 +- sys/sys/systm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index caa30b56b582..2a721c3c113f 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -157,7 +157,7 @@ static const char *const vm_guest_sysctl_names[] = { [VM_GUEST_VBOX] = "vbox", [VM_GUEST_PARALLELS] = "parallels", }; -_Static_assert(nitems(vm_guest_sysctl_names) == VM_LAST, +_Static_assert(nitems(vm_guest_sysctl_names) == VM_GUEST_LAST, "new vm guest type not added to vm_guest_sysctl_names"); /* diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 17a1c814cf75..435e6b61c904 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -79,7 +79,7 @@ extern u_long maxphys; /* max raw I/O transfer size */ */ enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV, VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_GUEST_VBOX, - VM_GUEST_PARALLELS, VM_LAST }; + VM_GUEST_PARALLELS, VM_GUEST_LAST }; #endif /* KERNEL */