[Devel] [PATCH RHEL7 COMMIT] pid_ns: Drop global pid_max declaration leftover

Konstantin Khorenko khorenko at virtuozzo.com
Tue May 31 16:55:21 MSK 2022


The commit is pushed to "branch-rh7-3.10.0-1160.62.1.vz7.187.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.62.1.vz7.187.3
------>
commit 2b161940ab488356cd67e446ac1303555feb55a5
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue May 31 16:51:13 2022 +0300

    pid_ns: Drop global pid_max declaration leftover
    
    Just a leftover.
    
    Found in the scope of https://jira.sw.ru/browse/PSBM-140308
    Fixes: 8a07dff63c68 ("pid_ns: Virtualize pid_max")
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/pid_namespace.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
index be561b1ae071..31795e37e774 100644
--- a/kernel/pid_namespace.c
+++ b/kernel/pid_namespace.c
@@ -299,7 +299,6 @@ static int pid_ns_ctl_handler(struct ctl_table *table, int write,
 	return proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
 }
 
-extern int pid_max;
 static int zero = 0;
 static struct ctl_table pid_ns_ctl_table[] = {
 	{


More information about the Devel mailing list