Message ID | 20230606105706.eb8a57848349.Ibd08cad396b630b68d93b2469905ad55b375af65@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3263965vqr; Tue, 6 Jun 2023 02:34:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5n8CRZoJNSvq6FRs9EVzB1BvPGEcl8DRc0YGVrZq2mgnXEy2xCINwm3bieC1oCtXQZV1i+ X-Received: by 2002:a17:90a:357:b0:252:7372:460c with SMTP id 23-20020a17090a035700b002527372460cmr2011885pjf.4.1686044081261; Tue, 06 Jun 2023 02:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686044081; cv=none; d=google.com; s=arc-20160816; b=K3Oo6rHZS8Lqsmg64YbtDe2xy/tiOEPkd7pupN2foUSJwowUw0y8w1yq7/buttyGLE oLzx6wfCNkqK29yN5fNB6yQOViXzlfxAHej4LEqIML7CBE5jr8plWAHonCljOGEMSUIj WqFGo7kjXDSdQFUShNlBZKVEHIn+weC2aKZMGMJUNExfTfb8SGN7N9rzwFPfbEVpONlx xRtV/7L8IVfcImx7WT9AuuBVazFwvuMoWRe4E49PTSF4bRu+rrzkmYzw9WDDifyTL56H zNpnFdQy+mrcniy8Ll1wOuPD1gmj6XhBwAdGbny9jEz+3IPbuyYUtAKWt8P/1c/iXWvl O62Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6Jfqh7+Yp3/D9bkuECnNj4TIYjvEwVcWvp8C30R7kuM=; b=OnqkBcUuNGwRJ7VmlEQMMY2CZm9tNDGe5p+Ytu2ETO91/HNY5W/fw04gmgRCU23VJ2 U9Cgh7p/cMI9G08mU2zbCJd3cNIJn3EEYBioma5Q+wC3R0tyzioxI85WPnkuol/z+oHo 3C+7KmdvR8MVrBNUjvfnfhzkIQyXto3VEp9EWxqvSc8fUUBk396/J3H00kB1DVSBV+Ap mKzQmSZ+1t9jF8w8mMShn/IKehTk92U1zeNcNNktYvYaQnwFtDt8ze1XlNaRlgFV6Rep Ech4DhRzmxPg6ISK0vZ7IG4mGK/M/6m3lXI3OvP0luZE1FOn1TK0DpJdSImRH9vrAhyJ bh0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hwGdMiAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a637a12000000b00543fccec373si295549pgc.266.2023.06.06.02.34.28; Tue, 06 Jun 2023 02:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hwGdMiAr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237364AbjFFI5c (ORCPT <rfc822;xxoosimple@gmail.com> + 99 others); Tue, 6 Jun 2023 04:57:32 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <johannes@sipsolutions.net>) id 1q6SV7-00FTy6-1G; Tue, 06 Jun 2023 10:57:13 +0200 From: Johannes Berg <johannes@sipsolutions.net> To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org Cc: Masahiro Yamada <masahiroy@kernel.org>, Johannes Berg <johannes.berg@intel.com> 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767945358451095309?= X-GMAIL-MSGID: =?utf-8?q?1767945358451095309?= |
Series |
[v2,1/2] kernel-doc: don't let V=1 change outcome
|
|
Commit Message
Johannes Berg
June 6, 2023, 8:57 a.m. UTC
From: Johannes Berg <johannes.berg@intel.com> For W=2, we can enable more kernel-doc warnings, such as missing return value descriptions etc. Signed-off-by: Johannes Berg <johannes.berg@intel.com> --- 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) \