Skip to content

Commit 98366c2

Browse files
committed
sh: Add -Werror for clean directories.
Follow the MIPS and sparc64 changes for -Werror instrumentation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 808bde2 commit 98366c2

6 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎arch/sh/cchips/hd6446x/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
obj-$(CONFIG_HD64461) += hd64461.o
22
obj-$(CONFIG_HD64465) += hd64465/
3+
4+
EXTRA_CFLAGS += -Werror

‎arch/sh/cchips/voyagergx/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ obj-y := irq.o setup.o
66

77
obj-$(CONFIG_USB_OHCI_HCD) += consistent.o
88

9+
EXTRA_CFLAGS += -Werror

‎arch/sh/kernel/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ obj-y := debugtraps.o io.o io_generic.o irq.o machvec.o process.o ptrace.o \
1010

1111
obj-y += cpu/ timers/
1212
obj-$(CONFIG_VSYSCALL) += vsyscall/
13-
1413
obj-$(CONFIG_SMP) += smp.o
1514
obj-$(CONFIG_CF_ENABLER) += cf-enabler.o
1615
obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o
@@ -22,3 +21,5 @@ obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
2221
obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
2322
obj-$(CONFIG_PM) += pm.o
2423
obj-$(CONFIG_STACKTRACE) += stacktrace.o
24+
25+
EXTRA_CFLAGS += -Werror

‎arch/sh/lib/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ memcpy-y := memcpy.o
99
memcpy-$(CONFIG_CPU_SH4) := memcpy-sh4.o
1010

1111
lib-y += $(memcpy-y)
12+
13+
EXTRA_CFLAGS += -Werror

‎arch/sh/mm/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ endif
3333
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
3434
obj-$(CONFIG_32BIT) += pmb.o
3535
obj-$(CONFIG_NUMA) += numa.o
36+
37+
EXTRA_CFLAGS += -Werror

‎arch/sh/oprofile/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ profdrvr-$(CONFIG_CPU_SUBTYPE_SH7091) := op_model_sh7750.o
1515

1616
oprofile-y := $(DRIVER_OBJS) $(profdrvr-y)
1717

18+
EXTRA_CFLAGS += -Werror

0 commit comments

Comments
 (0)