Re: [PATCH 07/27] asm-generic: add minimal cache description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 01 May 2009, Michal Simek wrote:
> > +#define copy_to_user_page(vma, page, vaddr, dst, src, len) \
> > +       memcpy(dst, src, len)
> > +#define copy_from_user_page(vma, page, vaddr, dst, src, len) \
> > +       memcpy(dst, src, len)
> 
> 
> IMHO these two macros will generate cast errors.

I did not see errors here, can you clarify? Note that despite the name,
they don't take a __user pointer. Maybe they should be inline functions
to make that more obvious.

	Arnd <><
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux