Skip to contentSkip to conversation

tpm: remove struct tpm_pcrextend_in

PATCH In review Jarkko Sakkinen 2 participants 3 messages May 24, 2017 – May 25, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: remove struct tpm_pcrextend_in

Removed struct tpm_pcrextend_in as it is not used for anything anymore.

---
 drivers/char/tpm/tpm.h | 6 ------
 1 file changed, 6 deletions(-)
drivers/char/tpm/tpm.h +0 -6
index dd1173427fb2..af05c1403c6e 100644
@@ -363,11 +363,6 @@ struct tpm_pcrread_in {
 	__be32	pcr_idx;
 } __packed;
 
-struct tpm_pcrextend_in {
-	__be32	pcr_idx;
-	u8	hash[TPM_DIGEST_SIZE];
-} __packed;
-
 /* 128 bytes is an arbitrary cap. This could be as large as TPM_BUFSIZE - 18
  * bytes, but 128 is still a relatively large number of random bytes and
  * anything much bigger causes users of struct tpm_cmd_t to start getting
@@ -392,7 +387,6 @@ typedef union {
 	u8	readpubek_out_buffer[sizeof(struct tpm_readpubek_params_out)];
 	struct	tpm_pcrread_in	pcrread_in;
 	struct	tpm_pcrread_out	pcrread_out;
-	struct	tpm_pcrextend_in pcrextend_in;
 	struct	tpm_getrandom_in getrandom_in;
 	struct	tpm_getrandom_out getrandom_out;
 	struct tpm_startup_in startup_in;
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 3 lines · Jarkko Sakkinen

Removed struct tpm_pcrextend_in as it is not used for anything anymore.

Another bit of code that I just push.

/Jarkko

Quoted 31 lines
---
 drivers/char/tpm/tpm.h | 6 ------
 1 file changed, 6 deletions(-)
drivers/char/tpm/tpm.h +0 -6
index dd1173427fb2..af05c1403c6e 100644
@@ -363,11 +363,6 @@ struct tpm_pcrread_in {
 	__be32	pcr_idx;
 } __packed;
 
-struct tpm_pcrextend_in {
-	__be32	pcr_idx;
-	u8	hash[TPM_DIGEST_SIZE];
-} __packed;
-
 /* 128 bytes is an arbitrary cap. This could be as large as TPM_BUFSIZE - 18
  * bytes, but 128 is still a relatively large number of random bytes and
  * anything much bigger causes users of struct tpm_cmd_t to start getting
@@ -392,7 +387,6 @@ typedef union {
 	u8	readpubek_out_buffer[sizeof(struct tpm_readpubek_params_out)];
 	struct	tpm_pcrread_in	pcrread_in;
 	struct	tpm_pcrread_out	pcrread_out;
-	struct	tpm_pcrextend_in pcrextend_in;
 	struct	tpm_getrandom_in getrandom_in;
 	struct	tpm_getrandom_out getrandom_out;
 	struct tpm_startup_in startup_in;
Signature · 1 line
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Reviewed-by
#2 lore raw
Quoted 3 lines

Removed struct tpm_pcrextend_in as it is not used for anything anymore.

LGTM.

Quoted 29 lines

---
drivers/char/tpm/tpm.h | 6 ------

1 file changed, 6 deletions(-)
drivers/char/tpm/tpm.h +0 -7
index dd1173427fb2..af05c1403c6e 100644
@@ -363,11 +363,6 @@ struct tpm_pcrread_in {
 __be32 pcr_idx;
 } __packed;
 
-struct tpm_pcrextend_in {
- __be32 pcr_idx;
- u8 hash[TPM_DIGEST_SIZE];
-} __packed;
-
 /* 128 bytes is an arbitrary cap. This could be as large as TPM_BUFSIZE - 18
 * bytes, but 128 is still a relatively large number of random bytes and
 * anything much bigger causes users of struct tpm_cmd_t to start getting
@@ -392,7 +387,6 @@ typedef union {
 u8 readpubek_out_buffer[sizeof(struct tpm_readpubek_params_out)];
 struct tpm_pcrread_in pcrread_in;
 struct tpm_pcrread_out pcrread_out;
- struct tpm_pcrextend_in pcrextend_in;
 struct tpm_getrandom_in getrandom_in;
 struct tpm_getrandom_out getrandom_out;
 struct tpm_startup_in startup_in;
--
Quoted 2 lines

2.11.0

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html