提交 2eddbada 编写于 作者: M Mike Frysinger 提交者: Bryan Wu

Blackfin arch: tweak the BUG_ON() check to allow for equal values

Tweak the BUG_ON() check to allow for equal values since the way pos is
handled ... it is always indexed and post incremented
Signed-off-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 983e1016
......@@ -425,10 +425,10 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)
BUG_ON(cplb.init_d.pos < 1 + cplb_data[ZERO_P].valid + cplb_data[L1D_MEM].valid);
/* make sure we didnt overflow the table */
BUG_ON(cplb.init_i.size <= cplb.init_i.pos);
BUG_ON(cplb.init_d.size <= cplb.init_d.pos);
BUG_ON(cplb.switch_i.size <= cplb.switch_i.pos);
BUG_ON(cplb.switch_d.size <= cplb.switch_d.pos);
BUG_ON(cplb.init_i.size < cplb.init_i.pos);
BUG_ON(cplb.init_d.size < cplb.init_d.pos);
BUG_ON(cplb.switch_i.size < cplb.switch_i.pos);
BUG_ON(cplb.switch_d.size < cplb.switch_d.pos);
/* close tables */
close_cplbtab(&cplb.init_i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册