From patchwork Tue Jun 6 08:57:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 13268736 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0608EC77B73 for ; Tue, 6 Jun 2023 08:57:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237361AbjFFI51 (ORCPT ); Tue, 6 Jun 2023 04:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237330AbjFFI5V (ORCPT ); Tue, 6 Jun 2023 04:57:21 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 345E310D8; Tue, 6 Jun 2023 01:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=6Jfqh7+Yp3/D9bkuECnNj4TIYjvEwVcWvp8C30R7kuM=; t=1686041836; x=1687251436; b=hwGdMiArSI6kAYcv6P3jHPE9yN8Xe1y/FWd2nqq3hz7J3w+ lD/2pi1MlCR8/iRbJV6eijBRT62RgKW79Yt7f6EQ2cQEDDwOKGtom8Jwt+1KoWBsItq20P+YKab6N Ex9fbSySqEGhBCeIMkhUmff2YjIeWBuoo5Qtr6Ej1PWjpHoTC78I0IgGZofnZpxzte2nbbqjqufgy aiu5B66SFluWDk+MKY2m3dv5y0c9IS2nd+HPl62UyA6lnUJDmEyM8wlxEuXh2JfMPFXaVpB1TsY8w V96FBFuiDo40swNQJNh+keurzyvytTC82G8q4HR43OUqfADcaBUvsWRA9rLYLJ0w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q6SV7-00FTy6-1G; Tue, 06 Jun 2023 10:57:13 +0200 From: Johannes Berg To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org Cc: Masahiro Yamada , Johannes Berg Subject: [PATCH v2 2/2] kbuild: enable kernel-doc -Wall for W=2 Date: Tue, 6 Jun 2023 10:57:06 +0200 Message-Id: <20230606105706.eb8a57848349.Ibd08cad396b630b68d93b2469905ad55b375af65@changeid> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230606105706.60807b85ff79.I21ab3b54eeebd638676bead3b2f87417944e44f3@changeid> References: <20230606105706.60807b85ff79.I21ab3b54eeebd638676bead3b2f87417944e44f3@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Johannes Berg For W=2, we can enable more kernel-doc warnings, such as missing return value descriptions etc. Signed-off-by: Johannes Berg --- v2: - create command-line instead of exporting an env var, as suggested by Masahiro Yamada --- scripts/Makefile.build | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 90bb5badb0e9..920eeee2cb6e 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -102,6 +102,7 @@ endif ifneq ($(KBUILD_EXTRA_WARN),) cmd_checkdoc = $(srctree)/scripts/kernel-doc -none \ + $(if $(findstring 2, $(KBUILD_EXTRA_WARN)), -Wall) \ $(if $(KDOC_WALL), -Wall) \ $(if $(KDOC_WRETURN), -Wreturn) \ $(if $(KDOC_WSHORT_DESC), -Wshort-desc) \