From nobody Thu Apr 06 06:09:54 2023 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 4PsWLX6J0nz43Z8c; Thu, 6 Apr 2023 06:09:56 +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 4PsWLW3yLsz3Bnq; Thu, 6 Apr 2023 06:09:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680761395; 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=bF4rq1qF5o61pCTQo8ogRjKydAFZR9vJmc6k1AtWuyE=; b=sggxzHf2KIPS/M+QqFAnqe16fm7frQSDQC/+uwwiGNa76LCsN1s4Zltwm/+WWVfAwT+JBX 8Uz1NOe3J3G5/ZZxYlPgl7tfTmIpZmrjKgDD4iZYqIN7TK1lumsQeNJN5ltzlEtXA1pNBt jqqwieVOMvWHIBMvP3shGkr8ocM9nWJey0DzT3w7L4hUzqjVavaoaVgY6qEC0nvRlxUBfv e3xar8ssLHbwvmFaPYmsDbAXYEZN3gP7yGCKu38UXBPXEpSzhPsBYBMxVVSiwKnPma5b9i JaUnbAVeJd2NEYozw7NfQVffvgbgGQCCd00Zz+SLxL1Sd/4PbneFNYi8nXYo3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680761395; 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=bF4rq1qF5o61pCTQo8ogRjKydAFZR9vJmc6k1AtWuyE=; b=bYfSMC8j+cjTnCqO0VBhXQEI6LiyjYLbD/ch3T6vyYOuTEs/luF6n19QHIq9sZ0JRLB4K+ JdBJ8PXCsrlTrMwYeOy/KX2SgvWYL97UogBDeqzmdUIDZlFh2VtJlG/X56o9jQZyvCbk2L 1CibJbB0tNfqMgnvJN+VPiqkwVP30RJu+09DYgQTKEHVKAY7lM5GFL2UTf03vlQ2xDK5O4 /DzXY+tHXC3Rvb7neP/v/EPbHNSHqndAxmKG6ETd7jY0AtPWvYs2v+mcFpn+GOekqfr/U+ Q7A/dGWS/0VE7MGl4IisLL7zC0r9tSmMPTk7GLQF7HU+KMc21MSFu9qEpAu48g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680761395; a=rsa-sha256; cv=none; b=P19zJsNRNjH8tE6mNepkjTQ3hfp4u0wXJDkpO4eNWEA6VfQ/OjKILDKfAfzSQo6nysFq4T oyZngjL6/C3YHVgMHh6UfcOjqvF2AJkSiEO8YYN1Gma5bvZJhIp3vziu8kDX1Vw9ZCWBTl 9eoQOU6Ir87KSvu8UNRXfGdEzPFY9eItTwSLeINq2XUiyJs82JKGdruu+pOHTBPNhMuLen McF/MzZ+Jyw0Ola+QwXLpQrrJh4wxTQlCWwaktT0C7wfLE+Kr78OD0aeFqX+x9Zh7HalyH yYwv5QShEJuX2riq0OTKGPGFaYwNMNkzNTvCBNJpuS7LR6Jws91WOX5XjAXrMQ== 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 4PsWLV2Wxszt2N; Thu, 6 Apr 2023 06:09:54 +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 33669stq030525; Thu, 6 Apr 2023 06:09:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33669sum030524; Thu, 6 Apr 2023 06:09:54 GMT (envelope-from git) Date: Thu, 6 Apr 2023 06:09:54 GMT Message-Id: <202304060609.33669sum030524@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: 2a33e252a79c - stable/13 - bhyve: remove unnecessary const qualifier in acpi_device.h 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: corvink X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2a33e252a79c05f5d67c7cc271b9cbee6563e404 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=2a33e252a79c05f5d67c7cc271b9cbee6563e404 commit 2a33e252a79c05f5d67c7cc271b9cbee6563e404 Author: Corvin Köhne AuthorDate: 2023-03-29 13:13:03 +0000 Commit: Corvin Köhne CommitDate: 2023-04-06 06:06:23 +0000 bhyve: remove unnecessary const qualifier in acpi_device.h Those const qualifier declare that the function doesn't change the values internally. It makes no sense to add them in the header file. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39318 (cherry picked from commit 404689908632599ee5b3bcbc289ae7f094368dc5) --- usr.sbin/bhyve/acpi_device.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bhyve/acpi_device.h b/usr.sbin/bhyve/acpi_device.h index 5fb3ea18e481..49e55c7d4f14 100644 --- a/usr.sbin/bhyve/acpi_device.h +++ b/usr.sbin/bhyve/acpi_device.h @@ -26,13 +26,13 @@ struct acpi_device; * @param[in] hid Hardware ID of the ACPI device. Should always be a NULL * terminated string. */ -int acpi_device_create(struct acpi_device **const new_dev, - struct vmctx *const vm_ctx, const char *const name, const char *const hid); -void acpi_device_destroy(struct acpi_device *const dev); +int acpi_device_create(struct acpi_device **new_dev, struct vmctx *vm_ctx, + const char *name, const char *hid); +void acpi_device_destroy(struct acpi_device *dev); -int acpi_device_add_res_fixed_ioport(struct acpi_device *const dev, - const UINT16 port, UINT8 length); -int acpi_device_add_res_fixed_memory32(struct acpi_device *const dev, - const UINT8 write_protected, const UINT32 address, const UINT32 length); +int acpi_device_add_res_fixed_ioport(struct acpi_device *dev, UINT16 port, + UINT8 length); +int acpi_device_add_res_fixed_memory32(struct acpi_device *dev, + UINT8 write_protected, UINT32 address, UINT32 length); -void acpi_device_write_dsdt(const struct acpi_device *const dev); +void acpi_device_write_dsdt(const struct acpi_device *dev);