Make store_s() (store arbitrarily-sized data) take a void* data argument, not unsigned char* so that it can be given a pointer to a structure to be included without the need to cast. Signed-off-by: David Howells <dhowells@xxxxxxxxxx> --- drivers/char/tpm/tpm-library.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm-library.h b/drivers/char/tpm/tpm-library.h index c1af99dba08d..861e67df27fc 100644 --- a/drivers/char/tpm/tpm-library.h +++ b/drivers/char/tpm/tpm-library.h @@ -46,8 +46,7 @@ static inline void store32(struct tpm_buf *buf, uint32_t value) buf->len += sizeof value; } -static inline void store_s(struct tpm_buf *buf, const unsigned char *in, - int len) +static inline void store_s(struct tpm_buf *buf, const void *in, int len) { memcpy(buf->data + buf->len, in, len); buf->len += len;