On Wed, Sep 26, 2018 at 04:43:57PM +0200, Johannes Thumshirn wrote: > > assert, so I guess we'll have to live with it.. > > How about: > if (IS_ENABLED(CONFIG_PM)) > WARN_ON_ONCE(q->rpm_status == RPM_SUSPENDED); I don't think this actually works given that rpm_status only exists if CONFIG_PM is set.