mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
fix(el3-spmc): use uint64_t for 64-bit type
Using uint64_t is cleaner, even though size_t is 64 bits on all platforms el3-spmc supports. Change-Id: I457deb0b7f3df0749cb5368cceda1bb530d039de Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
This commit is contained in:
parent
1198ff8424
commit
43318e4a4d
1 changed files with 4 additions and 3 deletions
|
@ -977,9 +977,10 @@ static long spmc_ffa_fill_desc(struct mailbox *mbox,
|
|||
goto err_arg;
|
||||
}
|
||||
|
||||
if (fragment_length > mbox->rxtx_page_count * PAGE_SIZE_4KB) {
|
||||
WARN("%s: bad fragment size %u > %u buffer size\n", __func__,
|
||||
fragment_length, mbox->rxtx_page_count * PAGE_SIZE_4KB);
|
||||
CASSERT(sizeof(mbox->rxtx_page_count) == 4, assert_bogus_page_count);
|
||||
if (fragment_length > (uint64_t)mbox->rxtx_page_count * PAGE_SIZE_4KB) {
|
||||
WARN("%s: bad fragment size %u > %" PRIu64 " buffer size\n", __func__,
|
||||
fragment_length, (uint64_t)mbox->rxtx_page_count * PAGE_SIZE_4KB);
|
||||
ret = FFA_ERROR_INVALID_PARAMETER;
|
||||
goto err_arg;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue