diff options
author | Thiebaud Weksteen <tweek@google.com> | 2018-04-25 15:26:41 +0200 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2018-05-09 14:45:46 +0300 |
commit | 09dd144f72e77bc962f44e3bd17bccfa6aceef4b (patch) | |
tree | 8344bdb9221890fbac7eccca39ce8a945f987ba3 /drivers/char | |
parent | f20b4f2245367e7471d844fb8685fd46f15c17db (diff) | |
download | linux-09dd144f72e77bc962f44e3bd17bccfa6aceef4b.tar.gz linux-09dd144f72e77bc962f44e3bd17bccfa6aceef4b.tar.bz2 linux-09dd144f72e77bc962f44e3bd17bccfa6aceef4b.zip |
tpm: Add explicit endianness cast
Signed-off-by: Thiebaud Weksteen <tweek@google.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/tpm/tpm_eventlog_of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_eventlog_of.c b/drivers/char/tpm/tpm_eventlog_of.c index 96fd5646f866..ea0f16f19d73 100644 --- a/drivers/char/tpm/tpm_eventlog_of.c +++ b/drivers/char/tpm/tpm_eventlog_of.c @@ -56,8 +56,8 @@ int tpm_read_log_of(struct tpm_chip *chip) * but physical tpm needs the conversion. */ if (of_property_match_string(np, "compatible", "IBM,vtpm") < 0) { - size = be32_to_cpup(sizep); - base = be64_to_cpup(basep); + size = be32_to_cpup((__force __be32 *)sizep); + base = be64_to_cpup((__force __be64 *)basep); } else { size = *sizep; base = *basep; |