* [PATCH] drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
@ 2013-03-10 4:21 Chen Gang
2013-03-11 14:02 ` Rob Clark
0 siblings, 1 reply; 2+ messages in thread
From: Chen Gang @ 2013-03-10 4:21 UTC (permalink / raw)
To: airlied, robdclark, sumit.semwal, archit
Cc: Vladimir Kondratiev, dri-devel, Greg KH
When make with EXTRA_CFLAGS=-W, it will report error.
so give a check in Makefile.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
---
drivers/gpu/drm/omapdrm/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/omapdrm/Makefile b/drivers/gpu/drm/omapdrm/Makefile
index d85e058..8beaf05 100644
--- a/drivers/gpu/drm/omapdrm/Makefile
+++ b/drivers/gpu/drm/omapdrm/Makefile
@@ -3,7 +3,10 @@
# Direct Rendering Infrastructure (DRI)
#
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+ ccflags-y += -Werror
+endif
omapdrm-y := omap_drv.o \
omap_irq.o \
omap_debugfs.o \
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS
2013-03-10 4:21 [PATCH] drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS Chen Gang
@ 2013-03-11 14:02 ` Rob Clark
0 siblings, 0 replies; 2+ messages in thread
From: Rob Clark @ 2013-03-11 14:02 UTC (permalink / raw)
To: Chen Gang; +Cc: sumit.semwal, Greg KH, dri-devel, Vladimir Kondratiev
On Sat, Mar 9, 2013 at 11:21 PM, Chen Gang <gang.chen@asianux.com> wrote:
>
> When make with EXTRA_CFLAGS=-W, it will report error.
> so give a check in Makefile.
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
> drivers/gpu/drm/omapdrm/Makefile | 5 ++++-
> 1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/omapdrm/Makefile b/drivers/gpu/drm/omapdrm/Makefile
> index d85e058..8beaf05 100644
> --- a/drivers/gpu/drm/omapdrm/Makefile
> +++ b/drivers/gpu/drm/omapdrm/Makefile
> @@ -3,7 +3,10 @@
> # Direct Rendering Infrastructure (DRI)
> #
>
> -ccflags-y := -Iinclude/drm -Werror
> +ccflags-y := -Iinclude/drm
> +ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
> + ccflags-y += -Werror
> +endif
> omapdrm-y := omap_drv.o \
> omap_irq.o \
> omap_debugfs.o \
> --
> 1.7.7.6
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-11 14:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-10 4:21 [PATCH] drivers/gpu/drm/omapdrm: Makefile, only -Werror when no -W* in EXTRA_CFLAGS Chen Gang
2013-03-11 14:02 ` Rob Clark
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.