Centos-kernel-stream-9/fs/lockd
Benjamin Coddington a969c35f28 lockd: define nlm_port_min,max with CONFIG_SYSCTL
JIRA: https://issues.redhat.com/browse/RHEL-73723

commit fc412a6196a6f46ece0e6e6b118556464f165800
Author: Tom Rix <trix@redhat.com>
Date:   Tue May 2 14:07:13 2023 -0400

    lockd: define nlm_port_min,max with CONFIG_SYSCTL

    gcc with W=1 and ! CONFIG_SYSCTL
    fs/lockd/svc.c:80:51: error: ‘nlm_port_max’ defined but not used [-Werror=unused-const-variable=]
       80 | static const int                nlm_port_min = 0, nlm_port_max = 65535;
          |                                                   ^~~~~~~~~~~~
    fs/lockd/svc.c:80:33: error: ‘nlm_port_min’ defined but not used [-Werror=unused-const-variable=]
       80 | static const int                nlm_port_min = 0, nlm_port_max = 65535;
          |                                 ^~~~~~~~~~~~

    The only use of these variables is when CONFIG_SYSCTL
    is defined, so their definition should be likewise conditional.

    Signed-off-by: Tom Rix <trix@redhat.com>
    Reviewed-by: Jeff Layton <jlayton@kernel.org>
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
2025-01-31 06:45:51 -05:00
..
Makefile lockd: Use *-y instead of *-objs in Makefile 2024-11-05 07:34:03 -05:00
clnt4xdr.c lockd: set file_lock start and end when decoding nlm4 testargs 2023-05-08 10:41:47 -04:00
clntlock.c NFS: add a sysfs link to the lockd rpc_client 2023-12-02 05:12:35 -05:00
clntproc.c lockd: add some client-side tracepoints 2023-05-24 09:48:57 -04:00
clntxdr.c
host.c lockd: host: Remove unnecessary statements'host = NULL;' 2024-10-25 12:36:14 -04:00
mon.c fs: lockd: avoid possible wrong NULL parameter 2023-12-02 05:12:41 -05:00
netns.h
procfs.c
procfs.h
svc.c lockd: define nlm_port_min,max with CONFIG_SYSCTL 2025-01-31 06:45:51 -05:00
svc4proc.c
svclock.c SUNRPC: change how svc threads are asked to exit. 2024-10-25 12:35:46 -04:00
svcproc.c
svcshare.c
svcsubs.c
svcxdr.h
trace.c lockd: add some client-side tracepoints 2023-05-24 09:48:57 -04:00
trace.h lockd: add some client-side tracepoints 2023-05-24 09:48:57 -04:00
xdr.c
xdr4.c lockd: set file_lock start and end when decoding nlm4 testargs 2023-05-08 10:41:47 -04:00