mpc8xxx: fsl_pamu: Update data type in config_pamu
authorPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Feb 2021 08:31:11 +0000 (14:01 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:19 +0000 (14:01 +0530)
commit43d1d391f6580a500659745343a6226c5034361e
tree64290dd95515f32d2b0ca9bbfe7e20692ec537f2
parent19dba8bf9f4c87278b8e6e2133ebc39f4edb6592
mpc8xxx: fsl_pamu: Update data type in config_pamu

Update data type of '1' to '1ull' in below assignment
size = 1ull << sizebit;

to fix incorrect assignment issue.
e.g: when sizebit was 31, 0x80000000 got sign extended to
0xffffffff_80000000

Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Reported-by: Dean Saridakis <dean.saridakis@baesystems.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/powerpc/cpu/mpc8xxx/fsl_pamu.c