|
@@ -245,7 +245,7 @@ extern void swsusp_set_page_free(struct page *);
|
|
|
extern void swsusp_unset_page_free(struct page *);
|
|
|
extern unsigned long get_safe_page(gfp_t gfp_mask);
|
|
|
|
|
|
-extern void hibernation_set_ops(struct platform_hibernation_ops *ops);
|
|
|
+extern void hibernation_set_ops(const struct platform_hibernation_ops *ops);
|
|
|
extern int hibernate(void);
|
|
|
extern bool system_entering_hibernation(void);
|
|
|
#else /* CONFIG_HIBERNATION */
|
|
@@ -253,7 +253,7 @@ static inline int swsusp_page_is_forbidden(struct page *p) { return 0; }
|
|
|
static inline void swsusp_set_page_free(struct page *p) {}
|
|
|
static inline void swsusp_unset_page_free(struct page *p) {}
|
|
|
|
|
|
-static inline void hibernation_set_ops(struct platform_hibernation_ops *ops) {}
|
|
|
+static inline void hibernation_set_ops(const struct platform_hibernation_ops *ops) {}
|
|
|
static inline int hibernate(void) { return -ENOSYS; }
|
|
|
static inline bool system_entering_hibernation(void) { return false; }
|
|
|
#endif /* CONFIG_HIBERNATION */
|