summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 16:37:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commitbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (patch)
tree01fdd9d27f1b272bef0127966e08eac44d134d0a /drivers/clocksource
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
This was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/' to convert the new alloc_obj() users that had a simple GFP_KERNEL argument to just drop that argument. Note that due to the extreme simplicity of the scripting, any slightly more complex cases spread over multiple lines would not be triggered: they definitely exist, but this covers the vast bulk of the cases, and the resulting diff is also then easier to check automatically. For the same reason the 'flex' versions will be done as a separate conversion. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/bcm2835_timer.c2
-rw-r--r--drivers/clocksource/clps711x-timer.c2
-rw-r--r--drivers/clocksource/dw_apb_timer.c2
-rw-r--r--drivers/clocksource/ingenic-sysost.c4
-rw-r--r--drivers/clocksource/mmio.c2
-rw-r--r--drivers/clocksource/mps2-timer.c2
-rw-r--r--drivers/clocksource/renesas-ostm.c2
-rw-r--r--drivers/clocksource/sh_cmt.c2
-rw-r--r--drivers/clocksource/sh_mtu2.c2
-rw-r--r--drivers/clocksource/sh_tmu.c2
-rw-r--r--drivers/clocksource/timer-atmel-pit.c2
-rw-r--r--drivers/clocksource/timer-cadence-ttc.c4
-rw-r--r--drivers/clocksource/timer-davinci.c2
-rw-r--r--drivers/clocksource/timer-ep93xx.c2
-rw-r--r--drivers/clocksource/timer-fsl-ftm.c2
-rw-r--r--drivers/clocksource/timer-fttmr010.c2
-rw-r--r--drivers/clocksource/timer-goldfish.c2
-rw-r--r--drivers/clocksource/timer-gxp.c2
-rw-r--r--drivers/clocksource/timer-imx-gpt.c2
-rw-r--r--drivers/clocksource/timer-imx-sysctr.c2
-rw-r--r--drivers/clocksource/timer-ixp4xx.c2
-rw-r--r--drivers/clocksource/timer-microchip-pit64b.c4
-rw-r--r--drivers/clocksource/timer-msc313e.c2
-rw-r--r--drivers/clocksource/timer-nxp-pit.c2
-rw-r--r--drivers/clocksource/timer-rockchip.c4
-rw-r--r--drivers/clocksource/timer-stm32.c4
-rw-r--r--drivers/clocksource/timer-ti-dm-systimer.c4
-rw-r--r--drivers/clocksource/timer-zevio.c2
28 files changed, 34 insertions, 34 deletions
diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c
index ff0e21edd9c1..d7662301bf0e 100644
--- a/drivers/clocksource/bcm2835_timer.c
+++ b/drivers/clocksource/bcm2835_timer.c
@@ -98,7 +98,7 @@ static int __init bcm2835_timer_init(struct device_node *node)
goto err_iounmap;
}
- timer = kzalloc_obj(*timer, GFP_KERNEL);
+ timer = kzalloc_obj(*timer);
if (!timer) {
ret = -ENOMEM;
goto err_iounmap;
diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c
index 75c17eeef689..bb0a44adaf28 100644
--- a/drivers/clocksource/clps711x-timer.c
+++ b/drivers/clocksource/clps711x-timer.c
@@ -54,7 +54,7 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base,
struct clock_event_device *clkevt;
unsigned long rate;
- clkevt = kzalloc_obj(*clkevt, GFP_KERNEL);
+ clkevt = kzalloc_obj(*clkevt);
if (!clkevt)
return -ENOMEM;
diff --git a/drivers/clocksource/dw_apb_timer.c b/drivers/clocksource/dw_apb_timer.c
index 043793728e23..b719b2483e87 100644
--- a/drivers/clocksource/dw_apb_timer.c
+++ b/drivers/clocksource/dw_apb_timer.c
@@ -340,7 +340,7 @@ struct dw_apb_clocksource *
dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem *base,
unsigned long freq)
{
- struct dw_apb_clocksource *dw_cs = kzalloc_obj(*dw_cs, GFP_KERNEL);
+ struct dw_apb_clocksource *dw_cs = kzalloc_obj(*dw_cs);
if (!dw_cs)
return NULL;
diff --git a/drivers/clocksource/ingenic-sysost.c b/drivers/clocksource/ingenic-sysost.c
index 22caa69197a2..d967972c1fdc 100644
--- a/drivers/clocksource/ingenic-sysost.c
+++ b/drivers/clocksource/ingenic-sysost.c
@@ -279,7 +279,7 @@ static int __init ingenic_ost_register_clock(struct ingenic_ost *ost,
struct ingenic_ost_clk *ost_clk;
int val, err;
- ost_clk = kzalloc_obj(*ost_clk, GFP_KERNEL);
+ ost_clk = kzalloc_obj(*ost_clk);
if (!ost_clk)
return -ENOMEM;
@@ -432,7 +432,7 @@ static int __init ingenic_ost_probe(struct device_node *np)
unsigned int i;
int ret;
- ost = kzalloc_obj(*ost, GFP_KERNEL);
+ ost = kzalloc_obj(*ost);
if (!ost)
return -ENOMEM;
diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c
index 286513486542..cd5fbf49ac29 100644
--- a/drivers/clocksource/mmio.c
+++ b/drivers/clocksource/mmio.c
@@ -55,7 +55,7 @@ int __init clocksource_mmio_init(void __iomem *base, const char *name,
if (bits > 64 || bits < 16)
return -EINVAL;
- cs = kzalloc_obj(struct clocksource_mmio, GFP_KERNEL);
+ cs = kzalloc_obj(struct clocksource_mmio);
if (!cs)
return -ENOMEM;
diff --git a/drivers/clocksource/mps2-timer.c b/drivers/clocksource/mps2-timer.c
index 53c484d29195..ebca55d8cfed 100644
--- a/drivers/clocksource/mps2-timer.c
+++ b/drivers/clocksource/mps2-timer.c
@@ -136,7 +136,7 @@ static int __init mps2_clockevent_init(struct device_node *np)
goto out_iounmap;
}
- ce = kzalloc_obj(*ce, GFP_KERNEL);
+ ce = kzalloc_obj(*ce);
if (!ce) {
ret = -ENOMEM;
goto out_iounmap;
diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c
index 36132692bae5..9404ccb1bda9 100644
--- a/drivers/clocksource/renesas-ostm.c
+++ b/drivers/clocksource/renesas-ostm.c
@@ -165,7 +165,7 @@ static int __init ostm_init(struct device_node *np)
struct timer_of *to;
int ret;
- to = kzalloc_obj(*to, GFP_KERNEL);
+ to = kzalloc_obj(*to);
if (!to)
return -ENOMEM;
diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c
index fd8cdabef9bc..66d00514600a 100644
--- a/drivers/clocksource/sh_cmt.c
+++ b/drivers/clocksource/sh_cmt.c
@@ -1139,7 +1139,7 @@ static int sh_cmt_probe(struct platform_device *pdev)
goto out;
}
- cmt = kzalloc_obj(*cmt, GFP_KERNEL);
+ cmt = kzalloc_obj(*cmt);
if (cmt == NULL)
return -ENOMEM;
diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c
index 333548989ed5..eb9ecc9fd840 100644
--- a/drivers/clocksource/sh_mtu2.c
+++ b/drivers/clocksource/sh_mtu2.c
@@ -462,7 +462,7 @@ static int sh_mtu2_probe(struct platform_device *pdev)
goto out;
}
- mtu = kzalloc_obj(*mtu, GFP_KERNEL);
+ mtu = kzalloc_obj(*mtu);
if (mtu == NULL)
return -ENOMEM;
diff --git a/drivers/clocksource/sh_tmu.c b/drivers/clocksource/sh_tmu.c
index 365739e1fbad..ba2074536a82 100644
--- a/drivers/clocksource/sh_tmu.c
+++ b/drivers/clocksource/sh_tmu.c
@@ -593,7 +593,7 @@ static int sh_tmu_probe(struct platform_device *pdev)
goto out;
}
- tmu = kzalloc_obj(*tmu, GFP_KERNEL);
+ tmu = kzalloc_obj(*tmu);
if (tmu == NULL)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
index 253c3e4d0296..888b06731e54 100644
--- a/drivers/clocksource/timer-atmel-pit.c
+++ b/drivers/clocksource/timer-atmel-pit.c
@@ -170,7 +170,7 @@ static int __init at91sam926x_pit_dt_init(struct device_node *node)
int ret;
struct pit_data *data;
- data = kzalloc_obj(*data, GFP_KERNEL);
+ data = kzalloc_obj(*data);
if (!data)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-cadence-ttc.c b/drivers/clocksource/timer-cadence-ttc.c
index 836141e51118..3c50d6892849 100644
--- a/drivers/clocksource/timer-cadence-ttc.c
+++ b/drivers/clocksource/timer-cadence-ttc.c
@@ -334,7 +334,7 @@ static int __init ttc_setup_clocksource(struct clk *clk, void __iomem *base,
struct ttc_timer_clocksource *ttccs;
int err;
- ttccs = kzalloc_obj(*ttccs, GFP_KERNEL);
+ ttccs = kzalloc_obj(*ttccs);
if (!ttccs)
return -ENOMEM;
@@ -417,7 +417,7 @@ static int __init ttc_setup_clockevent(struct clk *clk,
struct ttc_timer_clockevent *ttcce;
int err;
- ttcce = kzalloc_obj(*ttcce, GFP_KERNEL);
+ ttcce = kzalloc_obj(*ttcce);
if (!ttcce)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-davinci.c b/drivers/clocksource/timer-davinci.c
index 9bf1728a87dc..16ee0687ef31 100644
--- a/drivers/clocksource/timer-davinci.c
+++ b/drivers/clocksource/timer-davinci.c
@@ -271,7 +271,7 @@ int __init davinci_timer_register(struct clk *clk,
davinci_timer_init(base);
tick_rate = clk_get_rate(clk);
- clockevent = kzalloc_obj(*clockevent, GFP_KERNEL);
+ clockevent = kzalloc_obj(*clockevent);
if (!clockevent) {
rv = -ENOMEM;
goto exit_iounmap_base;
diff --git a/drivers/clocksource/timer-ep93xx.c b/drivers/clocksource/timer-ep93xx.c
index 04eeda15d997..1b719282c07f 100644
--- a/drivers/clocksource/timer-ep93xx.c
+++ b/drivers/clocksource/timer-ep93xx.c
@@ -141,7 +141,7 @@ static int __init ep93xx_timer_of_init(struct device_node *np)
struct ep93xx_tcu *tcu;
int ret;
- tcu = kzalloc_obj(*tcu, GFP_KERNEL);
+ tcu = kzalloc_obj(*tcu);
if (!tcu)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-fsl-ftm.c b/drivers/clocksource/timer-fsl-ftm.c
index df82307e690c..4eed6cb46132 100644
--- a/drivers/clocksource/timer-fsl-ftm.c
+++ b/drivers/clocksource/timer-fsl-ftm.c
@@ -300,7 +300,7 @@ static int __init ftm_timer_init(struct device_node *np)
unsigned long freq;
int ret, irq;
- priv = kzalloc_obj(*priv, GFP_KERNEL);
+ priv = kzalloc_obj(*priv);
if (!priv)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-fttmr010.c b/drivers/clocksource/timer-fttmr010.c
index e0f7d5976518..308f94bfbaed 100644
--- a/drivers/clocksource/timer-fttmr010.c
+++ b/drivers/clocksource/timer-fttmr010.c
@@ -295,7 +295,7 @@ static int __init fttmr010_common_init(struct device_node *np,
return ret;
}
- fttmr010 = kzalloc_obj(*fttmr010, GFP_KERNEL);
+ fttmr010 = kzalloc_obj(*fttmr010);
if (!fttmr010) {
ret = -ENOMEM;
goto out_disable_clock;
diff --git a/drivers/clocksource/timer-goldfish.c b/drivers/clocksource/timer-goldfish.c
index 60982561e8b6..3fe12c7ee7b7 100644
--- a/drivers/clocksource/timer-goldfish.c
+++ b/drivers/clocksource/timer-goldfish.c
@@ -102,7 +102,7 @@ int __init goldfish_timer_init(int irq, void __iomem *base)
struct goldfish_timer *timerdrv;
int ret;
- timerdrv = kzalloc_obj(*timerdrv, GFP_KERNEL);
+ timerdrv = kzalloc_obj(*timerdrv);
if (!timerdrv)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-gxp.c b/drivers/clocksource/timer-gxp.c
index 7442e9bdd0d5..1becc943339d 100644
--- a/drivers/clocksource/timer-gxp.c
+++ b/drivers/clocksource/timer-gxp.c
@@ -76,7 +76,7 @@ static int __init gxp_timer_init(struct device_node *node)
u32 freq;
int ret, irq;
- gxp_timer = kzalloc_obj(*gxp_timer, GFP_KERNEL);
+ gxp_timer = kzalloc_obj(*gxp_timer);
if (!gxp_timer) {
ret = -ENOMEM;
pr_err("Can't allocate gxp_timer");
diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
index ad310be44cb6..8335bd7f8c6c 100644
--- a/drivers/clocksource/timer-imx-gpt.c
+++ b/drivers/clocksource/timer-imx-gpt.c
@@ -428,7 +428,7 @@ static int __init mxc_timer_init_dt(struct device_node *np, enum imx_gpt_type t
if (initialized)
return 0;
- imxtm = kzalloc_obj(*imxtm, GFP_KERNEL);
+ imxtm = kzalloc_obj(*imxtm);
if (!imxtm)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-imx-sysctr.c b/drivers/clocksource/timer-imx-sysctr.c
index 5eb3b3c6d0ad..dfbd77950e02 100644
--- a/drivers/clocksource/timer-imx-sysctr.c
+++ b/drivers/clocksource/timer-imx-sysctr.c
@@ -139,7 +139,7 @@ static int __init __sysctr_timer_init(struct device_node *np)
void __iomem *base;
int ret;
- priv = kzalloc_obj(struct sysctr_private, GFP_KERNEL);
+ priv = kzalloc_obj(struct sysctr_private);
if (!priv)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-ixp4xx.c b/drivers/clocksource/timer-ixp4xx.c
index 42f679b1165b..4238a004fdef 100644
--- a/drivers/clocksource/timer-ixp4xx.c
+++ b/drivers/clocksource/timer-ixp4xx.c
@@ -166,7 +166,7 @@ static __init int ixp4xx_timer_register(void __iomem *base,
struct ixp4xx_timer *tmr;
int ret;
- tmr = kzalloc_obj(*tmr, GFP_KERNEL);
+ tmr = kzalloc_obj(*tmr);
if (!tmr)
return -ENOMEM;
tmr->base = base;
diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource/timer-microchip-pit64b.c
index d54a1c91781f..7439bff42233 100644
--- a/drivers/clocksource/timer-microchip-pit64b.c
+++ b/drivers/clocksource/timer-microchip-pit64b.c
@@ -350,7 +350,7 @@ static int __init mchp_pit64b_init_clksrc(struct mchp_pit64b_timer *timer,
struct mchp_pit64b_clksrc *cs;
int ret;
- cs = kzalloc_obj(*cs, GFP_KERNEL);
+ cs = kzalloc_obj(*cs);
if (!cs)
return -ENOMEM;
@@ -397,7 +397,7 @@ static int __init mchp_pit64b_init_clkevt(struct mchp_pit64b_timer *timer,
struct mchp_pit64b_clkevt *ce;
int ret;
- ce = kzalloc_obj(*ce, GFP_KERNEL);
+ ce = kzalloc_obj(*ce);
if (!ce)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-msc313e.c b/drivers/clocksource/timer-msc313e.c
index 33822f0bc339..e4b9e3f161bb 100644
--- a/drivers/clocksource/timer-msc313e.c
+++ b/drivers/clocksource/timer-msc313e.c
@@ -171,7 +171,7 @@ static int __init msc313e_clkevt_init(struct device_node *np)
int ret;
struct timer_of *to;
- to = kzalloc_obj(*to, GFP_KERNEL);
+ to = kzalloc_obj(*to);
if (!to)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-nxp-pit.c b/drivers/clocksource/timer-nxp-pit.c
index 9109dedab08c..bc5157e2ba57 100644
--- a/drivers/clocksource/timer-nxp-pit.c
+++ b/drivers/clocksource/timer-nxp-pit.c
@@ -276,7 +276,7 @@ static int pit_timer_init(struct device_node *np)
unsigned long clk_rate;
int irq, ret;
- pit = kzalloc_obj(*pit, GFP_KERNEL);
+ pit = kzalloc_obj(*pit);
if (!pit)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-rockchip.c b/drivers/clocksource/timer-rockchip.c
index c866127ee1e5..540a16667145 100644
--- a/drivers/clocksource/timer-rockchip.c
+++ b/drivers/clocksource/timer-rockchip.c
@@ -207,7 +207,7 @@ static int __init rk_clkevt_init(struct device_node *np)
struct clock_event_device *ce;
int ret = -EINVAL;
- rk_clkevt = kzalloc_obj(struct rk_clkevt, GFP_KERNEL);
+ rk_clkevt = kzalloc_obj(struct rk_clkevt);
if (!rk_clkevt) {
ret = -ENOMEM;
goto out;
@@ -254,7 +254,7 @@ static int __init rk_clksrc_init(struct device_node *np)
{
int ret = -EINVAL;
- rk_clksrc = kzalloc_obj(struct rk_timer, GFP_KERNEL);
+ rk_clksrc = kzalloc_obj(struct rk_timer);
if (!rk_clksrc) {
ret = -ENOMEM;
goto out;
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c
index 4a0f06a419d7..fee65914f99a 100644
--- a/drivers/clocksource/timer-stm32.c
+++ b/drivers/clocksource/timer-stm32.c
@@ -291,7 +291,7 @@ static int __init stm32_timer_init(struct device_node *node)
struct timer_of *to;
int ret;
- to = kzalloc_obj(*to, GFP_KERNEL);
+ to = kzalloc_obj(*to);
if (!to)
return -ENOMEM;
@@ -302,7 +302,7 @@ static int __init stm32_timer_init(struct device_node *node)
if (ret)
goto err;
- to->private_data = kzalloc_obj(struct stm32_timer_private, GFP_KERNEL);
+ to->private_data = kzalloc_obj(struct stm32_timer_private);
if (!to->private_data) {
ret = -ENOMEM;
goto deinit;
diff --git a/drivers/clocksource/timer-ti-dm-systimer.c b/drivers/clocksource/timer-ti-dm-systimer.c
index 3bffd7198a38..eb0dfe4b9b7c 100644
--- a/drivers/clocksource/timer-ti-dm-systimer.c
+++ b/drivers/clocksource/timer-ti-dm-systimer.c
@@ -600,7 +600,7 @@ static int __init dmtimer_clockevent_init(struct device_node *np)
struct dmtimer_clockevent *clkevt;
int error;
- clkevt = kzalloc_obj(*clkevt, GFP_KERNEL);
+ clkevt = kzalloc_obj(*clkevt);
if (!clkevt)
return -ENOMEM;
@@ -757,7 +757,7 @@ static int __init dmtimer_clocksource_init(struct device_node *np)
struct clocksource *dev;
int error;
- clksrc = kzalloc_obj(*clksrc, GFP_KERNEL);
+ clksrc = kzalloc_obj(*clksrc);
if (!clksrc)
return -ENOMEM;
diff --git a/drivers/clocksource/timer-zevio.c b/drivers/clocksource/timer-zevio.c
index db1ba9b2c2c9..9a67b84b3e4c 100644
--- a/drivers/clocksource/timer-zevio.c
+++ b/drivers/clocksource/timer-zevio.c
@@ -119,7 +119,7 @@ static int __init zevio_timer_add(struct device_node *node)
struct resource res;
int irqnr, ret;
- timer = kzalloc_obj(*timer, GFP_KERNEL);
+ timer = kzalloc_obj(*timer);
if (!timer)
return -ENOMEM;