OpenCloudOS-Kernel/arch/ia64
Arnd Bergmann d9a5d5c493 vgacon: rework screen_info #ifdef checks
[ Upstream commit 8a736ddfc861b2a217c935c2f461a8004add8247 ]

On non-x86 architectures, the screen_info variable is generally only
used for the VGA console where supported, and in some cases the EFI
framebuffer or vga16fb.

Now that we have a definite list of which architectures actually use it
for what, use consistent #ifdef checks so the global variable is only
defined when it is actually used on those architectures.

Loongarch and riscv have no support for vgacon or vga16fb, but
they support EFI firmware, so only that needs to be checked, and the
initialization can be removed because that is handled by EFI.
IA64 has both vgacon and EFI, though EFI apparently never uses
a framebuffer here.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Khalid Aziz <khalid@gonehiking.org>
Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231009211845.3136536-3-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: beb2800074c1 ("LoongArch: Fix entry point in kernel image header")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-27 13:49:15 +02:00
..
configs arch/*/configs/*defconfig: Replace AUTOFS4_FS by AUTOFS_FS 2023-07-29 14:08:22 -07:00
hp/common ia64: implement the new page table range API 2023-08-24 16:20:21 -07:00
include cpu-hotplug: Provide prototypes for arch CPU registration 2023-10-11 14:27:37 +02:00
kernel vgacon: rework screen_info #ifdef checks 2024-06-27 13:49:15 +02:00
lib ia64: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
mm ia64: implement the new page table range API 2023-08-24 16:20:21 -07:00
pci docs: move ia64 architecture docs under Documentation/arch/ 2023-04-10 16:45:52 -06:00
scripts kbuild: remove PYTHON variable 2021-02-01 10:37:19 +09:00
uv ia64: remove support for machvecs 2019-08-16 14:32:26 -07:00
Kbuild ia64: move core-y in arch/ia64/Makefile to arch/ia64/Kbuild 2021-09-03 08:17:20 +09:00
Kconfig - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig.debug ia64: don't do IA64_CMPXCHG_DEBUG without CONFIG_PRINTK 2021-10-04 10:45:58 +02:00
Makefile arch: Introduce CONFIG_FUNCTION_ALIGNMENT 2022-10-17 16:40:58 +02:00
install.sh kbuild: factor out the common installation code into scripts/install.sh 2022-05-11 21:45:53 +09:00