The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: "Matthew Brost" <matthew.brost@intel.com>,
	"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>,
	Arvind Yadav <arvind.yadav@intel.com>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] drm/xe/debugfs: Fix the indentation of a return statement
Date: Thu,  3 Dec 2026 08:34:29 -0500	[thread overview]
Message-ID: <20261203133429.3922057-1-sashal@kernel.org> (raw)

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


             reply	other threads:[~2026-12-03 13:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 13:34 Sasha Levin [this message]
2026-12-03 15:01 ` [PATCH] drm/xe/debugfs: Fix the indentation of a return statement Rodrigo Vivi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203133429.3922057-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=airlied@gmail.com \
    --cc=arvind.yadav@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.brost@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=simona@ffwll.ch \
    --cc=tejas.upadhyay@intel.com \
    --cc=thomas.hellstrom@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox