From patchwork Fri Jun 2 21:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 13265847 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 32412C77B7A for ; Fri, 2 Jun 2023 21:00:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236381AbjFBVA3 (ORCPT ); Fri, 2 Jun 2023 17:00:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235923AbjFBVA3 (ORCPT ); Fri, 2 Jun 2023 17:00:29 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8628E44; Fri, 2 Jun 2023 14:00:26 -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=tML0IzPFBtLerBMNlD1/rTkDJlPPcitapvPwY9vPC0M=; t=1685739626; x=1686949226; b=j2Q4K5+PW784UIb9ZDlEGWKuXq5F8nfShe0nNeOI1Qhj8Ks RWySFDZHTmK49Mtsr30Ghp6UJlbbq0wW8xo2PGDKJWeycREsadmODk7IZwkXIfLYkUl4Mcpm/Y/PG 9mOTkxJvqrMG+vij1jadhc/8P0nQSYc2xjTu1eTCpdTnfay/GzlTuUBcvqehiiqAuHP6wao8K2nrL /u6LReRqJ6kSnuAP0HDemNT1t6H+6dmrfujbDJgm7JEQwbTUZbSZskdmjRkvSBye4/SawDA6WQcOw FVduz9dk8BnN3KnjCUbEnGF0+ljAvfeukcoZnVUyaJRjNChCr4IPjQsfOopZctEg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1q5Bsk-00BgEs-2o; Fri, 02 Jun 2023 23:00:22 +0200 From: Johannes Berg To: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, Johannes Berg Subject: [PATCH 2/2] kbuild: enable kernel-doc -Wall for W=2 Date: Fri, 2 Jun 2023 23:00:14 +0200 Message-Id: <20230602230014.ca0aede8195f.Ibd08cad396b630b68d93b2469905ad55b375af65@changeid> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230602230014.a435aab03cee.I21ab3b54eeebd638676bead3b2f87417944e44f3@changeid> References: <20230602230014.a435aab03cee.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 --- scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 40cd13eca82e..d77eb2474a67 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -85,6 +85,7 @@ KBUILD_CFLAGS += $(call cc-option, -Wunused-macros) KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN2 +export KDOC_WALL=1 endif #