-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
* git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: asm-generic/io.h: allow people to override individual funcs bitops: remove duplicated extern declarations bitops: make asm-generic/bitops/find.h more generic asm-generic: kdebug.h: Checkpatch cleanup asm-generic: fcntl: make exported headers use strict posix types asm-generic: cmpxchg does not handle non-long arguments asm-generic: make atomic_add_unless a function
- Loading branch information
Showing
9 changed files
with
86 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,50 @@ | ||
#ifndef _ASM_GENERIC_BITOPS_FIND_H_ | ||
#define _ASM_GENERIC_BITOPS_FIND_H_ | ||
|
||
#ifndef CONFIG_GENERIC_FIND_NEXT_BIT | ||
/** | ||
* find_next_bit - find the next set bit in a memory region | ||
* @addr: The address to base the search on | ||
* @offset: The bitnumber to start searching at | ||
* @size: The bitmap size in bits | ||
*/ | ||
extern unsigned long find_next_bit(const unsigned long *addr, unsigned long | ||
size, unsigned long offset); | ||
|
||
/** | ||
* find_next_zero_bit - find the next cleared bit in a memory region | ||
* @addr: The address to base the search on | ||
* @offset: The bitnumber to start searching at | ||
* @size: The bitmap size in bits | ||
*/ | ||
extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned | ||
long size, unsigned long offset); | ||
#endif | ||
|
||
#ifdef CONFIG_GENERIC_FIND_FIRST_BIT | ||
|
||
/** | ||
* find_first_bit - find the first set bit in a memory region | ||
* @addr: The address to start the search at | ||
* @size: The maximum size to search | ||
* | ||
* Returns the bit number of the first set bit. | ||
*/ | ||
extern unsigned long find_first_bit(const unsigned long *addr, | ||
unsigned long size); | ||
|
||
/** | ||
* find_first_zero_bit - find the first cleared bit in a memory region | ||
* @addr: The address to start the search at | ||
* @size: The maximum size to search | ||
* | ||
* Returns the bit number of the first cleared bit. | ||
*/ | ||
extern unsigned long find_first_zero_bit(const unsigned long *addr, | ||
unsigned long size); | ||
#else /* CONFIG_GENERIC_FIND_FIRST_BIT */ | ||
|
||
#define find_first_bit(addr, size) find_next_bit((addr), (size), 0) | ||
#define find_first_zero_bit(addr, size) find_next_zero_bit((addr), (size), 0) | ||
|
||
#endif /* CONFIG_GENERIC_FIND_FIRST_BIT */ | ||
|
||
#endif /*_ASM_GENERIC_BITOPS_FIND_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ | |
|
||
struct f_owner_ex { | ||
int type; | ||
pid_t pid; | ||
__kernel_pid_t pid; | ||
}; | ||
|
||
/* for F_[GET|SET]FL */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
enum die_val { | ||
DIE_UNUSED, | ||
DIE_OOPS=1 | ||
DIE_OOPS = 1, | ||
}; | ||
|
||
#endif /* _ASM_GENERIC_KDEBUG_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters