2014-05-27 16:21, Burakov, Anatoly: > > You are defining some variables in a .h file. I think it is a problem. > > I have managed to move everything to .c files, except for "struct > mapped_pci_res_list *pci_res_list;" - which I need in both uio and vfio .c > files. I don't think I'll be able to move it out of the eal_pci_init header > file. Should declaring it as extern be fine as a compromise?
I think it's acceptable. Like this one: extern struct pci_device_list pci_device_list; -- Thomas