summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-12-07 01:27:47 +0300
committerThomas Gleixner <tglx@linutronix.de>2021-12-09 13:52:22 +0300
commit288c81ce4be7c15544605594966faaeb8803b5da (patch)
tree1a9fde1e2f0796a7a2120092052ff5ae3640764a
parent7112158d97a1539b217c360d379724ac3ee99fa3 (diff)
downloadlinux-288c81ce4be7c15544605594966faaeb8803b5da.tar.xz
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 <tglx@linutronix.de> Tested-by: Juergen Gross <jgross@suse.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://lore.kernel.org/r/20211206210224.655043033@linutronix.de
-rw-r--r--Documentation/driver-api/pci/pci.rst2
-rw-r--r--drivers/pci/Makefile3
-rw-r--r--drivers/pci/msi/Makefile4
-rw-r--r--drivers/pci/msi/msi.c (renamed from drivers/pci/msi.c)2
4 files changed, 8 insertions, 3 deletions
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
index 15730910b3cb..00233b0b3e92 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi/msi.c
@@ -16,7 +16,7 @@
#include <linux/of_irq.h>
#include <linux/pci.h>
-#include "pci.h"
+#include "../pci.h"
#ifdef CONFIG_PCI_MSI