From: Michael Benedict Date: Sat, 8 Jun 2019 17:44:13 +0000 (+1000) Subject: soc: samsung: cal-if: add volatile keyword to prevent optimization by clang X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88fe390b2a5fb7138148d3ad88991eb61489d581;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git soc: samsung: cal-if: add volatile keyword to prevent optimization by clang Signed-off-by: Michael Benedict --- diff --git a/drivers/soc/samsung/cal-if/exynos8895/asv_exynos8895.h b/drivers/soc/samsung/cal-if/exynos8895/asv_exynos8895.h index 6d76f7df1575..b76162fa9a47 100644 --- a/drivers/soc/samsung/cal-if/exynos8895/asv_exynos8895.h +++ b/drivers/soc/samsung/cal-if/exynos8895/asv_exynos8895.h @@ -69,8 +69,8 @@ struct id_tbl_info { unsigned reserved_5:8; }; -static struct asv_tbl_info *asv_tbl; -static struct id_tbl_info *id_tbl; +static volatile struct asv_tbl_info *asv_tbl; +static volatile struct id_tbl_info *id_tbl; int asv_get_grp(unsigned int id) {