diff options
| -rw-r--r-- | kernel/sysctl_binary.c | 8 | 
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index 471438bbece..bf0a4b06782 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c @@ -1393,15 +1393,9 @@ static ssize_t binary_sysctl(const int *name, int nlen,  static void deprecated_sysctl_warning(const int *name, int nlen)  { -	static int msg_count;  	int i; -	/* Ignore accesses to kernel.version */ -	if ((nlen == 2) && (name[0] == CTL_KERN) && (name[1] == KERN_VERSION)) -		return; - -	if (msg_count < 5) { -		msg_count++; +	if (printk_ratelimit()) {  		printk(KERN_INFO  			"warning: process `%s' used the deprecated sysctl "  			"system call with ", current->comm);  |