Re: [PATCH 07/11] UAPI: nilfs2: Fix use of undefined byteswapping functions

2018-09-05 Thread Al Viro
On Wed, Sep 05, 2018 at 04:55:23PM +0100, David Howells wrote: > nilfs_checkpoint_set_##name(struct nilfs_checkpoint *cp) \ > {\ > - cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \ > + cp->cp

[PATCH 07/11] UAPI: nilfs2: Fix use of undefined byteswapping functions

2018-09-05 Thread David Howells
nilfs2 exports a load of inline functions to userspace that call kernel byteswapping functions that don't exist in UAPI. Fix this by making it #include asm/byteorder.h and use the functions declared there. A better way is probably to remove these inline functions from the nilfs2 header since they