Skip to content

Commit

Permalink
treewide: replace #include <asm/sizes.h> with #include <linux/sizes.h>
Browse files Browse the repository at this point in the history
Since commit dccd230 ("ARM: 7430/1: sizes.h: move from asm-generic
to <linux/sizes.h>"), <asm/sizes.h> and <asm-generic/sizes.h> are just
wrappers of <linux/sizes.h>.

This commit replaces all <asm/sizes.h> and <asm-generic/sizes.h> to
prepare for the removal.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
masahir0y authored and torvalds committed May 15, 2019
1 parent 3813393 commit 87dfb31
Show file tree
Hide file tree
Showing 68 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion arch/arm/common/sa1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <mach/hardware.h>
#include <asm/mach/irq.h>
#include <asm/mach-types.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/hardware/sa1111.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include "../hardware.h"
#include "devices-common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include <asm/sizes.h>
#include <linux/sizes.h>

#include "../hardware.h"
#include "devices-common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx2-wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <asm/sizes.h>
#include <linux/sizes.h>

#include "../hardware.h"
#include "devices-common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-mxc_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <asm/sizes.h>
#include <linux/sizes.h>

#include "../hardware.h"
#include "devices-common.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <asm/io.h>
#include <soc/imx/revision.h>
#endif
#include <asm/sizes.h>
#include <linux/sizes.h>

#define addr_in_module(addr, mod) \
((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-integrator/impd1.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <linux/irqchip/arm-vic.h>
#include <linux/gpio/machine.h>

#include <asm/sizes.h>
#include <linux/sizes.h>
#include "lm.h"
#include "impd1.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop13xx/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/export.h>
#include <asm/irq.h>
#include <mach/hardware.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/signal.h>
#include <asm/mach/pci.h>
#include "pci.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop13xx/tpmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <mach/irqs.h>

/* assumes CONTROLLER_ONLY# is never asserted in the ESSR register */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp4xx/common-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <asm/cputype.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/mach/pci.h>
#include <mach/hardware.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ks8695/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H

#include <asm/sizes.h>
#include <linux/sizes.h>

/*
* Clocks are derived from MCLK, which is 25MHz
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#ifndef __ASM_ARCH_OMAP_HARDWARE_H
#define __ASM_ARCH_OMAP_HARDWARE_H

#include <asm/sizes.h>
#include <linux/sizes.h>
#ifndef __ASSEMBLER__
#include <asm/types.h>
#include <mach/soc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/omap_hwmod_2xxx_interconnect_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* XXX handle crossbar/shared link difference for L3?
* XXX these should be marked initdata for multi-OMAP kernels
*/
#include <asm/sizes.h>
#include <linux/sizes.h>

#include "omap_hwmod.h"
#include "l3_2xxx.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-prima2/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <linux/of.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/balloon3.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <asm/setup.h>
#include <asm/mach-types.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/colibri-pxa270.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/flash.h>
#include <asm/mach-types.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <mach/audio.h>
#include "colibri.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/colibri-pxa300.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/interrupt.h>

#include <asm/mach-types.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/colibri-pxa320.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/usb/gpio_vbus.h>

#include <asm/mach-types.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/colibri-pxa3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/etherdevice.h>
#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/system_info.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/gumstix.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/lpd270.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/lubbock.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/mainstone.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/mach-types.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/trizeps4.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <asm/memory.h>
#include <asm/mach-types.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/viper.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#include <asm/setup.h>
#include <asm/mach-types.h>
#include <asm/irq.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/system_info.h>

#include <asm/mach/arch.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-s3c24xx/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extern unsigned int s3c2410_modify_misccr(unsigned int clr, unsigned int chg);

#endif /* __ASSEMBLY__ */

#include <asm/sizes.h>
#include <linux/sizes.h>
#include <mach/map.h>

#endif /* __ASM_ARCH_HARDWARE_H */
2 changes: 1 addition & 1 deletion arch/arm/mach-sa1100/include/mach/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H

#include <asm/sizes.h>
#include <linux/sizes.h>

/*
* Because of the wide memory address space between physical RAM banks on the
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-sa1100/neponset.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <asm/mach-types.h>
#include <asm/mach/map.h>
#include <asm/hardware/sa1111.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#include <mach/hardware.h>
#include <mach/assabet.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/iomap.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define __MACH_TEGRA_IOMAP_H

#include <asm/pgtable.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#define TEGRA_IRAM_BASE 0x40000000
#define TEGRA_IRAM_SIZE SZ_256K
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-tegra/irammap.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef __MACH_TEGRA_IRAMMAP_H
#define __MACH_TEGRA_IRAMMAP_H

#include <asm/sizes.h>
#include <linux/sizes.h>

/* The first 1K of IRAM is permanently reserved for the CPU reset handler */
#define TEGRA_IRAM_RESET_HANDLER_OFFSET 0
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-w90x900/include/mach/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H

#include <asm/sizes.h>
#include <linux/sizes.h>
#include <mach/map.h>

#endif /* __ASM_ARCH_HARDWARE_H */
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/boot.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef __ASM_BOOT_H
#define __ASM_BOOT_H

#include <asm/sizes.h>
#include <linux/sizes.h>

/*
* arm64 requires the DTB to be 8 byte aligned and
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/types.h>
#include <asm/bug.h>
#include <asm/page-def.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

/*
* Size of the PCI I/O space. This must remain a power of two so that
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include <asm/numa.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/tlb.h>
#include <asm/alternative.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/mm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <asm/kernel-pgtable.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/tlb.h>
#include <asm/mmu_context.h>
#include <asm/ptdump.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/nds32/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define __PAGETABLE_PMD_FOLDED 1
#include <asm-generic/4level-fixup.h>
#include <asm-generic/sizes.h>
#include <linux/sizes.h>

#include <asm/memory.h>
#include <asm/nds32.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/nds32/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <asm/asm-offsets.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/thread_info.h>

#ifdef CONFIG_CPU_BIG_ENDIAN
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-apsh4a3a.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/irq.h>
#include <linux/clk.h>
#include <asm/machvec.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/clock.h>

static struct mtd_partition nor_flash_partitions[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-apsh4ad0a.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/irq.h>
#include <linux/clk.h>
#include <asm/machvec.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

/* Dummy supplies, where voltage doesn't matter */
static struct regulator_consumer_supply dummy_supplies[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-edosk7705.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/smc91x.h>
#include <linux/sh_intc.h>
#include <asm/machvec.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

#define SMC_IOBASE 0xA2000000
#define SMC_IO_OFFSET 0x300
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-edosk7760.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <asm/addrspace.h>
#include <asm/delay.h>
#include <asm/i2c-sh7760.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

/* Bus state controller registers for CS4 area */
#define BSC_CS4BCR 0xA4FD0010
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-espt.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <linux/sh_eth.h>
#include <linux/sh_intc.h>
#include <asm/machvec.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

/* NOR Flash */
static struct mtd_partition espt_nor_flash_partitions[] = {
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/board-urquell.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <mach/urquell.h>
#include <cpu/sh7786.h>
#include <asm/heartbeat.h>
#include <asm/sizes.h>
#include <linux/sizes.h>
#include <asm/smp-ops.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/boards/mach-microdev/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <mach/microdev.h>
#include <asm/io.h>
#include <asm/machvec.h>
#include <asm/sizes.h>
#include <linux/sizes.h>

static struct resource smc91x_resources[] = {
[0] = {
Expand Down
Loading

0 comments on commit 87dfb31

Please sign in to comment.