From a8b8b85469e6d2be96b5a2c4697308fbeb75bc1e Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Tue, 9 Jun 2020 10:58:46 +0530 Subject: profiler: Fix compilation errors Fix below compilation error with clang warning: attribute 'packed' is ignored, place it after "union" to apply attribute to type declaration [-Wignored-attributes]. Change-Id: Id8cebb3d60b61d8d2168b8f8d77c79107edb4953 Signed-off-by: Swetha Chikkaboraiah --- include/soc/qcom/profiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/soc/qcom/profiler.h b/include/soc/qcom/profiler.h index ffcf6ec91187..7ccea6f43228 100644 --- a/include/soc/qcom/profiler.h +++ b/include/soc/qcom/profiler.h @@ -82,11 +82,11 @@ struct tz_bw_svc_resp { enum tz_bw_svc_err status; } __packed; -__packed union tz_bw_svc_req { +union tz_bw_svc_req { struct tz_bw_svc_start_req *start_req; struct tz_bw_svc_get_req *get_req; struct tz_bw_svc_stop_req *stop_req; -}; +} __packed; struct tz_bw_svc_buf { union tz_bw_svc_req bwreq; -- cgit v1.2.3