[PATCH] sched: Remove a useless #include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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




[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux