block: BFQ: Add several invariant checks
[linux-block.git] / scripts / sorttable.h
index deb7c1d3e979d42adf4a15f28063c268f9580954..7bd0184380d3b9f6dfb1a0dff566efd13f6b5a4f 100644 (file)
@@ -128,7 +128,7 @@ static int orc_sort_cmp(const void *_a, const void *_b)
         * whitelisted .o files which didn't get objtool generation.
         */
        orc_a = g_orc_table + (a - g_orc_ip_table);
-       return orc_a->sp_reg == ORC_REG_UNDEFINED && !orc_a->end ? -1 : 1;
+       return orc_a->type == ORC_TYPE_UNDEFINED ? -1 : 1;
 }
 
 static void *sort_orctable(void *arg)