]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: use BUILD_BUG_ON() for compile time test instead of WARN_ON()
authorLai Jiangshan <laijs@linux.alibaba.com>
Mon, 1 Jun 2020 08:44:40 +0000 (08:44 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 1 Jun 2020 15:02:42 +0000 (11:02 -0400)
commit8772744dec47b892ada401d70c322497c3723ab3
tree8666bbe0770b2b1a8eabac5df95ee7319b107d2d
parentcc3cdefc5b4e8034e0bb527ac85ce484735b7903
workqueue: use BUILD_BUG_ON() for compile time test instead of WARN_ON()

Any runtime WARN_ON() has to be fixed, and BUILD_BUG_ON() can
help you nitice it earlier.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c