linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clocksource: davinci: axe a pointless __GFP_NOFAIL
@ 2020-04-09 10:12 Christophe JAILLET
  2020-04-09 14:48 ` Daniel Lezcano
  2020-06-01 13:11 ` [tip: timers/core] " tip-bot2 for Christophe JAILLET
  0 siblings, 2 replies; 3+ messages in thread
From: Christophe JAILLET @ 2020-04-09 10:12 UTC (permalink / raw)
  To: daniel.lezcano, tglx; +Cc: linux-kernel, kernel-janitors, Christophe JAILLET

There is no need to specify __GFP_NOFAIL when allocating memory here, so
axe it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/clocksource/timer-davinci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-davinci.c b/drivers/clocksource/timer-davinci.c
index aae938368230..bb4eee31ae08 100644
--- a/drivers/clocksource/timer-davinci.c
+++ b/drivers/clocksource/timer-davinci.c
@@ -270,7 +270,7 @@ int __init davinci_timer_register(struct clk *clk,
 	davinci_timer_init(base);
 	tick_rate = clk_get_rate(clk);
 
-	clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL | __GFP_NOFAIL);
+	clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL);
 	if (!clockevent)
 		return -ENOMEM;
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clocksource: davinci: axe a pointless __GFP_NOFAIL
  2020-04-09 10:12 [PATCH] clocksource: davinci: axe a pointless __GFP_NOFAIL Christophe JAILLET
@ 2020-04-09 14:48 ` Daniel Lezcano
  2020-06-01 13:11 ` [tip: timers/core] " tip-bot2 for Christophe JAILLET
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2020-04-09 14:48 UTC (permalink / raw)
  To: Christophe JAILLET, tglx; +Cc: linux-kernel, kernel-janitors

On 09/04/2020 12:12, Christophe JAILLET wrote:
> There is no need to specify __GFP_NOFAIL when allocating memory here, so
> axe it.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---

Applied, thanks
-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: timers/core] clocksource: davinci: axe a pointless __GFP_NOFAIL
  2020-04-09 10:12 [PATCH] clocksource: davinci: axe a pointless __GFP_NOFAIL Christophe JAILLET
  2020-04-09 14:48 ` Daniel Lezcano
@ 2020-06-01 13:11 ` tip-bot2 for Christophe JAILLET
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Christophe JAILLET @ 2020-06-01 13:11 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Christophe JAILLET, Daniel Lezcano, x86, LKML

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     4855f2bd91b6e3461af7d795bfe9a40420122131
Gitweb:        https://git.kernel.org/tip/4855f2bd91b6e3461af7d795bfe9a40420122131
Author:        Christophe JAILLET <christophe.jaillet@wanadoo.fr>
AuthorDate:    Thu, 09 Apr 2020 12:12:26 +02:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Thu, 09 Apr 2020 12:13:20 +02:00

clocksource: davinci: axe a pointless __GFP_NOFAIL

There is no need to specify __GFP_NOFAIL when allocating memory here, so
axe it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200409101226.15432-1-christophe.jaillet@wanadoo.fr
---
 drivers/clocksource/timer-davinci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-davinci.c b/drivers/clocksource/timer-davinci.c
index aae9383..bb4eee3 100644
--- a/drivers/clocksource/timer-davinci.c
+++ b/drivers/clocksource/timer-davinci.c
@@ -270,7 +270,7 @@ int __init davinci_timer_register(struct clk *clk,
 	davinci_timer_init(base);
 	tick_rate = clk_get_rate(clk);
 
-	clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL | __GFP_NOFAIL);
+	clockevent = kzalloc(sizeof(*clockevent), GFP_KERNEL);
 	if (!clockevent)
 		return -ENOMEM;
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-01 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 10:12 [PATCH] clocksource: davinci: axe a pointless __GFP_NOFAIL Christophe JAILLET
2020-04-09 14:48 ` Daniel Lezcano
2020-06-01 13:11 ` [tip: timers/core] " tip-bot2 for Christophe JAILLET

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).