From nobody Thu Mar 30 11:05:31 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 4PnLDq61y9z42qtJ; Thu, 30 Mar 2023 11:05:31 +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 4PnLDq5CRpz3DgL; Thu, 30 Mar 2023 11:05:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680174331; 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=nABS0zl+vsXOnCx0t3qM+sxbrDvQZIvZYtMMr3UH4I4=; b=atrtrahLHYycgneFJOH3uEnH9lS118YDbTREq1eFM0qPb57Bld13LXxk4QuKXQOV9HkyGk BUXlqyMmBaPGiTTQRL6IvE2AbYDyXdg4F3s0Bc2OpBOSKY9yNa+OzrxcSq0lEyeHcnvrIz /+dW1DtEIZlb+b0mjI9bASmbkklvRFW5UH1hVPmHmul4kagoBZyv4s3GBy4OHlb7xehYcv cbTY01vIfGVAFUEzt7m+2qXL25BU4jJzEcpzFCBLKeMe3TJjeEz5ek1soVVWgQu1VuozG2 c3Ehngi4VmjTMV8+agetQBJuFiTfJrme615eeBD0ajCzMu+M/oue7psrdvFdEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680174331; 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=nABS0zl+vsXOnCx0t3qM+sxbrDvQZIvZYtMMr3UH4I4=; b=GcFm103UF19euQqQlJAtxZWmACq64h4o2mJ7XyfJVxFMh4ME7J7D+eWLiElw75YTD8fyzO u5Mj75tyx4YB4P4qVvmZeNkpJY5Yp1Df8tS+eOOj59PbOhPZM83vHhB2cbhYHECTSZYBF6 Aio+vSCUu4FzvEEBst0F4LNM54nVROl213dESeiRFACWfuMG3xoyseDGBLR8XZ2PKoc0v6 KBtRLMUhSA2GYNoMD5ZHRAftEHP3R5h2ZKsZ7hzoFv0Ab1Y82m8952wpoCaSY7v0iSaBcL 0842YSXvIYmj36zUY13agjZXjvtIEbc2/zyJ9EK5lrrJEcuJPMslgm5OgVY3lQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680174331; a=rsa-sha256; cv=none; b=TpFb6cIqFPkfj4h7cewPN8Ms+KFub2sCd1jKDXHFkh2x7o+46Qc8kcFkgquW6GdelZ19xb eHXknRoO0CiJfC1LppfbbHyS565F00E9KNkELAsRy3fHZnH2EKucykl0eQNKrg4kfik+0V 2+GgTkBhx19atl6UB/oM7Aju56wdiNQMIJDZi23kbThKlZR/Y2Ezvx37QVkoIoMXp2qCI0 F2jJQtAYR2wxq2jjqqqiVpP7UE0kkh7G/zwQrNDayHZBFkLzO9pMWn3QuG8dndJv2wxB+f QoLJNSgs6mLMviA0sxgLBfb4wFZO9TTMHAzbFlgWHNQTIN4NHTj0cf6Ul8XvGQ== 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 4PnLDq4H62z18YL; Thu, 30 Mar 2023 11:05:31 +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 32UB5Vis034537; Thu, 30 Mar 2023 11:05:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32UB5VmM034536; Thu, 30 Mar 2023 11:05:31 GMT (envelope-from git) Date: Thu, 30 Mar 2023 11:05:31 GMT Message-Id: <202303301105.32UB5VmM034536@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: 404689908632 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 404689908632599ee5b3bcbc289ae7f094368dc5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=404689908632599ee5b3bcbc289ae7f094368dc5 commit 404689908632599ee5b3bcbc289ae7f094368dc5 Author: Corvin Köhne AuthorDate: 2023-03-29 13:13:03 +0000 Commit: Corvin Köhne CommitDate: 2023-03-30 11:05:15 +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 --- 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);