Skip to content

Commit 47d8c15

Browse files
committed
include: move find.h from asm_generic to linux
find_bit API and bitmap API are closely related, but inclusion paths are different - include/asm-generic and include/linux, correspondingly. In the past it made a lot of troubles due to circular dependencies and/or undefined symbols. Fix this by moving find.h under include/linux. Signed-off-by: Yury Norov <[email protected]> Tested-by: Wolfram Sang <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]>
1 parent 6b8ecb8 commit 47d8c15

File tree

24 files changed

+11
-31
lines changed

24 files changed

+11
-31
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3359,8 +3359,8 @@ M: Yury Norov <[email protected]>
33593359
R: Andy Shevchenko <[email protected]>
33603360
R: Rasmus Villemoes <[email protected]>
33613361
S: Maintained
3362-
F: include/asm-generic/bitops/find.h
33633362
F: include/linux/bitmap.h
3363+
F: include/linux/find.h
33643364
F: lib/bitmap.c
33653365
F: lib/find_bit.c
33663366
F: lib/find_bit_benchmark.c

arch/alpha/include/asm/bitops.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,6 @@ static inline unsigned int __arch_hweight8(unsigned int w)
430430

431431
#endif /* __KERNEL__ */
432432

433-
#include <asm-generic/bitops/find.h>
434-
435433
#ifdef __KERNEL__
436434

437435
/*

arch/arc/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ static inline __attribute__ ((const)) unsigned long __ffs(unsigned long x)
189189
#include <asm-generic/bitops/atomic.h>
190190
#include <asm-generic/bitops/non-atomic.h>
191191

192-
#include <asm-generic/bitops/find.h>
193192
#include <asm-generic/bitops/le.h>
194193
#include <asm-generic/bitops/ext2-atomic-setbit.h>
195194

arch/arm/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ static inline int find_next_bit_le(const void *p, int size, int offset)
264264

265265
#endif
266266

267-
#include <asm-generic/bitops/find.h>
268267
#include <asm-generic/bitops/le.h>
269268

270269
/*

arch/arm64/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <asm-generic/bitops/ffz.h>
2020
#include <asm-generic/bitops/fls64.h>
21-
#include <asm-generic/bitops/find.h>
2221

2322
#include <asm-generic/bitops/sched.h>
2423
#include <asm-generic/bitops/hweight.h>

arch/csky/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static __always_inline unsigned long __fls(unsigned long x)
5959

6060
#include <asm-generic/bitops/ffz.h>
6161
#include <asm-generic/bitops/fls64.h>
62-
#include <asm-generic/bitops/find.h>
6362

6463
#ifndef _LINUX_BITOPS_H
6564
#error only <linux/bitops.h> can be included directly

arch/h8300/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ static inline unsigned long __ffs(unsigned long word)
168168
return result;
169169
}
170170

171-
#include <asm-generic/bitops/find.h>
172171
#include <asm-generic/bitops/sched.h>
173172
#include <asm-generic/bitops/hweight.h>
174173
#include <asm-generic/bitops/lock.h>

arch/hexagon/include/asm/bitops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ static inline unsigned long __fls(unsigned long word)
271271
}
272272

273273
#include <asm-generic/bitops/lock.h>
274-
#include <asm-generic/bitops/find.h>
275274

276275
#include <asm-generic/bitops/fls64.h>
277276
#include <asm-generic/bitops/sched.h>

arch/ia64/include/asm/bitops.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@ static __inline__ unsigned long __arch_hweight64(unsigned long x)
441441

442442
#endif /* __KERNEL__ */
443443

444-
#include <asm-generic/bitops/find.h>
445-
446444
#ifdef __KERNEL__
447445

448446
#include <asm-generic/bitops/le.h>

arch/m68k/include/asm/bitops.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,4 @@ static inline int __fls(int x)
529529
#include <asm-generic/bitops/le.h>
530530
#endif /* __KERNEL__ */
531531

532-
#include <asm-generic/bitops/find.h>
533-
534532
#endif /* _M68K_BITOPS_H */

0 commit comments

Comments
 (0)