[PATCH] drm/xe/debugfs: Fix the indentation of a return statement
From: Sasha Levin
Date: Thu Dec 03 2026 - 08:34:38 EST
Commit b2d368d1b266 ("drm/xe/vram: don't let firmware-confirmed
permanent bad pages decay back in") added a tab in front of the last
return statement of inject_mempage_offline_trigger() when it added an
argument to the call. The statement now lines up with the body of the
"if (pfn == 0)" above it, and with CONFIG_WERROR the build fails:
drivers/gpu/drm/xe/xe_debugfs.c:124:3: error: misleading indentation;
statement is not part of the previous 'if'
[-Werror,-Wmisleading-indentation]
Remove the tab.
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Closes: https://lore.kernel.org/oe-kbuild-all/20261203111901.XsHwVygi-lkp@xxxxxxxxx/
Fixes: b2d368d1b266 ("drm/xe/vram: don't let firmware-confirmed permanent bad pages decay back in")
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
---
Based on drm-xe-next (9aebc8e32250). Built xe_debugfs.o on x86_64
allmodconfig with clang 21: it fails before this patch and builds after.
drivers/gpu/drm/xe/xe_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c
index d4e7fd0b11012..52c50496fa352 100644
--- a/drivers/gpu/drm/xe/xe_debugfs.c
+++ b/drivers/gpu/drm/xe/xe_debugfs.c
@@ -121,7 +121,7 @@ static ssize_t inject_mempage_offline_trigger(struct file *f,
return xe_ttm_vram_inject_fault(xe) ?: size;
/* User provided PFN - convert to DPA and inject */
- return xe_ttm_vram_handle_addr_fault(xe, pfn << PAGE_SHIFT, false) ?: size;
+ return xe_ttm_vram_handle_addr_fault(xe, pfn << PAGE_SHIFT, false) ?: size;
}
static const struct file_operations inject_mempage_offline_fops = {
base-commit: 9aebc8e322508d912451d9904b124bad09fa8dae
--
2.53.0