Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/debugfs: Fix the indentation of a return statement
@ 2026-12-03 13:34 Sasha Levin
  2026-12-03 15:01 ` Rodrigo Vivi
  0 siblings, 1 reply; 2+ messages in thread
From: Sasha Levin @ 2026-12-03 13:34 UTC (permalink / raw)
  To: Matthew Brost, Thomas Hellström, Rodrigo Vivi
  Cc: Tejas Upadhyay, Arvind Yadav, David Airlie, Simona Vetter,
	intel-xe, dri-devel, linux-kernel

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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/20261203111901.XsHwVygi-lkp@intel.com/
Fixes: b2d368d1b266 ("drm/xe/vram: don't let firmware-confirmed permanent bad pages decay back in")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/xe/debugfs: Fix the indentation of a return statement
  2026-12-03 13:34 [PATCH] drm/xe/debugfs: Fix the indentation of a return statement Sasha Levin
@ 2026-12-03 15:01 ` Rodrigo Vivi
  0 siblings, 0 replies; 2+ messages in thread
From: Rodrigo Vivi @ 2026-12-03 15:01 UTC (permalink / raw)
  To: Sasha Levin
  Cc: Matthew Brost, Thomas Hellström, Tejas Upadhyay,
	Arvind Yadav, David Airlie, Simona Vetter, intel-xe, dri-devel,
	linux-kernel

On Thu, Dec 03, 2026 at 08:34:29AM -0500, Sasha Levin wrote:
> 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@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/20261203111901.XsHwVygi-lkp@intel.com/
> Fixes: b2d368d1b266 ("drm/xe/vram: don't let firmware-confirmed permanent bad pages decay back in")
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> 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.

pushed to drm-xe-next. Thanks for the patch

> 
>  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
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 13:34 [PATCH] drm/xe/debugfs: Fix the indentation of a return statement Sasha Levin
2026-12-03 15:01 ` Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox