Skip to contentSkip to conversation

sched/topology: remove duplicate include header in topology.c

PATCH In review [email protected] 2 participants 2 messages Feb 9, 2023 – Feb 15, 2023 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/topology: remove duplicate include header in topology.c

From: Ye Xingchen <[email protected]>

linux/bsearch.h is included more than once.

---
 kernel/sched/topology.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/topology.c +0 -1
index ebc8cbeb55dc..eb339751fe90 100644
@@ -1766,7 +1766,6 @@ bool find_numa_distance(int distance)
  *   there is an intermediary node C, which is < N hops away from both
  *   nodes A and B, the system is a glueless mesh.
  */
-#include <linux/bsearch.h>
 
 static void init_numa_topology_type(int offline_node)
 {
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · On 09/02/23 15:12, [email protected] wrote:

From: Ye Xingchen <[email protected]>

linux/bsearch.h is included more than once.

---
 kernel/sched/topology.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/topology.c +0 -0
index ebc8cbeb55dc..eb339751fe90 100644

kernel/sched/topology.c bool find_numa_distance(int distance) · line 1769

Quoted 5 lines
kernel/sched/topology.c +0 -1
@@ -1766,7 +1766,6 @@ bool find_numa_distance(int distance)
  *   there is an intermediary node C, which is < N hops away from both
  *   nodes A and B, the system is a glueless mesh.
  */
-#include <linux/bsearch.h>
 

This doesn't exist upstream, and I can't find any proof of it ever existing in the git history, so I don't think you're working on an upstream tree.

Quoted 4 lines
kernel/sched/topology.c +0 -1
 static void init_numa_topology_type(int offline_node)
 {
--

2.25.1