Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp271170img; Mon, 18 Mar 2019 02:46:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1NoZY/mLpz+a2VPP82MQx4jwgTV8GRfYrHFc2ffjOFexAfEf/p2Uo1VwXUlSAiQutlZ84 X-Received: by 2002:a63:1156:: with SMTP id 22mr16187286pgr.357.1552902401301; Mon, 18 Mar 2019 02:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552902401; cv=none; d=google.com; s=arc-20160816; b=AUEOAXarsJvsa5weFwjBdqSYBAL9/SOL7JfHXOKQxrSF4kYisq8lemHWRrQyRu0WdS D4ZBK68+Z+8m9g6EIpCxo5MWPJO6/P/ck1wK1fEOe3xxJUSR4vXiaB0x5r/mJ5cWSF7r E/Z1xTXM9qrswiZLcY8OmOKLQXu5VleFJXv/bxdadwGUrx/GR0fEiSlFJ4AMx0trbf8D 1l7hc/Bk9K6tm6oTczzb2L3gEr0dj7bFTjiAZn0X2p4DXyfVoJXe8kz1kf5ELz2+vHDX YEQlZYO5iy/72BYPV0XEfzG7rON12/OtFu4yDq3CJ9DB8L7+5PkF5E94KFbUf6FE5Cs5 PQcQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=rzh6EdfwsZR24T/prZ/iWrf1o5ibFA2n+46udytY+og=; b=G2Dy4NI42k+Reigioi0OyZM8xgG0Mjx7ARnEM3CpIKNGISj7F0Sy5+f7CLKi/XJhb8 xSQihyIcs2l2U5uqpbn4PKXFM5PIEIxbmPqGNumsyD2dRNTxePvH4+pll9MQrFp6MJFj MTc7y9lNlGCU7+E3ZIAICgsyPyc7kC0kmm0Q+dXEc1hT2qPxjCfBGGzRvTgticn4JF6Z vVNoAvy7stuFpcRBupjABhb6YyOxGVmmiPPtYvol0YXQg+STXKp5us0U37wsOnIoUtga cz+Dzwqut7UXqO695KlnP2D+L0s3Tgp8LjscbzOEAJaMRpKyN9KTrMHiZlCEDd5TiEtx RtiA== 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 d141si9511675pfd.81.2019.03.18.02.46.26; Mon, 18 Mar 2019 02:46:41 -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 S1728417AbfCRJpK (ORCPT + 99 others); Mon, 18 Mar 2019 05:45:10 -0400 Received: from smtprelay0102.hostedemail.com ([216.40.44.102]:36818 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727358AbfCRJpJ (ORCPT ); Mon, 18 Mar 2019 05:45:09 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id A8E10180A68B8; Mon, 18 Mar 2019 09:45:07 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3870:3871:4321:5007:10004:10400:10848:11026:11232:11658:11914:12043:12048:12296:12438:12679:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21619:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,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:28,LUA_SUMMARY:none X-HE-Tag: swing88_2c9538ef6284e X-Filterd-Recvd-Size: 1753 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA; Mon, 18 Mar 2019 09:45:06 +0000 (UTC) Message-ID: <494746a793619dd9b43fb152de811a6e7de77cce.camel@perches.com> Subject: Re: [PATCH v2 01/19] locking/lockdep: Change all print_*() return type to void From: Joe Perches To: Yuyang Du , peterz@infradead.org, will.deacon@arm.com, mingo@kernel.org Cc: bvanassche@acm.org, ming.lei@redhat.com, linux-kernel@vger.kernel.org Date: Mon, 18 Mar 2019 02:45:05 -0700 In-Reply-To: <20190318085733.3143-2-duyuyang@gmail.com> References: <20190318085733.3143-1-duyuyang@gmail.com> <20190318085733.3143-2-duyuyang@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 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 Mon, 2019-03-18 at 16:57 +0800, Yuyang Du wrote: > Since none of the print_*() function's return value is necessary, change > their return type to void. No functional change. > > In cases where an invariable return value is used, this change slightly > improves readability, i.e.: [] > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c [] > @@ -1430,23 +1430,20 @@ static inline int __bfs_backwards(struct lock_list *src_entry, [] > -static void > -print_circular_lock_scenario(struct held_lock *src, > - struct held_lock *tgt, > - struct lock_list *prt) > +static void print_circular_lock_scenario(struct held_lock *src, > + struct held_lock *tgt, > + struct lock_list *prt) trivia: This style change seems superfluous as many other existing functions use the previous style.