compat_ion.h revision 827c849e37b71cb6396d56096ad497748bbbe98f
1/* 2 3 * drivers/staging/android/ion/compat_ion.h 4 * 5 * Copyright (C) 2013 Google, Inc. 6 * 7 * This software is licensed under the terms of the GNU General Public 8 * License version 2, as published by the Free Software Foundation, and 9 * may be copied, distributed, and modified under those terms. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 */ 17 18#ifndef _LINUX_COMPAT_ION_H 19#define _LINUX_COMPAT_ION_H 20 21#if IS_ENABLED(CONFIG_COMPAT) 22 23long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); 24 25#else 26 27#define compat_ion_ioctl NULL 28 29#endif /* CONFIG_COMPAT */ 30#endif /* _LINUX_COMPAT_ION_H */ 31