OSDN Git Service

x86/xen: Use kstrtobool() instead of strtobool()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 1 Nov 2022 21:14:16 +0000 (22:14 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 14 Nov 2022 12:29:01 +0000 (13:29 +0100)
commit639b2e2ff1e850eb4e8853b4dc233875108eec4b
tree6d9af1821e4e79fd7e7f0ad89bc0597b9f823bc1
parent4bff677b30156435afa2cc4c3601b542b4ddd439
x86/xen: Use kstrtobool() instead of strtobool()

strtobool() is the same as kstrtobool().
However, the latter is more used within the kernel.

In order to remove strtobool() and slightly simplify kstrtox.h, switch to
the other function name.

While at it, include the corresponding header file (<linux/kstrtox.h>)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/e91af3c8708af38b1c57e0a2d7eb9765dda0e963.1667336095.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/enlighten_pv.c
arch/x86/xen/setup.c