Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757518Ab3EHRoq (ORCPT ); Wed, 8 May 2013 13:44:46 -0400 Received: from casper.infradead.org ([85.118.1.10]:35888 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756924Ab3EHRoo (ORCPT ); Wed, 8 May 2013 13:44:44 -0400 Message-ID: <518A8EE6.90206@infradead.org> Date: Wed, 08 May 2013 10:44:06 -0700 From: Randy Dunlap User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Phil Carmody CC: mmarek@suse.cz, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Makefile: make sparse (CHECK) user-selectable References: <1368026580-26897-1-git-send-email-pc+lkml@asdf.org> In-Reply-To: <1368026580-26897-1-git-send-email-pc+lkml@asdf.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1084 Lines: 39 On 05/08/13 08:23, Phil Carmody wrote: > I've got a tweaked version as well as the system default, > so make the sparse binary that's run user-selectable. > I'm confused about why this patch is necessary since I already do $ make O=builddir CHECK=/path/to/sparse all > Signed-off-by: Phil Carmody > --- > Makefile | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/Makefile b/Makefile > index a3a834b..e7a4851 100644 > --- a/Makefile > +++ b/Makefile > @@ -338,7 +338,9 @@ GENKSYMS = scripts/genksyms/genksyms > INSTALLKERNEL := installkernel > DEPMOD = /sbin/depmod > PERL = perl > -CHECK = sparse > +ifndef CHECK > + CHECK = sparse > +endif > > CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ > -Wbitwise -Wno-return-void $(CF) > -- ~Randy -- 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/