From mboxrd@z Thu Jan 1 00:00:00 1970 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 6284B34AAE7; Mon, 18 Aug 2025 14:12:52 +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=1755526372; cv=none; b=i+UiCw7iSMy8AzZuQV1pHLU7G4S4+yIzFNiGF0Nef3ZplIMdJAQ45d5DD4yPHGjOSmTpUf4l/7QExbKUgBQFJJb7OS+t9I1nMKtzHbakm++uGFRnWNbIQ4i8jCPACKdy1E8MBJJ0Tag7a1GVUrCUFhBKD00oRdNNIsCCkehUSnQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755526372; c=relaxed/simple; bh=/+WAivZW01v1a7L8oPYFxcA5yz27G7SmQMQ6ZxI3qfU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fbdKHyQMWMOKzUJnIh9ABOSfI9wfSkB467E/YGMqoNlJX5meo+UyK2ZkRCWoilklgCJZYYF/+AtLCFPG+Hgk7H3aTzo0lo5ApyFAaADcjZcwLIARVXgAAd8b3os4yEc6YmU2IWEOc9FHHdTycQB/EzfskBUDcCVOnw/zyn5BVtQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D3Tyvn/F; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="D3Tyvn/F" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 894CCC116C6; Mon, 18 Aug 2025 14:12:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755526372; bh=/+WAivZW01v1a7L8oPYFxcA5yz27G7SmQMQ6ZxI3qfU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D3Tyvn/FsozOqZ6wCBXuHmev9Q58RMwh4yfOJ2X9lT7yefcQ96RdRsDqMqLHl4oC3 txWN/w7TKbvpfwqla6LaoDmdRSG0r3ulCFU9gGCgx9B2EzDIoOJR72KyQNzrEdHeRq Tv5RTpJCHPQO/k970wUPI9Ezq/u+NJG952L/yf/M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Randy Dunlap , Arnd Bergmann , Niklas Schnelle , Antonino Daplas , Helge Deller , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH 6.16 536/570] fbdev: nvidiafb: add depends on HAS_IOPORT Date: Mon, 18 Aug 2025 14:48:43 +0200 Message-ID: <20250818124526.525598155@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124505.781598737@linuxfoundation.org> References: <20250818124505.781598737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap commit ecdd7df997fd992f0ec70b788e3b12258008a2bf upstream. The nvidiafb driver uses inb()/outb() without depending on HAS_IOPORT, which leads to build errors since kernel v6.13-rc1: commit 6f043e757445 ("asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n") Add the HAS_IOPORT dependency to prevent the build errors. (Found in ARCH=um allmodconfig builds) drivers/video/fbdev/nvidia/nv_accel.c: In function ‘NVDmaWait’: include/asm-generic/io.h:596:15: error: call to ‘_outb’ declared with attribute error: outb() requires CONFIG_HAS_IOPORT 596 | #define _outb _outb Signed-off-by: Randy Dunlap Cc: Arnd Bergmann Cc: Niklas Schnelle Cc: Antonino Daplas Cc: Helge Deller Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: stable@vger.kernel.org # v6.13+ Signed-off-by: Helge Deller Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/video/fbdev/Kconfig +++ b/drivers/video/fbdev/Kconfig @@ -660,7 +660,7 @@ config FB_ATMEL config FB_NVIDIA tristate "nVidia Framebuffer Support" - depends on FB && PCI + depends on FB && PCI && HAS_IOPORT select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT