Skip to content

Commit 7228d9d

Browse files
author
Steven Price
committed
drm/panfrost: Remove type name from internal structs
The two structs internal to struct panfrost_dump_object_header were named, but sadly that is incompatible with C++, causing an error: "an anonymous union may only have public non-static data members". However nothing refers to struct pan_reg_hdr and struct pan_bomap_hdr and there's no need to export these definitions, so lets drop them. This fixes the C++ build error with the minimum change in userspace API. Reported-by: Adrián Larumbe <[email protected]> Fixes: 730c2bf ("drm/panfrost: Add support for devcoredump") Reviewed-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a91e5e3 commit 7228d9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/uapi/drm/panfrost_drm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,15 @@ struct panfrost_dump_object_header {
242242
__le32 file_offset;
243243

244244
union {
245-
struct pan_reg_hdr {
245+
struct {
246246
__le64 jc;
247247
__le32 gpu_id;
248248
__le32 major;
249249
__le32 minor;
250250
__le64 nbos;
251251
} reghdr;
252252

253-
struct pan_bomap_hdr {
253+
struct {
254254
__le32 valid;
255255
__le64 iova;
256256
__le32 data[2];

0 commit comments

Comments
 (0)