Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754234Ab2EDQlg (ORCPT ); Fri, 4 May 2012 12:41:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28699 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751958Ab2EDQlf (ORCPT ); Fri, 4 May 2012 12:41:35 -0400 Date: Fri, 4 May 2012 18:41:18 +0200 From: Jiri Olsa To: Namhyung Kim Cc: Lucas De Marchi , Ingo Molnar , Greg KH , Arnaud Lacombe , David Miller , namhyung.kim@lge.com, a.p.zijlstra@chello.nl, paulus@samba.org, mingo@redhat.com, acme@ghostprotocols.net, linux-kernel@vger.kernel.org Subject: Re: [patch] perf: Fix build failure on OpenSuse userspace Message-ID: <20120504164118.GC2995@m.brq.redhat.com> References: <20120504024706.GA10461@kroah.com> <20120504031614.GA12048@kroah.com> <20120504070928.GA18351@gmail.com> <20120504152613.GB2995@m.brq.redhat.com> <87y5p8vtvb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y5p8vtvb.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1935 Lines: 54 On Sat, May 05, 2012 at 12:38:48AM +0900, Namhyung Kim wrote: > Hi, > > On Fri, 4 May 2012 17:26:13 +0200, Jiri Olsa wrote: > > On Fri, May 04, 2012 at 12:10:55PM -0300, Lucas De Marchi wrote: > >> Nah. What you need is -Wno-sign-compare. > >> > >> But you are better off overriding the CFLAGS for these generated > >> files. Just put -Wno-error as the last one (untested, but should work) > > > > yep, I think it's good idea.. and plus '-w' to suppres warnings not to > > polute the build log > > > > jirka > > Works well for me. But I guess -Wno-error turns into a nop if we use > '-w', right? argghh.. right ;) misread the man page.. I tested -w is enough thanks, jirka > > > Thank, > Namhyung > > > > > > > > --- > > diff --git a/tools/perf/Makefile b/tools/perf/Makefile > > index 7055a00..9c734a2 100644 > > --- a/tools/perf/Makefile > > +++ b/tools/perf/Makefile > > @@ -729,10 +729,10 @@ $(OUTPUT)perf.o perf.spec \ > > # over the general rule for .o > > > > $(OUTPUT)util/%-flex.o: $(OUTPUT)util/%-flex.c $(OUTPUT)PERF-CFLAGS > > - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function $< > > + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -Iutil/ -Wno-error -w $< > > > > $(OUTPUT)util/%-bison.o: $(OUTPUT)util/%-bison.c $(OUTPUT)PERF-CFLAGS > > - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Iutil/ -Wno-redundant-decls -Wno-switch-default -Wno-unused-function $< > > + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) -DYYENABLE_NLS=0 -DYYLTYPE_IS_TRIVIAL=0 -Iutil/ -Wno-error -w $< > > > > $(OUTPUT)%.o: %.c $(OUTPUT)PERF-CFLAGS > > $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/