diff options
Diffstat (limited to 'validation')
| -rw-r--r-- | validation/fored_arg.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/fored_arg.c b/validation/fored_arg.c new file mode 100644 index 00000000..4ab71419 --- /dev/null +++ b/validation/fored_arg.c @@ -0,0 +1,18 @@ +/* + * check-name: Forced function argument type. + */ + +#define __iomem __attribute__((noderef, address_space(2))) +#define __force __attribute__((force)) + +static void foo(__force void * addr) +{ +} + + +static void bar(void) +{ + void __iomem *a; + foo(a); +} + |
