Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2911614pxy; Mon, 3 May 2021 10:45:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwir0wJ3BLBxHCMQHFxpcqsygK/8+5EoFSMO1dsv2JZy5/vVSOvTbMxa2efTEwT6FiS3WGn X-Received: by 2002:a17:906:858:: with SMTP id f24mr18171573ejd.347.1620063918948; Mon, 03 May 2021 10:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620063918; cv=none; d=google.com; s=arc-20160816; b=ApfnuBnn4xNTnBTrUtl7MGo6hsTXTHchovFuvnlMMly1LMu5Wzsav4Sm+NCeJFk7ji RJgw/XUhA8u0l6PQ2FGoX2JqH6tMCnqwqaZVNSXAISymaCmaU6zhH3XrpeYUVx82DyC6 JXbARt6L7HxgT92zpfG12RlLeMYUvoxDoxzFZfN01WThvOU1zUblfI5uFWnXQlFo5TwT 2EJDr77+JvIReCsmDpmOH7Pukv7dLMJW4NRUexzX0kCbv0LwbROKpcceXPGm5HdsZCOa DXMGHVuI8gXAQrRdhifk9qL8hB07P1H7+B8bKSPQTTVL7EGbbe2ZhHA15DN1J3J5dxbm j8zQ== 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=YwS8hQU33H1/ZeBZdRBG9ZJ/sKIODEM23v4su4rhiCc=; b=UNJitgMYeqRykq63oGINWbPCIX1xZMpZy4MCgnR1vNfGha+JKNmeJzquJYO6tYrV1B YNzs5yFcYwEFexxS8+t+M+bC7nh37Jt4mzocGKmj+8EZCW13Fpul/hLRTZ+F0VoCrbc8 EHyycATWEt33TQI/YsdDF6Bnh6a4Za9shPpqNvMVtNMcdbdly74b3NoQXJu1quKlMSz7 Be51KbPDIAWiXlnfBaMEC3F4WsuJsvw34j6vwD2Son1KZjo3iRXPkyzzr64r1qngwBo6 CzV+V4bVZFWPiPdJgOBKx9dMAU3Fl900gp/NrONstYIStjuqaVQ+gkrAjyjHGxO43R05 cb8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIevIsu+; 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 m1si468314ejj.42.2021.05.03.10.44.54; Mon, 03 May 2021 10:45: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=dIevIsu+; 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 S231664AbhECRng (ORCPT + 99 others); Mon, 3 May 2021 13:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231513AbhECRnf (ORCPT ); Mon, 3 May 2021 13:43:35 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A087C06174A for ; Mon, 3 May 2021 10:42:41 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id ge1so3554790pjb.2 for ; Mon, 03 May 2021 10:42:41 -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=YwS8hQU33H1/ZeBZdRBG9ZJ/sKIODEM23v4su4rhiCc=; b=dIevIsu+BecbCDIM9vCBTdsPIaXduatZL5c7A0AoUn5fKQ0NyNS3wvgxnmo+3iz1OB bv9uA4L1dDIlulUeRitvUnI+TG+9ndoRh1q3j5wywyfDcEg2EMWAZCsAkUZ0sktXgrMw gLDSgKJDMfHs6Y8JvuewH3RIv/4xjjbFKC1o3m7Nf5gEc0Qx5+78Ah6pO26iiV1NN/J6 OwWCCVIFiE9wze5yMp5o769ro4M3+RI9gb9VTi/vesW1Ao2Dk/Qzd6cVttXI8yV1FpVu rd3DqiPKVvl9S3tNnIB4SjimSDxqyksXs8kqfHXp9AcQnXzjzH4KTvAX0gFJyATFhjC0 yHQQ== 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=YwS8hQU33H1/ZeBZdRBG9ZJ/sKIODEM23v4su4rhiCc=; b=HxTaVgskulUSqDBGuvp+ST51gXwpfWLdN9aSh5QAYGTzenKiGSVORXOdRMTWj7G2GB cVtuKliI67dmu8qtO+WExDtnWfoqDLyEndon6Fgmb+5KnSB2cesLusUYCJFAy+0BYNOi l8dRr42wTbKjPYPvJq5RgbCfgeMM3+XmaVJl1SMERk/R4cQWL8yVVwkk9CVL93gUzgRu mlD3beA4wyf79NiB47PEfoGZHS/tvvvgI1NsNWx7ByZc6Lle1Zxk0Gqf/5JuXsfCMndj mkxxQ7tg41AMFcpxtN+9nGgtw8EPrMgr9PhE6Tf9xiKWJQQe4MijZU5YVX5refNq7v/j o2uQ== X-Gm-Message-State: AOAM530TS98ZKCtky7KS1PJ4LDThY9PGKGv/QJhvexEPzYP0nGjbh9xU 2aUgtWiGKnkirOcYtw8ZY1c8zKFwMEGQ3Q== X-Received: by 2002:a17:90a:9f02:: with SMTP id n2mr16264556pjp.190.1620063761016; Mon, 03 May 2021 10:42:41 -0700 (PDT) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id u20sm194311pgl.27.2021.05.03.10.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 May 2021 10:42:40 -0700 (PDT) Date: Mon, 3 May 2021 11:42:38 -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: char: Remove useless includes Message-ID: <20210503174238.GD1699665@xps15> References: <20210429080639.6379-1-arnaud.pouliquen@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429080639.6379-1-arnaud.pouliquen@foss.st.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 10:06:39AM +0200, Arnaud Pouliquen wrote: > Remove includes that are not requested to build the module. > > Signed-off-by: Arnaud Pouliquen > --- > applied without issue on Bjorn next branch (dc0e14fa833b) > --- > drivers/rpmsg/rpmsg_char.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c > index 2bebc9b2d163..e4e54f515af6 100644 > --- a/drivers/rpmsg/rpmsg_char.c > +++ b/drivers/rpmsg/rpmsg_char.c > @@ -10,19 +10,10 @@ > * was based on TI & Google OMX rpmsg driver. > */ > #include > -#include This is where the declaration for struct device is along with other goodies like get/put_device(). > -#include That is where struct file is declared. > -#include This is where you get ida_simple_get() and ida_simple_remove() from. > #include > #include > -#include This is where struct poll_table and poll_wait() comes from. > #include > #include > -#include This gives you kzalloc() and kfree(). > -#include This gives you copy_from_user(). > -#include This gives you RPMSG_CREATE_EPT_IOCTL and RPMSG_DESTROY_EPT_IOCTL. > - > -#include "rpmsg_internal.h" That one I agree with. Thanks, Mathieu > > #define RPMSG_DEV_MAX (MINORMASK + 1) > > -- > 2.17.1 >