param_key: fix container of when no struct member is referenced
[smatch.git] / validation / sm_equiv4.c
blobefc97255fe4674f45ee34ea688b218526b598caa
1 #include "check_debug.h"
3 void *ioremap();
4 void iounmap(void *);
6 int *a, *b, *c;
7 int func(void)
9 a = ioremap();
10 b = ioremap();
11 c = a;
12 iounmap(c);
13 return -1;
16 * check-name: smatch equivalent variables #4
17 * check-command: smatch -p=kernel --spammy -I.. sm_equiv4.c
19 * check-output-start
20 sm_equiv4.c:13 func() warn: 'b' from ioremap() not released on lines: 13.
21 * check-output-end