Skip to contentSkip to conversation

alpha: Fix build error without CONFIG_VGA_HOSE.

PATCH New Matt Turner 1 participant 1 message Aug 27, 2017 Alpha port

lore
Share & tools
lore

Matt Turner

author maintainer
#0 lore raw

PATCH 1/1 alpha: Fix build error without CONFIG_VGA_HOSE.

pci_vga_hose is #defined to 0 in include/asm/vga.h if CONFIG_VGA_HOSE is not set.

---
 arch/alpha/kernel/core_marvel.c | 2 ++
 1 file changed, 2 insertions(+)
arch/alpha/kernel/core_marvel.c +2 -0
index d5f0580746a5..db72356714c1 100644
@@ -369,6 +369,7 @@ marvel_io7_present(gct6_node *node)
 static void __init
 marvel_find_console_vga_hose(void)
 {
+#ifdef CONFIG_VGA_HOSE
 	u64 *pu64 = (u64 *)((u64)hwrpb + hwrpb->ctbt_offset);
 
 	if (pu64[7] == 3) {	/* TERM_TYPE == graphics */
@@ -402,6 +403,7 @@ marvel_find_console_vga_hose(void)
 			pci_vga_hose = hose;
 		}
 	}
+#endif
 }
 
 gct6_search_struct gct_wanted_node_list[] = {
Signature · 1 line
2.13.0