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:Pan Xinhui <xinhui@linux.vnet.ibm.com> Signed-off-by:
Jia He <hejianet@gmail.com> [thuth: rebased the patch to the current kernel version] Signed-off-by:
Thomas Huth <thuth@redhat.com> Signed-off-by:
Chuck Lever <chuck.lever@oracle.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading