summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDong Du <[email protected]>2021-11-25 18:38:17 +0800
committerAnup Patel <[email protected]>2021-11-30 10:40:35 +0530
commit7e777069664465cb36bb14801c7e17c143911f9b (patch)
treeb034a65ff8d6804b88c2004368b0b1a5e7925997 /include
parent7a22c780df587ca298b3566fe5d0fd396746decd (diff)
lib: sbi: Resolve the uninitialized complaint in sbi_pmu
A recent commit (b28f0700) turns to read from CSR_MCOUNTINHIBIT after checking the SBI_HART_HAS_MCOUNTINHIBIT HART feature, which leaves the mctr_inhbt uninitialized in pmu_ctr_find_hw(). As a result, compiler will complain: error: 'mctr_inhbt' may be used uninitialized in this function. This commit resolves the issue by assigning an initial value to mctr_inhbt. Signed-off-by: Dong Du <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions