Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2865199pxj; Mon, 17 May 2021 11:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq5XW9OmLmoJCm9gSYgLx5L7ImTeofbtFBkMa4ndgnEeIOx83nKEvQ2HQrBBJKwYrHxibQ X-Received: by 2002:a17:906:24c7:: with SMTP id f7mr1302841ejb.511.1621276694907; Mon, 17 May 2021 11:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621276694; cv=none; d=google.com; s=arc-20160816; b=Xced23PL1t2XUz8MeHrTn5Ws+IJPbg+3CZSn0QZFEJD01myda6yR3nWwhU8gddKdPY INtDBHdvYtV/xl4+vW3NsO2OtyISyUFGZgAIvfIi4IkojeDi0UhXkJNKb+JHmdJUjRQ0 6Kq34YRGIRh13bczTunDlnh9vRwt3ustVngGunGQa/gkjVl1RCDZNdMryo1kGaAkebN7 S6rdwNJz7FB2RhTVtTYAemQfCLMIa/GS8MMVJwkmeHhzvyuB8zR3x6+yaMWo/uVSW/hi uiYGgAe6IIT7lSZzTswAOut1z0pYkU6RAJKwS1os/JA3KEsqI3NAC0gCuwajFebEqvxg RUdg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=wai1pxryNP2Id87yrUexEFTKzgLGEAMZCYDxDD+HXTA=; b=pP1oqiCAwqiEuAu+Qsk3aEFVFsyHQ8XsxBA/JhL8XDQaWXE0cfNtbyhogHTMtjIkEZ VSsufht5unDRNr1ZIGCRaXEN4QK+tUmdiX3aZOy9GHT5DaQNGBpYEq8AD/pTNOlsH7XM 1JOP42z1pcYR5+H3zhCu+efWFzLL419aH7uPrtcnna3msek1fAe93NOgPZB7JXjLW68w FJCyR/gQrw52KH+RsMY91q2TUmG5KDWaqVEjtcz6lzcwqu1s7JcN9fAQWbKLVYCZ8WJ5 LqtOy/iHkWUl7omlUjGN9CkM/VSjR5Q+AfjyVX138q1AapbZNTrKG4UWFwZIzuk9/BDd B7xw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si15445663edc.411.2021.05.17.11.37.51; Mon, 17 May 2021 11:38:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237326AbhEQNTe (ORCPT + 99 others); Mon, 17 May 2021 09:19:34 -0400 Received: from smtprelay0156.hostedemail.com ([216.40.44.156]:60634 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235741AbhEQNTe (ORCPT ); Mon, 17 May 2021 09:19:34 -0400 Received: from omf11.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 4B13D8E47; Mon, 17 May 2021 13:18:17 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA id EEA5F20A29C; Mon, 17 May 2021 13:18:15 +0000 (UTC) Message-ID: Subject: Re: [PATCH v3] Documentation: checkpatch: add description if no filenames are given From: Joe Perches To: Tiezhu Yang , Dwaipayan Ray , Lukas Bulwahn , Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 17 May 2021 06:18:13 -0700 In-Reply-To: <1621243800-27702-1-git-send-email-yangtiezhu@loongson.cn> References: <1621243800-27702-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout01 X-Rspamd-Queue-Id: EEA5F20A29C X-Spam-Status: No, score=0.67 X-Stat-Signature: uqwgz8pwa5gjz7yiihkm7ifkrzyf4jwn X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/Bsuw/kvhPxzWmKVCCENV5N38rY/sSK9Y= X-HE-Tag: 1621257495-726854 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2021-05-17 at 17:30 +0800, Tiezhu Yang wrote: > After commit 45107ff6d526 ("checkpatch: if no filenames then read stdin"), > if no filenames are given, it will read patch from stdin rather than exit > directly. This means the script waits for input indefinitely, which > confuses new checkpatch users at first. > > Add some basic documentation on this behaviour of checkpatch to lower > the confusion. You might also consider adding something to the checkpatch --help content in checkpatch itself. > diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst [] > @@ -22,6 +22,8 @@ Usage:: > ? > ???./scripts/checkpatch.pl [OPTION]... [FILE]... > > +When FILE is -, or absent, checkpatch reads from standard input. > + > ?Available options: