I'm not following what your diff of drivers/net/wireless/ath/ath11k/wmi.h
is being compared against.
But to answer your question, no, the order of prototype definitions in C doesn't matter as long as they are self-contained and declared before their use in the code (*.c
files).