From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753408AbcG2Xf4 (ORCPT ); Fri, 29 Jul 2016 19:35:56 -0400 Received: from smtprelay0084.hostedemail.com ([216.40.44.84]:45809 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752032AbcG2Xfu (ORCPT ); Fri, 29 Jul 2016 19:35:50 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1431:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3653:3865:3867:3874:4321:5007:7514:7903:10004:10400:10848:11026:11232:11658:11914:12438:12517:12519:12555:12740:13069:13311:13357:13439:13894:14181:14659:14721:21080:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: level36_32a03bbcbe23b X-Filterd-Recvd-Size: 1681 Message-ID: <1469835346.3998.96.camel@perches.com> Subject: Re: [PATCH] checkpatch: if no filenames then read stdin From: Joe Perches To: Allen Hubbe , linux-kernel@vger.kernel.org Cc: Andy Whitcroft , Andrew Morton Date: Fri, 29 Jul 2016 16:35:46 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2016-07-29 at 18:27 -0400, Allen Hubbe wrote: > If no filenames are given, then read the patch from stdin. Yes, that should work. Thanks Allen. Acked-by: Joe Perches Got anymore? > Signed-off-by: Allen Hubbe > --- >  scripts/checkpatch.pl | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 90e1edc8dd42..b0659f1e9b09 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -178,9 +178,9 @@ if ($^V && $^V lt $minimum_perl_version) { >   } >  } >   > +#if no filenames are given, push '-' to read patch from stdin >  if ($#ARGV < 0) { > - print "$P: no input files\n"; > - exit(1); > + push(@ARGV, '-'); >  } >   >  sub hash_save_array_words {