static int __pmac core99_nvram_sync(void) 
static int core99_nvram_sync(void) 
static int __pmac core99_nvram_sync(void){	struct core99_header* hdr99;	unsigned long flags;	spin_lock_irqsave(&nv_lock, flags);	if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE,		NVRAM_SIZE))		goto bail;	DBG("Updating nvram...\n");	hdr99 = (struct core99_header*)nvram_image;	hdr99->generation++;	hdr99->hdr.signature = CORE99_SIGNATURE;	hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr);	hdr99->adler = core99_calc_adler(nvram_image);	core99_bank = core99_bank ? 0 : 1;	if (core99_erase_bank)		if (core99_erase_bank(core99_bank)) {			printk("nvram: Error erasing bank %d\n", core99_bank);			goto bail;		}	if (core99_write_bank)		if (core99_write_bank(core99_bank, nvram_image))			printk("nvram: Error writing bank %d\n", core99_bank); bail:	spin_unlock_irqrestore(&nv_lock, flags);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/aacaf9bd9646f6f611a08fca976411b6e5ddefe2/pmac_nvram.c/buggy/arch/ppc64/kernel/pmac_nvram.c