syslog: Provide stub check_syslog_permissions
[linux-2.6-block.git] / include / linux / syslog.h
index 98a3153c0f964e9e5a2d9402d15e9fa8788e2d57..4b7b875a7ce1febdacb9f54c887210de0f28216f 100644 (file)
 
 int do_syslog(int type, char __user *buf, int count, bool from_file);
 
+#ifdef CONFIG_PRINTK
+int check_syslog_permissions(int type, bool from_file);
+#else
+static inline int check_syslog_permissions(int type, bool from_file)
+{
+       return 0;
+}
+#endif
+
 #endif /* _LINUX_SYSLOG_H */