Re: [PATCH v5 1/2] sysctl: introduce new proc handler proc_dobool

2017-01-04 Thread hejianet
On 05/01/2017 5:09 AM, J. Bruce Fields wrote: On Thu, Dec 15, 2016 at 03:24:20PM +0800, Jia He wrote: This is to let bool variable could be correctly displayed in big/little endian sysctl procfs. sizeof(bool) is arch dependent, proc_dobool should work in all arches. Did Alexey Debriyan agree

Re: [PATCH v5 1/2] sysctl: introduce new proc handler proc_dobool

2017-01-04 Thread J. Bruce Fields
On Thu, Dec 15, 2016 at 03:24:20PM +0800, Jia He wrote: > This is to let bool variable could be correctly displayed in > big/little endian sysctl procfs. sizeof(bool) is arch dependent, > proc_dobool should work in all arches. Did Alexey Debriyan agree that this dealt with his objections? Also i

Re: [PATCH v5 1/2] sysctl: introduce new proc handler proc_dobool

2016-12-15 Thread Pan Xinhui
在 2016/12/15 15:24, Jia He 写道: This is to let bool variable could be correctly displayed in big/little endian sysctl procfs. sizeof(bool) is arch dependent, proc_dobool should work in all arches. Suggested-by: Pan Xinhui Signed-off-by: Jia He --- include/linux/sysctl.h | 2 ++ kernel/sysct