/* You really shouldn't be using read() or write() on /dev/mem. This might go away in the future.  */
int valid_phys_addr_range(unsigned long addr, size_t size)
/* You really shouldn't be using read() or write() on /dev/mem. This might go away in the future.  */
int valid_phys_addr_range(unsigned long addr, size_t size)
{
	if (addr < PHYS_OFFSET)
		return 0;
	if (addr + size > __pa(high_memory - 1) + 1)
		return 0;
	return 1;
}