diff --git a/include/linux/syslog.h b/include/linux/syslog.h index 9def5297dbb72fb4b96dce54ce581b65363c948b..4b7b875a7ce1febdacb9f54c887210de0f28216f 100644 --- a/include/linux/syslog.h +++ b/include/linux/syslog.h @@ -48,6 +48,14 @@ #define SYSLOG_FROM_PROC 1 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 */