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
This commit is contained in:
Thomas Gleixner 2021-12-06 23:27:47 +01:00
parent 7112158d97
commit 288c81ce4b
4 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,7 @@ PCI Support Library
.. kernel-doc:: drivers/pci/search.c .. kernel-doc:: drivers/pci/search.c
:export: :export:
.. kernel-doc:: drivers/pci/msi.c .. kernel-doc:: drivers/pci/msi/msi.c
:export: :export:
.. kernel-doc:: drivers/pci/bus.c .. kernel-doc:: drivers/pci/bus.c

View File

@ -5,8 +5,9 @@
obj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o \ obj-$(CONFIG_PCI) += access.o bus.o probe.o host-bridge.o \
remove.o pci.o pci-driver.o search.o \ remove.o pci.o pci-driver.o search.o \
pci-sysfs.o rom.o setup-res.o irq.o vpd.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/ obj-$(CONFIG_PCI) += pcie/
ifdef CONFIG_PCI ifdef CONFIG_PCI

4
drivers/pci/msi/Makefile Normal file
View File

@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for the PCI/MSI
obj-$(CONFIG_PCI) += msi.o

View File

@ -16,7 +16,7 @@
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/pci.h> #include <linux/pci.h>
#include "pci.h" #include "../pci.h"
#ifdef CONFIG_PCI_MSI #ifdef CONFIG_PCI_MSI