build warning when CONFIG_PRINTK=n kernel/printk/printk.c:175:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes] devkmsg_sysctl_set_loglvl() is only used in sysctl.c when CONFIG_PRINTK=y, but it participates in the build when CONFIG_PRINTK=n. So add compile dependency CONFIG_PRINTK=y && CONFIG_SYSCTL=y to fix the build warning.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -183,10 +183,6 @@ extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, · 182 unmodified lines | ||
| 183 | 183 | extern int printk_delay_msec; |
| 184 | 184 | extern int dmesg_restrict; |
| 185 | 185 | |
| 186 | −extern int | |
| 187 | −devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, void *buf, | |
| 188 | − size_t *lenp, loff_t *ppos); | |
| 189 | − | |
| 190 | 186 | extern void wake_up_klogd(void); |
| 191 | 187 | |
| 192 | 188 | char *log_buf_addr_get(void); |