Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp686845pxj; Thu, 10 Jun 2021 10:12:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy7yyJUIDWWetZhIg66fL2KP12HyozStu8M4tqnqM3XQ7vb9VEUB1HFF8QyDLvqmruy/Ff X-Received: by 2002:a50:9fe5:: with SMTP id c92mr495506edf.93.1623345138164; Thu, 10 Jun 2021 10:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623345138; cv=none; d=google.com; s=arc-20160816; b=rExSZSGVCYzo+yOj5jBW1OFHccWMtcAULygc+H3kzVwu+D8fuepLjLVKpDKV5vxBJC q41aTnEqdHW3QM0ok6pU5zY6aQVcT0HFb7XqWjkx/jTTWm6TAKIfma6bomvUHgvwKXVu Gfm+Iym+a0h8M37KDT07A8qb3xw2nROy1dmGaBR8kf360OpSUhzxyCKOCAleOZHhIwtT FXUA780HeH/Eo+V37ar9QvPaiUfPeZcX/LXvCv0UF/JQhNjUIS4wvKE9h4sPDzNV2eFg i07wyL1nNAs9UndHASQu8OVTbL2uiCQzmU9yRRa9mwyL3MR77aq3YzZUeICukDMRAaIV /L9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fGe4DY8mKKnygk1FE1mf6upUstyZmptYOrEfvpk5Mh4=; b=cg2HwamR7FROYprMQzB1NFp7g3hekgvPlUbtMILtM0lX31nNHqgG2ZsPlf4iwNpLox jbhEDatLhBdGOcf2gjYhc1g9f+zHB6e6edYatkJweuBm6ed20vq5LFy6atct7fJ2eWau O67kR1RjQYnmNNsQTbPa+4/kec1ZIZxFfT2SMoD8d7Rzo9iKNNFXe/8388j7102FkT3R 3K3CJdlzaz0e6QU5B9TEemWEPd2j5O2FQpPK5g0q3qT8ONOCrMrax/Z8r4Yw53APtslj i/jDd30EtsxiV3T5wyQ/G9lzz6+sjM+J6fPFmaaU9YEzbcyNB1Iq9vTd0z/8gx8d3wB2 vvRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mdhUfAb6; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy21si2895053ejb.8.2021.06.10.10.11.53; Thu, 10 Jun 2021 10:12:18 -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=@linaro.org header.s=google header.b=mdhUfAb6; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbhFJRMw (ORCPT + 99 others); Thu, 10 Jun 2021 13:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229802AbhFJRMw (ORCPT ); Thu, 10 Jun 2021 13:12:52 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2DFC061574 for ; Thu, 10 Jun 2021 10:10:55 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id h12-20020a17090aa88cb029016400fd8ad8so4254266pjq.3 for ; Thu, 10 Jun 2021 10:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fGe4DY8mKKnygk1FE1mf6upUstyZmptYOrEfvpk5Mh4=; b=mdhUfAb6YifrK82K1uc/PcW7Zxwk4vR3l4dsm8mWZeEkgaENHt8dNJfm9RlVGfAeFg HXWfyBTRkCAA8Sw4IU5MahyfcRsTv/7i7ZCIWQYC3dG698lzzVo/PsMeIyKPMhZEfBsb BteICrFlQFZxM6TsPbdHKk39bzZo97p/pLGzdq0hMwTd3yHSqFH0PS9iTeMImIX2OL8k kJkfTNlkVynbsIoVk10EyMZr7Y25M4buoHWx/ITZV395lRP6gJktiI3zgSmSUMMqFbaC 3ZqEqdOqRYCsDJ8OWLH2tGhy++wUmUBZrwymWmqSBguSYnRrQZPQhIyIP334l1g9wSxW MC4Q== 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; bh=fGe4DY8mKKnygk1FE1mf6upUstyZmptYOrEfvpk5Mh4=; b=ahBIICxyJ800JPb+S4E5I7+IzZZqFfbRxJ8geHeG1KUjuC9IXOfdavNlONlRGWpI0i j316PIRncBNLqZMG0dqXKy+eDBiPU18tSfAYqokXEaq/cAlGtsu4CmamnWL6hsaXBxUd tpWAZk8m7il6mnrgFXLnXrtDiQFElkFmEwCnAP9MR0nXQQVP8Oxf9RhhDdk0qCvrIQyq K2LNOL+bFAk4IQ8rZLQrBWZJNrrd8ugl3euIweY70UwohFUHDZGcpESVKWerthL9PXAn 3S4Appi3cyeituKilTjT3vbuotZ6HdEmiAsfLOy+mRASNnlEjIdkmQ/QqeJuwd/8Y7ua WKEw== X-Gm-Message-State: AOAM530JHQC8ADppzyVYMtDnRo1AzYSqEZD80l5LOl+x2aD8zgnybDFT sGPSls4r/mv5JF50fJ/coOOJwQ== X-Received: by 2002:a17:90a:7c02:: with SMTP id v2mr4377021pjf.118.1623345055266; Thu, 10 Jun 2021 10:10:55 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id g6sm3010793pfq.110.2021.06.10.10.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Jun 2021 10:10:53 -0700 (PDT) Date: Thu, 10 Jun 2021 11:10:52 -0600 From: Mathieu Poirier To: Arnaud Pouliquen Cc: Bjorn Andersson , Ohad Ben-Cohen , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH] rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined Message-ID: <20210610171052.GF34238@p14s> References: <20210604160549.2122-1-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210604160549.2122-1-arnaud.pouliquen@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 04, 2021 at 06:05:49PM +0200, Arnaud Pouliquen wrote: > This is a minor fix. > > According to the description of the rpmsg_create_ept in rpmsg_core.c > the function should return NULL on error. > You are correct, and none of the client return an error code either. > Signed-off-by: Arnaud Pouliquen > --- > include/linux/rpmsg.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h > index d97dcd049f18..a8dcf8a9ae88 100644 > --- a/include/linux/rpmsg.h > +++ b/include/linux/rpmsg.h > @@ -231,7 +231,7 @@ static inline struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_device *rpdev > /* This shouldn't be possible */ > WARN_ON(1); > > - return ERR_PTR(-ENXIO); > + return NULL; Reviewed-by: Mathieu Poirier > } > > static inline int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len) > -- > 2.17.1 >