--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/octeon/cvmx-cmd-queue.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/mips/include/asm/octeon/cvmx-cmd-queue.h 2021-02-04 17:41:59.000000000 +0000 @@ -76,6 +76,8 @@ #include +#include + #include /** * By default we disable the max depth support. Most programs @@ -273,7 +275,7 @@ " lbu %[ticket], %[now_serving]\n" "4:\n" ".set pop\n" : - [ticket_ptr] "=m"(__cvmx_cmd_queue_state_ptr->ticket[__cvmx_cmd_queue_get_index(queue_id)]), + [ticket_ptr] "=" GCC_OFF_SMALL_ASM()(__cvmx_cmd_queue_state_ptr->ticket[__cvmx_cmd_queue_get_index(queue_id)]), [now_serving] "=m"(qptr->now_serving), [ticket] "=r"(tmp), [my_ticket] "=r"(my_ticket) );