Skip to content

Commit

Permalink
[Fixup] core: pager: ltc: prng: add entropy to the AE key for paged TAs
Browse files Browse the repository at this point in the history
Add missing __maybe_unused qualifiers to fix a compile error.

Signed-off-by: Jerome Forissier <[email protected]>
  • Loading branch information
jforissier committed Sep 27, 2017
1 parent 5b53db9 commit b4eff9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/libtomcrypt/src/tee_ltc_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,8 @@ static TEE_Result prng_read(void *buf, size_t blen)
}

/* Called as a result of rng_generate() below */
static TEE_Result _tee_ltc_prng_add_entropy(const uint8_t *inbuf, size_t len)
static TEE_Result _tee_ltc_prng_add_entropy(
const uint8_t *inbuf __maybe_unused, size_t len __maybe_unused)
{
#if defined(CFG_WITH_SOFTWARE_PRNG)
int err;
Expand Down

0 comments on commit b4eff9f

Please sign in to comment.