Skip to content

Commit

Permalink
pci_get_bus_and_slot was removed in 4.17.
Browse files Browse the repository at this point in the history
Instead of bothering with figuring out the domain number in macros use the totally not recommended solution of just going with domain 0.
https://patchwork.kernel.org/patch/10069603/
And yes, the pci_get_domain_bus_and_slot is available in 2.6.32
  • Loading branch information
tilsche committed Jul 2, 2018
1 parent 3f4bb49 commit 765aecc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driver/x86_adapt_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

#include "../definition_driver/x86_adapt_defs.h"

// TODO use pci_get_domain_bus_and_slot and determine the domain number from the device
#define pci_get_bus_and_slot(b, d) pci_get_domain_bus_and_slot(0, b, d)

extern u32 x86_adapt_get_all_knobs_length(void);
extern struct knob_entry_definition * x86_adapt_get_all_knobs(void);

Expand Down

0 comments on commit 765aecc

Please sign in to comment.