diag: Fix compilation error with new sdclang 12
Fix the compilation error with sdclang 12.0. Change-Id: If6b5caf655568b0d4ee12a71927df9476f3b4c55 Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
This commit is contained in:
parent
b229ece310
commit
95bd01d3ca
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ void *diagmem_alloc(struct diagchar_dev *driver, int size, int pool_type)
|
|||
break;
|
||||
}
|
||||
if (size == 0 || size > mempool->itemsize ||
|
||||
size > (int)mempool->pool->pool_data) {
|
||||
size > (size_t)mempool->pool->pool_data) {
|
||||
pr_err_ratelimited("diag: cannot alloc from mempool %s, invalid size: %d\n",
|
||||
mempool->name, size);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue