Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools headers UAPI: Update tools's copy of drm.h header

Picking the changes from:

43d5ac7d07023cd1 ("drm: document DRM_IOCTL_MODE_GETFB2")

It is just a comment, so no changes and silences these perf build warnings:

Warning: Kernel ABI header at 'tools/include/uapi/drm/drm.h' differs from latest version at 'include/uapi/drm/drm.h'
diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h

Cc: Simon Ser <contact@emersion.fr>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+18
+18
tools/include/uapi/drm/drm.h
··· 1096 1096 #define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer) 1097 1097 #define DRM_IOCTL_SYNCOBJ_TIMELINE_SIGNAL DRM_IOWR(0xCD, struct drm_syncobj_timeline_array) 1098 1098 1099 + /** 1100 + * DRM_IOCTL_MODE_GETFB2 - Get framebuffer metadata. 1101 + * 1102 + * This queries metadata about a framebuffer. User-space fills 1103 + * &drm_mode_fb_cmd2.fb_id as the input, and the kernels fills the rest of the 1104 + * struct as the output. 1105 + * 1106 + * If the client is DRM master or has &CAP_SYS_ADMIN, &drm_mode_fb_cmd2.handles 1107 + * will be filled with GEM buffer handles. Planes are valid until one has a 1108 + * zero handle -- this can be used to compute the number of planes. 1109 + * 1110 + * Otherwise, &drm_mode_fb_cmd2.handles will be zeroed and planes are valid 1111 + * until one has a zero &drm_mode_fb_cmd2.pitches. 1112 + * 1113 + * If the framebuffer has a format modifier, &DRM_MODE_FB_MODIFIERS will be set 1114 + * in &drm_mode_fb_cmd2.flags and &drm_mode_fb_cmd2.modifier will contain the 1115 + * modifier. Otherwise, user-space must ignore &drm_mode_fb_cmd2.modifier. 1116 + */ 1099 1117 #define DRM_IOCTL_MODE_GETFB2 DRM_IOWR(0xCE, struct drm_mode_fb_cmd2) 1100 1118 1101 1119 /*