Received: by 10.223.164.202 with SMTP id h10csp4299419wrb; Mon, 20 Nov 2017 13:11:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMZxQLy1V6hMcBBAWqW+4FZ7/HPzBM/KiS63zTEtIheYSSKFTVHN+hkCieG2ZCbrzJpz5Fb3 X-Received: by 10.159.218.137 with SMTP id w9mr15413586plp.139.1511212270548; Mon, 20 Nov 2017 13:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511212270; cv=none; d=google.com; s=arc-20160816; b=V/hRzCEO6545DH4PIhyhFhIa/J/KjBooN7efCRsDnprBrdlY6RF1869jzFyjTfBE1/ o4qk8OM0vnP9cq72IrUgFuRheOeS+mvu0OJbWDM+kk/DwNHDHaRm6fHY8Yc/mFd05vM0 qwI8c+IfP841oOOnp1wIIbERZkJKBKoQZBqKrNVQWHUzJRGWrIbxOVSCYZQ4qSeK19D7 /q1qh7eSWHTv3xwcXlXNN06x3U6yNJgSQpQBns10eJ4vVgox3a0b6Ho1K65Srg+uU1Tk kwaWWTFPdcZljkIzYdBVqU+A6VkFExYR0hny3kmBoZ0GMbXGuQ2bb/xsQ7ZC4oWQoVKp c5iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=PI0qXdwut2M80HLGn+e7NKyDCgZAdgMUo6lBZUZ3mkg=; b=vM+JLhC0Eh0QjDmHqdxch2xwUO6IcLdTVksT4DjxhNcNUHvcuy3rwhk4QEyzrrj7ed KdVy1SOuB0uVpa20EhmGJA2jSERXVJNnir9pdExFkxnEToFD7CnvEVVBkgTOxMoY1sD1 y7QeHCp8+hfhei9BtlMVtI48rSKiOMWf69MJzd67nl2BmkiCXBppUSFCibJgjxb6z51x CHOD+dvgSyE+nUNq/+4ZKMxAhQEJvvEADhQkobNZIZ5dPO/16R+gfjUjmun4oalWR3Sd l/I/Im+fb3x60f9ycspQWr+lpe67Hf54g21J7NRD0x7OV8+AXiwmJEot8u8+VEqsBkuR YvOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4si7799676plo.211.2017.11.20.13.11.00; Mon, 20 Nov 2017 13:11:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752834AbdKTVKZ (ORCPT + 67 others); Mon, 20 Nov 2017 16:10:25 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:41056 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbdKTVKY (ORCPT ); Mon, 20 Nov 2017 16:10:24 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAKLAIcA029165 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Nov 2017 21:10:18 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vAKLAH5R026973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Nov 2017 21:10:17 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAKLAHl8013659; Mon, 20 Nov 2017 21:10:17 GMT Received: from ovo (/213.188.19.149) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 20 Nov 2017 13:10:16 -0800 Message-ID: <1511212212.4822.66.camel@oracle.com> Subject: Re: [PATCH 2/7] kbuild: Add P= command line flag to run checkpatch From: Knut Omang To: Luc Van Oostenryck , Jim Davis Cc: Masahiro Yamada , Linux Kernel Mailing List , Michal Marek , Linux Kbuild mailing list Date: Mon, 20 Nov 2017 22:10:12 +0100 In-Reply-To: <20171120200827.726yhebihjhrhted@ltop.local> References: <716fa938a4ab0ad66490b72e2ed750cd6583728f.1510840787.git-series.knut.omang@oracle.com> <20171120200827.726yhebihjhrhted@ltop.local> Organization: Oracle Inc Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2017-11-20 at 21:08 +0100, Luc Van Oostenryck wrote: > On Mon, Nov 20, 2017 at 12:48:35PM -0700, Jim Davis wrote: > > > > I'd be nice if people could just specify CHECK and CHECKFLAGS to run > > their favorite checker, but currently CHECKFLAGS seems hardwired for > > running sparse. So something liike > > > > make C=1 CHECK="scripts/checkpatch.pl" CHECKFLAGS="--quiet --file" > > > > fails when checkpatch is passed lots of arguments like -D__linux__ > > -Dlinux -D__STDC__ . A little shell wrapper to grab the last argument > > in that long list is a workaround, but perhaps CHECKFLAGS should be > > made less sparse-specific? > > 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? Thanks, Knut > > -- Luc Van Oostenryck From 1584620574998414257@xxx Mon Nov 20 21:05:43 +0000 2017 X-GM-THRID: 1584259521491508959 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread