diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-25 03:15:38 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:29:20 +0300 |
commit | ea9f879d037ff4d7851f35ba91dc774dd9033308 (patch) | |
tree | 00617cb462720703cf2eeef6174ef6c47d2b42be /drivers/gpu/drm/xe/xe_query.c | |
parent | ba11f1b7ea5b59fdf58e5dec7b73fa914de65f8d (diff) | |
download | linux-ea9f879d037ff4d7851f35ba91dc774dd9033308.tar.xz |
drm/xe: Sort includes
Sort includes and split them in blocks:
1) .h corresponding to the .c. Example: xe_bb.c should have a "#include
"xe_bb.h" first.
2) #include <linux/...>
3) #include <drm/...>
4) local includes
5) i915 includes
This is accomplished by running
`clang-format --style=file -i --sort-includes drivers/gpu/drm/xe/*.[ch]`
and ignoring all the changes after the includes. There are also some
manual tweaks to split the blocks.
v2: Also sort includes in headers
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_query.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_query.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/gpu/drm/xe/xe_query.c b/drivers/gpu/drm/xe/xe_query.c index f9f21bd1bfd7..0f70945176f6 100644 --- a/drivers/gpu/drm/xe/xe_query.c +++ b/drivers/gpu/drm/xe/xe_query.c @@ -3,17 +3,19 @@ * Copyright © 2022 Intel Corporation */ -#include <drm/xe_drm.h> -#include <drm/ttm/ttm_placement.h> +#include "xe_query.h" + #include <linux/nospec.h> +#include <drm/ttm/ttm_placement.h> +#include <drm/xe_drm.h> + #include "xe_bo.h" #include "xe_device.h" -#include "xe_gt.h" -#include "xe_macros.h" -#include "xe_query.h" #include "xe_ggtt.h" +#include "xe_gt.h" #include "xe_guc_hwconfig.h" +#include "xe_macros.h" static const enum xe_engine_class xe_to_user_engine_class[] = { [XE_ENGINE_CLASS_RENDER] = DRM_XE_ENGINE_CLASS_RENDER, |