Skip to content

Commit a4941df

Browse files
committed
drm: apple: iomfb: Adapt IOMFB_METHOD for gcc 15
Fixes "error: initializer-string for array of ‘char’ is too long" errors while compiling with Fedora's gcc 15. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 7498ab8 commit a4941df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/apple/iomfb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ enum dcpep_method {
199199
dcpep_num_methods
200200
};
201201

202-
#define IOMFB_METHOD(tag, name) [name] = { #name, tag }
202+
#define IOMFB_METHOD(tag, name) [name] = { #name, { tag[0], tag[1], tag[2], tag[3] } }
203203

204204
struct dcp_method_entry {
205205
const char *name;

0 commit comments

Comments
 (0)