diff options
| author | Ingo Molnar <[email protected]> | 2017-02-03 11:22:54 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2017-03-02 07:42:23 +0000 |
| commit | c930b2c0de32f45ce8f67affe936ce7a05b07b00 (patch) | |
| tree | 5a9d05bfeab3359d87ae9094572e64bfff97e743 /fs/proc/array.c | |
| parent | sched/headers: Make all include/linux/sched/*.h headers build standalone (diff) | |
| download | kernel-c930b2c0de32f45ce8f67affe936ce7a05b07b00.tar.gz kernel-c930b2c0de32f45ce8f67affe936ce7a05b07b00.zip | |
sched/core: Convert ___assert_task_state() link time assert to BUILD_BUG_ON()
The length of TASK_STATE_TO_CHAR_STR was still checked using the old
link-time manual error method - convert it to BUILD_BUG_ON(). This
has a couple of advantages:
- it's more obvious what's going on
- it reduces the size and complexity of <linux/sched.h>
- BUILD_BUG_ON() will fail during compilation, with a clearer
error message than the link time assert.
Acked-by: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
