Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp802680pxu; Wed, 2 Dec 2020 03:58:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwD8n6nrixPUSs6S4LsSp/RHPE7LC0RDAH5pKguWtx+qp4DfAqmdHDDZiMTYSWEEt4mZ19t X-Received: by 2002:a17:906:2ec3:: with SMTP id s3mr1848548eji.133.1606910280339; Wed, 02 Dec 2020 03:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606910280; cv=none; d=google.com; s=arc-20160816; b=NJhPQ7EWygvZoqI1mOeh/Ig++KAwkblJUVdiRbq/hpwJW6wOuo4YEl+5mH7qwpBRM+ wwWbpZvdHFk7sPM1N4uR+eakMrP2AqkvlE6NSDps+oj7OcuB/Vkmc+YzK7gA9WK8liiT fm/OmK62uvHPq3E9t0GDx7cew0ZPvmNQ5wiNeEmYaWnszrZPp5v2beY3Cum3fdrMPpeM VhGbSWFc6RS0u7DUKR5a1jAbno0JY3llAD3pDfNQ963SjP1jD+yuhUfGLVRZmeSDc2At pzYy+iMVtkHUUNCbCCzAXBiio69vbD+huJbtsC2/ZfOLn6UrmK6YAjW7htGVjZyu0G9u mN9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gFwDdijdfZXw9pgLlpOsSk7GU0YwZboaXWl7s3vdJ1g=; b=GRftrE3ceYrrGZlBdt4VdVMnXZE3l46S/j1XxsTTduz01aFVV3FPU+R5MMXZVpQHO7 66uZZ15V4Sg9IEw02o5RETtIobtlNLyDJN4jySqByxV13g9EIzw8dB32PWPHakLyGV3P C1pqV768EPU7GOjQ43lFf5huSzI9KZbRcYGLoaNJbsPQ49wPZe/cdtiosX6UaSTPvSLf 0FQBBACY6em27raroRUvD1JmFWC95AnK+zu4GBZ8gGZCcNIteZj1HxMk0BzKpeba64zX uVYycmYifjHwyYRMW+0sx52nm3cZ+a+8b1IwRFoLBxQAA2BCO06p4FJR4UHJeIpYHxEy KsdQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si749174ejv.28.2020.12.02.03.57.36; Wed, 02 Dec 2020 03:58:00 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388290AbgLBLzt (ORCPT + 99 others); Wed, 2 Dec 2020 06:55:49 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44132 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgLBLzs (ORCPT ); Wed, 2 Dec 2020 06:55:48 -0500 Received: by mail-wr1-f67.google.com with SMTP id 64so3523687wra.11; Wed, 02 Dec 2020 03:55:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gFwDdijdfZXw9pgLlpOsSk7GU0YwZboaXWl7s3vdJ1g=; b=CGy3UA1Koo63bCpqBoS3Ujh4k2+Ya1Tpx6ftSSWdShCwax3j2fSAjpy0BLPGU5mG6z HglqHRxuywTWmAmqpczrMXa5YbDEZdje2NfZitbfsyCBBuLPXtiPv86qahilqLa+cbIa 2L8ghLwYbDN8yZjL9fv/hkErR5Hxy6nWYnm3PEVt7yxuHasdx6ntd+4G+MTiPcLffFZM Ef6Quorz0KeS0ow1LQtlsZVmjkGZuZtF/4kI9CvqzmSAtBDPHS9XzqLDhvXLi1I9SCJM HqSOpbVBA+0th+t861/9Ckcd66nNMNLi9kFbwOAGJt+XbQVsqveSQqj/MmLVTPjYzGfX DfQw== X-Gm-Message-State: AOAM53031mTomJuMdrjEJJOa8mmqiRWpNWrm4E+k7O9NzIl2iJ1cB544 B+v+TBbzPWD91mI7P58IOVvNczXTk+A= X-Received: by 2002:a5d:4c4d:: with SMTP id n13mr3022501wrt.356.1606910106876; Wed, 02 Dec 2020 03:55:06 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id l8sm1768437wro.46.2020.12.02.03.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 03:55:06 -0800 (PST) Date: Wed, 2 Dec 2020 11:55:04 +0000 From: Wei Liu To: Stephen Hemminger Cc: Michael Kelley , Matheus Castello , wei.liu@kernel.org, joe@perches.com, KY Srinivasan , Haiyang Zhang , Stephen Hemminger , sashal@kernel.org, Tianyu Lan , Dexuan Cui , Sunil Muthuswamy , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/6] drivers: hv: vmbus: Fix checkpatch SPLIT_STRING Message-ID: <20201202115504.w52yeixpg7nbzw2v@liuwe-devbox-debian-v2> References: <20201125032926.17002-1-matheus@castello.eng.br> <20201129214328.254372dd@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201129214328.254372dd@hermes.local> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 29, 2020 at 09:43:28PM -0800, Stephen Hemminger wrote: > On Sun, 29 Nov 2020 08:51:47 -0800 > "Michael Kelley" wrote: > > > From: Matheus Castello Sent: Tuesday, November > > 24, 2020 7:29 PM > > > > > > Checkpatch emits WARNING: quoted string split across lines. > > > To keep the code clean and with the 80 column length indentation the > > > check and registration code for kmsg_dump_register has been transferred > > > to a new function hv_kmsg_dump_register. > > > > > > Signed-off-by: Matheus Castello > > > --- > > > This is the V3 of patch 4 of the series "Add improvements suggested by > > > checkpatch for vmbus_drv" with the changes suggested by Michael Kelley > > and > > > Joe Perches. Thanks! > > > --- > > > drivers/hv/vmbus_drv.c | 35 ++++++++++++++++++++--------------- > > > 1 file changed, 20 insertions(+), 15 deletions(-) > > > > > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > > > index 61d28c743263..edcc419ba328 100644 > > > --- a/drivers/hv/vmbus_drv.c > > > +++ b/drivers/hv/vmbus_drv.c > > > @@ -1387,6 +1387,24 @@ static struct kmsg_dumper hv_kmsg_dumper = { > > > .dump = hv_kmsg_dump, > > > }; > > > > > > +static void hv_kmsg_dump_register(void) > > > +{ > > > + int ret; > > > + > > > + hv_panic_page = (void *)hv_alloc_hyperv_zeroed_page(); > > I know you just copy/pasted the original code, but one other thing. > > Doesn't it already return void *? > arch/x86/include/asm/mshyperv.h:void *hv_alloc_hyperv_zeroed_page(void); Good catch. I have amended this patch and applied it to hyperv-next. Wei.