From: Stephen Rothwell Date: Mon, 1 Mar 2010 09:44:57 +0000 (+1100) Subject: mtd: nand: r852: declare inline functions static X-Git-Tag: upstream/snapshot3+hdmi~14560^2~81 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f6ca0d6213278f8608c7e342e423ec0c0198040;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mtd: nand: r852: declare inline functions static Signed-off-by: Stephen Rothwell Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/sm_common.h b/drivers/mtd/nand/sm_common.h index 7c03314..18284f5 100644 --- a/drivers/mtd/nand/sm_common.h +++ b/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 };