diff options
author | Thomas Heijligen <thomas.heijligen@secunet.com> | 2023-02-27 16:02:28 +0100 |
---|---|---|
committer | Thomas Heijligen <src@posteo.de> | 2023-03-10 15:54:52 +0000 |
commit | 0e4d4eac78fbf437ba8e9b1c9d27600d2190023b (patch) | |
tree | a8aa31f8bf662347840503ee507cfa21c5f77ebe /Makefile.d/pci_old_get_dev_test.c | |
parent | c433910718cf5d5664aab87773ae473061e6b87b (diff) | |
download | flashrom-0e4d4eac78fbf437ba8e9b1c9d27600d2190023b.tar.gz flashrom-0e4d4eac78fbf437ba8e9b1c9d27600d2190023b.tar.bz2 flashrom-0e4d4eac78fbf437ba8e9b1c9d27600d2190023b.zip |
libpci: drop support for pciutils < 2.2.0
This version was released in september 2005 and had a breaking api
change. Drop it so that we don't need to maintain the old codepath any
longer. Beside that, we have already a second codepath which is using
the new `pci_get_dev` variant exclusively.
Change-Id: If943db350b561a005d8292a53d9255223db3d571
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/73293
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'Makefile.d/pci_old_get_dev_test.c')
-rw-r--r-- | Makefile.d/pci_old_get_dev_test.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Makefile.d/pci_old_get_dev_test.c b/Makefile.d/pci_old_get_dev_test.c deleted file mode 100644 index 32236515..00000000 --- a/Makefile.d/pci_old_get_dev_test.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Avoid a failing test due to libpci header symbol shadowing breakage */ -#define index shadow_workaround_index -#if !defined __NetBSD__ -#include <pci/pci.h> -#else -#include <pciutils/pci.h> -#endif -struct pci_access *pacc; -struct pci_dev *dev = {0}; -int main(int argc, char **argv) -{ - (void) argc; - (void) argv; - pacc = pci_alloc(); - dev = pci_get_dev(pacc, dev->bus, dev->dev, 1); - return 0; -} |