@@ -796,8 +796,8 @@ static int proc_watchdog_common(int which, struct ctl_table *table, int write,
796
796
/*
797
797
* /proc/sys/kernel/watchdog
798
798
*/
799
- int proc_watchdog (struct ctl_table * table , int write ,
800
- void * buffer , size_t * lenp , loff_t * ppos )
799
+ static int proc_watchdog (struct ctl_table * table , int write ,
800
+ void * buffer , size_t * lenp , loff_t * ppos )
801
801
{
802
802
return proc_watchdog_common (WATCHDOG_HARDLOCKUP_ENABLED |
803
803
WATCHDOG_SOFTOCKUP_ENABLED ,
@@ -807,30 +807,32 @@ int proc_watchdog(struct ctl_table *table, int write,
807
807
/*
808
808
* /proc/sys/kernel/nmi_watchdog
809
809
*/
810
- int proc_nmi_watchdog (struct ctl_table * table , int write ,
811
- void * buffer , size_t * lenp , loff_t * ppos )
810
+ static int proc_nmi_watchdog (struct ctl_table * table , int write ,
811
+ void * buffer , size_t * lenp , loff_t * ppos )
812
812
{
813
813
if (!watchdog_hardlockup_available && write )
814
814
return - ENOTSUPP ;
815
815
return proc_watchdog_common (WATCHDOG_HARDLOCKUP_ENABLED ,
816
816
table , write , buffer , lenp , ppos );
817
817
}
818
818
819
+ #ifdef CONFIG_SOFTLOCKUP_DETECTOR
819
820
/*
820
821
* /proc/sys/kernel/soft_watchdog
821
822
*/
822
- int proc_soft_watchdog (struct ctl_table * table , int write ,
823
- void * buffer , size_t * lenp , loff_t * ppos )
823
+ static int proc_soft_watchdog (struct ctl_table * table , int write ,
824
+ void * buffer , size_t * lenp , loff_t * ppos )
824
825
{
825
826
return proc_watchdog_common (WATCHDOG_SOFTOCKUP_ENABLED ,
826
827
table , write , buffer , lenp , ppos );
827
828
}
829
+ #endif
828
830
829
831
/*
830
832
* /proc/sys/kernel/watchdog_thresh
831
833
*/
832
- int proc_watchdog_thresh (struct ctl_table * table , int write ,
833
- void * buffer , size_t * lenp , loff_t * ppos )
834
+ static int proc_watchdog_thresh (struct ctl_table * table , int write ,
835
+ void * buffer , size_t * lenp , loff_t * ppos )
834
836
{
835
837
int err , old ;
836
838
@@ -852,8 +854,8 @@ int proc_watchdog_thresh(struct ctl_table *table, int write,
852
854
* user to specify a mask that will include cpus that have not yet
853
855
* been brought online, if desired.
854
856
*/
855
- int proc_watchdog_cpumask (struct ctl_table * table , int write ,
856
- void * buffer , size_t * lenp , loff_t * ppos )
857
+ static int proc_watchdog_cpumask (struct ctl_table * table , int write ,
858
+ void * buffer , size_t * lenp , loff_t * ppos )
857
859
{
858
860
int err ;
859
861
0 commit comments