]> git.baikalelectronics.ru Git - kernel.git/commit
pci/hotplug/pnv-php: Wrap warnings in macro
authorFrederic Barrat <fbarrat@linux.ibm.com>
Thu, 21 Nov 2019 13:49:17 +0000 (14:49 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:17 +0000 (21:31 +1100)
commita2f0537798a38a35bb9fc16acb37862a358ccc0b
treeb0da649cab5343e9bb9cb7d460219ffa31f3e40f
parentb0e95e916cb8a9e101b7091509a3e154c0b79300
pci/hotplug/pnv-php: Wrap warnings in macro

An opencapi slot doesn't have an associated bridge device. It's not
needed for operation, but any warning is displayed through pci_warn()
which uses the pci_dev struct of the assocated bridge device. So wrap
those warning so that a different trace mechanism can be used if it's
an opencapi slot.

Reviewed-by: Alastair D'Silva <alastair@d-silva.org>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191121134918.7155-11-fbarrat@linux.ibm.com
drivers/pci/hotplug/pnv_php.c