1 #include "check_debug.h"
4 #define get_user(x, y) ({ int __val_gu = frob(); x = __val_gu; 0; })
12 get_user(foo
, user_ptr
);
15 get_user(bar
, user_ptr
);
20 get_user(x
, user_ptr
);
25 get_user(x
, user_ptr
);
29 * check-name: smatch get_user() #1
30 * check-command: smatch -p=kernel -I.. sm_get_user1.c
33 sm_get_user1.c:13 func() warn: check for integer over/underflow 'foo'
34 sm_get_user1.c:18 func() warn: check for integer underflow 'bar'
35 sm_get_user1.c:26 func() warn: check for integer overflow 'x'