Re: [RFC PATCH 2/4] vhost: add byteswap routines

2014-11-03 Thread Cornelia Huck
On Wed, 29 Oct 2014 09:38:43 +0100 Cédric Le Goater wrote: > This patch adds a few helper routines around get_user and put_user > to ease byteswapping. > > Signed-off-by: Cédric Le Goater > --- > > I am not sure these routines belong to this file. There is room for > improvement to remove the

[RFC PATCH 2/4] vhost: add byteswap routines

2014-10-29 Thread Cédric Le Goater
This patch adds a few helper routines around get_user and put_user to ease byteswapping. Signed-off-by: Cédric Le Goater --- I am not sure these routines belong to this file. There is room for improvement to remove the ugly switch (sizeof(*(ptr))). Please comment ! drivers/vhost/vhost.c |