DORMANTno replies

[PATCH] sched: Remove a useless #include

From: Christophe JAILLET <hidden>
Date: 2021-11-14 16:35:48
Also in: kernel-janitors, lkml
Subsystem: generic include/asm header files, the rest · Maintainers: Arnd Bergmann, Linus Torvalds

unlikely() is not used anymore since commit ff80a77f20f8 ("sched: simplify
sched_find_first_bit()") in 2007.

So this include can be removed.

Signed-off-by: Christophe JAILLET <redacted>
---
Compile tested only on my x86_64 Ubuntu like environment.

It also looks to me that the only needed include is <linux/bitops.h> and
that <asm/types.h> is of no use.
---
 include/asm-generic/bitops/sched.h | 1 -
 1 file changed, 1 deletion(-)
diff --git a/include/asm-generic/bitops/sched.h b/include/asm-generic/bitops/sched.h
index 86470cfcef60..c3b7d50d6711 100644
--- a/include/asm-generic/bitops/sched.h
+++ b/include/asm-generic/bitops/sched.h
@@ -2,7 +2,6 @@
 #ifndef _ASM_GENERIC_BITOPS_SCHED_H_
 #define _ASM_GENERIC_BITOPS_SCHED_H_
 
-#include <linux/compiler.h>	/* unlikely() */
 #include <asm/types.h>
 
 /*
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help