Messages in this thread Patch in this message | | | From | Christophe JAILLET <> | Subject | [PATCH] sched: Remove a useless #include | Date | Sun, 14 Nov 2021 17:35:34 +0100 |
| |
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 <christophe.jaillet@wanadoo.fr> --- 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
| |