Skip to content

Commit 6d7131b

Browse files
anna-marialxYuryNorov
authored andcommitted
include/linux/find: Fix documentation
The order of the arguments in function documentation doesn't fit the implementation. Change the documentation so that it corresponds to the code. This prevent people to get confused when reading the documentation. Signed-off-by: Anna-Maria Behnsen <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent 430cd4a commit 6d7131b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/find.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ extern unsigned long _find_last_bit(const unsigned long *addr, unsigned long siz
2121
/**
2222
* find_next_bit - find the next set bit in a memory region
2323
* @addr: The address to base the search on
24-
* @offset: The bitnumber to start searching at
2524
* @size: The bitmap size in bits
25+
* @offset: The bitnumber to start searching at
2626
*
2727
* Returns the bit number for the next set bit
2828
* If no bits are set, returns @size.
@@ -50,8 +50,8 @@ unsigned long find_next_bit(const unsigned long *addr, unsigned long size,
5050
* find_next_and_bit - find the next set bit in both memory regions
5151
* @addr1: The first address to base the search on
5252
* @addr2: The second address to base the search on
53-
* @offset: The bitnumber to start searching at
5453
* @size: The bitmap size in bits
54+
* @offset: The bitnumber to start searching at
5555
*
5656
* Returns the bit number for the next set bit
5757
* If no bits are set, returns @size.
@@ -79,8 +79,8 @@ unsigned long find_next_and_bit(const unsigned long *addr1,
7979
/**
8080
* find_next_zero_bit - find the next cleared bit in a memory region
8181
* @addr: The address to base the search on
82-
* @offset: The bitnumber to start searching at
8382
* @size: The bitmap size in bits
83+
* @offset: The bitnumber to start searching at
8484
*
8585
* Returns the bit number of the next zero bit
8686
* If no bits are zero, returns @size.

0 commit comments

Comments
 (0)