[Devel] [PATCH RHEL10 COMMIT] ve/sunrpc: Remove unused sunrpc_net variable in write_kill_tasks()
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Jun 29 18:45:36 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-211.16.1.12.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-211.16.1.12.6.vz10
------>
commit 6f82b9f250c61676ff0d6e8887cb95d569de79c8
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date: Fri Jun 26 10:16:59 2026 +0200
ve/sunrpc: Remove unused sunrpc_net variable in write_kill_tasks()
This fixes kernel compilation warning:
net/sunrpc/clnt.c: In function "write_kill_tasks":
net/sunrpc/clnt.c:3469:28: warning: unused variable "sn" [-Wunused-variable]
3469 | struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
| ^~
by simply removing this unused variable.
https://virtuozzo.atlassian.net/browse/VSTOR-136420
Fixes: 6267eda9fbf65 ("ve/sunrpc: Refactor {rpc, write}_kill_tasks")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Feature: nfs/nfsd: containerization
---
net/sunrpc/clnt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 4d52ea3eb17c6..06fe84fcee6c1 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -3466,7 +3466,6 @@ static ssize_t write_kill_tasks(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
struct net *net = pde_data(file->f_path.dentry->d_inode);
- struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);
char tbuf[20];
unsigned long kill_tasks;
int res;
More information about the Devel
mailing list