void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) 
void __iomem * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags) 
void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flags){	void * addr;	struct vm_struct * area;	unsigned long offset, last_addr;	/* Don't allow wraparound or zero size */	last_addr = phys_addr + size - 1;	if (!size || last_addr < phys_addr)		return NULL;	/*	 * Mappings have to be page-aligned	 */	offset = phys_addr & ~PAGE_MASK;	phys_addr &= PAGE_MASK;	size = PAGE_ALIGN(last_addr+1) - phys_addr;	/*	 * Ok, go for it..	 */	area = get_vm_area(size, VM_IOREMAP);	if (!area)		return NULL;	addr = area->addr;	if (remap_area_pages((unsigned long) addr, phys_addr, size, flags)) {		vfree(addr);		return NULL;	}	return (void *) (offset + (char *)addr);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4f18cfbf0990bfc2e8e7706eeb9e5bef898ae923/ioremap.c/buggy/arch/cris/mm/ioremap.c