Skip to content
Commit 95cccf4d authored by Kalle Valo's avatar Kalle Valo
Browse files

ath10k: make wmi_service_name() warn about missing service ids



When adding a new value to enum wmi_service it's very easy to miss that the new
value should be also added to wmi_service_name() mapping function. Modify the
function so that GCC can now warn about this:

drivers/net/wireless/ath/ath10k/wmi.h:385:2: warning: enumeration value 'WMI_SERVICE_FOO' not handled in switch [-Wswitch]

And also add a reminder to the enum.

Thanks to Jouni Malinen for the idea.

Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2321dd5d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment