]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Document reason for using pci_is_root_bus()
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 24 Sep 2013 21:14:57 +0000 (15:14 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Sep 2013 21:43:58 +0000 (15:43 -0600)
commita9c375c749f6512e75776321b01547cc27f3dcc9
tree78fc61e77d3976560185ac61c7944755a7009502
parentabe2a5413f5c06ec4f64f881884de2f87aaaeeba
PCI: Document reason for using pci_is_root_bus()

Some code assumes "bus->self == NULL" means the bus is a root bus.  This
adds a comment explaining why this is incorrect ("virtual" buses added for
SR-IOV have "bus->self == NULL" but are not root buses).

No functional change.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h