Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3757706pxk; Tue, 22 Sep 2020 01:31:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrEaMhOuv3fAcD9I/SWrDV5Ija6Wdy+LYVCfxsv6+RzTiUBZa/i/KcImSjrw3i+1fnHQ+7 X-Received: by 2002:a17:906:4c8b:: with SMTP id q11mr3514442eju.531.1600763510624; Tue, 22 Sep 2020 01:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763510; cv=none; d=google.com; s=arc-20160816; b=ZUM86vO5AJCjJhS5cGUZlaiGYnPlkD9tdgbPpgrIpBd63tOraNxDSd84pUvh7aS1dj 1URBuaBwnxX+vcCg5g81E2RHrui/e3icjFJVPV4XGhR/zIBXmUvlLHRWlRSqrRvNsw53 tbVf2j0CQMHrVeg7Bm9fjucv7EfOgReI3qjWUX61xXvQivea249yOrgQyeo5ajVMiBQM QrfMk+T/CcuCocOLiEyTQHhgD9Rx3orLURSmm5duybXSYwyoRGwOcxRi4uQsNI6lMiW7 slAYA4xkXVz4FijUC0JMLNPdRoITQwF3XfdguvyDpIjhlc7eIV+znhZbMn6XF19r+W0S EjsQ== 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 :ironport-sdr:ironport-sdr; bh=nE/AFpP76cLHZz16FGPhMCOluQ79Btx4DGkoTM5nRQU=; b=ub+hhQMVGoQujibgCkJuvLQqhtCb25kv+jjcTipUtlo7/og8Gmv+63/IgvBojTHsOP VowSKNBd37Ezt7dpI21XBI/AFPzhrNt0KGIhs0JuyKB+7pFs91lpG+Gjcp21g4kbU/EM dSfXXyH4PePj2QIAzsgE72r47If49nvYdE/ywTzO37IwTCMVbHEdhsecKd1OF79bSsFD nWpHbTC4pO1o5fdeFZggLHTN3Y03MUByiGfT0YlfQyfCyLHMFXHLqyFAFg83RO5mgXiq IKNOcmDezdGRtCzvCFCH/+N1BaYnisanMO0hVHLUgaTeo2TB5sYBL29w55dbErJ8KoL4 y9lg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si9917257edy.412.2020.09.22.01.31.26; Tue, 22 Sep 2020 01:31:50 -0700 (PDT) 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729437AbgIVHGP (ORCPT + 99 others); Tue, 22 Sep 2020 03:06:15 -0400 Received: from mga18.intel.com ([134.134.136.126]:65308 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728526AbgIVHGP (ORCPT ); Tue, 22 Sep 2020 03:06:15 -0400 IronPort-SDR: 8pUBE7FNmqi6p8V98cqX44KyNGZT8ZxmlrOe2+MeGh9iHo1JXFqHXoGCUXelfotI326gE8kbv7 85ws1MGHv8nA== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="148302149" X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="148302149" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 00:06:14 -0700 IronPort-SDR: 6VRRqh5F/L/YzMyckyRpuZkfP75syOcDvUW5b9ewu6EYDGsLVNiGRfdIvmM0Z0JqOFXc0NGh9j dN3bvdf0ne/Q== X-IronPort-AV: E=Sophos;i="5.77,289,1596524400"; d="scan'208";a="454377567" Received: from gliakhov-mobl2.ger.corp.intel.com (HELO ubuntu) ([10.252.49.176]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 00:06:13 -0700 Date: Tue, 22 Sep 2020 09:06:03 +0200 From: Guennadi Liakhovetski To: Mathieu Poirier Cc: ohad@wizery.com, bjorn.andersson@linaro.org, loic.pallardy@st.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/10] rpmsg: virtio: rename rpmsg_create_channel Message-ID: <20200922070603.GA4648@ubuntu> References: <20200922001000.899956-1-mathieu.poirier@linaro.org> <20200922001000.899956-2-mathieu.poirier@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922001000.899956-2-mathieu.poirier@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 06:09:51PM -0600, Mathieu Poirier wrote: > From: Arnaud Pouliquen > > Rename the internal function as it is internal, and as > the name will be used in rpmsg_core. > > Signed-off-by: Arnaud Pouliquen > --- > drivers/rpmsg/virtio_rpmsg_bus.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c > index 7d7ed4e5cce7..e8d55c8b9cbf 100644 > --- a/drivers/rpmsg/virtio_rpmsg_bus.c > +++ b/drivers/rpmsg/virtio_rpmsg_bus.c > @@ -395,8 +395,9 @@ static void virtio_rpmsg_release_device(struct device *dev) > * this function will be used to create both static and dynamic > * channels. > */ > -static struct rpmsg_device *rpmsg_create_channel(struct virtproc_info *vrp, > - struct rpmsg_channel_info *chinfo) > +static struct rpmsg_device * > +__rpmsg_create_channel(struct virtproc_info *vrp, > + struct rpmsg_channel_info *chinfo) Nitpick: we now have 100 characters, so there's no *need* any more to split that line, now it's more a matter of consistent style and personal preference. Most functions in that file have function type and name on the same line, but a few also make the split like here... So, we can choose our poison here I guess. Thanks Guennadi > { > struct virtio_rpmsg_channel *vch; > struct rpmsg_device *rpdev; > @@ -869,7 +870,7 @@ static int rpmsg_ns_cb(struct rpmsg_device *rpdev, void *data, int len, > if (ret) > dev_err(dev, "rpmsg_destroy_channel failed: %d\n", ret); > } else { > - newch = rpmsg_create_channel(vrp, &chinfo); > + newch = __rpmsg_create_channel(vrp, &chinfo); > if (!newch) > dev_err(dev, "rpmsg_create_channel failed\n"); > } > -- > 2.25.1 >