Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/gic: 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>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/755c4083122071bb27aa8ed5d98156a07bb63a39.1667336095.git.christophe.jaillet@wanadoo.fr

authored by

Christophe JAILLET and committed by
Marc Zyngier
5e279739 f5259b04

+4 -2
+2 -1
drivers/irqchip/irq-gic-v3.c
··· 12 12 #include <linux/delay.h> 13 13 #include <linux/interrupt.h> 14 14 #include <linux/irqdomain.h> 15 + #include <linux/kstrtox.h> 15 16 #include <linux/of.h> 16 17 #include <linux/of_address.h> 17 18 #include <linux/of_irq.h> ··· 1172 1171 1173 1172 static int __init gicv3_nolpi_cfg(char *buf) 1174 1173 { 1175 - return strtobool(buf, &gicv3_nolpi); 1174 + return kstrtobool(buf, &gicv3_nolpi); 1176 1175 } 1177 1176 early_param("irqchip.gicv3_nolpi", gicv3_nolpi_cfg); 1178 1177
+2 -1
drivers/irqchip/irq-gic.c
··· 19 19 */ 20 20 #include <linux/init.h> 21 21 #include <linux/kernel.h> 22 + #include <linux/kstrtox.h> 22 23 #include <linux/err.h> 23 24 #include <linux/module.h> 24 25 #include <linux/list.h> ··· 1333 1332 1334 1333 static int __init gicv2_force_probe_cfg(char *buf) 1335 1334 { 1336 - return strtobool(buf, &gicv2_force_probe); 1335 + return kstrtobool(buf, &gicv2_force_probe); 1337 1336 } 1338 1337 early_param("irqchip.gicv2_force_probe", gicv2_force_probe_cfg); 1339 1338