From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753129AbdKTVW5 (ORCPT ); Mon, 20 Nov 2017 16:22:57 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:46357 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753068AbdKTVWz (ORCPT ); Mon, 20 Nov 2017 16:22:55 -0500 X-Google-Smtp-Source: AGs4zMaa7hkPLbbrTXMVb7Q2sfGg1CcfvPGcfZiA39sfFHkJjfzGm/yZsEhSH0xqFNPVz/SicjOv1w== Date: Mon, 20 Nov 2017 22:22:52 +0100 From: Luc Van Oostenryck To: Knut Omang Cc: Jim Davis , Masahiro Yamada , Linux Kernel Mailing List , Michal Marek , Linux Kbuild mailing list Subject: Re: [PATCH 2/7] kbuild: Add P= command line flag to run checkpatch Message-ID: <20171120212251.k4uvdstfhg6qtrag@ltop.local> References: <716fa938a4ab0ad66490b72e2ed750cd6583728f.1510840787.git-series.knut.omang@oracle.com> <20171120200827.726yhebihjhrhted@ltop.local> <1511212212.4822.66.camel@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1511212212.4822.66.camel@oracle.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 20, 2017 at 10:10:12PM +0100, Knut Omang wrote: > On Mon, 2017-11-20 at 21:08 +0100, Luc Van Oostenryck wrote: > > > > It should be noted though that CHECKFLAGS contains very very few > > sparse specific things. It's mainly flags for the compiler > > coming from KBUILD_CFLAGS (which of course, sparse needs to > > do its job properly). > > Yes, and we would want some arguments passed to checkpatch by default as well. > > A wrapper script (which by the way was what I started this with..) > could of course solve this and other issues such as the ability > to run multiple checkers, but I am not convinced that that would be > less ugly? A wrapper script is something else that need to be maintained but of course, it's very flexible. I don't have a strong opinion on this and prefer to let speak the people who maintain kbuild. Should it be possible to somehow keep the distinction between the flags coming from KBUILD_CFLAGS and the pure CHECKFLAGS? -- Luc Van Oostenryck