drm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code
Subsystems (5)
DRM drivers DRM misc Arm Qualcomm mailing list DRM driver for Qualcomm display hardware +1 more subsystems
PATCH 1/1 drm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code
From: Danylo Piliaiev <[email protected]>
Clashes with C++ or keyword
Signed-off-by Danylo Piliaiev <[email protected]>
Signed-off-by Rob Clark <[email protected]>
---
This is a port of a C++ compat fix that was made in mesa's copy of the drm uapi headers.
include/uapi/drm/msm_drm.h | 4 ++++ 1 file changed, 4 insertions(+)
include/uapi/drm/msm_drm.h +4 -0
@@ -186,7 +186,11 @@ struct drm_msm_gem_cpu_fini {*/ struct drm_msm_gem_submit_reloc {__u32 submit_offset;/* in, offset from submit_bo */ +#ifdef __cplusplus +__u32 _or;/* in, value OR'd with result */ +#else __u32 or;/* in, value OR'd with result */ +#endif __s32 shift;/* in, amount of left shift (can be negative) */ __u32 reloc_idx;/* in, index of reloc_bo buffer */ __u64 reloc_offset;/* in, offset from start of reloc_bo */
Signature · 1 line
2.39.2
Quoted 7 lines · Rob Clark
From: Danylo Piliaiev <[email protected]>
Clashes with C++
orkeywordSigned-off-by Danylo Piliaiev <[email protected]>Signed-off-by Rob Clark <[email protected]>
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Dmitry Baryshkov
AppliedQuoted 3 lines · Rob Clark
Clashes with C++
orkeyword
Applied, thanks!
[1/1] drm/msm: Rename drm_msm_gem_submit_reloc::or in C++ code
https://gitlab.freedesktop.org/lumag/msm/-/commit/be7772e53681
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>