diff --git a/[refs] b/[refs] index c4ae9bb78220..2cf631dec22d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ada496578850cb063ccf64d43a293cfcc9d32bf8 +refs/heads/master: 1f6ca0d6213278f8608c7e342e423ec0c0198040 diff --git a/trunk/drivers/mtd/nand/sm_common.h b/trunk/drivers/mtd/nand/sm_common.h index 7c03314bdac5..18284f5fae64 100644 --- a/trunk/drivers/mtd/nand/sm_common.h +++ b/trunk/drivers/mtd/nand/sm_common.h @@ -39,17 +39,17 @@ struct sm_oob { extern int sm_register_device(struct mtd_info *mtd); -inline int sm_sector_valid(struct sm_oob *oob) +static inline int sm_sector_valid(struct sm_oob *oob) { return hweight16(oob->data_status) >= 5; } -inline int sm_block_valid(struct sm_oob *oob) +static inline int sm_block_valid(struct sm_oob *oob) { return hweight16(oob->block_status) >= 7; } -inline int sm_block_erased(struct sm_oob *oob) +static inline int sm_block_erased(struct sm_oob *oob) { static const uint32_t erased_pattern[4] = { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF };