gcc/testsuite/gcc.dg/plugin/test-uaccess.h
raw| 1 | /* Shared header for testcases for copy_from_user/copy_to_user. */ |
| 2 | |
| 3 | /* Adapted from include/linux/compiler.h */ |
| 4 | |
| 5 | #define __user |
| 6 | |
| 7 | /* Adapted from include/asm-generic/uaccess.h */ |
| 8 | |
| 9 | extern long copy_from_user(void *to, const void __user *from, long n); |
| 10 | extern long copy_to_user(void __user *to, const void *from, long n); |