repo.or.cz
/
smatch.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
signed: don't warn about unsigned comparisons to macros
[smatch.git]
/
validation
/
sm_efault.c
blob
aad06332ce2588045a2f6875c60e1413dd984d0f
1
#include
"check_debug.h"
2
3
int
clear_user
();
4
5
int
func
(
int
*
p
)
6
{
7
int
ret
;
8
9
ret
=
clear_user
();
10
if
(
ret
)
11
return
ret
;
12
return
0
;
13
}
14
/*
15
* check-name: smatch return -EFAULT
16
* check-command: smatch -p=kernel -I.. sm_efault.c
17
*
18
* check-output-start
19
sm_efault.c +11 func(6) warn: maybe return -EFAULT instead of the bytes remaining?
20
* check-output-end
21
*/