On Mon, Sep 02, 2013 at 11:00:01AM +0200, Alexander Gordeev wrote: > @@ -60,18 +60,18 @@ static int do_setup_msi_irqs(struct pci_dev *dev, int nvec) > WARN_ON(msidesc->irq); > WARN_ON(msidesc->msi_attrib.multiple); > WARN_ON(msidesc->nvec_used); > + BUG_ON(nvec_mme != __roundup_pow_of_two(nvec_mme)); Wouldn't !is_power_of_2() be better? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html