diff options
author | Jonathan Cameron <[email protected]> | 2022-12-04 18:08:31 +0000 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2022-12-07 13:28:04 -0800 |
commit | aebc2380c1f20df2faa39f3cc069825d2fdd9dd7 (patch) | |
tree | e52499393d51fcef762106449d5ff84bd2ad9952 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 9254ed3f13e45232266e9e074d5902234fde8ca8 (diff) |
Input: sh-keysc - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
SIMPLE_DEV_PM_OPS() is deprecated as it requires explicit protection
against unused function warnings. The new combination of pm_sleep_ptr()
and DEFINE_SIMPLE_DEV_PM_OPS() allows the compiler to see the functions,
thus suppressing the warning, but still allowing the unused code to be
removed. Thus also drop the ifdef guards.
Signed-off-by: Jonathan Cameron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions