linux-next: build failure after merge of the vfs-brauner tree

Stephen Rothwell posted 1 patch 1 month, 1 week ago
drivers/crypto/ccp/sev-dev.c | 1 -
1 file changed, 1 deletion(-)
linux-next: build failure after merge of the vfs-brauner tree
Posted by Stephen Rothwell 1 month, 1 week ago
Hi all,

After merging the vfs-brauner tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/crypto/ccp/sev-dev.c: In function 'open_file_as_root':
drivers/crypto/ccp/sev-dev.c:263:28: error: unused variable 'old_cred' [-Werror=unused-variable]
  263 |         const struct cred *old_cred;
      |                            ^~~~~~~~
cc1: all warnings being treated as errors

Caused by commit

  a5f40c848a5a ("sev-dev: use override credential guards")

I have applied this fix patch for today:

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 5 Nov 2025 10:35:52 +1100
Subject: [PATCH] fix up for "sev-dev: use override credential guards"

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/crypto/ccp/sev-dev.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/crypto/ccp/sev-dev.c b/drivers/crypto/ccp/sev-dev.c
index 03e08ed8da8f..b28a6f50daaa 100644
--- a/drivers/crypto/ccp/sev-dev.c
+++ b/drivers/crypto/ccp/sev-dev.c
@@ -260,7 +260,6 @@ static int sev_cmd_buffer_len(int cmd)
 static struct file *open_file_as_root(const char *filename, int flags, umode_t mode)
 {
 	struct path root __free(path_put) = {};
-	const struct cred *old_cred;
 
 	task_lock(&init_task);
 	get_fs_root(init_task.fs, &root);
-- 
2.51.1

-- 
Cheers,
Stephen Rothwell