panfrost_drm.h build error
gcc
In file included from ../src/panfrost/ds/pan_pps_driver.cc:16:
../include/drm-uapi/panfrost_drm.h:245:24: error: ‘struct panfrost_dump_object_header::<unnamed union>::pan_reg_hdr’ invalid; an anonymous union may only have public non-static data members [-fpermissive]
245 | struct pan_reg_hdr {
| ^~~~~~~~~~~
../include/drm-uapi/panfrost_drm.h:253:24: error: ‘struct panfrost_dump_object_header::<unnamed union>::pan_bomap_hdr’ invalid; an anonymous union may only have public non-static data members [-fpermissive]
253 | struct pan_bomap_hdr {
| ^~~~~~~~~~~~~
clang
In file included from ../src/panfrost/ds/pan_pps_driver.cc:16:
../include/drm-uapi/panfrost_drm.h:245:10: error: types cannot be declared in an anonymous union
struct pan_reg_hdr {
^
../include/drm-uapi/panfrost_drm.h:253:10: error: types cannot be declared in an anonymous union
struct pan_bomap_hdr {
^