Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 1 participant 1 message Nov 5, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
Date: Wed, 5 Nov 2025 10:35:52 +1100
Subject: [PATCH] fix up for "sev-dev: use override credential guards"

---
 drivers/crypto/ccp/sev-dev.c | 1 -
 1 file changed, 1 deletion(-)
drivers/crypto/ccp/sev-dev.c +0 -1
index 03e08ed8da8f..b28a6f50daaa 100644
@@ -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);
Signature · 5 lines
2.51.1

-- 
Cheers,
Stephen Rothwell