Skip to content

Commit

Permalink
sparc64: Fix prototype warnings in hibernate.c
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Andreas Larsson <[email protected]>
  • Loading branch information
andreas-gaisler committed Jul 11, 2024
1 parent a9f5291 commit a3da153
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/power/hibernate.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright (C) 2013 Kirill V Tkhai ([email protected])
*/

#include <linux/suspend.h>
#include <linux/mm.h>

#include <asm/hibernate.h>
Expand Down

0 comments on commit a3da153

Please sign in to comment.