From nobody Fri Dec 19 20:15:32 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 972CE18C936 for ; Wed, 22 Jan 2025 06:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737528891; cv=none; b=Dh5jIKeoiXAZc4zvhmVY8+Kj8PEdwdHgHamcs33e+vDRV5fG8n8JXfy4ptjIkpf8nCNjZ2QDqDnfEHxdMZnpUv7nMVMGby/WSwyOIFN/xnEJV/ZaqphYMRrmcTBVezTS9rj3HQQR60UJGPdIXRA6G31KCg1KaMRf+zEtXOHv6f8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737528891; c=relaxed/simple; bh=QZ4yDHBFgLYdAQ8LNSvfdmZ4dUfmlkuplREUvHXEvaI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XSoUmQdAnhKSx6+OMBLe9jgpDPtpEpIgrGTogfUovNH6H3pfssCs+QWspHUW2GdQzwXkdDUjTvcqP7BdtAZ/k6e/8zfE+FAV4OpRl5iWaFGvVHtgSJjwYQvvHZq6bVHUTmqjFVWWhl4D+lZr5MoccDgE7cfE52NrqPmFRPTd87g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A+2DOPPg; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A+2DOPPg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDA78C4CED6; Wed, 22 Jan 2025 06:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737528891; bh=QZ4yDHBFgLYdAQ8LNSvfdmZ4dUfmlkuplREUvHXEvaI=; h=From:To:Cc:Subject:Date:From; b=A+2DOPPgIhr9T+qhkBS9uK/9GywcL6Gh5QZgfUNOqhtvt9B+uR8kZor0QVJ5mGOKR TyJEFvkYd9sGljnSu3/uBf42N9upKs+UoZJxvjm1eiHVHBhtjaPoiz1U0RaDhbbg19 HjV9g0shgxssd7M5PxcmxeDMWFZ+pNs1z0IsZKDXnl4iXcX5yDnQ0ZcIOW0vr7Yrza HVuICHbpfCT7TMtgucB+hGyaUa0qUkJtUjq1K2RWqwihqG065xtz2afKv+l1NDpAaY 6quBeQZ3ptME4GXXI4iAXFPjYmBVYs7UMIZ2XDZX24tTjh79rWmTE4Q3DLW354zH74 wqgHihCsGPXOA== From: Arnd Bergmann To: Hans de Goede , Arnd Bergmann , Christian Brauner , Christian Kujau Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] vbox: add HAS_IOPORT dependency Date: Wed, 22 Jan 2025 07:54:33 +0100 Message-Id: <20250122065445.1469218-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann The vboxguest driver depends on port I/O for debug output: include/asm-generic/io.h:626:15: error: call to '_outl' declared with attri= bute error: outl() requires CONFIG_HAS_IOPORT 626 | #define _outl _outl include/asm-generic/io.h:663:14: note: in expansion of macro '_outl' 663 | #define outl _outl | ^~~~~ drivers/virt/vboxguest/vboxguest_utils.c:102:9: note: in expansion of macro= 'outl' 102 | outl(phys_req, gdev->io_port + VMMDEV_PORT_OFF_REQUEST); | ^~~~ Most arm64 platforms don't actually support port I/O, though it is currently enabled unconditionally. Refine the vbox dependency to allow turning it HAS_IOPORT off in the future when building for platforms without port I/O and allow compile-testing on all architectures. Fixes: 5cf8f938bf5c ("vbox: Enable VBOXGUEST and VBOXSF_FS on ARM64") Signed-off-by: Arnd Bergmann Reviewed-by: Hans de Goede --- drivers/virt/vboxguest/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/virt/vboxguest/Kconfig b/drivers/virt/vboxguest/Kconfig index 11b153e7454e..eaba28c95e73 100644 --- a/drivers/virt/vboxguest/Kconfig +++ b/drivers/virt/vboxguest/Kconfig @@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only config VBOXGUEST tristate "Virtual Box Guest integration support" - depends on (ARM64 || X86) && PCI && INPUT + depends on (ARM64 || X86 || COMPILE_TEST) && PCI && INPUT + depends on HAS_IOPORT help This is a driver for the Virtual Box Guest PCI device used in Virtual Box virtual machines. Enabling this driver will add --=20 2.39.5