From: Jonathan Gray Subject: Re: some simple include removals To: Miod Vallat Cc: tech@openbsd.org Date: Sat, 17 Aug 2024 19:50:29 +1000 On Sat, Aug 17, 2024 at 08:14:58AM +0000, Miod Vallat wrote: > sys/dev/pci/vga_pci_common.c used to contain a lot of code, nowadays > it's only a bunch of pci device id scans, which are only used for > installation media. > > The following diff removes the no longer needed includes from this file. ok jsg@ > > Index: vga_pci_common.c > =================================================================== > RCS file: /OpenBSD/src/sys/dev/pci/vga_pci_common.c,v > retrieving revision 1.11 > diff -u -p -r1.11 vga_pci_common.c > --- vga_pci_common.c 24 May 2024 06:02:58 -0000 1.11 > +++ vga_pci_common.c 17 Aug 2024 08:13:33 -0000 > @@ -1,3 +1,4 @@ > +/* $OpenBSD$ */ > /* > * Copyright (c) 2008 Owain G. Ainsworth > * > @@ -14,33 +15,16 @@ > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. > */ > > -#include "vga.h" > -#if defined(__i386__) || defined(__amd64__) > -#include "acpi.h" > -#endif > - > +#ifdef RAMDISK_HOOKS > #include > -#include > - > -#include > > -#include > #include > #include > > -#include > -#include > -#include > - > -#include > -#include > -#include > - > #include > #include > #include > > -#ifdef RAMDISK_HOOKS > static const struct pci_matchid aperture_blacklist[] = { > /* server adapters found in mga200 drm driver */ > { PCI_VENDOR_MATROX, PCI_PRODUCT_MATROX_G200E_SE }, > >