[tip: irq/msi] genirq/msi: Fixup includes

tip-bot2 for Thomas Gleixner
2021-12-09T16:07:51Z

The following commit has been merged into the irq/msi branch of tip:

Commit-ID: 3ba1f050c91d5ce3672dbf3a55dc2451c0b342e2
Gitweb: https://git.kernel.org/tip/3ba1f050c91d5ce3672dbf3a55dc2451c0b342e2
Author: Thomas Gleixner <tglx@linutronix.de>
AuthorDate: Mon, 06 Dec 2021 23:27:31 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Thu, 09 Dec 2021 11:52:20 +01:00

genirq/msi: Fixup includes

Remove the kobject.h include from msi.h as it's not required and add a
sysfs.h include to the core code instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211206210224.103502021@linutronix.de

---
include/linux/msi.h | 2 +-
kernel/irq/msi.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/msi.h b/include/linux/msi.h
index 4b962f7..5c62775 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -2,7 +2,7 @@
#ifndef LINUX_MSI_H
#define LINUX_MSI_H

-#include <linux/kobject.h>
+#include <linux/cpumask.h>
#include <linux/list.h>
#include <asm/msi.h>

diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index cd4fa26..6718bab 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -14,6 +14,7 @@
#include <linux/irqdomain.h>
#include <linux/msi.h>
#include <linux/slab.h>
+#include <linux/sysfs.h>
#include <linux/pci.h>

#include "internals.h"