diff options
author | Luis R. Rodriguez | 2017-11-20 19:23:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-11-29 11:18:43 +0100 |
commit | 3f72271233943c76a1686b3de4c5509e23993770 (patch) | |
tree | b800e56e46281c7c807fb5aac5e5b40152c3632f /tools/objtool/check.c | |
parent | firmware: provide helper for FW_OPT_USERHELPER (diff) | |
download | kernel-qcow2-linux-3f72271233943c76a1686b3de4c5509e23993770.tar.gz kernel-qcow2-linux-3f72271233943c76a1686b3de4c5509e23993770.tar.xz kernel-qcow2-linux-3f72271233943c76a1686b3de4c5509e23993770.zip |
firmware: replace #ifdef over FW_OPT_FALLBACK with function checks
Its not easy to follow the logic behind making FW_OPT_FALLBACK map
to an existing flag only if a kernel configuration option was set.
Its much easier to retpresent what was intended with function helpers
which make it clear that if CONFIG_FW_LOADER_USER_HELPER_FALLBACK is
set we force running the fallback mechanism unless a caller specifically
never wants to run it, such as request_firmware_direct().
Prior and after this change we upkeep the tradition:
CONFIG_FW_LOADER_USER_HELPER_FALLBACK
request_firmware() force fallback
request_firmware_into_buf() force fallback
request_firmware_nowait() force fallback
request_firmware_direct() always ignore fallback
!CONFIG_FW_LOADER_USER_HELPER_FALLBACK
request_firmware() ignore fallback
request_firmware_into_buf() ignore fallback
request_firmware_nowait() depends on uevent flag
request_firmware_direct() always ignore fallback
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/objtool/check.c')
0 files changed, 0 insertions, 0 deletions