2013-09-22 03:23:39

by Chen Gang

[permalink] [raw]
Subject: [PATCH] arc: include: asm: uaccess.h: include "asm-generic/uaccess-unaligned.h"

Need include the default implementation, just like another platforms
(e.g. parisc, tile ...), or can not pass compiling.

The related error (with allmodconfig for arc):

CC [M] fs/btrfs/ioctl.o
fs/btrfs/ioctl.c: In function ?btrfs_ioctl_file_extent_same?:
fs/btrfs/ioctl.c:2802: error: implicit declaration of function ?__put_user_unaligned?


Signed-off-by: Chen Gang <[email protected]>
---
arch/arc/include/asm/uaccess.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h
index 3242082..8a2721f 100644
--- a/arch/arc/include/asm/uaccess.h
+++ b/arch/arc/include/asm/uaccess.h
@@ -27,6 +27,7 @@
#include <linux/sched.h>
#include <asm/errno.h>
#include <linux/string.h> /* for generic string functions */
+#include <asm-generic/uaccess-unaligned.h>


#define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
--
1.7.7.6


2013-09-23 08:07:10

by Vineet Gupta

[permalink] [raw]
Subject: Re: [PATCH] arc: include: asm: uaccess.h: include "asm-generic/uaccess-unaligned.h"

On 09/22/2013 08:53 AM, Chen Gang wrote:
> Need include the default implementation, just like another platforms
> (e.g. parisc, tile ...), or can not pass compiling.
>
> The related error (with allmodconfig for arc):
>
> CC [M] fs/btrfs/ioctl.o
> fs/btrfs/ioctl.c: In function ?btrfs_ioctl_file_extent_same?:
> fs/btrfs/ioctl.c:2802: error: implicit declaration of function ?__put_user_unaligned?
>
>
> Signed-off-by: Chen Gang <[email protected]>

Acked-by: Vineet Gupta <[email protected]>

Thx,
-Vineet

2013-09-23 08:28:23

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] arc: include: asm: uaccess.h: include "asm-generic/uaccess-unaligned.h"

On 09/23/2013 04:07 PM, Vineet Gupta wrote:
> On 09/22/2013 08:53 AM, Chen Gang wrote:
>> Need include the default implementation, just like another platforms
>> (e.g. parisc, tile ...), or can not pass compiling.
>>
>> The related error (with allmodconfig for arc):
>>
>> CC [M] fs/btrfs/ioctl.o
>> fs/btrfs/ioctl.c: In function �btrfs_ioctl_file_extent_same�:
>> fs/btrfs/ioctl.c:2802: error: implicit declaration of function �__put_user_unaligned�
>>
>>
>> Signed-off-by: Chen Gang <[email protected]>
>
> Acked-by: Vineet Gupta <[email protected]>
>

Thank you too.

> Thx,
> -Vineet
>
>


--
Chen Gang

2013-10-23 08:56:32

by Chen Gang

[permalink] [raw]
Subject: Re: [PATCH] arc: include: asm: uaccess.h: include "asm-generic/uaccess-unaligned.h"

Hello Maintainers:

Is this patch OK, please help check when you have time.

Thanks.

On 09/23/2013 04:27 PM, Chen Gang wrote:
> On 09/23/2013 04:07 PM, Vineet Gupta wrote:
>> On 09/22/2013 08:53 AM, Chen Gang wrote:
>>> Need include the default implementation, just like another platforms
>>> (e.g. parisc, tile ...), or can not pass compiling.
>>>
>>> The related error (with allmodconfig for arc):
>>>
>>> CC [M] fs/btrfs/ioctl.o
>>> fs/btrfs/ioctl.c: In function �btrfs_ioctl_file_extent_same�:
>>> fs/btrfs/ioctl.c:2802: error: implicit declaration of function �__put_user_unaligned�
>>>
>>>
>>> Signed-off-by: Chen Gang <[email protected]>
>>
>> Acked-by: Vineet Gupta <[email protected]>
>>
>
> Thank you too.
>
>> Thx,
>> -Vineet
>>
>>
>
>


--
Chen Gang