Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3338095ybt; Mon, 22 Jun 2020 23:02:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmNlYdcXhjKBeVw6yzHYHmboKCbfMIop95NRj41JsJuJy2cIXoUHIzYshqyt2E1cEaE+mT X-Received: by 2002:a17:906:7686:: with SMTP id o6mr7156057ejm.326.1592892140074; Mon, 22 Jun 2020 23:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592892140; cv=none; d=google.com; s=arc-20160816; b=xU1cXU9ZXocsrWYGN3TY12ifAevf15r2Q+GsFT6pDv/now41VlWVGOJr7biAgtiCYy g3n/vY1sKG4uJrh1hC4RL7+SmQdSiq21iKN+enGI9+ThSVmObNMuQlAMeYgC513BnerB lPRovePkVUAe+AWxqAGaa/GwKq8IIRGHkatvOgkrFhSxhczoC6bV0aioLDz9ubDgq0uG JTlPzBYtgwOWitoLvbEJCxbyQl7xBEgFZCP0hEDI2arrY2Pj9cMLziSi98L945MXWLea Y+MTJKkUSDAqz+Q9CrTWnibx5/+pp80asY3PZ/7PjR4hq9rP0yQGIfOyXizeh27B2h/o RxPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=LA4ny58y0i74llSePJcU8nuoH07ULbozGJ0bUmLWE40=; b=oGnZRnPu2dF8qpzeUtz5+7jxMqUk86Ipo//ASZ8fQBDe7CcTNRTQmb9BFcGdj6NNIH TfOZHjpO53kLN3E6h+KBNryMZKn5nDlWQMx0WZWD8vq8nq2pu5+MYdreQFpuaGq4d/0o QsO4IKK6T0imOflUUiSZJRlNlAhOFkZfT2wS2pRi9ynyJcwjcTZD3s0gJxmXwbCrbE3w r92erz3oNm+FNIvwkR/Timpx/ZnQXe2e18gp1h9JLu6U3bGxpSsDaAjkbao2zaRdRLdJ mnTdBKucgY8tfMPv/qK/Gk1NXuvUMVyYJRwRO4fJwmMI0O89+n59eh2C4c9m1suNl0iV 2VEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nfX6QL33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt17si14497702ejc.457.2020.06.22.23.01.56; Mon, 22 Jun 2020 23:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nfX6QL33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730571AbgFWF7M (ORCPT + 99 others); Tue, 23 Jun 2020 01:59:12 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:57576 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730370AbgFWF7M (ORCPT ); Tue, 23 Jun 2020 01:59:12 -0400 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 05N5woOv020265 for ; Tue, 23 Jun 2020 14:58:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 05N5woOv020265 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1592891931; bh=LA4ny58y0i74llSePJcU8nuoH07ULbozGJ0bUmLWE40=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nfX6QL33WKznkuWjn9JPy62OyjuN4GLKzbLmtV2VE4puMiNuE7fM1BWGpNCms/kQU eVEpZ/NilSB7136KQfBP7xGFuhdxa5lEldl46LAIzC51ptvssRy3JaJuSoMFCyjqL+ 2IS3Vp3B4dbZQBlUBWe33qFkxtwpkAPuafABBnPXOkanUcU9vSOBvLVPd2tUVy+bJ1 Y+iwsshwRyMAqiNtNAp2sVCQm9vmx6TnZbyFva2zGoci2kk+8cMLib9jcStM+ovh+s eJ9VM1r5doZ83JjDSiz0mcjIvpLoj4Qiu7mPK5zeZx/Orko8mvdg/070Oq0qCNLd/I wtWZq7wyeS5xg== X-Nifty-SrcIP: [209.85.217.52] Received: by mail-vs1-f52.google.com with SMTP id r11so11022339vsj.5 for ; Mon, 22 Jun 2020 22:58:51 -0700 (PDT) X-Gm-Message-State: AOAM5314gYdhVJ3eYfNSNl5sqnH7VzFgwvKe3mvHXLpHNYJbu/PJwKBQ JkH4wickwcjPF7II36LeOCPwi56s5d5vC5NPrMs= X-Received: by 2002:a67:2d42:: with SMTP id t63mr17469610vst.181.1592891930200; Mon, 22 Jun 2020 22:58:50 -0700 (PDT) MIME-Version: 1.0 References: <20200622154512.82758-1-luc.vanoostenryck@gmail.com> In-Reply-To: <20200622154512.82758-1-luc.vanoostenryck@gmail.com> From: Masahiro Yamada Date: Tue, 23 Jun 2020 14:58:13 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: run the checker after the compiler To: Luc Van Oostenryck Cc: Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 12:47 AM Luc Van Oostenryck wrote: > > Since the pre-git time the checker is run first, before the compiler. > But if the source file contains some syntax error, the warnings from > the compiler are more useful than those from sparse (and other > checker most probably too). > > So move the 'check' command to run after the compiler. > > Signed-off-by: Luc Van Oostenryck Applied to linux-kbuild. Thanks. > --- > scripts/Makefile.build | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 2e8810b7e5ed..7ba6a752d5bd 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -252,9 +252,9 @@ cmd_gen_ksymdeps = \ > endif > > define rule_cc_o_c > - $(call cmd,checksrc) > $(call cmd_and_fixdep,cc_o_c) > $(call cmd,gen_ksymdeps) > + $(call cmd,checksrc) > $(call cmd,checkdoc) > $(call cmd,objtool) > $(call cmd,modversions_c) > @@ -277,8 +277,8 @@ endif > > # Built-in and composite module parts > $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE > - $(call cmd,force_checksrc) > $(call if_changed_rule,cc_o_c) > + $(call cmd,force_checksrc) > > cmd_mod = { \ > echo $(if $($*-objs)$($*-y)$($*-m), $(addprefix $(obj)/, $($*-objs) $($*-y) $($*-m)), $(@:.mod=.o)); \ > > base-commit: 48778464bb7d346b47157d21ffde2af6b2d39110 > -- > 2.27.0 > -- Best Regards Masahiro Yamada