treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / um / include / shared / mem.h
blob4862c91d4213c4f6d1c1e9430ca902e080aae0a2
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4 */
6 #ifndef __MEM_H__
7 #define __MEM_H__
9 extern int phys_mapping(unsigned long phys, unsigned long long *offset_out);
11 extern unsigned long uml_physmem;
12 static inline unsigned long to_phys(void *virt)
14 return(((unsigned long) virt) - uml_physmem);
17 static inline void *to_virt(unsigned long phys)
19 return((void *) uml_physmem + phys);
22 #endif