Skip to content

Commit

Permalink
Blackfin: bitops: fix include order after little endian inclusion
Browse files Browse the repository at this point in the history
The le.h header requires things like test_bit to be declared, so we need
to move its inclusion to after the point where that happens.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Mike Frysinger committed Mar 25, 2011
1 parent 901c23f commit 92a19d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/blackfin/include/asm/bitops.h
Original file line number Diff line number Diff line change
@@ -25,7 +25,6 @@
#include <asm-generic/bitops/const_hweight.h>
#include <asm-generic/bitops/lock.h>

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

#ifndef CONFIG_SMP
@@ -113,6 +112,9 @@ static inline int test_and_change_bit(int nr, volatile unsigned long *addr)

#endif /* CONFIG_SMP */

/* Needs to be after test_bit and friends */
#include <asm-generic/bitops/le.h>

/*
* hweightN: returns the hamming weight (i.e. the number
* of bits set) of a N-bit word

0 comments on commit 92a19d6

Please sign in to comment.