Skip to content

Commit 41d9c64

Browse files
mfmooneymichal42
authored andcommitted
memstick: change to new flag variable
The EXTRA_CFLAGS assignment in memstick/Makefile was not accomplishing anything because this flag only has effect on sources at the same level as the makefile (i.e., per directory). Since both core/ and host/ rely on MEMSTICK_DEBUG, the subdir-ccflags-y variant seems to be the appropriate choice. Signed-off-by: matt mooney <mfm@muteddisk.com> Acked-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent f656c25 commit 41d9c64

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎drivers/memstick/Makefile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
# Makefile for the kernel MemoryStick device drivers.
33
#
44

5-
ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
6-
EXTRA_CFLAGS += -DDEBUG
7-
endif
5+
subdir-ccflags-$(CONFIG_MEMSTICK_DEBUG) := -DDEBUG
86

97
obj-$(CONFIG_MEMSTICK) += core/
108
obj-$(CONFIG_MEMSTICK) += host/

‎drivers/memstick/core/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
# Makefile for the kernel MemoryStick core.
33
#
44

5-
ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
6-
EXTRA_CFLAGS += -DDEBUG
7-
endif
8-
95
obj-$(CONFIG_MEMSTICK) += memstick.o
106

117
obj-$(CONFIG_MSPRO_BLOCK) += mspro_block.o

‎drivers/memstick/host/Makefile‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
# Makefile for MemoryStick host controller drivers
33
#
44

5-
ifeq ($(CONFIG_MEMSTICK_DEBUG),y)
6-
EXTRA_CFLAGS += -DDEBUG
7-
endif
8-
95
obj-$(CONFIG_MEMSTICK_TIFM_MS) += tifm_ms.o
106
obj-$(CONFIG_MEMSTICK_JMICRON_38X) += jmb38x_ms.o

0 commit comments

Comments
 (0)