aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.c
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2013-04-25 18:09:43 -0700
committerChristopher Li <sparse@chrisli.org>2013-04-26 08:27:41 -0700
commit5449cfbfe55eea2a602a40122c122b5040d67243 (patch)
tree5338288223e6433c0c805f4d54665ca034191ee5 /evaluate.c
parent9aadf85a29be2a74e46fc67b5313d41aee81dac7 (diff)
downloadsparse-5449cfbfe55eea2a602a40122c122b5040d67243.tar.gz
Allow forced attribute in function argumentv0.4.5-rc1
It will indicate this argument will skip the type compatible check. It allow PTR_ERR() to accept __iomem pointer without complaining. Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'evaluate.c')
-rw-r--r--evaluate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/evaluate.c b/evaluate.c
index 9f2c4acc..0dfa519b 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -2137,7 +2137,7 @@ static int evaluate_arguments(struct symbol *f, struct symbol *fn, struct expres
else
degenerate(expr);
}
- } else {
+ } else if (!target->forced_arg){
static char where[30];
examine_symbol_type(target);
sprintf(where, "argument %d", i);