From 288c81ce4be7c15544605594966faaeb8803b5da Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 6 Dec 2021 23:27:47 +0100 Subject: [PATCH] PCI/MSI: Move code into a separate directory msi.c is getting larger and really could do with a splitup. Move it into its own directory to prepare for that. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Reviewed-by: Jason Gunthorpe Acked-by: Bjorn Helgaas Link: https://lore.kernel.org/r/20211206210224.655043033@linutronix.de --- Documentation/driver-api/pci/pci.rst | 2 +- drivers/pci/Makefile | 3 ++- drivers/pci/msi/Makefile | 4 ++++ drivers/pci/{ => msi}/msi.c | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 drivers/pci/msi/Makefile rename drivers/pci/{ => msi}/msi.c (99%) diff --git a/Documentation/driver-api/pci/pci.rst b/Documentation/driver-api/pci/pci.rst index ca85e5e78b2c..4843cfad4f60 100644 --- a/Documentation/driver-api/pci/pci.rst +++ b/Documentation/driver-api/pci/pci.rst @@ -13,7 +13,7 @@ PCI Support Library .. kernel-doc:: drivers/pci/search.c :export: -.. kernel-doc:: drivers/pci/msi.c +.. kernel-doc:: drivers/pci/msi/msi.c :export: .. kernel-doc:: drivers/pci/bus.c diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index d62c4ac4ae1b..37be95adf169 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -5,8 +5,9 @@ obj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o \ remove.o pci.o pci-driver.o search.o \ pci-sysfs.o rom.o setup-res.o irq.o vpd.o \ - setup-bus.o vc.o mmap.o setup-irq.o msi.o + setup-bus.o vc.o mmap.o setup-irq.o +obj-$(CONFIG_PCI) += msi/ obj-$(CONFIG_PCI) += pcie/ ifdef CONFIG_PCI diff --git a/drivers/pci/msi/Makefile b/drivers/pci/msi/Makefile new file mode 100644 index 000000000000..79a6013fbc8c --- /dev/null +++ b/drivers/pci/msi/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for the PCI/MSI +obj-$(CONFIG_PCI) += msi.o diff --git a/drivers/pci/msi.c b/drivers/pci/msi/msi.c similarity index 99% rename from drivers/pci/msi.c rename to drivers/pci/msi/msi.c index 15730910b3cb..00233b0b3e92 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi/msi.c @@ -16,7 +16,7 @@ #include #include -#include "pci.h" +#include "../pci.h" #ifdef CONFIG_PCI_MSI