]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/xe/uapi: Move CPU_CACHING defines before doc
authorFrancois Dugast <francois.dugast@intel.com>
Fri, 15 Dec 2023 15:45:51 +0000 (15:45 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:47:23 +0000 (11:47 -0500)
Move those defines to align on the rule used elsewhere in the file which
was introduced by commit 4f082f2c3a37 ("drm/xe: Move defines before
relevant fields").

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Mateusz Naklicki <mateusz.naklicki@intel.com>
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
include/uapi/drm/xe_drm.h

index 5240653eeefd7757331a9ea73eb8f2e753bdc679..8a69abea0725fee132516bd6afa84652cf80037b 100644 (file)
@@ -733,12 +733,12 @@ struct drm_xe_gem_create {
         */
        __u32 handle;
 
+#define DRM_XE_GEM_CPU_CACHING_WB                      1
+#define DRM_XE_GEM_CPU_CACHING_WC                      2
        /**
         * @cpu_caching: The CPU caching mode to select for this object. If
         * mmaping the object the mode selected here will also be used.
         */
-#define DRM_XE_GEM_CPU_CACHING_WB                      1
-#define DRM_XE_GEM_CPU_CACHING_WC                      2
        __u16 cpu_caching;
        /** @pad: MBZ */
        __u16 pad[3];