From: Christoph Hellwig
> Sent: 30 March 2021 18:50
>
> On Tue, Mar 30, 2021 at 07:26:59PM +0200, Thomas Bogendoerfer wrote:
> > +#define __get_data(x, ptr, u)
> > \
> > + (((u) == true) ? __get_udata((x), (ptr), sizeof(*(ptr))) : \
> > +
On Tue, Mar 30, 2021 at 07:49:43PM +0200, Christoph Hellwig wrote:
> On Tue, Mar 30, 2021 at 07:26:59PM +0200, Thomas Bogendoerfer wrote:
> > +#define __get_data(x, ptr, u)
> > \
> > + (((u) == true) ? __get_udata((x), (ptr), sizeof(*(ptr))) : \
On Tue, Mar 30, 2021 at 07:26:59PM +0200, Thomas Bogendoerfer wrote:
> +#define __get_data(x, ptr, u)
> \
> + (((u) == true) ? __get_udata((x), (ptr), sizeof(*(ptr))) : \
> + __get_kdata((x), (ptr), sizeof(*(ptr
> +
Use new __get_data macro to access user/kernel for functions, which
are used with user/kernel pointers. Instead of dealing with get_fs/set_fs
this macro uses a parameter to select user/kernel access.
Signed-off-by: Thomas Bogendoerfer
---
arch/mips/include/asm/uaccess.h | 23
4 matches
Mail list logo