Thread (1 message) 1 message, 1 author, 2016-03-18

Re: [PATCH v8 08/10] tpm: Proxy driver for supporting multiple emulated TPMs

From: Stefan Berger <hidden>
Date: 2016-03-18 11:58:59

Jarkko Sakkinen [off-list ref] wrote on 03/18/2016 
04:52:00 AM:

Subject: Re: [tpmdd-devel] [PATCH v8 08/10] tpm: Proxy driver for 
supporting multiple emulated TPMs

On Thu, Mar 17, 2016 at 01:45:20PM -0400, Stefan Berger wrote:
quoted
On 03/16/2016 04:42 PM, Jarkko Sakkinen wrote:
quoted
On Sun, Mar 13, 2016 at 06:54:38PM -0400, Stefan Berger wrote:
quoted
+
+/* above flags */
+#define VTPM_PROXY_FLAG_TPM2  1  /* emulator is TPM 2 */
+
+/* all supported flags */
+#define VTPM_PROXY_FLAGS_ALL  (VTPM_PROXY_FLAG_TPM2)
This can be moved inside the .c-file?
I can move that.
quoted
quoted
+
+#define VTPM_PROXY_MAGIC 0xa1
+
+#define VTPM_PROXY_IOC_NEW_DEV   _IOW(VTPM_PROXY_MAGIC, 0x00, \
+                  struct vtpm_proxy_new_dev)
Could we simply replace these four lines with one line:

#deifne VTPM_PROXY_IOC_NEW_DEV _IOW('t', 0x00, struct 
vtpm_proxy_new_dev);

Just move the 0xa1 over the 't' and we can get rid of the 
VTPM_PROXY_MAGIC.

   Stefan

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help