1 #define __user __attribute__((address_space(1)))
3 typedef __UINTPTR_TYPE__
uintptr_t;
4 typedef unsigned long ulong
;
5 typedef struct s obj_t
;
7 static void expl(ulong u
, uintptr_t uip
, void *v
, obj_t
*o
, obj_t __user
*p
)
29 * check-name: cast-to-as
30 * check-command: sparse -Wcast-to-as $file
33 Wcast-to-as.c:16:10: warning: cast adds address space '<asn:1>' to expression
34 Wcast-to-as.c:21:10: warning: cast adds address space '<asn:1>' to expression