Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3861013pxy; Tue, 4 May 2021 11:32:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsAbOt8QBXAyKvJKRHvcngNXKRllSonNtcHhwtO4+re442NArHO8It/s4HGGB8n2k9k6uA X-Received: by 2002:a17:907:2bc7:: with SMTP id gv7mr23273904ejc.187.1620153145633; Tue, 04 May 2021 11:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620153145; cv=none; d=google.com; s=arc-20160816; b=Or0ONnqy6ymthjKkeiYdepoRUGOOWOlT+UENzXR4xMmuTDwm5iMw7+EaSTZGSJIk+1 YJ2AmZRaryogNHq1PaGFXTni7YIDGuBJdHEPe6/LbRSiC4yy70R3MCfFbc4TziZIoAtq Y8Lr/TiAEDo0qQ70IkME7fWvIE0Vp8oGDL6OIUKV9GxWkFJAGgjlBb5Xn6+DA7aCL/3h yPgvXgEqAyLvfo47c+ZTQsfYTrqCIqKyBJnV9YwyEye4m/kOWXCnJUMqGYEKcCtnfyg5 la2YPDHmXMyhHBm4dyndVqud7+amLoN3C4y0RCHpqRPgzaSyQuPaatN/vikP9kGUpd41 E0OA== 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=yI6Ml2clRXcMJtwies2mHdCV4zB6gRnE8QVI0zDSqis=; b=p9L1e552GgdREvm4EnNlSBR/bRpqJ8QbBCs8HeKMIseg86e8DWbj2BCaMtggnfRE8N BdokbAqhZ2b5nBKhZEU28PFThzVcabfmPCj/PtWaEQ0W2ULbvPpTPJTYW1g3bPQK1KyC Ngii4wO1XR5/cNvsBx7AHEGTyq4Qh1WhEcms8mDTY6Tr1KoQFFpkxC2uIBG91NBULXtE 7cWoLZEDQNR740TYwYuAFjGhcV/1JYX6euQnSpPPmB44UFqKVpGys4gs3952+wqorJFT woLF7AcK4QwdDC/KdXM0eLVMfD4iKbfCrZjTM5zTathQPLPrSy9CZ+rzyQunTVqEY9yU pChA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="tisRkZr/"; 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=foss.st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h93si14247955edd.584.2021.05.04.11.32.01; Tue, 04 May 2021 11:32:25 -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=@foss.st.com header.s=selector1 header.b="tisRkZr/"; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232240AbhEDSV3 (ORCPT + 99 others); Tue, 4 May 2021 14:21:29 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:30918 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbhEDSV0 (ORCPT ); Tue, 4 May 2021 14:21:26 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 144I76re007189; Tue, 4 May 2021 20:20:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=yI6Ml2clRXcMJtwies2mHdCV4zB6gRnE8QVI0zDSqis=; b=tisRkZr/wrgdeQPj0Eo0EGJxkyeO64LlJfodSp5ujquOubFeb263JMs4Nl89NfzQqHVE 8el9w6Xh26K1TOjEkpgXC9N2gUljUiIiQ4AQpChCbbFUb4OmkZUTSBEzAys9wofQx/oP 48dfcItsx5QvknAiJgIT7zbgECxYweMIcuGtQ/q3Eb3+fn54jfyam3iI3UjcWiOH62hQ WuVjVyBhWsLu11hPO4c5gFmnVc9SZn3jGwdLPCBCBe5Lm+RiumvTXHMruUkatLj+GWlU ACQeHH8mUPj0/lcDbACKL6uREgoOgvgoGp5doEMi254bBGDApZXaDSVPYiM7RCFh7G5I fw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 38akujyuf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 May 2021 20:20:28 +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 5947F10002A; Tue, 4 May 2021 20:20:27 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 43C12226568; Tue, 4 May 2021 20:20:27 +0200 (CEST) Received: from lmecxl0889.lme.st.com (10.75.127.48) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 4 May 2021 20:20:26 +0200 Subject: Re: [PATCH] rpmsg: char: Remove useless includes To: Mathieu Poirier CC: Bjorn Andersson , Ohad Ben-Cohen , , , References: <20210429080639.6379-1-arnaud.pouliquen@foss.st.com> <20210503174238.GD1699665@xps15> <20210504170530.GD1734971@xps15> From: Arnaud POULIQUEN Message-ID: <7170fdd0-00cd-1486-7b4c-41040ecfff6f@foss.st.com> Date: Tue, 4 May 2021 20:20:25 +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: <20210504170530.GD1734971@xps15> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-04_12:2021-05-04,2021-05-04 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/4/21 7:05 PM, Mathieu Poirier wrote: > Hi Arnaud, > > [...] > >> >> I started by this one and then I got carried away tested the other include... >> You are right, I just don't follow her the first rule of the "submit checklist" >> >> "If you use a facility then #include the file that defines/declares that >> facility. Don’t depend on other header files pulling in ones that you use." >> >> That said I just have a doubt for uapi/linux/rpmsg.h that will be include >> by rpmsg.h[2], as these includes are part of the rpmsg framework API, should we >> keep both, considering the rule as strict? > > I red the last paragraph several times I can't understand what you are > trying to convey. Please rephrase, provide more context or detail exactly where > you think we have a problem. There is no problem, just a question before sending an update. As you mention the #include "rpmsg_internal.h" line can be removed, I plan to send a patch V2 for this. That's said before sending a new version I would like to propose to also remove the #include line. The rational to remove it is that include/rpmsg.h would already include in 5.13 [2]. And looking at some frameworks (e.g I2C, TTY) the drivers seem to include only the include/xxx.h and not the uapi/linux/xxx.h in such case. So my question is should I remove #include line? Or do you prefer that i keep it? Hope it is more clear... else please just forget my proposal, I wouldn't want you to waste too much time for a point of detail. Thanks, Arnaud > > Thanks, > Mathieu > > >> >> [1] https://www.kernel.org/doc/html/latest/process/submit-checklist.html >> [2] >> https://patchwork.kernel.org/project/linux-remoteproc/patch/20210311140413.31725-3-arnaud.pouliquen@foss.st.com/ >> >> Thanks, >> Arnaud >> >>> >>> Thanks, >>> Mathieu >>> >>>> >>>> #define RPMSG_DEV_MAX (MINORMASK + 1) >>>> >>>> -- >>>> 2.17.1 >>>>