History

printk: fix build warning when CONFIG_PRINTK=n

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.

Xiaoming Ni committed 4 years ago

Commit fdcd4071 parent d8c04183 files · +4 −5Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/printk.h+0−4
@@ -183,10 +183,6 @@ extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, · 182 unmodified lines
183extern int printk_delay_msec;183extern int printk_delay_msec;
184extern int dmesg_restrict;184extern int dmesg_restrict;
185 185
186extern int
187devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, void *buf,
188 size_t *lenp, loff_t *ppos);
189
190extern void wake_up_klogd(void);186extern void wake_up_klogd(void);
191 187
192char *log_buf_addr_get(void);188char *log_buf_addr_get(void);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t