All of lore.kernel.org
 help / color / mirror / Atom feed
From: pebolle@tiscali.nl (Paul Bolle)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 1/2] tee: generic TEE subsystem
Date: Sat, 18 Apr 2015 09:20:58 +0200	[thread overview]
Message-ID: <1429341658.16771.123.camel@x220> (raw)
In-Reply-To: <2102140.2VHBUJBHNB@wuerfel>

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

WARNING: multiple messages have this Message-ID (diff)
From: Paul Bolle <pebolle-IWqWACnzNjzz+pZb47iToQ@public.gmane.org>
To: Jens Wiklander <jens.wiklander-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Greg Kroah-Hartman
	<gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>,
	javier-5MUHepqpBA1BDgjK7y7TUQ@public.gmane.org,
	Herbert Xu
	<herbert-lOAM2aK0SrRLBo1qDEOMRrpzq4S04n8Q@public.gmane.org>,
	tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	valentin.manea-hv44wF8Li93QT0dZR+AlfA@public.gmane.org,
	jean-michel.delorme-qxv4g6HH51o@public.gmane.org,
	emmanuel.michel-qxv4g6HH51o@public.gmane.org
Subject: Re: [RFC PATCH 1/2] tee: generic TEE subsystem
Date: Sat, 18 Apr 2015 09:20:58 +0200	[thread overview]
Message-ID: <1429341658.16771.123.camel@x220> (raw)
In-Reply-To: <2102140.2VHBUJBHNB@wuerfel>

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 devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Paul Bolle <pebolle@tiscali.nl>
To: Jens Wiklander <jens.wiklander@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	javier@javigon.com, Herbert Xu <herbert@gondor.apana.org.au>,
	tpmdd-devel@lists.sourceforge.net, valentin.manea@huawei.com,
	jean-michel.delorme@st.com, emmanuel.michel@st.com
Subject: Re: [RFC PATCH 1/2] tee: generic TEE subsystem
Date: Sat, 18 Apr 2015 09:20:58 +0200	[thread overview]
Message-ID: <1429341658.16771.123.camel@x220> (raw)
In-Reply-To: <2102140.2VHBUJBHNB@wuerfel>

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


  reply	other threads:[~2015-04-18  7:20 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17  7:50 [RFC PATCH 0/2] generic TEE subsystem Jens Wiklander
2015-04-17  7:50 ` Jens Wiklander
2015-04-17  7:50 ` Jens Wiklander
2015-04-17  7:50 ` [RFC PATCH 1/2] tee: " Jens Wiklander
2015-04-17  7:50   ` Jens Wiklander
2015-04-17  7:50   ` Jens Wiklander
2015-04-17 16:30   ` [tpmdd-devel] " Jason Gunthorpe
2015-04-17 16:30     ` Jason Gunthorpe
2015-04-18  9:01     ` Russell King - ARM Linux
2015-04-18  9:01       ` Russell King - ARM Linux
2015-04-18  9:01       ` Russell King - ARM Linux
2015-04-18 17:29       ` Jason Gunthorpe
2015-04-18 17:29         ` Jason Gunthorpe
2015-04-18 17:29         ` Jason Gunthorpe
2015-04-18 21:57         ` Russell King - ARM Linux
2015-04-18 21:57           ` Russell King - ARM Linux
2015-04-18 21:57           ` Russell King - ARM Linux
2015-04-20  5:08           ` Jason Gunthorpe
2015-04-20  5:08             ` Jason Gunthorpe
2015-04-20 14:54             ` Greg Kroah-Hartman
2015-04-20 14:54               ` Greg Kroah-Hartman
2015-04-20 15:56               ` Jason Gunthorpe
2015-04-20 15:56                 ` Jason Gunthorpe
2015-04-20 15:56                 ` Jason Gunthorpe
2015-04-20 16:05                 ` Greg Kroah-Hartman
2015-04-20 16:05                   ` Greg Kroah-Hartman
2015-04-20 16:05                   ` Greg Kroah-Hartman
2015-04-20 13:02         ` Jens Wiklander
2015-04-20 13:02           ` Jens Wiklander
2015-04-20 13:02           ` Jens Wiklander
2015-04-20 17:55           ` Jason Gunthorpe
2015-04-20 17:55             ` Jason Gunthorpe
2015-04-20 17:55             ` Jason Gunthorpe
2015-04-21  5:59             ` Jens Wiklander
2015-04-21  5:59               ` Jens Wiklander
2015-04-17 20:07   ` Arnd Bergmann
2015-04-17 20:07     ` Arnd Bergmann
2015-04-18  7:20     ` Paul Bolle [this message]
2015-04-18  7:20       ` Paul Bolle
2015-04-18  7:20       ` Paul Bolle
2015-04-20  6:20     ` Jens Wiklander
2015-04-20  6:20       ` Jens Wiklander
2015-04-20 18:20       ` [tpmdd-devel] " Jason Gunthorpe
2015-04-20 18:20         ` Jason Gunthorpe
2015-04-21 10:45         ` Jens Wiklander
2015-04-21 10:45           ` Jens Wiklander
2015-04-18  8:55   ` Greg Kroah-Hartman
2015-04-18  8:55     ` Greg Kroah-Hartman
2015-04-18  8:57   ` Greg Kroah-Hartman
2015-04-18  8:57     ` Greg Kroah-Hartman
2015-04-18  9:04     ` Russell King - ARM Linux
2015-04-18  9:04       ` Russell King - ARM Linux
2015-04-18  9:04       ` Russell King - ARM Linux
2015-04-18 18:47       ` Greg Kroah-Hartman
2015-04-18 18:47         ` Greg Kroah-Hartman
2015-04-18 19:02         ` Russell King - ARM Linux
2015-04-18 19:02           ` Russell King - ARM Linux
2015-04-18 20:37           ` Greg Kroah-Hartman
2015-04-18 20:37             ` Greg Kroah-Hartman
2015-04-18 20:50             ` Russell King - ARM Linux
2015-04-18 20:50               ` Russell King - ARM Linux
2015-04-19  7:00               ` Greg Kroah-Hartman
2015-04-19  7:00                 ` Greg Kroah-Hartman
2015-04-17  7:50 ` [RFC PATCH 2/2] tee: add OP-TEE driver Jens Wiklander
2015-04-17  7:50   ` Jens Wiklander
2015-04-17  7:50   ` Jens Wiklander
2015-04-18  8:57   ` Greg Kroah-Hartman
2015-04-18  8:57     ` Greg Kroah-Hartman
2015-04-18  9:36     ` Javier González
2015-04-18  9:36       ` Javier González
2015-04-18  9:36       ` Javier González
2015-04-18 18:49       ` Greg Kroah-Hartman
2015-04-18 18:49         ` Greg Kroah-Hartman
2015-04-18 19:01         ` Arnd Bergmann
2015-04-18 19:01           ` Arnd Bergmann
2015-04-19 11:17           ` Javier González
2015-04-19 11:17             ` Javier González
2015-04-19 19:47             ` Arnd Bergmann
2015-04-19 19:47               ` Arnd Bergmann
2015-04-20  7:05               ` Javier González
2015-04-20  7:05                 ` Javier González
2015-04-20  7:05                 ` Javier González
2015-04-20  6:42     ` Jens Wiklander
2015-04-20  6:42       ` Jens Wiklander
2015-04-20  6:42       ` Jens Wiklander

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1429341658.16771.123.camel@x220 \
    --to=pebolle@tiscali.nl \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.