Received: by 10.213.65.68 with SMTP id h4csp415628imn; Fri, 23 Mar 2018 07:21:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELsGhi1CByT+4cKRUpx8kivlYXN52Vc20QAA7dlhksdrUcaeM5LG6UNDm6xNs4C9yr0J/dhI X-Received: by 2002:a17:902:4d45:: with SMTP id o5-v6mr21621692plh.84.1521814918841; Fri, 23 Mar 2018 07:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521814918; cv=none; d=google.com; s=arc-20160816; b=apnAO3a9CVZDhxF4je2d5s/uuFiqvc0PdDtB4rc0vSphUagBiK3dVa4ZJ7lXw7mUj1 ymDxzLROFUjCQ/g1nQoo8m1xVz480pZP3FmWDFWr5QzxS1nEwEcTnn2lTd0M9D4a1URs 17893YE2dct1LM2MVIP1AT1JEX+h7JuJsqaSrk9CjRtBJP9aIGsttoOySQfZtvRDw/8N T4/waQ8ctVan60fWCmJLOm05pK4tNsbZ+Co5uf1sTfLLFA6PifBqdJLU4dzJjeO34Iw6 E8GfL7jnszIwm4KUDIFPHvpbv4XGug6QK/RWddeecocbC/ZTWiZXMRx+Svz06OYnlwZU lGbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=YYg0Rx+xxBdrBtRr0VKvXvejWVsczqdVkR98RGsyRrM=; b=gzJpkhmDlo5+IwCAyOKO4gObhRT/ixg8OpFOiB7gaWUaAZnYebMilCJaVKyuz2/BbT khWzW+vR3pUTMqlzIoBhphqqUI7MWkjAs/Ku54aPxazbPtZO6gsOs/h4fgpTZwsGSPxi E6dgXSOBIXDwkaYjiacbtD9pHMA0R99k+BIqXRA3N+F/tPIdkOTNHJFH2rr1aOKbB5u9 AqgIZQSRrtLjftH6DnZbmdHpXPRp3iwNhAeIFAFnIUV1VDO/1wmxtbON42kPtGecDx7t qu2EVnmKImNf0KTRhkvZItfYT8M12id+iIxnFUTFSQdA7inQQyvN+/lpV3wafI6xTf7K KPuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m189si6815939pfb.130.2018.03.23.07.21.43; Fri, 23 Mar 2018 07:21:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751847AbeCWOTg (ORCPT + 99 others); Fri, 23 Mar 2018 10:19:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37744 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbeCWOTf (ORCPT ); Fri, 23 Mar 2018 10:19:35 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7C77B1445; Fri, 23 Mar 2018 14:19:34 +0000 (UTC) Date: Fri, 23 Mar 2018 15:19:32 +0100 From: Greg KH To: Ioana Ciornei Cc: laurentiu.tudor@nxp.com, linux-kernel@vger.kernel.org, stuyoder@gmail.com, ruxandra.radulescu@nxp.com, razvan.stefanescu@nxp.com, Roy.Pledge@nxp.com, arnd@arndb.de Subject: Re: [PATCH v2 2/6] bus: fsl-mc: move fsl_mc_command struct in a uapi header Message-ID: <20180323141932.GA28906@kroah.com> References: <1b6473b17a61f2cea51258a7220c9a1b741c646b.1521132659.git.ioana.ciornei@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b6473b17a61f2cea51258a7220c9a1b741c646b.1521132659.git.ioana.ciornei@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 12:05:32PM -0500, Ioana Ciornei wrote: > Define "struct fsl_mc_command" as a structure that can cross the > user/kernel boundary. Also change the variable types used with > the proper ones. > > Signed-off-by: Ioana Ciornei > --- > Changes in v2: > - added the patch itself > > MAINTAINERS | 1 + > include/linux/fsl/mc.h | 8 +------- > include/uapi/linux/fsl_mc.h | 23 +++++++++++++++++++++++ > 3 files changed, 25 insertions(+), 7 deletions(-) > create mode 100644 include/uapi/linux/fsl_mc.h > > diff --git a/MAINTAINERS b/MAINTAINERS > index 473ac00..4f54765 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11463,6 +11463,7 @@ S: Maintained > F: drivers/bus/fsl-mc/ > F: Documentation/devicetree/bindings/misc/fsl,qoriq-mc.txt > F: Documentation/networking/dpaa2/overview.rst > +F: include/uapi/linux/fsl_mc.h > > QT1010 MEDIA DRIVER > M: Antti Palosaari > diff --git a/include/linux/fsl/mc.h b/include/linux/fsl/mc.h > index f27cb14..19a352b 100644 > --- a/include/linux/fsl/mc.h > +++ b/include/linux/fsl/mc.h > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > > #define FSL_MC_VENDOR_FREESCALE 0x1957 > > @@ -198,8 +199,6 @@ struct fsl_mc_device { > #define to_fsl_mc_device(_dev) \ > container_of(_dev, struct fsl_mc_device, dev) > > -#define MC_CMD_NUM_OF_PARAMS 7 > - > struct mc_cmd_header { > u8 src_id; > u8 flags_hw; > @@ -209,11 +208,6 @@ struct mc_cmd_header { > __le16 cmd_id; > }; > > -struct fsl_mc_command { > - u64 header; > - u64 params[MC_CMD_NUM_OF_PARAMS]; > -}; > - > enum mc_cmd_status { > MC_CMD_STATUS_OK = 0x0, /* Completed successfully */ > MC_CMD_STATUS_READY = 0x1, /* Ready to be processed */ > diff --git a/include/uapi/linux/fsl_mc.h b/include/uapi/linux/fsl_mc.h > new file mode 100644 > index 0000000..90892c4 > --- /dev/null > +++ b/include/uapi/linux/fsl_mc.h > @@ -0,0 +1,23 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ UAPI files should have the correct license on them: /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ thanks, greg k-h