OSDN Git Service

net: thunderbolt: Switch from __maybe_unused to pm_sleep_ptr() etc
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 30 Nov 2022 12:36:12 +0000 (14:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2022 10:42:26 +0000 (10:42 +0000)
commit0bbe50f3e85aadeb7417905b1011fc5f98d8c897
treed56f71820fb69212c9253c0fb5e1db9d7d8f5eac
parent47b438cc27254fa68b7360de153db4093c9259f4
net: thunderbolt: Switch from __maybe_unused to pm_sleep_ptr() etc

Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less heavier for builds
than the use of __maybe_unused attributes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/thunderbolt.c