Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp576651pxu; Thu, 15 Oct 2020 10:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4RKhbQwH1g8lr5oKdA7g5XYG4c1SZOgXjZT4Z8vJRAqgWCkLwQp5vo8yXMVarza5NMzAA X-Received: by 2002:a17:907:720f:: with SMTP id dr15mr5617392ejc.447.1602784682876; Thu, 15 Oct 2020 10:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602784682; cv=none; d=google.com; s=arc-20160816; b=FkZ37a/WUOqB7AvJFUJYlHGJWvgvE8z/5uvPn0rF9KAOoCbm5P1Vr+Bq7iTknc1JV/ MPuSGZgZT3xg+pADiyciOPODWbEY7ASfDceq2sfLNtCZRaRNUJI8ZaLO0vPjmMCTmFIF Rr0glujNSZYdovJgsQRWIZcx9C988VKy2Y3vwNTBM8fuAfn+UN8veazrfkuPoc3LJgbi xfTYR7XVCSXfBsFfQerKk4aGjvhMUm534bp7lZbTmhQh+L16Dokmrb7Z/N31tP/7zF1d kwVhr4Hh6ZnxCCrSof5nhG9P8myz0zKM/aPQGGWXyCKXNvKKNTrIH2OMqJLoS+K5+EDR JykQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=qaKQ7vm55F6QJ99/turaG/tzg6NejvmTZRik8jUDc0M=; b=Hw+p6qMv6nkTg5CQTTRtyoJLudb2/QtVOduI4Ofbt5rGwsEBCUEJF1G/YDDp2dXqWT hmYJlr+EVhtYiGsoK+Y7l5/cPuhj+BspbB2TKiTNigAwUR8UrXNOB3/Kcpy7US9Ieo9g 4SgEshS+O4xm3GaALwm1Gi6ruH8YyMQ4iYxtD3e11c4sZRM90fWbMtVw2dEXMpO+o88x lSgBxOJYsOtVgphcr5w0VliwTEvoDHufuB2lj1bi+yoi26b3MKI28aZJodzBLewJNPSM oMZF3ozahCXTUQWu5zEwKsibOqnMQNfH5UFYyPeLv4Xc3A/Jh6DzL/kPzXO+FrAYLa5M dENA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tg8t9Yyx; 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=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si2571268edq.350.2020.10.15.10.57.30; Thu, 15 Oct 2020 10:58:02 -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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=tg8t9Yyx; 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=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388327AbgJOIrc (ORCPT + 99 others); Thu, 15 Oct 2020 04:47:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:52386 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbgJOIrb (ORCPT ); Thu, 15 Oct 2020 04:47:31 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09F8l00w024738; Thu, 15 Oct 2020 10:47:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=qaKQ7vm55F6QJ99/turaG/tzg6NejvmTZRik8jUDc0M=; b=tg8t9YyxgRdN/itBIJpkH8MChWuzYm2LfV5gOL3bAVJaIt/Vnin7DclGOh0PQPU4/c6W er02BQEHj4ZPVWn23mujlLaBmPvkONhloyKr1B1o/J+GHhm3i5gCXUoi2YEL9qOnhOEm 4ySC/0nYYp+3ckP6PCGZzuRFgbGhjILIZ1sNtQko2U47N0QRtjpVgkr9pvGCfyLB+hzY rY2WBOI3a5M3fLHWGIqS16VFMRFOp0Y3CyosCOWt5x5iV+nMVKV/rYj8QVKCnDvIHSNa VdlOr+r0i/6r/Nxrg2Qpbj2GR1MEVz7M8OzjIaGlzgEC4sEtOIFqcmwMgRUs2jXTnLf/ OA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3455c8r3k6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Oct 2020 10:47:24 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1EE94100039; Thu, 15 Oct 2020 10:47:24 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0FEB0206646; Thu, 15 Oct 2020 10:47:24 +0200 (CEST) Received: from lmecxl0889.tpe.st.com (10.75.127.49) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 15 Oct 2020 10:47:23 +0200 Subject: Re: [PATCH v2 8/9] rpmsg: Make rpmsg_{register|unregister}_device() public To: Mathieu Poirier , "ohad@wizery.com" , "bjorn.andersson@linaro.org" CC: "guennadi.liakhovetski@linux.intel.com" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20201013232519.1367542-1-mathieu.poirier@linaro.org> <20201013232519.1367542-9-mathieu.poirier@linaro.org> From: Arnaud POULIQUEN Message-ID: Date: Thu, 15 Oct 2020 10:47:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201013232519.1367542-9-mathieu.poirier@linaro.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG4NODE1.st.com (10.75.127.10) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-10-15_03:2020-10-14,2020-10-15 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/14/20 1:25 AM, Mathieu Poirier wrote: > Make function rpmsg_register_device() and rpmsg_unregister_device() > functions public so that they can be used by other clients. While > doing so get rid of two obsolete function, i.e register_rpmsg_device() > and unregister_rpmsg_device(), to prevent confusion. > > Signed-off-by: Mathieu Poirier > --- > drivers/rpmsg/rpmsg_internal.h | 4 ---- > include/linux/rpmsg.h | 12 ++++++++---- > 2 files changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h > index b9b34b416b7b..70de053581bd 100644 > --- a/drivers/rpmsg/rpmsg_internal.h > +++ b/drivers/rpmsg/rpmsg_internal.h > @@ -49,10 +49,6 @@ struct rpmsg_endpoint_ops { > poll_table *wait); > }; > > -int rpmsg_register_device(struct rpmsg_device *rpdev); > -int rpmsg_unregister_device(struct device *parent, > - struct rpmsg_channel_info *chinfo); > - > struct device *rpmsg_find_device(struct device *parent, > struct rpmsg_channel_info *chinfo); > > diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h > index eb70463a9f2e..0b3ec18ddbaa 100644 > --- a/include/linux/rpmsg.h > +++ b/include/linux/rpmsg.h > @@ -188,8 +188,9 @@ static inline __rpmsg64 cpu_to_rpmsg64(struct rpmsg_device *rpdev, u64 val) > > #if IS_ENABLED(CONFIG_RPMSG) > > -int register_rpmsg_device(struct rpmsg_device *dev); > -void unregister_rpmsg_device(struct rpmsg_device *dev); > +int rpmsg_register_device(struct rpmsg_device *rpdev); > +int rpmsg_unregister_device(struct device *parent, > + struct rpmsg_channel_info *chinfo); > int __register_rpmsg_driver(struct rpmsg_driver *drv, struct module *owner); > void unregister_rpmsg_driver(struct rpmsg_driver *drv); > void rpmsg_destroy_ept(struct rpmsg_endpoint *); > @@ -212,15 +213,18 @@ __poll_t rpmsg_poll(struct rpmsg_endpoint *ept, struct file *filp, > > #else > > -static inline int register_rpmsg_device(struct rpmsg_device *dev) > +static inline int rpmsg_register_device(struct rpmsg_device *rpdev) > { > return -ENXIO; > } > > -static inline void unregister_rpmsg_device(struct rpmsg_device *dev) > +static inline int rpmsg_unregister_device(struct device *parent, > + struct rpmsg_channel_info *chinfo) > { > /* This shouldn't be possible */ > WARN_ON(1); > + > + return -ENXIO; > } > > static inline int __register_rpmsg_driver(struct rpmsg_driver *drv, > Reviewed-by: Arnaud Pouliquen Thanks, Arnaud