summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorAndreas Larsson <andreas@gaisler.com>2024-07-10 11:41:55 +0200
committerAndreas Larsson <andreas@gaisler.com>2024-07-11 15:58:28 +0200
commita3da15389112a28633e4c340e4841faab29df3b7 (patch)
treec1595625e54c81938240c3299a34658a44e79845 /arch/sparc
parentsparc64: Fix prototype warning for prom_get_mmu_ihandle (diff)
downloadlinux-a3da15389112a28633e4c340e4841faab29df3b7.tar.xz
linux-a3da15389112a28633e4c340e4841faab29df3b7.zip
sparc64: Fix prototype warnings in hibernate.c
Fix the following warnings: arch/sparc/power/hibernate.c:22:5: warning: no previous prototype for ‘pfn_is_nosave’ arch/sparc/power/hibernate.c:30:6: warning: no previous prototype for ‘save_processor_state’ arch/sparc/power/hibernate.c:35:6: warning: no previous prototype for ‘restore_processor_state’ The prototypes are available from linux/suspend.h so include that. Link: https://lore.kernel.org/r/20240710094155.458731-5-andreas@gaisler.com Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/power/hibernate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/power/hibernate.c b/arch/sparc/power/hibernate.c
index 47b06f4af1f9..da8e2bc2e516 100644
--- a/arch/sparc/power/hibernate.c
+++ b/arch/sparc/power/hibernate.c
@@ -5,6 +5,7 @@
* Copyright (C) 2013 Kirill V Tkhai (tkhai@yandex.ru)
*/
+#include <linux/suspend.h>
#include <linux/mm.h>
#include <asm/hibernate.h>