[LTP] [PATCH] device-drivers/uaccess: use linux/uaccess.h
Stanislav Kholmanskikh
stanislav.kholmanskikh@oracle.com
Tue Jan 19 16:47:44 CET 2016
The current code fails to build on sparc64.
It turns out that <linux/uaccess.h> is a better candidate than
<asm-generic/uaccess.h>, since the former takes into account
possible architecture-specific changes.
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
---
.../kernel/device-drivers/uaccess/ltp_uaccess.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/testcases/kernel/device-drivers/uaccess/ltp_uaccess.c b/testcases/kernel/device-drivers/uaccess/ltp_uaccess.c
index e628ba9..a9a06e9 100644
--- a/testcases/kernel/device-drivers/uaccess/ltp_uaccess.c
+++ b/testcases/kernel/device-drivers/uaccess/ltp_uaccess.c
@@ -21,7 +21,7 @@
#include <linux/module.h>
#include <linux/device.h>
-#include <asm-generic/uaccess.h>
+#include <linux/uaccess.h>
#include "ltp_uaccess.h"
MODULE_AUTHOR("Alexey Kodanev <alexey.kodanev@oracle.com>");
--
1.7.1
More information about the Ltp
mailing list