aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2023-01-14 17:16:19 +0000
committerDmitry Torokhov <[email protected]>2023-01-27 14:49:53 -0800
commitf33f61a75ad24b1bc14a8edf2f313f33ae54e5f2 (patch)
tree700181a610344ff77e889c15719ddc60d11c0cff /tools/testing/selftests/bpf/progs/test_autoload.c
parent345c7b741c4631fad38bb8dc8d6659ac05d92380 (diff)
Input: cma3000 - use pm_sleep_ptr() to allow removal of ifdef CONFIG_PM guards
As the guards only apply to suspend and resume, #ifdef CONFIG_PM_SLEEP would have been a tighter protection. As pm_sleep_ptr() lets the compiler see the protected ops structure and callbacks but also lets the compiler remove it as unused code if !CONFIG_PM_SLEEP this allows the #ifdef guards to be removed, slightly simplifying the resulting code. Signed-off-by: Jonathan Cameron <[email protected]> -- It seems likely that DEFINE_SIMPLE_DEV_PM_OPS() would work here but I'd prefer not to make that change unless someone can confirm that the extra callbacks registered will have no unwanted side effects in this driver. 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