Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp216914imm; Tue, 24 Jul 2018 17:34:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdbpl7+BSWFCHXAvBdhxjFeVC7WIaUG3hkz/aF3R/rG8Lmg84rvubbK7RROIBocwourNasI X-Received: by 2002:a65:5c03:: with SMTP id u3-v6mr17475667pgr.402.1532478862822; Tue, 24 Jul 2018 17:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532478862; cv=none; d=google.com; s=arc-20160816; b=QHCy7jXac7B/ybU42pTDkeWaT7H1SdMMSfyzWJXGFi6UlZ1msQ7Ttcq4zoW/TkZ4iB UKIBnt/QSgcwxqNCrsQwoWbCXxbgIdhpeF48djiiJSlzLcqBWyqPB3tlvy/5FE9cGVpF s0Krq4/RUp933jl44O9r+sOqRpvbMp5/B9njXBu45nw42uvVfHFgYk7g0SkXsl99qLrh nO5IzmDJVKe+/1872gy8VzzldkqZPvsG1OnRGuQage8nbFoTziRIDUqL93V5y0neG1Vz wYk+XgdfTyNYkBBx1J34CR6X/RGUBrSOGfeXv3Rgyi/4+riLjL3eWuMXwy5/ynmKLdI7 FPsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=7A/B1UCs2mLTs/6MDOFN+OAmyIvPp/sz64dB8LDfJag=; b=Dfj8TyUAVnonuwD2TlcrJzpEdy2xiFBk/jXeMBcn/cWrorC629eDq2f36U3ck7furK wIVN50VC1Ct2lSpF1hq/XAjoGNXp8uokRMdrlttRqobxIJwHad9cYo/yYltaK0wKZn85 u5+EPJ/DRoE4xNYbZInC4M6JNme58GRQt5yaFfK0fnNN00aPRv8fY7/cPzrhLK+ny971 CoUQspYScy8yjy2PXAGZ5itO0ZzlvKtOWhTGi3U/Rt2CRS3pcS4QTb1oN3VubOyL0oI1 eM7J5rGrG6n4bgmz+STW+E97XEIkJaQZnSr2olWDDrBMdf6P6P90HQPybwmSNES1nrTY c3ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si12721756pgb.107.2018.07.24.17.34.08; Tue, 24 Jul 2018 17:34:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388532AbeGYBmM (ORCPT + 99 others); Tue, 24 Jul 2018 21:42:12 -0400 Received: from smtprelay0014.hostedemail.com ([216.40.44.14]:53692 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388441AbeGYBmM (ORCPT ); Tue, 24 Jul 2018 21:42:12 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 6F69818013216; Wed, 25 Jul 2018 00:33:10 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,3,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:800:967:973:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2525:2560:2564:2682:2685:2828:2859:2911:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3653:3865:3866:3867:3868:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4425:5007:6117:7903:9025:9388:10004:10400:10848:10904:11232:11658:11914:12043:12050:12295:12555:12740:12760:12776:12895:12986:13069:13141:13161:13229:13230:13311:13357:13439:14181:14659:14721:14849:21080:21451:21627:21749:21788:30054:30056:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: feast04_72d69ace06534 X-Filterd-Recvd-Size: 1813 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Wed, 25 Jul 2018 00:33:09 +0000 (UTC) Message-ID: <612de3c34f4986ac3ee6040af200a0e179acdcbd.camel@perches.com> Subject: Re: Reminder to review a few patches sent two weeks ago From: Joe Perches To: pheragu@codeaurora.org, Apw Cc: Linux Kernel , Bryanh , Ckadabi , Tsoni Date: Tue, 24 Jul 2018 17:33:07 -0700 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-07-24 at 14:56 -0700, pheragu@codeaurora.org wrote: > A reminder to review a few patches I had sent last week. Below are the > links for the patches. > > https://lkml.org/lkml/2018/7/5/798 I have no fundamental object to this one, but the 80 column use is unnecessary and should be coalesced before it can be applied. Perhaps: # warn about #if 1 if ($line =~ /^.\s*\#\s*if\s+1\b/) { WARN("IF_1", "Consider removing the #if 1 and its #endif\n" . $herecurr); } > http://lists-archives.com/linux-kernel/29168320-checkpatch-check-for-invalid-return-codes.html This one has I think too many existing uses of things like "return -1;" $ git grep -P "return\s*\-\d+\s*;" | wc -l 9929 How many of these are actually appropriate? Also, no space is required between return and -1 by c90 and this should use $Int so it should be: if ($line =~ /\breturn\s*\-\$Int\s*;/) { etc...