Skip to content

Commit

Permalink
kbuild: remove unnecessary variable initializaions
Browse files Browse the repository at this point in the history
Clearing obj-y, obj-m, obj-n, obj- in each Makefile is
a useless habit.

They are non-exported variables; therefore they are always empty
whenever descending into each subdirectory.
(Moreorver, obj-y and obj-m are also set to empty at the beginning
of scripts/Makefile.build)

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Peter Foley <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
masahir0y authored and michal42 committed Oct 2, 2014
1 parent 895ed4e commit ac84eb4
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 69 deletions.
3 changes: 0 additions & 3 deletions arch/arm/mach-at91/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#

obj-y := irq.o gpio.o setup.o sysirq_mask.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_OLD_CLK_AT91) += clock.o
obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-ebsa110/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@
# Object file lists.

obj-y := core.o io.o leds.o
obj-m :=
obj-n :=
obj- :=
3 changes: 0 additions & 3 deletions arch/arm/mach-ep93xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# Makefile for the linux kernel.
#
obj-y := core.o clock.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_EP93XX_DMA) += dma.o

Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-exynos/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include

obj-y :=
obj-m :=
obj-n :=
obj- :=

# Core

obj-$(CONFIG_ARCH_EXYNOS) += exynos.o pmu.o exynos-smc.o firmware.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-footbridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
# Object file lists.

obj-y := common.o dma.o isa-irq.o
obj-m :=
obj-n :=
obj- :=

pci-y += dc21285.o
pci-$(CONFIG_ARCH_CATS) += cats-pci.o
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-iop13xx/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
obj-y :=
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_ARCH_IOP13XX) += setup.o
obj-$(CONFIG_ARCH_IOP13XX) += irq.o
obj-$(CONFIG_ARCH_IOP13XX) += pci.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop32x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#

obj-y := irq.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_MACH_GLANTANK) += glantank.o
obj-$(CONFIG_ARCH_IQ80321) += iq80321.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-iop33x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#

obj-y := irq.o uart.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_ARCH_IQ80331) += iq80331.o
obj-$(CONFIG_MACH_IQ80332) += iq80332.o
3 changes: 0 additions & 3 deletions arch/arm/mach-ks8695/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
#

obj-y := cpu.o irq.o time.o devices.o
obj-m :=
obj-n :=
obj- :=

# PCI support is optional
obj-$(CONFIG_PCI) += pci.o
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/mach-rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@
# Object file lists.

obj-y := dma.o ecard.o fiq.o irq.o riscpc.o time.o
obj-m :=
obj-n :=
obj- :=

5 changes: 0 additions & 5 deletions arch/arm/mach-s3c24xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
#
# Licensed under GPLv2

obj-y :=
obj-m :=
obj-n :=
obj- :=

# core

obj-y += common.o
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-s3c64xx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
#
# Licensed under GPLv2

obj-y :=
obj-m :=
obj-n :=
obj- :=

# Core

obj-y += common.o
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-s5pv210/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include

obj-y :=
obj-m :=
obj-n :=
obj- :=

# Core

obj-$(CONFIG_PM_SLEEP) += pm.o sleep.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-sa1100/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

# Common support
obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o
obj-m :=
obj-n :=
obj- :=

# Specific board support
obj-$(CONFIG_SA1100_ASSABET) += assabet.o
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-u300/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#

obj-y := core.o
obj-m :=
obj-n :=
obj- :=

obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o
obj-$(CONFIG_REGULATOR_AB3100) += regulator.o
6 changes: 0 additions & 6 deletions arch/arm/plat-iop/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# Makefile for the linux kernel.
#

obj-y :=

# IOP32X
obj-$(CONFIG_ARCH_IOP32X) += i2c.o
obj-$(CONFIG_ARCH_IOP32X) += pci.o
Expand All @@ -27,7 +25,3 @@ obj-$(CONFIG_ARCH_IOP33X) += restart.o
# IOP13XX
obj-$(CONFIG_ARCH_IOP13XX) += cp6.o
obj-$(CONFIG_ARCH_IOP13XX) += time.o

obj-m :=
obj-n :=
obj- :=
3 changes: 0 additions & 3 deletions arch/arm/plat-omap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-omap/include

# Common support
obj-y := sram.o dma.o counter_32k.o
obj-m :=
obj-n :=
obj- :=

# omap_device support (OMAP2+ only at the moment)

Expand Down
4 changes: 0 additions & 4 deletions arch/arm/plat-samsung/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include

obj-y :=
obj-m :=
obj- :=

# Objects we always build independent of SoC choice

obj-y += init.o cpu.o
Expand Down

0 comments on commit ac84eb4

Please sign in to comment.