Kernel configs which include "genfb" but which do not include "options
VGA_POST" fail to build due to "curmode" at line 792 of
"src/sys/arch/x86/pci/pci_machdep.c" being set but never used.

The following patch resolves the issue:


+Index: sys/arch/x86/pci/pci_machdep.c
+===================================================================
+RCS file: /cvsroot/src/sys/arch/x86/pci/pci_machdep.c,v
+retrieving revision 1.67
+diff -u -p -r1.67 pci_machdep.c
+--- sys/arch/x86/pci/pci_machdep.c     6 May 2014 18:54:34 -0000       1.67
++++ sys/arch/x86/pci/pci_machdep.c     5 Nov 2014 04:44:07 -0000
+@@ -802,6 +802,8 @@ x86_genfb_setmode(struct genfb_softc *sc
+                                   acpi_md_vesa_modenum);
+                       }
+               }
++#else
++              __USE(curmode);
+ #endif
+               break;
+       }

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

Reply via email to