Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1956168pxm; Thu, 24 Feb 2022 12:54:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuiPCvUiQLgbDxSvlwKKduMqVHKf/X2xIj+0Kk1CVZAPQ+dzvH2tQgG8WlRJDTmusivt3C X-Received: by 2002:a17:90b:3587:b0:1bc:87f6:73ae with SMTP id mm7-20020a17090b358700b001bc87f673aemr4507262pjb.14.1645736097353; Thu, 24 Feb 2022 12:54:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645736097; cv=none; d=google.com; s=arc-20160816; b=RzYFRZFJDch5ywWxozgWFCMR8cM6zzwVNpI8wWHG/3onbZGAhk/2Ih5jBGM/WtqILz 9pwYlCDZE5XFHj+ayTo43d8yUNbN2ieI3Wi/U4f6MCg/3SFOlGKFL3uRaHrT2h7FLufz bmkpaIXrFceplxiyvCXzGdQ+6BbxgPLIwkztKsiqtTTvSY860KZcEexbwEJ3fn99nnhr 3HuTf1WShVe4BvlF41+YKrrQJrMXbpWu0G7JxLijDqch+YLEEhFCB3nRJGGBGZFSnkQF hK7ocTXmig1HyIIovkJ3fq2H6UVCzWCJozJ0bBEEdxt/KuZ31443gg8CSh9++M5Jp/pg ntcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=iuR6bTXwXLNVJwbHRO9fEL+9jzf5zsp9TeQMDm6axF0=; b=ZAr7WFdQUVU76jfZhYAlFSuTViGHTDYe7pXrsYIhOg7vuWa4BFsPP9TqJ6J+PAupAZ iqWOiKZOcsrBiu7g4MxcbIk2hnZXXed3uOvDBjudF3s66tR/KUWmqTd3u+6XJR2Mogku l+9MGbeVcfEtPM4LhYZSCASj4ONjSDwchaKrEL0aOeYwVRQ6Qndgp7DtNSXtH5LNhG20 rkXbcTahPFd2ffX3UsAAhwD4AIj/cj69PvSAPDk4BqvK1KSzEc1ddPTz9ElGWqs510uN lTkpROFytBh69WRp9XdGP2iKlOXBbxYpAFBx1tzoY+CinKGErvdv90D5+7Fgd6wrpoxr TORA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=g+eH+UKh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a63140c000000b003659266020bsi180486pgl.680.2022.02.24.12.54.40; Thu, 24 Feb 2022 12:54:57 -0800 (PST) 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=@lwn.net header.s=20201203 header.b=g+eH+UKh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233396AbiBXTPt (ORCPT + 99 others); Thu, 24 Feb 2022 14:15:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233400AbiBXTPq (ORCPT ); Thu, 24 Feb 2022 14:15:46 -0500 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0C8822BEA5; Thu, 24 Feb 2022 11:15:16 -0800 (PST) Received: from localhost (unknown [IPv6:2601:281:8300:104d::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 62F7E5BF; Thu, 24 Feb 2022 19:15:16 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 62F7E5BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1645730116; bh=iuR6bTXwXLNVJwbHRO9fEL+9jzf5zsp9TeQMDm6axF0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=g+eH+UKhkh6PimfB7Q+3OkA4+g9EqQL4aFQZWTuAZ7j3zv5u43euu/d4YVDM29c7x U19iSPG/gX3ziopWhTaqJfA6x7IfAQiBnHDFx5j8jR2c1Soul8ZSK7O0llFWC6g2LX iIMoTrNL2XMHrTS2wSy5+Xa2JnR+Xh3Qg3jzcbL0XYUQfsrXzrmuaAIHc5Ad0QpbRa 1p452N0YpXzDsofx3+gE+OYPDOAJXcFbb1So5KCk77UaEu5QkMi/k/z8T+atPNvv+N fY6jdtV+sUc+/19G0RMFh/aF48OIlizxiYN2ST6IY3y0Ni0t/rpRDqb6MkzhUar7n4 aAdNbbP52Ksng== From: Jonathan Corbet To: Akira Yokosawa , Tomasz =?utf-8?B?V2FybmllxYLFgm8=?= Cc: Randy Dunlap , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] docs: scripts/kernel-doc: Detect absence of FILE arg In-Reply-To: <7b136049-a3ba-0eb5-8717-364d773ff914@gmail.com> References: <7b136049-a3ba-0eb5-8717-364d773ff914@gmail.com> Date: Thu, 24 Feb 2022 12:15:15 -0700 Message-ID: <87ley0krek.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Akira Yokosawa writes: > Currently, when there is no FILE argument following a switch such > as -man, -rst, or -none, kernel-doc exits with a warning from perl > (long msg folded): > > Use of uninitialized value $ARGV[0] in pattern match (m//) > at ./scripts/kernel-doc line 438. > > , which is unhelpful. > > Improve the behavior by adding a check at the bottom of parsing > loop. > If the argument is absent, display help text and exit with > the code of 1 (via usage()). As might be expected, this applied poorly after the pod patches went in. I went ahead and resolved the conflict, substituting an appropriate pod2usage() call. Thanks, jon