mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
nuttx: resolve various 'FAR' and 'CODE' issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
a4b4fd16e9
commit
1528b8dcca
@@ -258,7 +258,7 @@ static inline void __clear_bit(int nr, uint8_t *addr)
|
||||
*p &= ~mask;
|
||||
}
|
||||
|
||||
static inline int __test_bit(int nr, const volatile uint8_t *addr)
|
||||
static inline int __test_bit(int nr, FAR const volatile uint8_t *addr)
|
||||
{
|
||||
return 1 & (addr[BIT_BYTE(nr)] >> (nr & (BITS_PER_BYTE - 1)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user