diff options
author | Swetha Chikkaboraiah <schikk@codeaurora.org> | 2020-06-09 10:58:46 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-06-09 22:36:59 -0700 |
commit | a8b8b85469e6d2be96b5a2c4697308fbeb75bc1e (patch) | |
tree | 2580466964164c8e7d63c309b64c0c691cb3d158 | |
parent | 26bf32af70775530b72189de1e43eeb25a9af177 (diff) |
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 <schikk@codeaurora.org>
-rw-r--r-- | include/soc/qcom/profiler.h | 4 |
1 files 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; |