Example #1
0
void yaffs_pack_tags2(yaffs_packed_tags2 *pt, const yaffs_ext_tags *t, int tags_ecc)
{
	yaffs_pack_tags2_tags_only(&pt->t, t);

	if(tags_ecc)
		yaffs_ecc_calc_other((unsigned char *)&pt->t,
					sizeof(yaffs_packed_tags2_tags_only),
					&pt->ecc);
}
Example #2
0
void yaffs_pack_tags2(struct yaffs_packed_tags2 *pt,
		      const struct yaffs_ext_tags *t, int tags_ecc)
{
	yaffs_pack_tags2_tags_only(&pt->t, t);

#ifndef NOR_MKYAFFS2IMAGE
	if (tags_ecc)
		yaffs_ecc_calc_other((unsigned char *)&pt->t,
				    sizeof(struct yaffs_packed_tags2_tags_only),
				    &pt->ecc);
#endif
}