All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] omap build warnings gone in fixes branch
@ 2011-11-03 17:44 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2011-11-03 17:44 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap

Hi all,

So what we have in the current fixes branch does not produce
any compiler warnings for omap1_defconfig or omap2plus_defconfig.
Let's plan on keeping it that way.

I'll be test compiling all the new patches with the following
patch applied, and I suggest anybody queueing patches touching
arch/arm/*omap*/ code will do the same.

Looks some makefiles have -Werror flags in them, but
I don't think we want to enable this by default because of
different compiler versions emitting different warnings.

If we wanted to enable it by default, we should test it with
a range of compilers. And I could see a bunch of warnings
popping up, for example, if we start compiling for 64-bit at
some point.

Cheers,

Tony


From: Tony Lindgren <tony@atomide.com>
Date: Thu, 3 Nov 2011 10:12:40 -0700
Subject: [RFC] ARM: OMAP: Set -Werror flags for arch/arm/*omap*/Makefile

With the remaining build warnings finally gone, let's keep
things that way. Please use this patch to test build new
patches so the new code won't add warnings.

We probably don't want to enable this by default as the
warnings may depend on compiler version.

Signed-off-by: Tony Lindgren <tony@atomide.com>

--- a/arch/arm/mach-omap1/Makefile
+++ b/arch/arm/mach-omap1/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-y := -Werror
+
 # Common support
 obj-y := io.o id.o sram.o time.o irq.o mux.o flash.o serial.o devices.o dma.o
 obj-y += clock.o clock_data.o opp_data.o reset.o pm_bus.o timer.o
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-y := -Werror
+
 # Common support
 obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \
 	 common.o gpio.o dma.o wd_timer.o
--- a/arch/arm/plat-omap/Makefile
+++ b/arch/arm/plat-omap/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+flags-y := -Werror
+
 # Common support
 obj-y := common.o sram.o clock.o devices.o dma.o mux.o \
 	 usb.o fb.o io.o counter_32k.o

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC] omap build warnings gone in fixes branch
@ 2011-11-03 17:44 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2011-11-03 17:44 UTC (permalink / raw)
  To: linux-arm-kernel

Hi all,

So what we have in the current fixes branch does not produce
any compiler warnings for omap1_defconfig or omap2plus_defconfig.
Let's plan on keeping it that way.

I'll be test compiling all the new patches with the following
patch applied, and I suggest anybody queueing patches touching
arch/arm/*omap*/ code will do the same.

Looks some makefiles have -Werror flags in them, but
I don't think we want to enable this by default because of
different compiler versions emitting different warnings.

If we wanted to enable it by default, we should test it with
a range of compilers. And I could see a bunch of warnings
popping up, for example, if we start compiling for 64-bit at
some point.

Cheers,

Tony


From: Tony Lindgren <tony@atomide.com>
Date: Thu, 3 Nov 2011 10:12:40 -0700
Subject: [RFC] ARM: OMAP: Set -Werror flags for arch/arm/*omap*/Makefile

With the remaining build warnings finally gone, let's keep
things that way. Please use this patch to test build new
patches so the new code won't add warnings.

We probably don't want to enable this by default as the
warnings may depend on compiler version.

Signed-off-by: Tony Lindgren <tony@atomide.com>

--- a/arch/arm/mach-omap1/Makefile
+++ b/arch/arm/mach-omap1/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-y := -Werror
+
 # Common support
 obj-y := io.o id.o sram.o time.o irq.o mux.o flash.o serial.o devices.o dma.o
 obj-y += clock.o clock_data.o opp_data.o reset.o pm_bus.o timer.o
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+ccflags-y := -Werror
+
 # Common support
 obj-y := id.o io.o control.o mux.o devices.o serial.o gpmc.o timer.o pm.o \
 	 common.o gpio.o dma.o wd_timer.o
--- a/arch/arm/plat-omap/Makefile
+++ b/arch/arm/plat-omap/Makefile
@@ -2,6 +2,8 @@
 # Makefile for the linux kernel.
 #
 
+flags-y := -Werror
+
 # Common support
 obj-y := common.o sram.o clock.o devices.o dma.o mux.o \
 	 usb.o fb.o io.o counter_32k.o

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-03 17:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-03 17:44 [RFC] omap build warnings gone in fixes branch Tony Lindgren
2011-11-03 17:44 ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.