soc: samsung: cal-if: add volatile keyword to prevent optimization by clang
authorMichael Benedict <michaelbt@live.com>
Sat, 8 Jun 2019 17:44:13 +0000 (03:44 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:56 +0000 (01:08 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/soc/samsung/cal-if/exynos8895/asv_exynos8895.h

index 6d76f7df157550109f0310d894e768b775fab0b5..b76162fa9a47f5f43fc0e60567654ef618542831 100644 (file)
@@ -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)
 {