Commit f469e60f authored by Jia He's avatar Jia He Committed by Greg Kroah-Hartman
Browse files

sysctl: introduce new proc handler proc_dobool



[ Upstream commit a2071573 ]

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: default avatarPan Xinhui <xinhui@linux.vnet.ibm.com>
Signed-off-by: default avatarJia He <hejianet@gmail.com>
[thuth: rebased the patch to the current kernel version]
Signed-off-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 130dcbf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment