Thread (7 messages) 7 messages, 3 authors, 2018-02-23

Re: [PATCH] PCI/AER: Move pci_uevent_ers() out of pci.h

From: Bjorn Helgaas <helgaas@kernel.org>
Date: 2018-02-22 23:12:40
Also in: linux-pci

On Thu, Feb 08, 2018 at 09:05:45AM -0600, Bryant G. Ly wrote:
On 2/8/18 6:20 AM, Michael Ellerman wrote:
quoted
There's no reason pci_uevent_ers() needs to be inline in pci.h, so
move it out to a C file.

Given it's used by AER the obvious location would be somewhere in
drivers/pci/pcie/aer, but because it's also used by powerpc EEH code
unfortunately that doesn't work in the case where EEH is enabled but
PCIEPORTBUS is not.

So for now put it in pci-driver.c, next to pci_uevent(), with an
appropriate #ifdef so it's not built if AER and EEH are both disabled.

While we're moving it also fix up the kernel doc comment for @pdev to
be accurate.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 drivers/pci/pci-driver.c | 36 ++++++++++++++++++++++++++++++++++++
 include/linux/pci.h      | 38 +++-----------------------------------
 2 files changed, 39 insertions(+), 35 deletions(-)
Looks good, thanks for fixing it!

Signed-off-by: Bryant G. Ly <redacted>
This would normally be a "Reviewed-by" unless you actually
participated in developing the patch, and in that case, your
"Signed-off-by" would normally be included in the original posting.

What do you intend?  I'll be glad to add either.

Bjorn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help