]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/ggtt: Remove duplicate XE_GGTT_FLAGS_64K macro definition
authorShuicheng Lin <shuicheng.lin@intel.com>
Mon, 16 Mar 2026 22:27:23 +0000 (22:27 +0000)
committerShuicheng Lin <shuicheng.lin@intel.com>
Mon, 30 Mar 2026 21:45:13 +0000 (14:45 -0700)
XE_GGTT_FLAGS_64K is defined twice in xe_ggtt.c: once at file scope
(alongside XE_GGTT_FLAGS_ONLINE) and once inside struct xe_ggtt. The
duplicate inside the struct was originally the only definition when the
struct lived in xe_ggtt_types.h, but when commit 4f3a998a173b ("drm/xe:
Open-code GGTT MMIO access protection") added the file-scope definitions
for both FLAGS_64K and FLAGS_ONLINE, it did not remove the pre-existing
one inside the struct.

Remove the redundant definition inside struct xe_ggtt, keeping only the
file-scope pair at the top of the file.

Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Zongyao Bai <zongyao.bai@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260316222723.1722591-2-shuicheng.lin@intel.com
drivers/gpu/drm/xe/xe_ggtt.c

index a848d1a41b9b988696f823c68c101ea620ec967f..3552fa3cac4bc91b1d42f339c13b8b4c194e973c 100644 (file)
@@ -115,7 +115,6 @@ struct xe_ggtt {
        /** @size: Total usable size of this GGTT */
        u64 size;
 
-#define XE_GGTT_FLAGS_64K BIT(0)
        /**
         * @flags: Flags for this GGTT
         * Acceptable flags: