Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751657AbbDRHVH (ORCPT ); Sat, 18 Apr 2015 03:21:07 -0400 Received: from lb1-smtp-cloud2.xs4all.net ([194.109.24.21]:58444 "EHLO lb1-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbbDRHVE (ORCPT ); Sat, 18 Apr 2015 03:21:04 -0400 Message-ID: <1429341658.16771.123.camel@x220> Subject: Re: [RFC PATCH 1/2] tee: generic TEE subsystem From: Paul Bolle To: Jens Wiklander Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , javier@javigon.com, Herbert Xu , tpmdd-devel@lists.sourceforge.net, valentin.manea@huawei.com, jean-michel.delorme@st.com, emmanuel.michel@st.com Date: Sat, 18 Apr 2015 09:20:58 +0200 In-Reply-To: <2102140.2VHBUJBHNB@wuerfel> References: <1429257057-7935-1-git-send-email-jens.wiklander@linaro.org> <1429257057-7935-2-git-send-email-jens.wiklander@linaro.org> <2102140.2VHBUJBHNB@wuerfel> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 30 On Fri, 2015-04-17 at 22:07 +0200, Arnd Bergmann wrote: > On Friday 17 April 2015 09:50:56 Jens Wiklander wrote: > > +static const struct file_operations tee_fops = { > > + .owner = THIS_MODULE, > > + .open = tee_open, > > + .release = tee_release, > > + .unlocked_ioctl = tee_ioctl > > +}; > > Add a .compat_ioctl function, to make it work on arm64 as well. > If you got all the data structures right, you can use the same > tee_ioctl function. > > Minor nit: put a comma behind the last line in each struct initialization > to make it easier to add another callback. And another nit: this is built-in only code, right? So, according to include/linux/export.h, THIS_MODULE will be basically equivalent to NULL. So I think you can drop that line. Thanks, Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/