From 9b6e9902708d30bda69e331249946371a2710553 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 8 Dec 2016 12:06:39 +0100 Subject: device: make suspend code conditional on CONFIG_PM_SLEEP This isn't actually neccessary, since there are no-op stubs for these functions, but the MIPS people don't want any unneccessary bloat. --- src/device.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/device.h') diff --git a/src/device.h b/src/device.h index f716242..cd62e9b 100644 --- a/src/device.h +++ b/src/device.h @@ -33,7 +33,9 @@ struct wireguard_device { struct list_head peer_list; struct mutex device_update_lock; struct mutex socket_update_lock; +#ifdef CONFIG_PM_SLEEP struct notifier_block clear_peers_on_suspend; +#endif }; int device_init(void); -- cgit v1.2.3-59-g8ed1b