Message ID | 20211021034603.4458-5-laoar.shao@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | extend task comm from 16 to 24 for CONFIG_BASE_FULL | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
bpf/vmtest-bpf-next-PR | fail | merge-conflict |
bpf/vmtest-bpf | success | VM_Test |
bpf/vmtest-bpf-PR | success | PR summary |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 62d5b30d310c..fcb4bc97f95c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -274,10 +274,17 @@ struct task_group; #define get_current_state() READ_ONCE(current->__state) -/* To replace the old hard-coded 16 */ -#define TASK_COMM_LEN_16 16 +/* Also to replace the old hard-coded 16 */ +#define TASK_COMM_LEN_16 16 +#define TASK_COMM_LEN_24 24 + + /* Task command name length: */ -#define TASK_COMM_LEN 16 +#if CONFIG_BASE_SMALL +#define TASK_COMM_LEN TASK_COMM_LEN_16 +#else +#define TASK_COMM_LEN TASK_COMM_LEN_24 +#endif extern void scheduler_tick(void);