X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_getblockinfo.h;h=8fd0802bdddbfc4721eb1b29effd099c472710fb;hp=4cef6863fdfd31ba4e483e3562c2167fda8eeeb2;hb=33308768bd24abe4e1f59c5025a3dd824119ae1d;hpb=79d0e028d5b777b2e4cf55d96b737cb024988abe diff --git a/yaffs_getblockinfo.h b/yaffs_getblockinfo.h index 4cef686..8fd0802 100644 --- a/yaffs_getblockinfo.h +++ b/yaffs_getblockinfo.h @@ -1,7 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -20,14 +20,14 @@ #include "yaffs_trace.h" /* Function to manipulate block info */ -static Y_INLINE struct yaffs_block_info *yaffs_get_block_info(struct yaffs_dev +static inline struct yaffs_block_info *yaffs_get_block_info(struct yaffs_dev *dev, int blk) { if (blk < dev->internal_start_block || blk > dev->internal_end_block) { yaffs_trace(YAFFS_TRACE_ERROR, "**>> yaffs: get_block_info block %d is not valid", blk); - YBUG(); + BUG(); } return &dev->block_info[blk - dev->internal_start_block]; }