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

tools headers: Sync uapi/drm/drm.h with the kernel sources

To pick up the changes in this cset:

56c594d8df64e726 ("drm: add DRM_SET_CLIENT_NAME ioctl")

This addresses these perf build warnings:

Warning: Kernel ABI header differences:
diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h

Please see tools/include/uapi/README for further details.

Reviewed-by: James Clark <james.clark@linaro.org>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: dri-devel@lists.freedesktop.org
Link: https://lore.kernel.org/r/20241203035349.1901262-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

+17
+17
tools/include/uapi/drm/drm.h
··· 1024 1024 __u64 user_data; /* user data passed to event */ 1025 1025 }; 1026 1026 1027 + #define DRM_CLIENT_NAME_MAX_LEN 64 1028 + struct drm_set_client_name { 1029 + __u64 name_len; 1030 + __u64 name; 1031 + }; 1032 + 1033 + 1027 1034 #if defined(__cplusplus) 1028 1035 } 1029 1036 #endif ··· 1294 1287 * framebuffers attached to a plane can be read back by the next DRM master. 1295 1288 */ 1296 1289 #define DRM_IOCTL_MODE_CLOSEFB DRM_IOWR(0xD0, struct drm_mode_closefb) 1290 + 1291 + /** 1292 + * DRM_IOCTL_SET_CLIENT_NAME - Attach a name to a drm_file 1293 + * 1294 + * Having a name allows for easier tracking and debugging. 1295 + * The length of the name (without null ending char) must be 1296 + * <= DRM_CLIENT_NAME_MAX_LEN. 1297 + * The call will fail if the name contains whitespaces or non-printable chars. 1298 + */ 1299 + #define DRM_IOCTL_SET_CLIENT_NAME DRM_IOWR(0xD1, struct drm_set_client_name) 1297 1300 1298 1301 /* 1299 1302 * Device specific ioctls should only be in their respective headers