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

kbuild: remove unnecessary variable initializaions

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 <yamada.m@jp.panasonic.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Peter Foley <pefoley2@pefoley.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>

authored by

Masahiro Yamada and committed by
Michal Marek
ac84eb47 895ed4e8

-69
-3
arch/arm/mach-at91/Makefile
··· 3 3 # 4 4 5 5 obj-y := irq.o gpio.o setup.o sysirq_mask.o 6 - obj-m := 7 - obj-n := 8 - obj- := 9 6 10 7 obj-$(CONFIG_OLD_CLK_AT91) += clock.o 11 8 obj-$(CONFIG_AT91_SAM9_ALT_RESET) += at91sam9_alt_reset.o
-3
arch/arm/mach-ebsa110/Makefile
··· 5 5 # Object file lists. 6 6 7 7 obj-y := core.o io.o leds.o 8 - obj-m := 9 - obj-n := 10 - obj- :=
-3
arch/arm/mach-ep93xx/Makefile
··· 2 2 # Makefile for the linux kernel. 3 3 # 4 4 obj-y := core.o clock.o 5 - obj-m := 6 - obj-n := 7 - obj- := 8 5 9 6 obj-$(CONFIG_EP93XX_DMA) += dma.o 10 7
-5
arch/arm/mach-exynos/Makefile
··· 7 7 8 8 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include 9 9 10 - obj-y := 11 - obj-m := 12 - obj-n := 13 - obj- := 14 - 15 10 # Core 16 11 17 12 obj-$(CONFIG_ARCH_EXYNOS) += exynos.o pmu.o exynos-smc.o firmware.o
-3
arch/arm/mach-footbridge/Makefile
··· 5 5 # Object file lists. 6 6 7 7 obj-y := common.o dma.o isa-irq.o 8 - obj-m := 9 - obj-n := 10 - obj- := 11 8 12 9 pci-y += dc21285.o 13 10 pci-$(CONFIG_ARCH_CATS) += cats-pci.o
-5
arch/arm/mach-iop13xx/Makefile
··· 1 - obj-y := 2 - obj-m := 3 - obj-n := 4 - obj- := 5 - 6 1 obj-$(CONFIG_ARCH_IOP13XX) += setup.o 7 2 obj-$(CONFIG_ARCH_IOP13XX) += irq.o 8 3 obj-$(CONFIG_ARCH_IOP13XX) += pci.o
-3
arch/arm/mach-iop32x/Makefile
··· 3 3 # 4 4 5 5 obj-y := irq.o 6 - obj-m := 7 - obj-n := 8 - obj- := 9 6 10 7 obj-$(CONFIG_MACH_GLANTANK) += glantank.o 11 8 obj-$(CONFIG_ARCH_IQ80321) += iq80321.o
-3
arch/arm/mach-iop33x/Makefile
··· 3 3 # 4 4 5 5 obj-y := irq.o uart.o 6 - obj-m := 7 - obj-n := 8 - obj- := 9 6 10 7 obj-$(CONFIG_ARCH_IQ80331) += iq80331.o 11 8 obj-$(CONFIG_MACH_IQ80332) += iq80332.o
-3
arch/arm/mach-ks8695/Makefile
··· 4 4 # 5 5 6 6 obj-y := cpu.o irq.o time.o devices.o 7 - obj-m := 8 - obj-n := 9 - obj- := 10 7 11 8 # PCI support is optional 12 9 obj-$(CONFIG_PCI) += pci.o
-4
arch/arm/mach-rpc/Makefile
··· 5 5 # Object file lists. 6 6 7 7 obj-y := dma.o ecard.o fiq.o irq.o riscpc.o time.o 8 - obj-m := 9 - obj-n := 10 - obj- := 11 -
-5
arch/arm/mach-s3c24xx/Makefile
··· 7 7 # 8 8 # Licensed under GPLv2 9 9 10 - obj-y := 11 - obj-m := 12 - obj-n := 13 - obj- := 14 - 15 10 # core 16 11 17 12 obj-y += common.o
-5
arch/arm/mach-s3c64xx/Makefile
··· 5 5 # 6 6 # Licensed under GPLv2 7 7 8 - obj-y := 9 - obj-m := 10 - obj-n := 11 - obj- := 12 - 13 8 # Core 14 9 15 10 obj-y += common.o
-5
arch/arm/mach-s5pv210/Makefile
··· 7 7 8 8 ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include 9 9 10 - obj-y := 11 - obj-m := 12 - obj-n := 13 - obj- := 14 - 15 10 # Core 16 11 17 12 obj-$(CONFIG_PM_SLEEP) += pm.o sleep.o
-3
arch/arm/mach-sa1100/Makefile
··· 4 4 5 5 # Common support 6 6 obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o 7 - obj-m := 8 - obj-n := 9 - obj- := 10 7 11 8 # Specific board support 12 9 obj-$(CONFIG_SA1100_ASSABET) += assabet.o
-3
arch/arm/mach-u300/Makefile
··· 3 3 # 4 4 5 5 obj-y := core.o 6 - obj-m := 7 - obj-n := 8 - obj- := 9 6 10 7 obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o 11 8 obj-$(CONFIG_REGULATOR_AB3100) += regulator.o
-6
arch/arm/plat-iop/Makefile
··· 2 2 # Makefile for the linux kernel. 3 3 # 4 4 5 - obj-y := 6 - 7 5 # IOP32X 8 6 obj-$(CONFIG_ARCH_IOP32X) += i2c.o 9 7 obj-$(CONFIG_ARCH_IOP32X) += pci.o ··· 25 27 # IOP13XX 26 28 obj-$(CONFIG_ARCH_IOP13XX) += cp6.o 27 29 obj-$(CONFIG_ARCH_IOP13XX) += time.o 28 - 29 - obj-m := 30 - obj-n := 31 - obj- :=
-3
arch/arm/plat-omap/Makefile
··· 6 6 7 7 # Common support 8 8 obj-y := sram.o dma.o counter_32k.o 9 - obj-m := 10 - obj-n := 11 - obj- := 12 9 13 10 # omap_device support (OMAP2+ only at the moment) 14 11
-4
arch/arm/plat-samsung/Makefile
··· 6 6 7 7 ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include 8 8 9 - obj-y := 10 - obj-m := 11 - obj- := 12 - 13 9 # Objects we always build independent of SoC choice 14 10 15 11 obj-y += init.o cpu.o