Skip to contentSkip to conversation

rcu: Drop the private tick-internal.h include from tree.c

PATCH In review Bradley Morgan 2 participants 2 messages Sep 10 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rcu: Drop the private tick-internal.h include from tree.c

Nothing in the tree.c translation unit uses anything from the private timekeeping header ../time/tick-internal.h, included since commit 48d07c04b4cc ("rcu: Enable elimination of Tree-RCU softirq processing"). The tick symbols RCU uses, tick_dep_set(), tick_dep_clear(), their _cpu and _task variants, tick_nohz_full_cpu() and TICK_DEP_BIT_RCU, are all declared in the public linux/tick.h, which tree.c already includes.

Drop the include.

---
 kernel/rcu/tree.c | 1 -
 1 file changed, 1 deletion(-)
kernel/rcu/tree.c +0 -1
index 96848fc1f02b..338737b9781c 100644
@@ -64,7 +64,6 @@
 #include <linux/mm.h>
 #include <linux/kasan.h>
 #include <linux/context_tracking.h>
-#include "../time/tick-internal.h"
 
 #include "tree.h"
 #include "rcu.h"
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 9 lines · Bradley Morgan

Nothing in the tree.c translation unit uses anything from the private timekeeping header ../time/tick-internal.h, included since commit 48d07c04b4cc ("rcu: Enable elimination of Tree-RCU softirq processing"). The tick symbols RCU uses, tick_dep_set(), tick_dep_clear(), their _cpu and _task variants, tick_nohz_full_cpu() and TICK_DEP_BIT_RCU, are all declared in the public linux/tick.h, which tree.c already includes.

Quoted 3 lines

Drop the include.

Applied for testing and additional review, thank you!

Thanx, Paul

Quoted 18 lines
---
 kernel/rcu/tree.c | 1 -
 1 file changed, 1 deletion(-)
kernel/rcu/tree.c +0 -1
index 96848fc1f02b..338737b9781c 100644
@@ -64,7 +64,6 @@
 #include <linux/mm.h>
 #include <linux/kasan.h>
 #include <linux/context_tracking.h>
-#include "../time/tick-internal.h"
 
 #include "tree.h"
 #include "rcu.h"
Signature · 1 line
2.47.3