]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sparc64: Fix prototype warnings in hibernate.c
authorAndreas Larsson <andreas@gaisler.com>
Wed, 10 Jul 2024 09:41:55 +0000 (11:41 +0200)
committerAndreas Larsson <andreas@gaisler.com>
Thu, 11 Jul 2024 13:58:28 +0000 (15:58 +0200)
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>
arch/sparc/power/hibernate.c

index 47b06f4af1f918803cb4ecbafd9e7e876353c660..da8e2bc2e516a6854ea9665e19798ce44bad8c02 100644 (file)
@@ -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>