Skip to content

Commit

Permalink
alpha: Fix build error without CONFIG_VGA_HOSE.
Browse files Browse the repository at this point in the history
pci_vga_hose is #defined to 0 in include/asm/vga.h if CONFIG_VGA_HOSE is
not set.

Signed-off-by: Matt Turner <[email protected]>
  • Loading branch information
mattst88 committed Aug 29, 2017
1 parent 143c97c commit e42faf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/alpha/kernel/core_marvel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -402,6 +403,7 @@ marvel_find_console_vga_hose(void)
pci_vga_hose = hose;
}
}
#endif
}

gct6_search_struct gct_wanted_node_list[] = {
Expand Down
2 changes: 2 additions & 0 deletions arch/alpha/kernel/core_titan.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,15 @@ titan_ioremap(unsigned long addr, unsigned long size)
unsigned long *ptes;
unsigned long pfn;

#ifdef CONFIG_VGA_HOSE
/*
* Adjust the address and hose, if necessary.
*/
if (pci_vga_hose && __is_mem_vga(addr)) {
h = pci_vga_hose->index;
addr += pci_vga_hose->mem_space->start;
}
#endif

/*
* Find the hose.
Expand Down

0 comments on commit e42faf5

Please sign in to comment.