Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2475438ybt; Sun, 21 Jun 2020 22:13:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBGdfJO8ddwo1wAbSttP8jsHp/uQewFPRzy6zfBAizpZAC6G1QcmUGF+EzzX5ZCRo8eFdm X-Received: by 2002:a17:906:90cd:: with SMTP id v13mr2421491ejw.247.1592802798007; Sun, 21 Jun 2020 22:13:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592802797; cv=none; d=google.com; s=arc-20160816; b=wvweHP7P784MEcwAkUzPaZk36ERPLDWpa6m942azo+veGfwv7DfklealrNUihi9IFy 2aGacPbBCdDmde62LbRqU2cQVzDxwRthZ0miza0sKBxBGuMl1pWRYnVmEK7+flzK+QQ+ M2ozWSBMIXXowkd7vSaMmAuvr/rUXUQPGfwEyyoBIw61KDPi+1JG6wgKjIRKbe7eNxXU E+9di0lI0GCkH0QHXidGC0hQgVnIOsSuYOhXoj+li+B2ZmJQCW5FcP+uvzylwHyUgvNg KV3unvCTCRoemYU/ByMMJjGLbN2shFWRynyDj397n6PrL7yj6GbiwyIfqLwag0YaSYRf Ovyg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=rtovyjmtjdSI4mT4E8WX06Hp4IUhVZCZ0HVtU3JW7HY=; b=FprgUA4mjlNQOAnL7WaniKmkPuB+iSmhGPHxnLjykBaMHp8GTQT4AcalHk0HCQMj0I 8mL1Xob51dV5uzEtbIY6XE/Ydi5aEe152Aa2ERQy84C861uabNBCTeOL1s7rNxAD0ZiM LDipUGEjv2DiSOQENoZtFqh2D0PBfSHMt2ifxKD7RgGJrKGP7lxxi0i2prOA6qzLR3fK V+6iP8P4M9jp1aO16nnP38GNgVYg4kKyGVyGZjDrj2/FvedKzjFkcsWMXVy15UfXt1DK e9hVxplTbRVhgE5C+WlRzixraICn8+cY4ht53r6I60Eb4esOnuH7PdKVKU4ws/GrwfmX lldA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hz4MQDig; 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 gl17si8184376ejb.336.2020.06.21.22.12.54; Sun, 21 Jun 2020 22:13:17 -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=hz4MQDig; 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 S1726438AbgFVFLH (ORCPT + 99 others); Mon, 22 Jun 2020 01:11:07 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:50329 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgFVFLF (ORCPT ); Mon, 22 Jun 2020 01:11:05 -0400 Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 05M5AoTQ012538; Mon, 22 Jun 2020 14:10:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 05M5AoTQ012538 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1592802651; bh=rtovyjmtjdSI4mT4E8WX06Hp4IUhVZCZ0HVtU3JW7HY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hz4MQDigVkW8NWB38mxig1VvddkdJrlRUq1XJKR+fUdRBF8EdheuglfjDpo0qVWmp DM7f7AuU5lKGhRdd7cqoAkgV2Ohs1n9hzOKwsN2TdbtwBk/J6WGetZCe1k1lBpRM6E no/MgaM/bUGGkj1fg6dZAi0rnEPdiAnTCVfjWHZRtRtJ5gd/LS7nYws5b4MSVLa2DG ynieWT4H/CkkBoV9oM4wgmSyv84eYj+Zq4rTgiTwUYnDzk4nE5kZDfHDO64WA5rMS8 H/e7qvfyb8kz75p5tHtBT09ygDo3uhlBIbRgDwFbyu9gAH/pdIqJd5NjH38TMP/JL/ RZ5IDo4wbygYg== X-Nifty-SrcIP: [209.85.217.43] Received: by mail-vs1-f43.google.com with SMTP id 190so8887090vsr.9; Sun, 21 Jun 2020 22:10:50 -0700 (PDT) X-Gm-Message-State: AOAM530lLdGu3VbkFa4El+wMjRiKR8LpZL4vljHKEeNktv8+d4IxIAR4 lmEpwsA3Ibr4nzPUQIWnBwALuWJhDOFauxozsZ8= X-Received: by 2002:a67:22c7:: with SMTP id i190mr15249326vsi.179.1592802649777; Sun, 21 Jun 2020 22:10:49 -0700 (PDT) MIME-Version: 1.0 References: <591473.1592679153@turing-police> In-Reply-To: <591473.1592679153@turing-police> From: Masahiro Yamada Date: Mon, 22 Jun 2020 14:10:13 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kbuild: separate kerneldoc warnings from compiler warnings To: =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 21, 2020 at 3:52 AM Valdis Kl=C4=93tnieks wrote: > > This patch introduces a new build flag 'K=3D1' which controls whether ker= neldoc > warnings should be issued, separating them from the compiler warnings tha= t W=3D > controls. I do not understand why this change is needed. IIRC, our goal was to enable this check by default. https://patchwork.kernel.org/patch/10030521/ but there are so many warnings. Meanwhile, this is checked only when W=3D is given because 0-day bot tests with W=3D1 to block new kerneldoc warnings. K=3D1 ? Do people need to learn this new switch? > Signed-off-by: Valdis Kletnieks > > diff --git a/Makefile b/Makefile > index 29abe44ada91..b1c0f9484a66 100644 > --- a/Makefile > +++ b/Makefile > @@ -1605,6 +1605,7 @@ PHONY +=3D help > @echo ' (sparse by default)' > @echo ' make C=3D2 [targets] Force check of all c source with= $$CHECK' > @echo ' make RECORDMCOUNT_WARN=3D1 [targets] Warn about ignored= mcount sections' > + @echo ' make K=3D1 [targets] Warn about problems in kerneldoc= comments' > @echo ' make W=3Dn [targets] Enable extra build checks, n=3D1= ,2,3 where' > @echo ' 1: warnings which may be relevant and do = not occur too often' > @echo ' 2: warnings which occur quite often but m= ay still be relevant' > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 2e8810b7e5ed..9bcb77f5a5f1 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -100,7 +100,7 @@ else ifeq ($(KBUILD_CHECKSRC),2) > cmd_force_checksrc =3D $(CHECK) $(CHECKFLAGS) $(c_flags) $< > endif > > -ifneq ($(KBUILD_EXTRA_WARN),) > +ifneq ($(KBUILD_KDOC_WARN),) > cmd_checkdoc =3D $(srctree)/scripts/kernel-doc -none $< > endif > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index 4aea7cf71d11..3fd5881c91b0 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -17,6 +17,12 @@ endif > > export KBUILD_EXTRA_WARN > > +ifeq ("$(origin K)", "command line") > + KBUILD_KDOC_WARN :=3D $(K) > +endif > + > +export KBUILD_KDOC_WARN > + > # > # W=3D1 - warnings which may be relevant and do not occur too often > # > > --=20 Best Regards Masahiro Yamada