Re: Latest TOI compilation problem

Oleksandr Natalenko <[email protected]> Sat, 11 Aug 2012 19:40:08 +0300
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
This patch should fix the issue. Please, commit.

11.08.12 19:31, Oleksandr Natalenko написав(ла):
> Houston, we have a problem:
> 
> kernel/power/tuxonice_atomic_copy.c: In function ‘toi_go_atomic’:
> kernel/power/tuxonice_atomic_copy.c:359:2: error: implicit declaration
> of function ‘ftrace_stop’ [-Werror=implicit-function-declaration]
> kernel/power/tuxonice_atomic_copy.c: In function ‘toi_end_atomic’:
> kernel/power/tuxonice_atomic_copy.c:463:3: error: implicit declaration
> of function ‘ftrace_start’ [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
>

_______________________________________________
TuxOnIce-devel mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-devel
toi-3.5-ftrace-fix.patch (text/x-patch, 738 B)
From 45056f0a05092faf26f231d72904fb1a112f7e1d Mon Sep 17 00:00:00 2001
From: Oleksandr Natalenko <[email protected]>
Date: Sat, 11 Aug 2012 19:37:06 +0300
Subject: [PATCH] tuxonice_atomic_copy.c: add forgotten ftrace.h inclusion

---
 kernel/power/tuxonice_atomic_copy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/power/tuxonice_atomic_copy.c b/kernel/power/tuxonice_atomic_copy.c
index e6cc6c9..4fb438a 100644
--- a/kernel/power/tuxonice_atomic_copy.c
+++ b/kernel/power/tuxonice_atomic_copy.c
@@ -14,6 +14,7 @@
 #include <linux/freezer.h>
 #include <linux/console.h>
 #include <linux/syscore_ops.h>
+#include <linux/ftrace.h>
 #include <asm/suspend.h>
 #include "tuxonice.h"
 #include "tuxonice_storage.h"
-- 
1.7.11.4
signature.asc (application/pgp-signature, 554 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQJoroAAoJELftKrVLdx04CFUH/Ax5S29OFuj9sN9D1zSLbxwo
nBTDepAtizvMj0h6+o6vtBp/ghg0D8sXVrWgwfX8UnPb0cqgL1ptYSZ/xSUhyAM5
AQl7Lrlc2XeIOvNT4RW57YAjMCQq71q95gSn8Q3lVoglUUIHrtCIKR49c3skRHqd
tZrw3O/dJbMd2UasfoNEDI9mH8DezeK2bOdlJ45sokpnKvsvcwKqvYXsdDfkQIxW
QMIiK0vZg4KrirMJEdTjW4UszSyhcIBnr3MkroGCKsk6MOYGB1UFfwWJ6nEdCtti
XLVDcZhY6cYgolVqZtsIK0YoAFdcdeVlxQJHqJLpVhkM1sKaliqw32nFgVgyKZ0=
=x639
-----END PGP SIGNATURE-----