History

rfkill: define rfill_soft_blocked() if !RFKILL

If CONFIG_RFKILL is not set, the Intel WiFi driver will not build the iw_mvm driver part due to the missing rfill_soft_blocked() call. Adding a inline declaration of rfill_soft_blocked() if CONFIG_RFKILL=n fixes the following error: drivers/net/wireless/intel/iwlwifi/mvm/mvm.h: In function 'iwl_mvm_mei_set_sw_rfkill_state': drivers/net/wireless/intel/iwlwifi/mvm/mvm.h:2215:38: error: implicit declaration of function 'rfkill_soft_blocked'; did you mean 'rfkill_blocked'? [-Werror=implicit-function-declaration] 2215 | mvm->hw_registered ? rfkill_soft_blocked(mvm->hw->wiphy->rfkill) : false; | ^~~~~~~~~~~~~~~~~~~ | rfkill_blocked

Ben Dooks committed 4 years ago

Commit 50bb4671 parent 859ae701 file · +5 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/rfkill.h+5−0
@@ -308,6 +308,11 @@ static inline bool rfkill_blocked(struct rfkill *rfkill) · 307 unmodified lines
308308 return false;
309309 }
310310
311+static inline bool rfkill_soft_blocked(struct rfkill *rfkill)
312+{
313+ return false;
314+}
315+
311316 static inline enum rfkill_type rfkill_find_type(const char *name)
312317 {
313318 return RFKILL_TYPE_ALL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t