diff options
| author | 2020-09-03 13:25:42 +0200 | |
|---|---|---|
| committer | 2020-09-04 16:53:51 +0200 | |
| commit | 7aea2a7ddc2eb202e7963bd390d7b069f6e116dd (patch) | |
| tree | c8160f1e3b44f18af2fdf7af7034899f6442c107 /include/linux/compiler_attributes.h | |
| parent | dt-bindings: usb: renesas,usb-xhci: Document r8a774e1 support (diff) | |
| download | wireguard-linux-7aea2a7ddc2eb202e7963bd390d7b069f6e116dd.tar.xz wireguard-linux-7aea2a7ddc2eb202e7963bd390d7b069f6e116dd.zip | |
usb/misc: usb4604: Use pm_ptr() macro
Use the newly introduced pm_ptr() macro, and mark the suspend/resume
functions __maybe_unused. These functions can then be moved outside the
CONFIG_PM_SUSPEND block, and the compiler can then process them and
detect build failures independently of the config. If unused, they will
simply be discarded by the compiler.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200903112554.34263-9-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions
