Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp65835pxu; Tue, 24 Nov 2020 18:59:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2Wqmloi94B7pU7YkdOCeylwfaeFg3Mj4PtnmDn4CfJBFS9XmuX5aEjQVlvsHmjoY/9NdM X-Received: by 2002:a17:906:5a8f:: with SMTP id l15mr1307261ejq.419.1606273154639; Tue, 24 Nov 2020 18:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606273154; cv=none; d=google.com; s=arc-20160816; b=K0S9y3BNTQL1j4qVVrrTxEC1xVD3uN3xObfLcdG/ltMEwQAdmdjlSx1HK/awTpmMC/ AWDbjw9hU1yj0/kTL8gOfb9eEAbH2DH/jrXwhgnypEbv0inmWYPSQgxoqcrguJet90K0 iVK1Uvnk9z9BtnT/QtJrH/1pcWMXwpJrQ1sVrzy5Ydn7FlTjPiB1/H37ig4xA7GYYXyR dfbpz2vH/aIMfI5nkw8CCZVo+MbS4sJ4XEwK9Q7pSF8B0vHCEEFPYeHBeQ6n9pNkUDzP jHeWVT1P6RgVx65kU4m7YtzBm99Mg9Qh9IosuQw6Ea3piFqv2PucDGw4FnlFsWo3mcQF AV6w== 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=29+N6fSK5y4g2OgObGpdedUJzWDd/B/ln/yUR4vl0QE=; b=vedxo3pOju2bIM8tjUW62s3ArDaaOJqUyNu1yIzb2P2SUF4CsBbhWPl9zg30jjQxG4 nyzsUzx+ncbFh2ov77n6GV9aqHkeubrHLPLHDwZsAJ8K3HQ/zs0/HG7SkpXlP8+NM1ti BuOcYrUJOCLb+gT4SwTaiK/yc8kat0a+gDa22gSacT2wERnMZqKwBT8t7u+yTUuxq71E vMo8FbkrVxaF+PKcWPCmGmg+cv66ABtIZ0nI2zMqPVVGSOHsK4WV0E+83Kt7klbMROvF oDDZir2ZhGq6YtA8vVnGog1+tDdxONUbwl8P7lQ1ELln4VHBCtqL91phFQqsY/9KTXvu ruSA== 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 n19si365536edv.187.2020.11.24.18.58.51; Tue, 24 Nov 2020 18:59:14 -0800 (PST) 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 S1727074AbgKYC4T (ORCPT + 99 others); Tue, 24 Nov 2020 21:56:19 -0500 Received: from smtprelay0107.hostedemail.com ([216.40.44.107]:40964 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726849AbgKYC4S (ORCPT ); Tue, 24 Nov 2020 21:56:18 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id D91DD127F; Wed, 25 Nov 2020 02:56:17 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3867:3868:3870:3874:4321:4385:5007:6117:7903:10004:10400:10848:11026:11658:11914:12043:12295:12296:12297:12438:12740:12760:12895:13069:13095:13311:13357:13439:13972:14659:14721:21080:21433:21627:21990:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: spy30_0f0529627373 X-Filterd-Recvd-Size: 2214 Received: from XPS-9350.home (unknown [47.151.128.180]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Wed, 25 Nov 2020 02:56:15 +0000 (UTC) Message-ID: <60b60d026a0636090b1617c6fd9e7b3a88013a7f.camel@perches.com> Subject: Re: [PATCH 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING From: Joe Perches To: Matheus Castello , Michael Kelley Cc: "sashal@kernel.org" , Tianyu Lan , Dexuan Cui , Sunil Muthuswamy , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Stephen Hemminger Date: Tue, 24 Nov 2020 18:56:14 -0800 In-Reply-To: References: <20201115195734.8338-1-matheus@castello.eng.br> <20201115195734.8338-5-matheus@castello.eng.br> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-11-24 at 21:54 -0300, Matheus Castello wrote: > > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c [] > > The above would be marginally better if organized as follows so that the > > main execution path isn't in an "if" clause. Also reduces indentation. > > > > hv_panic_page = (void *)hv_alloc_hyperv_zeroed_page(); > > if (!hv_panic_page) { > > pr_err("Hyper-V: panic message page memory allocation failed"); And nicer to add a terminating newline to the format like the pr_err below. > > return; > > } > > ret = kmsg_dump_register(&hv_kmsg_dumper); > > if (ret) { > > pr_err("Hyper-V: kmsg dump register error 0x%x\n", ret); > > hv_free_hyperv_page((unsigned long)hv_panic_page); > > hv_panic_page = NULL; > > }