> > > It should be as follows. > > > unsigned int count = 1 << get_order(size) - order; > > To be precise, as below? > > unsigned int count = 1 << (get_order(size) - order);
Minus has more precedence than left shift. "1 << get_order(size) - order;" is equivalent to 1 << (get_order(size) - order); -KR --nvpublic _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu