crocus: compilation failed with clang
Got this while trying compile crocus from fresh main
.
../src/gallium/drivers/crocus/crocus_batch.c:115:15: error: format specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Werror,-Wformat]
batch->validation_list[i].offset, batch->exec_bos[i]->size,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/gallium/drivers/crocus/crocus_batch.c:892:14: error: format specifies type 'unsigned long long' but the argument has type '__u64' (aka 'unsigned long') [-Werror,-Wformat]
batch->validation_list[i].offset);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If I add (unsigned long long)
before offset
argument it compiles. Not sure if this is correct fix, corresponding iris
code uses (uint64_t)
.