kernel/drivers/hwtracing/coresight/coresight-tmc-etf.c
.. .. @@ -428,7 +428,7 @@ 428 428 return -EINVAL; 429 429 430 430 /* wrap head around to the amount of space we have */ 431 - head = handle->head & ((buf->nr_pages << PAGE_SHIFT) - 1);431 + head = handle->head & (((unsigned long)buf->nr_pages << PAGE_SHIFT) - 1);432 432 433 433 /* find the page to write to */ 434 434 buf->cur = head / PAGE_SIZE;