diff options
| author | 2019-11-28 15:55:45 +0100 | |
|---|---|---|
| committer | 2019-12-09 13:54:36 -0600 | |
| commit | 611780a6aa500345360bcda8a6dfdcd0666d4695 (patch) | |
| tree | 1ae51f7f74485ffa42338828af55fa3a1b27934b /include/uapi/linux/can | |
| parent | soc: fsl: qe: refactor cpm_muram_alloc_common to prevent BUG on error path (diff) | |
soc: fsl: qe: avoid IS_ERR_VALUE in ucc_slow.c
When trying to build this for a 64-bit platform, one gets warnings
from using IS_ERR_VALUE on something which is not sizeof(long).
Instead, change the various *_offset fields to store a signed integer,
and simply check for a negative return from qe_muram_alloc(). Since
qe_muram_free() now accepts and ignores a negative argument, we only
need to make sure these fields are initialized with -1, and we can
just unconditionally call qe_muram_free() in ucc_slow_free().
Note that the error case for us_pram_offset failed to set that field
to 0 (which, as noted earlier, is anyway a bogus sentinel value).
Reviewed-by: Timur Tabi <timur@kernel.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'include/uapi/linux/can')
0 files changed, 0 insertions, 0 deletions
