Skip to content

Commit 3c9670d

Browse files
committed
powerpc/machdep: Drop include of seq_file.h
Drop the include of seq_file.h in machdep.h, replace it with a forward declaration of struct seq_file, which is all that's required. Add direct includes of seq_file.h to some files that were getting seq_file.h via machdep.h. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://patch.msgid.link/20241009051826.132805-1-mpe@ellerman.id.au
1 parent 5e296fc commit 3c9670d

File tree

8 files changed

+8
-1
lines changed

8 files changed

+8
-1
lines changed

arch/powerpc/include/asm/machdep.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#ifdef __KERNEL__
55

66
#include <linux/compiler.h>
7-
#include <linux/seq_file.h>
87
#include <linux/init.h>
98
#include <linux/dma-mapping.h>
109
#include <linux/export.h>
@@ -18,6 +17,7 @@ struct file;
1817
struct pci_controller;
1918
struct kimage;
2019
struct pci_host_bridge;
20+
struct seq_file;
2121

2222
struct machdep_calls {
2323
const char *name;

arch/powerpc/platforms/52xx/efika.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <generated/utsrelease.h>
1414
#include <linux/pci.h>
1515
#include <linux/of.h>
16+
#include <linux/seq_file.h>
1617
#include <asm/dma.h>
1718
#include <asm/time.h>
1819
#include <asm/machdep.h>

arch/powerpc/platforms/embedded6xx/linkstation.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/kernel.h>
1414
#include <linux/initrd.h>
1515
#include <linux/of_platform.h>
16+
#include <linux/seq_file.h>
1617

1718
#include <asm/time.h>
1819
#include <asm/mpic.h>

arch/powerpc/platforms/embedded6xx/mvme5100.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <linux/of_irq.h>
1616
#include <linux/of_platform.h>
17+
#include <linux/seq_file.h>
1718

1819
#include <asm/i8259.h>
1920
#include <asm/pci-bridge.h>

arch/powerpc/platforms/pseries/lpar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/export.h>
1717
#include <linux/jump_label.h>
1818
#include <linux/delay.h>
19+
#include <linux/seq_file.h>
1920
#include <linux/stop_machine.h>
2021
#include <linux/spinlock.h>
2122
#include <linux/cpuhotplug.h>

arch/powerpc/platforms/pseries/msi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/irq.h>
1010
#include <linux/irqdomain.h>
1111
#include <linux/msi.h>
12+
#include <linux/seq_file.h>
1213

1314
#include <asm/rtas.h>
1415
#include <asm/hw_irq.h>

arch/powerpc/platforms/pseries/papr_scm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <linux/kernel.h>
77
#include <linux/module.h>
88
#include <linux/ioport.h>
9+
#include <linux/seq_file.h>
910
#include <linux/slab.h>
1011
#include <linux/ndctl.h>
1112
#include <linux/sched.h>

arch/powerpc/sysdev/xive/spapr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <linux/types.h>
99
#include <linux/irq.h>
10+
#include <linux/seq_file.h>
1011
#include <linux/smp.h>
1112
#include <linux/interrupt.h>
1213
#include <linux/init.h>

0 commit comments

Comments
 (0)