Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: ethernet: Prepare cleanup of powerpc's asm/prom.h

powerpc's asm/prom.h includes some headers that it doesn't
need itself.

In order to clean powerpc's asm/prom.h up in a further step,
first clean all files that include asm/prom.h

Some files don't need asm/prom.h at all. For those ones,
just remove inclusion of asm/prom.h

Some files don't need any of the items provided by asm/prom.h,
but need some of the headers included by asm/prom.h. For those
ones, add the needed headers that are brought by asm/prom.h at
the moment and remove asm/prom.h

Some files really need asm/prom.h but also need some of the
headers included by asm/prom.h. For those one, leave asm/prom.h
but also add the needed headers so that they can be removed
from asm/prom.h in a later step.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/09a13d592d628de95d30943e59b2170af5b48110.1651663857.git.christophe.leroy@csgroup.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Christophe Leroy and committed by
Jakub Kicinski
6bff3ffc d9ccf770

+8 -3
-1
drivers/net/ethernet/apple/bmac.c
··· 25 25 #include <linux/ethtool.h> 26 26 #include <linux/slab.h> 27 27 #include <linux/pgtable.h> 28 - #include <asm/prom.h> 29 28 #include <asm/dbdma.h> 30 29 #include <asm/io.h> 31 30 #include <asm/page.h>
-1
drivers/net/ethernet/apple/mace.c
··· 20 20 #include <linux/bitrev.h> 21 21 #include <linux/slab.h> 22 22 #include <linux/pgtable.h> 23 - #include <asm/prom.h> 24 23 #include <asm/dbdma.h> 25 24 #include <asm/io.h> 26 25 #include <asm/macio.h>
+2
drivers/net/ethernet/freescale/fec_mpc52xx.c
··· 29 29 #include <linux/crc32.h> 30 30 #include <linux/hardirq.h> 31 31 #include <linux/delay.h> 32 + #include <linux/of_address.h> 32 33 #include <linux/of_device.h> 34 + #include <linux/of_irq.h> 33 35 #include <linux/of_mdio.h> 34 36 #include <linux/of_net.h> 35 37 #include <linux/of_platform.h>
+1
drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
··· 15 15 #include <linux/phy.h> 16 16 #include <linux/of_platform.h> 17 17 #include <linux/slab.h> 18 + #include <linux/of_address.h> 18 19 #include <linux/of_mdio.h> 19 20 #include <asm/io.h> 20 21 #include <asm/mpc52xx.h>
+1
drivers/net/ethernet/ibm/ehea/ehea.h
··· 19 19 #include <linux/ethtool.h> 20 20 #include <linux/vmalloc.h> 21 21 #include <linux/if_vlan.h> 22 + #include <linux/platform_device.h> 22 23 23 24 #include <asm/ibmebus.h> 24 25 #include <asm/io.h>
+2
drivers/net/ethernet/ibm/ehea/ehea_main.c
··· 29 29 #include <asm/kexec.h> 30 30 #include <linux/mutex.h> 31 31 #include <linux/prefetch.h> 32 + #include <linux/of.h> 33 + #include <linux/of_device.h> 32 34 33 35 #include <net/ip.h> 34 36
+1
drivers/net/ethernet/ibm/ibmvnic.c
··· 53 53 #include <linux/ip.h> 54 54 #include <linux/ipv6.h> 55 55 #include <linux/irq.h> 56 + #include <linux/irqdomain.h> 56 57 #include <linux/kthread.h> 57 58 #include <linux/seq_file.h> 58 59 #include <linux/interrupt.h>
-1
drivers/net/ethernet/sun/sungem.c
··· 52 52 #endif 53 53 54 54 #ifdef CONFIG_PPC_PMAC 55 - #include <asm/prom.h> 56 55 #include <asm/machdep.h> 57 56 #include <asm/pmac_feature.h> 58 57 #endif
+1
drivers/net/ethernet/toshiba/spider_net.c
··· 35 35 #include <linux/wait.h> 36 36 #include <linux/workqueue.h> 37 37 #include <linux/bitops.h> 38 + #include <linux/of.h> 38 39 #include <net/checksum.h> 39 40 40 41 #include "spider_net.h"