1 make[1]: Entering directory '$(@D)'
3 init_defs_builtins: ./standard.h
7 +++ /tmp/cocci-output-25045-d78ee4-62.c
9 static struct usb_driver carl9170_driver = {
10 .id_table = carl9170_usb_ids,
11 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
15 .reset_resume = carl9170_usb_resume,
16 #endif /* CONFIG_PM */
17 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
18 .disable_hub_initiated_lpm = 1,
25 +++ /tmp/cocci-output-25045-dc8397-a3d.c
26 @@ -6,13 +6,13 @@ struct a3d {
27 static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev)
30 - a3d->adc.idbus = BUS_GAMEPORT;
31 - a3d->dev.idbus = BUS_GAMEPORT;
32 + a3d->adc.id.bustype = BUS_GAMEPORT;
33 + a3d->dev.id.bustype = BUS_GAMEPORT;
36 static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev)
39 - a3d->adc.idbus = BUS_GAMEPORT;
40 + a3d->adc.id.bustype = BUS_GAMEPORT;
46 --- tests/a_and_e_ver1.c
47 +++ /tmp/cocci-output-25045-735d51-a_and_e_ver1.c
57 warning: line 4: should a be a metavariable?
60 +++ /tmp/cocci-output-25045-3a4812-ab.c
71 +++ /tmp/cocci-output-25045-08c6cf-add1.c
72 @@ -7,6 +7,9 @@ static int create_scheduling_groups(void
73 ret = build_groups(sd, i);
79 list_for_each_entry(sd, cfs_ipa_topology, siblings) {
80 ret = build_lower_groups(sd);
85 +++ /tmp/cocci-output-25045-b08a58-addaft.c
108 --- tests/addbefore.c
109 +++ /tmp/cocci-output-25045-c41702-addbefore.c
119 --- tests/addbeforeafter.c
120 +++ /tmp/cocci-output-25045-b8d85b-addbeforeafter.c
133 +++ /tmp/cocci-output-25045-2598d9-addelse.c
136 - if (x == 12) return 6;
141 +++ /tmp/cocci-output-25045-c6349c-addes.c
149 +++ /tmp/cocci-output-25045-1adfd8-addfield.c
151 struct i2c_client I = {
160 --- tests/addfield2.c
161 +++ /tmp/cocci-output-25045-093cce-addfield2.c
187 +++ /tmp/cocci-output-25045-fc2fcb-addif.c
192 + /* a comment by itself */
193 + return 12;/* another comment */ }
202 + /* a comment by itself */
203 + return 12;/* another comment */ }
211 +++ /tmp/cocci-output-25045-22af7b-addif1.c
231 +++ /tmp/cocci-output-25045-81d1a1-addif2.c
249 +++ /tmp/cocci-output-25045-71f763-addifdef.c
252 +#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
256 +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
257 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,1) */
259 /* comment about two */
260 +#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
264 +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */
267 --- tests/addifelse.c
268 +++ /tmp/cocci-output-25045-4359ab-addifelse.c
270 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)
271 static void rfcomm_l2data_ready(struct sock *sk)
277 +static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){
278 + rfcomm_l2data_ready(sk);
282 static int rfcomm_l2sock_create(struct socket **sock)
286 --- tests/addifelse2.c
287 +++ /tmp/cocci-output-25045-d10da9-addifelse2.c
289 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0)
290 +static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){
291 + rfcomm_l2data_ready(sk);
295 static void rfcomm_l2data_ready(struct sock *sk)
302 static int rfcomm_l2sock_create(struct socket **sock)
307 +++ /tmp/cocci-output-25045-4af505-addinc.c
311 #include <something.h>
317 +++ /tmp/cocci-output-25045-339cad-addtoo.c
329 - if (b()) continues;
341 +++ /tmp/cocci-output-25045-19521e-addtrace.c
342 @@ -2,13 +2,24 @@ short VerDate(char *pcDate)
361 + if ( pcDate == 0 ) {
374 +++ /tmp/cocci-output-25045-3f8324-after_if.c
376 #ifdef ELMC_MULTICAST
377 static void set_multicast_list(struct net_device *dev);
379 -static struct ethtool_ops netdev_ethtool_ops;
380 +static const struct ethtool_ops netdev_ethtool_ops;
385 +++ /tmp/cocci-output-25045-2b615f-allex.c
386 @@ -6,7 +6,7 @@ int main () {
398 +++ /tmp/cocci-output-25045-6af164-allex2.c
399 @@ -8,5 +8,5 @@ int main () {
409 +++ /tmp/cocci-output-25045-394575-allex3.c
410 @@ -9,5 +9,4 @@ int main () {
419 +++ /tmp/cocci-output-25045-d763c7-andid.c
422 - int frontandback = 12;
430 +++ /tmp/cocci-output-25045-010878-anon.c
431 @@ -12,5 +12,5 @@ static int ppa_queuecommand(struct scsi_
432 void (*done) (struct scsi_cmnd *))
434 ppa_struct *dev = ppa_dev(cmd->device->host);
435 - schedule_work(&dev->ppa_tq);
436 + schedule_delayed_work(&dev->ppa_tq, 0);
440 --- tests/anonfield.c
441 +++ /tmp/cocci-output-25045-b31611-anonfield.c
450 +++ /tmp/cocci-output-25045-3fc005-ar.c
451 @@ -4,9 +4,4 @@ int main() {
464 +++ /tmp/cocci-output-25045-2852c5-arg.c
479 +++ /tmp/cocci-output-25045-1e3d97-argument.c
493 +++ /tmp/cocci-output-25045-4aed87-arparam.c
500 int main(int q[1024])
505 --- tests/array_init.c
506 +++ /tmp/cocci-output-25045-60a323-array_init.c
508 static int term[MAX_ECARDS] = { 1, 1, 1, 1, 1, 1, 1, 1 };
509 -MODULE_PARM(term, "1-8i");
513 --- tests/array_size.c
514 +++ /tmp/cocci-output-25045-fd6bc2-array_size.c
516 -#define MAX_SETUP_STRINGS (sizeof(setup_strings) / sizeof(char *))
517 +#define MAX_SETUP_STRINGS ARRAY_SIZE(setup_strings)
518 #define SETUP_BUFFER_SIZE 200
522 +++ /tmp/cocci-output-25045-efbffe-arraysz.c
523 @@ -7,4 +7,4 @@ typedef struct signature {
524 static const Signature signatures[] = {
525 {"SSTBIOS", 0x0000d, 7} /* "SSTBIOS" @ offset 0x0000d */
527 -#define NUM_SIGNATURES (sizeof(signatures)/sizeof(Signature))
528 +#define NUM_SIGNATURES ARRAY_SIZE(signatures)
532 +++ /tmp/cocci-output-25045-4472dd-as_stm.c
542 +++ /tmp/cocci-output-25045-1ea113-attradd.c
546 + char __attribute__((aligned(1))) f;
549 +// some other comment
552 --- tests/attrs2groups.c
553 +++ /tmp/cocci-output-25045-e86ea8-attrs2groups.c
554 @@ -3,18 +3,24 @@ static ssize_t devspec_show(struct devic
561 static ssize_t name_show(struct device *dev,
562 struct device_attribute *attr, char *buf)
569 static ssize_t modalias_show(struct device *dev,
570 struct device_attribute *attr, char *buf)
578 struct device_attribute ibmebus_bus_device_attrs[] = {
582 +++ /tmp/cocci-output-25045-613fd2-b1.c
586 - if (x > 1 ) { foo(); break; }
587 + if (x > 1 ) { foo();
591 - if (x > 1 ) { foo(); break; }
592 + if (x > 1 ) { foo();
598 +++ /tmp/cocci-output-25045-cb9daf-b2.c
602 - if (x > 1 ) { foo(); brk(); }
603 + if (x > 1 ) { foo();
607 - while (x > 1 ) { foo(); brk(); }
608 + while (x > 1 ) { foo();
616 --- tests/bad_kfree.c
617 +++ /tmp/cocci-output-25045-6514c2-bad_kfree.c
618 @@ -14,7 +14,7 @@ int bad () {
629 --- tests/bad_ptr_print.c
630 +++ /tmp/cocci-output-25045-c2c15b-bad_ptr_print.c
632 static inline int tester(struct usb_endpoint_descriptor *epd)
634 - f((struct foo *)x);
635 + g((struct foo *)x);
639 --- tests/bad_typedef.c
640 +++ /tmp/cocci-output-25045-51da55-bad_typedef.c
641 @@ -4,7 +4,7 @@ typedef struct {
644 int main1 (scsi_changer *x) {
649 struct scsi_changer_two {
650 @@ -13,5 +13,5 @@ struct scsi_changer_two {
653 int main2 (struct scsi_changer_two *x) {
660 +++ /tmp/cocci-output-25045-643f94-badexp.c
669 previous modification:
674 According to environment 0:
677 current modification:
680 According to environment 0:
683 exn while in timeout_function
686 --- tests/badtypedef.c
687 +++ /tmp/cocci-output-25045-a02643-badtypedef.c
688 @@ -5,7 +5,7 @@ int main() {
701 +++ /tmp/cocci-output-25045-28cd1f-badwhen.c
702 @@ -4,7 +4,5 @@ int main () {
713 +++ /tmp/cocci-output-25045-5ab178-badzero.c
714 @@ -4,7 +4,7 @@ int main () {
716 if (y - x == 0) return;
717 if ((y - x) == 0) return;
718 - if (y - z == 0) return;
719 - if ((y - z) == 0) return;
725 warning: f: metavariable i not used in the - or context code
728 +++ /tmp/cocci-output-25045-054f41-bc_1.c
729 @@ -12,6 +12,12 @@ extern struct sph_particle_data_buggy
733 + struct sph_particle_data_buggy_soa_t {
738 + struct sph_particle_data_buggy_soa_t DomainSphBuf__soa;
739 struct dens_eval_arg_t { };
745 +++ /tmp/cocci-output-25045-fab01e-befS.c
784 +++ /tmp/cocci-output-25045-3cec36-before.c
795 +++ /tmp/cocci-output-25045-681d04-ben.c
797 +static GType this_type = 0;
798 +static const GTypeInfo this_info = {
799 + sizeof(LassoProviderClass),
802 + (GClassInitFunc)class_init,
805 + sizeof(LassoProvider),
807 + (GInstanceInitFunc)instance_init,
811 lasso_provider_get_type()
813 - static GType this_type = 0;
816 - static const GTypeInfo this_info = {
817 - sizeof (LassoProviderClass),
820 - (GClassInitFunc) class_init,
823 - sizeof(LassoProvider),
825 - (GInstanceInitFunc) instance_init,
829 this_type = g_type_register_static(LASSO_TYPE_NODE,
830 "LassoProvider", &this_info, 0);
835 +++ /tmp/cocci-output-25045-577a6a-bigin.c
836 @@ -9,5 +9,6 @@ int main() {
846 +++ /tmp/cocci-output-25045-e9db3b-bigrepl.c
849 - one(argument1(nested, argument), argument2(nested, argument), foo(),
850 + one(argument1(nested, argument), argument2(nested, argument),
851 + call(to, a, very, complicated, function, with, many, args),
852 argument3(nested, argument));
853 - one(argument1(nested, argument), argument2(nested, argument), foo(), a(b));
854 - one(argument1(nested, argument), argument2(nested, argument), foo());
855 + one(argument1(nested, argument), argument2(nested, argument),
856 + call(to, a, very, complicated, function, with, many, args), a(b));
857 + one(argument1(nested, argument), argument2(nested, argument),
858 + call(to, a, very, complicated, function, with, many, args));
863 +++ /tmp/cocci-output-25045-b00255-binop.c
864 @@ -2,10 +2,12 @@ void main() {
868 - if( (i = j) + 0 ) {
873 - if( (i = j) + 0 != 0 ) {
880 warning: rule starting on line 11: metavariable v not used in the - or context code
883 +++ /tmp/cocci-output-25045-a51814-bitfield.c
885 struct dvb_frontend {
886 - struct dvb_frontend_ops* ops;
887 + struct dvb_frontend_ops ops;
908 } bcm3510_register_value;
909 bitfield_matching.res
911 (ONCE) already tagged but only removed, so safe
914 +++ /tmp/cocci-output-25045-a83e38-boolr.c
923 +++ /tmp/cocci-output-25045-6b4c91-braces.c
925 -#define main { foo(); }
928 int main() { foo(); }
930 -int main() { if (x) { foo(); } }
931 +int main() { if (x) foo(); }
933 -int main() { while (x) { foo(); } }
934 +int main() { while (x) foo(); }
936 -int main() { if (x) { foo(); } else { foo(); } }
937 +int main() { if (x) foo(); else foo(); }
940 --- tests/branchparen.c
941 +++ /tmp/cocci-output-25045-473fe5-branchparen.c
958 +++ /tmp/cocci-output-25045-d9ad3e-break.c
959 @@ -5,8 +5,10 @@ int main () {
961 if (x > 1 ) { foo(); break; }
963 - if (x > 1 ) { foo(); break; }
964 - if (x > 1 ) { foo(); break; }
965 + if (x > 1 ) { foo();
967 + if (x > 1 ) { foo();
972 @@ -18,6 +20,7 @@ int mainx () {
973 if (x > 1 ) { xxx(); continue; }
975 if (x > 1 ) { xxx(); break; }
976 - if (x > 1 ) { xxx(); continue; }
977 + if (x > 1 ) { xxx();
984 +++ /tmp/cocci-output-25045-6be8a5-bug1.c
986 -static int typhoon_ioctl(struct video_device *dev, unsigned int cmd,void *arg)
987 +static int typhoon_ioctl(struct inode *i, struct file *f, unsigned int cmd,
990 struct typhoon_device *typhoon = dev->priv;
995 +++ /tmp/cocci-output-25045-5cd28c-bugloop.c
996 @@ -8,8 +8,8 @@ static int stir_transmit_thread(void *ar
999 /* if suspending, then power off and wait */
1000 - if (unlikely(current->flags & PF_FREEZE)) {
1001 - refrigerator(PF_FREEZE);
1002 + if (unlikely(freezing(current))) {
1010 +++ /tmp/cocci-output-25045-1fbdb6-bugon.c
1012 static void b44_tx(struct b44 *bp)
1014 - if (unlikely(skb == NULL))
1016 + BUG_ON(skb == NULL);
1021 +++ /tmp/cocci-output-25045-0f37e6-bus.c
1033 +++ /tmp/cocci-output-25045-b8d8ea-cards.c
1035 -MODULE_PARM(io, "1-" __MODULE_STRING(MAX_CARDS) "i");
1041 --- tests/caseprint.c
1042 +++ /tmp/cocci-output-25045-98a9fe-caseprint.c
1043 @@ -3,4 +3,10 @@ int f() {
1057 +++ /tmp/cocci-output-25045-3bb595-cast.c
1060 - ((struct xxx *)E)->foo = 12;
1064 --- tests/cast_iso.c
1065 +++ /tmp/cocci-output-25045-d7d292-cast_iso.c
1067 static int vx_hwdep_dsp_load(snd_hwdep_t *hw, snd_hwdep_dsp_image_t *dsp)
1069 - vx_core_t *vx = snd_magic_cast(vx_core_t, hw->private_data, return -ENXIO);
1070 - ak4117_t *chip = snd_magic_cast(ak4117_t, (void *)data, return);
1071 + vx_core_t *vx = hw->private_data;
1072 + ak4117_t *chip = (ak4117_t *)data;
1077 --- tests/castdecl.c
1078 +++ /tmp/cocci-output-25045-339477-castdecl.c
1083 - long lType = (long)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L;
1084 - unsigned char c1 = 'a', c2 = 'b';
1085 - unsigned char c3 = 'c';
1088 + int lType = (int)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L;
1089 + char c1 = 'a', c2 = 'b';
1094 cex_wishlist_complex1.res
1096 --- tests/cex_wishlist_complex1.c
1097 +++ /tmp/cocci-output-25045-1776b1-cex_wishlist_complex1.c
1099 #include <complex.h>
1106 cex_wishlist_complex2.res
1108 --- tests/cex_wishlist_complex2.c
1109 +++ /tmp/cocci-output-25045-87987e-cex_wishlist_complex2.c
1114 - long double complex ldc;
1119 cex_wishlist_complex3.res
1121 --- tests/cex_wishlist_complex3.c
1122 +++ /tmp/cocci-output-25045-ccac3c-cex_wishlist_complex3.c
1127 - double complex dc;
1130 + double complex fc;
1136 +++ /tmp/cocci-output-25045-9d67fc-change.c
1141 this_type = g_type_register_static(LASSO_TYPE_NODE,
1142 "LassoProvider", &this_info, 0);
1146 --- tests/change_type.c
1147 +++ /tmp/cocci-output-25045-61186d-change_type.c
1151 - return (struct blah *)x;
1157 +++ /tmp/cocci-output-25045-d5c9bf-changei.c
1159 -typedef struct i istruct;
1160 +typedef struct i xxx;
1165 +int xxx (int xxx) {
1173 +++ /tmp/cocci-output-25045-d4fb76-com.c
1186 +++ /tmp/cocci-output-25045-3ce419-comadd.c
1189 +// some other comment
1196 +++ /tmp/cocci-output-25045-bb70c5-comj.c
1197 @@ -2,6 +2,8 @@ int foo(int bar)
1200 for (i = 5; --i>=0; ) {
1201 + /* comments are overrated */
1208 --- tests/comment_brace.c
1209 +++ /tmp/cocci-output-25045-73bcf3-comment_brace.c
1213 - while ((inw(base) & 0xad00) != 0) /* data status */
1214 + while ((inw(base) & 0xad00) != 0) /* data status */ {
1223 --- tests/comment_brace2.c
1224 +++ /tmp/cocci-output-25045-68003d-comment_brace2.c
1228 - while ((inw(base) & 0xad00) != 0) /* data status */
1229 + while ((inw(base) & 0xad00) != 0) /* data status */ {
1238 --- tests/comments.c
1239 +++ /tmp/cocci-output-25045-0349c4-comments.c
1249 + Some info about @foo()
1260 +++ /tmp/cocci-output-25045-e1b2c2-compare.c
1262 struct aic7xxx_host {
1263 struct aic7xxx_cmd_queue {
1266 + struct scsi_cmnd *head;
1267 + struct scsi_cmnd *tail;
1269 unsigned char msg_buf[13]; /* The message for the target */
1270 unsigned char msg_type;
1273 --- tests/compare_const2.c
1274 +++ /tmp/cocci-output-25045-4dc5b8-compare_const2.c
1278 - if (0 == ((1 == i || 3 == i)
1279 - && (18 == o || 17 == o)))
1280 + if (((i == 1 || i == 3)
1281 + && (o == 18 || o == 17)) == 0)
1287 +++ /tmp/cocci-output-25045-403826-condexp.c
1288 @@ -5,7 +5,7 @@ main(int argc, char *argv[])
1289 dpy = XOpenDisplay (displayname);
1291 fprintf (stderr, "%s: unable to open display \"%s\"\n",
1292 - ProgramName, XDisplayName (displayname));
1293 + ProgramName, displayname ? displayname : getenv("DISPLAY"));
1296 screenno = DefaultScreen (dpy);
1298 warning: line 2: should text be a metavariable?
1299 warning: line 3: should buf be a metavariable?
1300 warning: line 3: should text be a metavariable?
1303 +++ /tmp/cocci-output-25045-93615e-const.c
1305 void foo(const char *text) {
1306 - strcat(buf->data, text);
1307 + strcat_safe(buf->data, buf->len, text);
1310 warning: line 3: should i be a metavariable?
1312 --- tests/const1bis.c
1313 +++ /tmp/cocci-output-25045-f3e158-const1bis.c
1323 --- tests/const_adding.c
1324 +++ /tmp/cocci-output-25045-3a58fa-const_adding.c
1325 @@ -2,6 +2,6 @@ void main(int i)
1328 const struct file_operations a;
1329 - struct file_operations b;
1330 + const struct file_operations b;
1335 --- tests/const_array.c
1336 +++ /tmp/cocci-output-25045-863a1a-const_array.c
1337 @@ -24,9 +24,9 @@ static const struct foo *r128_family4[]
1341 - ent->driver_data = sizeof(r128_family)/sizeof(char *);
1342 - ent->driver_data = sizeof(r128_family1)/sizeof(char *);
1343 - ent->driver_data = sizeof(r128_family2)/sizeof(char *);
1344 - ent->driver_data = sizeof(r128_family3)/sizeof(struct foo *);
1345 - ent->driver_data = sizeof(r128_family4)/sizeof(struct foo *);
1346 + ent->driver_data = ARRAY_SIZE(r128_family);
1347 + ent->driver_data = ARRAY_SIZE(r128_family1);
1348 + ent->driver_data = ARRAY_SIZE(r128_family2);
1349 + ent->driver_data = ARRAY_SIZE(r128_family3);
1350 + ent->driver_data = ARRAY_SIZE(r128_family4);
1352 const_implicit_iso.res
1354 --- tests/const_implicit_iso.c
1355 +++ /tmp/cocci-output-25045-289ebb-const_implicit_iso.c
1357 void main(double y) {
1364 --- tests/constraints.c
1365 +++ /tmp/cocci-output-25045-ccd3aa-constraints.c
1392 -g(int a, int b, int c)
1393 +h(int a, int b, int c)
1397 warning: line 9: should f be a metavariable?
1399 --- tests/constrem.c
1400 +++ /tmp/cocci-output-25045-cfb2c0-constrem.c
1402 -static const int a;
1404 -static const int (*f)(const int);
1407 --- tests/constructor.c
1408 +++ /tmp/cocci-output-25045-203b12-constructor.c
1411 - imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res,
1412 - Edata, Esize_data, Edma_mask);
1413 + changed_imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res, Edata,
1414 + Esize_data, Edma_mask);
1420 +++ /tmp/cocci-output-25045-dcebf8-constty.c
1432 +++ /tmp/cocci-output-25045-3f399d-constx.c
1442 + foobar(CONSTANT, CONSTANT);
1444 + foobar("string", "string");
1445 + foobar(1.0001, 1.0001);
1448 exn while in timeout_function
1449 countcalls_python.res
1453 +++ /tmp/cocci-output-25045-47aece-cptr.c
1455 -static const char *str = "...";
1456 +static const char * const str = "...";
1460 +++ /tmp/cocci-output-25045-360577-cr.c
1473 +++ /tmp/cocci-output-25045-c25e2e-cr1a.c
1474 @@ -6,14 +6,17 @@ int __init probe_base_port(int base)
1477 for (base = b; base <= e; base += 0x10) {
1478 - if (check_region(base, 0x10))
1479 + if (!request_region(base, 0x10, req_reg_arg3))
1481 for (i = 0; i < 3; i++)
1482 fool = inw(base + 2); /* empty possibly uart_receive_buffer */
1483 if ((inw(base + 6) & 0xffef) != 0x0001 || /* line_status */
1484 - (inw(base) & 0xad00) != 0)
1485 + (inw(base) & 0xad00) != 0) {
1486 + release_region(base, 0x10);
1490 + release_region(base, 0x10);
1495 warning: line 5: should handle be a metavariable?
1497 --- tests/cs_check.c
1498 +++ /tmp/cocci-output-25045-eec6b9-cs_check.c
1499 @@ -4,7 +4,7 @@ do { last_fn = (fn); if ((last_ret = (re
1500 static void nsp_cs_config(dev_link_t *link)
1502 client_handle_t handle = link->handle;
1503 - CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple));
1504 + CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple));
1511 +++ /tmp/cocci-output-25045-860a60-cst.c
1514 - emu10k1_t *emu = snd_magic_cast(1, 2, return -ENXIO);
1515 + emu10k1_t *emu = 4;
1521 --- tests/cst_null.c
1522 +++ /tmp/cocci-output-25045-b15619-cst_null.c
1523 @@ -2,9 +2,8 @@ void* videobuf_alloc(unsigned int size)
1525 struct videobuf_buffer *vb;
1527 - vb = kmalloc(size,GFP_KERNEL);
1528 + vb = kzalloc(size, GFP_KERNEL);
1530 - memset(vb,0,size);
1531 videobuf_dma_init(&vb->dma);
1532 init_waitqueue_head(&vb->done);
1533 vb->magic = MAGIC_BUFFER;
1534 @@ -17,9 +16,8 @@ void* videobuf_alloc(unsigned int size)
1536 struct videobuf_buffer *vb;
1538 - vb = kmalloc(size,GFP_KERNEL);
1539 + vb = kzalloc(size, GFP_KERNEL);
1541 - memset(vb,0,size);
1542 videobuf_dma_init(&vb->dma);
1543 init_waitqueue_head(&vb->done);
1544 vb->magic = MAGIC_BUFFER;
1545 @@ -32,9 +30,8 @@ void* videobuf_alloc(unsigned int size)
1547 struct videobuf_buffer *vb;
1549 - vb = kmalloc(size,GFP_KERNEL);
1550 + vb = kzalloc(size, GFP_KERNEL);
1552 - memset(vb,0,size);
1553 videobuf_dma_init(&vb->dma);
1554 init_waitqueue_head(&vb->done);
1555 vb->magic = MAGIC_BUFFER;
1557 exn while in timeout_function
1559 warning: line 4: should foo be a metavariable?
1562 +++ /tmp/cocci-output-25045-59e104-cststr.c
1565 - foo((ptr_t)"blah");
1566 + xxx((ptr_t)"blah");
1569 warning: line 4: should x be a metavariable?
1572 +++ /tmp/cocci-output-25045-ab676e-csw.c
1577 - link->state &= ~DEV_PRESENT;
1578 - if (link->state & DEV_CONFIG) {
1579 - bluecard_close(info);
1580 - bluecard_release(link);
1583 case MID: mid(); break;
1584 - case FOO: bar(); break;
1591 +++ /tmp/cocci-output-25045-5c8d57-dbg.c
1592 @@ -4,5 +4,6 @@ static inline void alloc_resource(struct
1593 struct resource *pr, *r = &dev->resource[idx];
1598 + pr = NULL;("PCI");
1603 +++ /tmp/cocci-output-25045-e75744-dbg1.c
1606 static inline void alloc_resource(struct pci_dev *dev, int idx)
1614 --- tests/dc_close.c
1615 +++ /tmp/cocci-output-25045-e3b8ff-dc_close.c
1616 @@ -5,6 +5,7 @@ initicc(struct IsdnCardState *cs)
1618 INIT_WORK(&cs->work, icc_bh, cs);
1619 cs->setstack_d = setstack_icc;
1620 + cs->DC_Send_Data = d_fill_fifo;
1621 cs->DC_Close = DC_Close_icc;
1622 cs->dc.icc.mon_rx = NULL;
1627 +++ /tmp/cocci-output-25045-169746-debug.c
1629 static int __init init_3c574_cs(void)
1631 - DEBUG(0, "%s\n", version);
1637 +++ /tmp/cocci-output-25045-b35dfa-dec.c
1647 +++ /tmp/cocci-output-25045-ca90cc-decl.c
1649 static int az_ioctl(int cmd, void *arg)
1656 warning: line 8: should x be a metavariable?
1659 +++ /tmp/cocci-output-25045-9ae64d-decl2.c
1661 static int az_ioctl(int cmd, void *arg)
1670 --- tests/decl_space.c
1671 +++ /tmp/cocci-output-25045-50ee8b-decl_space.c
1682 --- tests/decl_star.c
1683 +++ /tmp/cocci-output-25045-767f95-decl_star.c
1694 --- tests/declmeta.c
1695 +++ /tmp/cocci-output-25045-c0cc44-declmeta.c
1710 +++ /tmp/cocci-output-25045-c2a886-defe.c
1715 --- tests/define_exp.c
1716 +++ /tmp/cocci-output-25045-8091f5-define_exp.c
1718 #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? \
1719 - SA_SHIRQ : SA_INTERRUPT)
1720 + IRQF_SHARED : IRQF_DISABLED)
1726 --- tests/define_param.c
1727 +++ /tmp/cocci-output-25045-cba27f-define_param.c
1729 -#define fieldsize(a) (sizeof(a)/sizeof(*a))
1733 atari_proc_infos(unsigned char *nvram, char *buffer, int *len,
1734 off_t *begin, off_t offset, int size)
1736 - for (i = fieldsize(boot_prefs) - 1; i >= 0; --i) {
1737 + for (i = ARRAY_SIZE(boot_prefs) - 1; i >= 0; --i) {
1738 if (nvram[1] == boot_prefs[i].val) {
1739 PRINT_PROC("%s\n", boot_prefs[i].name);
1743 --- tests/defineinit.c
1744 +++ /tmp/cocci-output-25045-397950-defineinit.c
1746 #define MYMACRO(adsf) { \
1748 + .foo = (asdf) * 1000,\
1753 --- tests/delete_function.c
1754 +++ /tmp/cocci-output-25045-2690c5-delete_function.c
1755 @@ -2,12 +2,6 @@ int first () {
1771 +++ /tmp/cocci-output-25045-a79110-delp.c
1781 +++ /tmp/cocci-output-25045-5e4615-deref.c
1794 +++ /tmp/cocci-output-25045-e9636e-destroy.c
1795 @@ -6,7 +6,12 @@ static void wlcore_nvs_cb(const struct f
1799 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
1800 free_irq(wl->irq, wl);
1802 + compat_free_threaded_irq(&private->irq_compat);
1803 + compat_destroy_threaded_irq(&wl->irq_compat);
1807 release_firmware(fw);
1811 +++ /tmp/cocci-output-25045-89ad01-devlink.c
1813 -static void cm4000_release(dev_link_t *link);
1814 +static void cm4000_release(struct pcmcia_device *link);
1817 memset(&dev->atr_csum,0,
1818 - sizeof(dev_link_t) - sizeof(dev_node));
1819 + sizeof(struct pcmcia_device) - sizeof(dev_node));
1824 + struct pcmcia_device x;
1825 memset(&dev->atr_csum,0,
1826 - sizeof(dev_link_t) - sizeof(dev_node));
1827 + sizeof(struct pcmcia_device) - sizeof(dev_node));
1830 warning: line 3: should disj_id1 be a metavariable?
1831 warning: line 3: should disj_id2 be a metavariable?
1832 warning: line 8: should disj_id1 be a metavariable?
1833 warning: line 8: should disj_id2 be a metavariable?
1834 warning: line 18: should disj_type be a metavariable?
1837 +++ /tmp/cocci-output-25045-c62c77-disj.c
1861 - DISJ_DECLARER1(0);
1862 - DISJ_DECLARER2(0);
1864 + DISJ_DECLARER3(0);
1865 + DISJ_DECLARER3(0);
1881 void disj_id0() { foo(); }
1882 -void disj_id1() { foo(); }
1883 -void disj_id2() { foo(); }
1884 +void disj_id3() { foo(); }
1885 +void disj_id3() { foo(); }
1888 --- tests/disjexpr.c
1889 +++ /tmp/cocci-output-25045-902b7e-disjexpr.c
1892 - f(v.fld, v, v.fld2);
1893 + f(v->fld, *v, v->fld2);
1897 --- tests/disjexpr_ver1.c
1898 +++ /tmp/cocci-output-25045-c97f8e-disjexpr_ver1.c
1906 --- tests/disjexpr_ver2.c
1907 +++ /tmp/cocci-output-25045-e6ffdd-disjexpr_ver2.c
1910 - f(v.fld, v.fld2, v);
1911 + f(v->fld, v->fld2, *v);
1916 +++ /tmp/cocci-output-25045-5f4a68-disjid.c
1918 -int foo (int x, int z) { return 0; }
1919 -int foo (int y, int z) { return 0; }
1920 -int bar (int x, int z) { return 0; }
1921 -int bar (int y, int z) { return 0; }
1922 +int foo (int x, int z) { return 1; }
1923 +int foo (int y, int z) { return 1; }
1924 +int bar (int x, int z) { return 1; }
1925 +int bar (int y, int z) { return 1; }
1926 int xxx (int y, int z) { return 0; }
1929 --- tests/distribute.c
1930 +++ /tmp/cocci-output-25045-e04dc2-distribute.c
1935 + f(g(1) * 0 * g(2));
1940 +++ /tmp/cocci-output-25045-3a51f1-double.c
1942 static void BChannel_proc_xmt(struct BCState *bcs) {
1943 - if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && (!skb_queue_len(&bcs->squeue))) {
1944 + if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && skb_queue_empty(&bcs->squeue)) {
1945 st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL);
1950 --- tests/double_assign.c
1951 +++ /tmp/cocci-output-25045-036e93-double_assign.c
1952 @@ -4,6 +4,5 @@ int main() {
1961 --- tests/double_lines.c
1962 +++ /tmp/cocci-output-25045-96244f-double_lines.c
1974 --- tests/doublepos.c
1975 +++ /tmp/cocci-output-25045-617e03-doublepos.c
1984 --- tests/doubleswitch.c
1985 +++ /tmp/cocci-output-25045-38953b-doubleswitch.c
1986 @@ -3,8 +3,6 @@ void zfLnxRecvEth(zdev_t* dev, zbuf_t* b
1987 #ifdef ZM_AVOID_UDP_LARGE_PACKET_FAIL
1992 switch(netif_rx(new_buf))
1998 +++ /tmp/cocci-output-25045-8e6ce3-doundo.c
1999 @@ -4,5 +4,5 @@ int main()
2001 const s8 (*queue_priority_mapping)[2];
2009 +++ /tmp/cocci-output-25045-5511b8-dowhile.c
2021 +++ /tmp/cocci-output-25045-c7e4f3-dropbr.c
2032 +++ /tmp/cocci-output-25045-405d8e-dropcom.c
2034 int one() { return 0; }
2046 --- tests/dropenderr.c
2047 +++ /tmp/cocci-output-25045-711098-dropenderr.c
2062 +++ /tmp/cocci-output-25045-4545ed-dropf.c
2066 + x = f(1 + 3) + f(3 + 3);
2070 --- tests/dropparam.c
2071 +++ /tmp/cocci-output-25045-c5a478-dropparam.c
2072 @@ -2,12 +2,12 @@ int f(char *x, int y, char* z) {
2076 -int g(char *x, int y, char* z) {
2077 +int g(char *x, char* z) {
2084 - g("toto", 3, "tata");
2085 + g("toto", "tata");
2090 +++ /tmp/cocci-output-25045-244bc7-dtest.c
2095 - return e->a + e1->b;
2101 +++ /tmp/cocci-output-25045-72782d-eb1.c
2106 + Packet * p1 = SCMalloc(SIZE_OF_PACKET),* p2 = SCMalloc(SIZE_OF_PACKET);
2120 +++ /tmp/cocci-output-25045-7b2521-edots.c
2128 // f(foo[45] + bar[45]);
2132 --- tests/edots_ver1.c
2133 +++ /tmp/cocci-output-25045-6af3aa-edots_ver1.c
2141 - f(foo[45] + bar[45]);
2148 +++ /tmp/cocci-output-25045-7bbcf3-elsify.c
2162 +++ /tmp/cocci-output-25045-d0c914-empty.c
2164 static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev)
2166 - pci_restore_state(pdev, idev->cfg_space);
2167 + pci_restore_state(pdev);
2168 if (ring_first(idev->tx_ring) == NULL) {
2173 --- tests/end_commas.c
2174 +++ /tmp/cocci-output-25045-30119c-end_commas.c
2176 static struct i2c_client client_template = {
2177 - .name = "adv7175_client",
2178 - .driver = &i2c_driver_adv7175
2179 + .driver = &i2c_driver_adv7175,
2181 + .name = "adv7175_client",
2185 warning: line 5: should x be a metavariable?
2188 +++ /tmp/cocci-output-25045-bae638-endif.c
2189 @@ -2,18 +2,23 @@ void f(int i) {
2208 for(1;1;1) { x = 3; }
2216 +++ /tmp/cocci-output-25045-1e9155-endnl.c
2255 warning: s: metavariable p not used in the - or context code
2256 exn while in timeout_function
2260 +++ /tmp/cocci-output-25045-aee4bb-enum.c
2261 @@ -18,5 +18,5 @@ xxx
2262 static reg_errcode_t
2265 - unsigned char *pending_exact = 0;
2266 + unsigned char *pending_exact = NULL;
2269 exn while in timeout_function
2273 +++ /tmp/cocci-output-25045-e10186-exitp.c
2288 +++ /tmp/cocci-output-25045-28640a-exp.c
2311 +++ /tmp/cocci-output-25045-2d4e24-expnest.c
2312 @@ -2,5 +2,5 @@ int main() {
2322 +++ /tmp/cocci-output-25045-a9995a-expopt.c
2333 +++ /tmp/cocci-output-25045-1234f0-expopt2.c
2344 +++ /tmp/cocci-output-25045-1f33db-expopt3.c
2346 static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
2348 - struct video_tuner v;
2349 - pcm20_getflags(pcm20, &v.flags, &v.xxx, &v.signal);
2350 + struct video_tuner *v;
2351 + pcm20_getflags(pcm20, &v->flags, &v->xxx, &v->signal);
2355 --- tests/expopt3_ver1.c
2356 +++ /tmp/cocci-output-25045-a367fb-expopt3_ver1.c
2358 static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
2360 - struct video_tuner v;
2361 + struct video_tuner *v;
2363 - f(&v.field1, &v.field2, &v.field3, &v.field4);
2364 + f(&v->field1, &v->field2, &v->field3, &v->field4);
2368 --- tests/expopt3_ver2.c
2369 +++ /tmp/cocci-output-25045-19821b-expopt3_ver2.c
2371 static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
2373 - struct video_tuner v;
2374 - f(v.field1, v.field2);
2375 + struct video_tuner *v;
2376 + f(v->field1, v->field2);
2379 exn while in timeout_function
2382 --- tests/failing_andany.c
2383 +++ /tmp/cocci-output-25045-3c17ae-failing_andany.c
2384 @@ -8,6 +8,4 @@ static int smc_probe1(struct net_device
2385 static int smc_probe2(struct net_device *dev, void __iomem *ioaddr,
2386 unsigned long irq_flags)
2389 - register_netdev(dev);
2394 +++ /tmp/cocci-output-25045-0a29d4-fields.c
2404 warning: line 4: should x be a metavariable?
2406 --- tests/fieldsmin.c
2407 +++ /tmp/cocci-output-25045-25dab8-fieldsmin.c
2415 exn while in timeout_function
2418 --- tests/find_long.c
2419 +++ /tmp/cocci-output-25045-96f634-find_long.c
2420 @@ -3,8 +3,8 @@ long function()
2433 --- tests/fix_flow_need.c
2434 +++ /tmp/cocci-output-25045-d554a0-fix_flow_need.c
2435 @@ -5,7 +5,6 @@ void main(int i) {
2446 +++ /tmp/cocci-output-25045-8fa1eb-fn_todo.c
2447 @@ -5,6 +5,6 @@ static void task_kill_later(struct asd_a
2448 struct Scsi_Host *shost = sas_ha->core.shost;
2449 struct sas_task *task = ascb->uldd_task;
2451 - INIT_WORK(&task->abort_work, (void (*)(void *))sas_task_abort, task);
2452 + INIT_WORK(&task->abort_work, sas_task_abort);
2453 queue_work(shost->work_q, &task->abort_work);
2458 +++ /tmp/cocci-output-25045-f42ab2-fnptr.c
2459 @@ -8,5 +8,5 @@ static int sci_request_irq(struct sci_po
2460 sci_er_interrupt, sci_rx_interrupt, sci_tx_interrupt,
2463 - request_irq(port->irqs[0], sci_mpxed_interrupt, SA_INTERRUPT);
2464 + request_irq(port->irqs[0], sci_mpxed_interrupt, foo());
2467 warning: line 6: should x be a metavariable?
2470 +++ /tmp/cocci-output-25045-6b08d5-fnret.c
2472 -static void foo(int x) { return; }
2477 +++ /tmp/cocci-output-25045-6df2c6-fnty.c
2486 --- tests/fntypedef.c
2487 +++ /tmp/cocci-output-25045-7e43e3-fntypedef.c
2489 -typedef void (*toto_t)(int a, int b);
2490 +typedef void (*toto_t)(int a, int b, int c);
2494 +++ /tmp/cocci-output-25045-011c88-format.c
2497 - printf("one %d two\n", 1);
2498 - printf("one %d two %d three\n", 1, 2);
2499 + printf("blah", 1);
2500 + printf("blah", 1, 2);
2501 printf("one two three\n");
2504 exn while in timeout_function
2507 --- tests/formatlist.c
2508 +++ /tmp/cocci-output-25045-b3f104-formatlist.c
2512 - foo("xyz %d %d abc");
2514 foo("mno %d %d abc");
2515 foo("mno %d abc %d %d abc %d");
2516 - foo("xyz %d abc %d %d abc %d");
2517 - foo("xyz %d abc %d %d abc %d mno");
2520 foo("xyz %d abc %d %d abc %d %d abc %d");
2521 foo("xyz %d abc %d %d abc");
2526 +++ /tmp/cocci-output-25045-ccfe32-fortest.c
2529 - for(x=0; x!=10; x++)
2537 - for( ; x!=10; x++)
2563 warning: line 4: should x be a metavariable?
2566 +++ /tmp/cocci-output-25045-2b23df-fortype.c
2569 - for (int x = 0; x!=10; x++)
2571 + for (char * p = 0; y!=10; y++)
2577 +++ /tmp/cocci-output-25045-28c217-four.c
2587 +++ /tmp/cocci-output-25045-446bfd-foura.c
2597 +++ /tmp/cocci-output-25045-a6db39-fp.c
2599 int main(int (*x)(int,int)) {
2605 +++ /tmp/cocci-output-25045-dc4560-fsh.c
2613 warning: line 5: should x be a metavariable?
2614 warning: line 5: should x be a metavariable?
2617 +++ /tmp/cocci-output-25045-0f7643-fun.c
2622 int f(int x) { return x; }
2626 +++ /tmp/cocci-output-25045-a18a87-func.c
2628 static int hidg_setup(struct usb_function *f,
2629 const struct usb_ctrlrequest *ctrl)
2631 - VDBG(cdev, "hid_setup crtl_request : bRequestType:0x%x bRequest:0x%x "
2632 - "Value:0x%x\n", ctrl->bRequestType, ctrl->bRequest, value);
2634 + "%s crtl_request : bRequestType:0x%x bRequest:0x%x Value:0x%x\n",
2635 + ctrl->bRequestType, ctrl->bRequest, value);
2639 --- tests/gcc_min_max.c
2640 +++ /tmp/cocci-output-25045-b6f013-gcc_min_max.c
2657 +++ /tmp/cocci-output-25045-655dd2-getc.c
2659 int IFoo_QueryInterface(int *iface, long *riid, void **ppv)
2661 - return IBar_QueryInterface(iface, riid, *ppv);
2666 --- tests/gilles-question.c
2667 +++ /tmp/cocci-output-25045-ba1da9-gilles-question.c
2668 @@ -2,8 +2,6 @@ void main(int i) {
2679 --- tests/gotobreak.c
2680 +++ /tmp/cocci-output-25045-cfc449-gotobreak.c
2681 @@ -11,5 +11,5 @@ static void sedlbauer_config(struct pcmc
2682 CS_CHECK(GetNextTuple, pcmcia_get_next_tuple(link, &tuple));
2689 warning: line 4: should x be a metavariable?
2690 warning: line 4: should y be a metavariable?
2693 +++ /tmp/cocci-output-25045-4b4c4f-hd.c
2697 -int f(int x, int y) { return x; }
2698 +int f(int x) { return x; }
2702 +++ /tmp/cocci-output-25045-afa4f5-headers.c
2703 @@ -10,12 +10,12 @@ static int empeg_write (struct usb_seria
2707 -static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs)
2708 +static void empeg_write_bulk_callback(struct urb *urb)
2713 -static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs)
2714 +static void empeg_read_bulk_callback(struct urb *urb)
2716 usb_fill_bulk_urb(empeg_read_bulk_callback);
2721 +++ /tmp/cocci-output-25045-231a63-hex.c
2729 +++ /tmp/cocci-output-25045-001d8b-hil1.c
2731 { HILSE_FUNC, { func: &funct }, funct_arg, zero_rc },
2738 exn while in timeout_function
2740 exn while in timeout_function
2743 --- tests/idcon_python.c
2744 +++ /tmp/cocci-output-25045-7d8e97-idcon_python.c
2753 File "<string>", line 5
2756 SyntaxError: Missing parentheses in call to 'print'
2760 +++ /tmp/cocci-output-25045-fe553c-idstr.c
2763 - printf("arena 0x%08x, numfree = %d\n", (unsigned)dt, dt->numfree);
2764 + printf("y", (unsigned)dt, dt->numfree);
2769 +++ /tmp/cocci-output-25045-54a3d5-if.c
2803 if (x == NULL || y == 2) {
2811 +++ /tmp/cocci-output-25045-b1ca79-ifadd.c
2812 @@ -3,6 +3,7 @@ int main() {
2821 warning: line 13: should ret be a metavariable?
2822 warning: rule starting on line 1: metavariable E not used in the - or context code
2826 +++ /tmp/cocci-output-25045-6ee09e-ifd.c
2844 +++ /tmp/cocci-output-25045-6ae124-ifdef1.c
2846 #include <asm/thread_info.h>
2847 #include <asm/memory.h>
2848 +#ifdef CONFIG_NKERNEL
2849 +#include <asm/nk/f_nk.h>
2851 #include <asm/mach/time.h>
2857 +++ /tmp/cocci-output-25045-c834b5-ifdef2.c
2859 #include <asm/thread_info.h>
2860 #include <asm/memory.h>
2861 #include <asm/mach/time.h>
2862 +#ifdef CONFIG_NKERNEL
2863 +#include <nk/nkern.h>
2864 +#include <asm/nkern.h>
2865 +unsigned long maxsize = 0;
2873 +++ /tmp/cocci-output-25045-43e7dd-ifdef3.c
2875 #include <asm/memory.h>
2876 #include <asm/mach/time.h>
2878 +#ifdef CONFIG_NKERNEL
2880 +#define CONFIG_NKERNEL_NO_SHARED_IRQ // use local (native) mask/unmask
2881 +#undef CONFIG_NKERNEL_DEBUG_IRQ
2883 +static inline void nop(void)
2891 warning: line 9: should desc be a metavariable?
2892 warning: line 9: should irq_desc be a metavariable?
2895 +++ /tmp/cocci-output-25045-fae824-ifdef4.c
2899 for (irq = 0; irq < IRQS; irq++) {
2901 +#ifdef CONFIG_NKERNEL
2902 + if (irq < IRQ_LIMIT)
2911 +++ /tmp/cocci-output-25045-502612-ifdef5.c
2912 @@ -11,3 +11,11 @@ void init_IRQ(void)
2916 +#ifdef CONFIG_NKERNEL
2917 +#ifndef TIMER_32K_SYNCHRONIZED
2918 +#define TIMER_32K_SYNCHRONIZED 0xffffffff
2920 +unsigned long nk_vtick_read_stamp(void)
2922 + return omap_readl(TIMER_32K_SYNCHRONIZED);
2927 +++ /tmp/cocci-output-25045-82a935-ifdef6.c
2929 #include <asm/thread_info.h>
2930 #include <asm/memory.h>
2931 +#ifdef CONFIG_NKERNEL
2932 +#define foo(x) f(x)
2934 #include <asm/mach/time.h>
2940 +++ /tmp/cocci-output-25045-c6cabb-ifdef6a.c
2942 #include <asm/thread_info.h>
2943 +#ifdef CONFIG_NKERNEL
2944 +#define foo(x) f(x)
2946 #include <asm/memory.h>
2947 #include <asm/mach/time.h>
2951 --- tests/ifdefmeta.c
2952 +++ /tmp/cocci-output-25045-dc62fe-ifdefmeta.c
2957 -// platform a stuff
2962 -/* platform b stuff */
2968 -// platform a stuff
2973 -/* platform b stuff */
3006 @@ -41,9 +45,6 @@ int other() {
3010 - buf = alloca(3+5+2);
3015 + buf = malloc(3 + 5 + 2);
3016 + buf = malloc(3 + 5 + 2);
3020 --- tests/ifdefmeta1.c
3021 +++ /tmp/cocci-output-25045-8d04ec-ifdefmeta1.c
3026 -// platform a stuff
3035 -/* platform b stuff */
3042 --- tests/ifdefmeta2.c
3043 +++ /tmp/cocci-output-25045-9fdfc2-ifdefmeta2.c
3059 --- tests/ifdefmeta3.c
3060 +++ /tmp/cocci-output-25045-28e8bb-ifdefmeta3.c
3077 +++ /tmp/cocci-output-25045-828aad-ifend.c
3078 @@ -3,5 +3,3 @@ static int vortex_debug = VORTEX_DEBUG;
3080 static int vortex_debug = 1;
3083 -#include <linux/config.h>
3087 +++ /tmp/cocci-output-25045-687e76-ifgoto.c
3101 +++ /tmp/cocci-output-25045-adde81-ifields.c
3103 typedef struct tag_obj {
3106 - const IFaceVtbl *lpVtbl;
3107 + IFace IFace_iface;
3112 static struct IFaceImpl obj = {
3124 +++ /tmp/cocci-output-25045-2c3792-ifif.c
3141 --- tests/ifreturn.c
3142 +++ /tmp/cocci-output-25045-f49ed9-ifreturn.c
3203 --- tests/ifreturn3.c
3204 +++ /tmp/cocci-output-25045-1e0289-ifreturn3.c
3205 @@ -3,7 +3,10 @@ int GetExitCode (int iFlag_Code)
3206 if(iFlag_Code==OK) {
3216 @@ -11,7 +14,9 @@ int GetExitCode (int iFlag_Code)
3218 if(iFlag_Code==OK) {
3229 --- tests/ifreturn4.c
3230 +++ /tmp/cocci-output-25045-50439a-ifreturn4.c
3231 @@ -2,10 +2,16 @@ int GetExitCode (int iFlag_Code)
3233 if(iFlag_Code==OK) {
3235 - } else if(iFlag_Code==WARNING) {
3240 + if(iFlag_Code==WARNING) {
3253 --- tests/ifreturn6.c
3254 +++ /tmp/cocci-output-25045-0037bc-ifreturn6.c
3255 @@ -3,7 +3,8 @@ int main () {
3268 +++ /tmp/cocci-output-25045-c51ff8-ifzer.c
3269 @@ -3,6 +3,5 @@ int main() {
3270 and have lived on another thread's stack; that stack may have become
3271 unmapped meanwhile (CONFIG_DEBUG_PAGEALLOC). */
3279 +++ /tmp/cocci-output-25045-8ddc49-ifzz.c
3280 @@ -2,9 +2,9 @@ if 0
3295 +++ /tmp/cocci-output-25045-0a6dfa-inc.c
3304 +++ /tmp/cocci-output-25045-668eee-incl.c
3306 +#include "before.h"
3307 #include <linux/foo.h>
3308 #include <asm/semaphore.h>
3309 #include <linux/foo2.h>
3312 #include <linux/bar.h>
3317 +++ /tmp/cocci-output-25045-e590c8-incl2.c
3319 +#include "beginning.h"
3320 #include <linux/foo.h>
3321 #include <linux/foo.h>
3322 #include "linux/foo.h"
3325 --- tests/inclifdef.c
3326 +++ /tmp/cocci-output-25045-9f3a42-inclifdef.c
3328 #include <linux/foo.h>
3329 +#include <linux/mutex.h>
3331 #include <linux/bar.h>
3336 +++ /tmp/cocci-output-25045-f5b090-include.c
3341 -#include <devfs_kernel.h>
3342 -#include <devfs_kernel.h>
3346 incompatible_value.res
3350 +++ /tmp/cocci-output-25045-e1b230-incpos.c
3364 +++ /tmp/cocci-output-25045-1e5abc-incpos1.c
3372 keeping second hdr 1 because of 2
3376 --- tests/inherited.c
3377 +++ /tmp/cocci-output-25045-caf85a-inherited.c
3378 @@ -6,5 +6,5 @@ void main(int i) {
3387 --- tests/inherited_ver1.c
3388 +++ /tmp/cocci-output-25045-e7f81c-inherited_ver1.c
3389 @@ -3,8 +3,8 @@ void main(int i) {
3404 +++ /tmp/cocci-output-25045-2ca683-inhmet.c
3413 +++ /tmp/cocci-output-25045-8d3ca6-inhpos.c
3419 warning: line 5: should var be a metavariable?
3421 --- tests/initializer.c
3422 +++ /tmp/cocci-output-25045-64ffb9-initializer.c
3431 initializer_many_fields.res
3432 warning: line 4: should x be a metavariable?
3434 warning: line 4: should x be a metavariable?
3437 +++ /tmp/cocci-output-25045-b6c4f6-inline.c
3439 -inline void foo(int x) { return; }
3444 +++ /tmp/cocci-output-25045-00a74b-insdef.c
3450 --- tests/int2bool-local.c
3451 +++ /tmp/cocci-output-25045-53cd36-int2bool-local.c
3464 @@ -31,8 +32,9 @@ int nxny3() {
3476 @@ -49,11 +51,13 @@ int nxny5() {
3496 --- tests/introbrace.c
3497 +++ /tmp/cocci-output-25045-ad71eb-introbrace.c
3502 rc = request_threaded_irq(a,
3505 + rc = compat_request_threaded_irq(12);
3508 rc = request_threaded_irq(a,
3510 + rc = compat_request_threaded_irq(12);
3516 +++ /tmp/cocci-output-25045-fa2415-invert.c
3525 +++ /tmp/cocci-output-25045-829670-ip.c
3526 @@ -2,10 +2,18 @@ void GetInfoDestTV(short sNoFo)
3530 - else if(sNoFo == 2)
3532 - else if(sNoFo == 2)
3554 +++ /tmp/cocci-output-25045-e55314-ip2.c
3556 void GetInfoDestTV(short sNoFo)
3562 - else if(sNoFo == 2)
3564 + else if(sNoFo == 2) {
3567 - else if(sNoFo == 2)
3569 + else if(sNoFo == 2) {
3578 --- tests/isococci.c
3579 +++ /tmp/cocci-output-25045-45225c-isococci.c
3584 - if(x > 0) return x;
3588 warning: r: metavariable p1 not used in the - or context code
3589 warning: r: metavariable E not used in the - or context code
3592 +++ /tmp/cocci-output-25045-00e942-isoif.c
3595 - if (x == NULL) one(); else two();
3596 - if (x != NULL) three(); else four();
3601 +++ /tmp/cocci-output-25045-777fba-isotest.c
3613 --- tests/isotest2.c
3614 +++ /tmp/cocci-output-25045-e26db3-isotest2.c
3624 exn while in timeout_function
3625 iteration_after_merge.res
3626 exn while in timeout_function
3629 --- tests/iterator.c
3630 +++ /tmp/cocci-output-25045-9549c0-iterator.c
3631 @@ -2,9 +2,5 @@ void pcibios_report_status(u_int status_
3633 struct list_head *l;
3635 - list_for_each(l, &pci_root_buses) {
3636 - struct pci_bus *bus = pci_bus_b(l);
3638 - pcibios_bus_report_status(bus, status_mask, warn);
3644 --- tests/iterprint.c
3645 +++ /tmp/cocci-output-25045-84d863-iterprint.c
3648 - for(bit = 0; bit < size; bit++) {
3649 - if (test_bit(bit, bitmap))
3652 + for_each_set_bit(bit, bitmap, size)
3656 exn while in timeout_function
3660 +++ /tmp/cocci-output-25045-804f10-julia10.c
3672 +++ /tmp/cocci-output-25045-7ff229-julia7.c
3676 - if (x) {bar(); after(); return 0;}
3678 + if (x) {after(); return 0;}
3684 --- tests/justremove.c
3685 +++ /tmp/cocci-output-25045-de0166-justremove.c
3696 - if (b()) continues;
3706 --- tests/keep_comma.c
3707 +++ /tmp/cocci-output-25045-923b6e-keep_comma.c
3712 snd_assert(!atomic_read(&substream->runtime->mmap_count), );
3717 +++ /tmp/cocci-output-25045-bc4e72-km.c
3720 - int *data = kmalloc(element->string.length + 1, GFP_KERNEL);
3721 + int *data = kzalloc(element->string.length + 1, GFP_KERNEL);
3723 - memset(data, 0, element->string.length + 1);
3728 +++ /tmp/cocci-output-25045-32553e-kmalloc.c
3732 - struct foo *x = kmalloc(sizeof(struct foo),GPF_KERNEL);
3733 + struct foo *x = kzalloc(sizeof(struct foo), GPF_KERNEL);
3734 if (!x) return -ENOMEM;
3735 - y = kmalloc(sizeof(struct bar),GPF_KERNEL);
3736 + y = kzalloc(sizeof(struct bar), GPF_KERNEL);
3737 if (!y) return -ENOMEM;
3738 - memset(x,0,sizeof(struct foo));
3739 - memset(y,0,sizeof(struct bar));
3742 warning: r: metavariable x1 not used in the - or context code
3743 warning: r: metavariable S not used in the - or context code
3746 +++ /tmp/cocci-output-25045-8ed759-kmc.c
3747 @@ -10,5 +10,4 @@ dmabounce_register_dev(struct device *de
3750 kfreea(device_info);
3756 +++ /tmp/cocci-output-25045-619787-kr.c
3757 @@ -3,5 +3,4 @@ int a(x)
3764 warning: rule starting on line 1: metavariable T2 not used in the - or context code
3765 warning: rule starting on line 1: metavariable T not used in the - or context code
3768 +++ /tmp/cocci-output-25045-5582de-ktype.c
3769 @@ -3,8 +3,6 @@ typedef struct r1_private_data_s conf_t;
3770 static int run(mddev_t *mddev)
3773 - conf = kmalloc(sizeof(conf_t), GFP_KERNEL);
3774 + conf = kzalloc(sizeof(conf_t), GFP_KERNEL);
3777 - memset(conf, 0, sizeof(*conf));
3780 warning: r: metavariable T2 not used in the - or context code
3781 warning: r: metavariable T not used in the - or context code
3784 +++ /tmp/cocci-output-25045-d19184-ktype2.c
3785 @@ -3,11 +3,8 @@ typedef struct r1_private_data_s conf_t;
3786 static int run(mddev_t *mddev)
3789 - conf = kmalloc(sizeof(conf_t), GFP_KERNEL);
3790 + conf = kzalloc(sizeof(conf_t), GFP_KERNEL);
3792 - memset(conf, 0, sizeof(*conf));
3796 - memset(conf, 0, sizeof(*conf));
3798 labels_metastatement.res
3800 --- tests/labels_metastatement.c
3801 +++ /tmp/cocci-output-25045-75ff30-labels_metastatement.c
3808 - } // we don't want that it add both foo on the } and on the endif
3817 + foo(); // we don't want that it add both foo on the } and on the endif
3818 // (note: but need correct endif accrochage)
3821 labels_metastatement_ver1.res
3823 --- tests/labels_metastatement_ver1.c
3824 +++ /tmp/cocci-output-25045-abe60b-labels_metastatement_ver1.c
3839 +++ /tmp/cocci-output-25045-66b38f-lid.c
3848 line_before_last.res
3850 --- tests/line_before_last.c
3851 +++ /tmp/cocci-output-25045-d67186-line_before_last.c
3871 warning: line 5: should a be a metavariable?
3872 warning: line 12: should a be a metavariable?
3873 warning: line 13: should b be a metavariable?
3874 warning: line 21: should a be a metavariable?
3875 warning: line 23: should b be a metavariable?
3876 warning: line 31: should a be a metavariable?
3877 warning: line 38: should a be a metavariable?
3878 warning: line 39: should b be a metavariable?
3879 warning: line 47: should a be a metavariable?
3880 warning: line 49: should b be a metavariable?
3881 warning: line 56: should f be a metavariable?
3882 warning: line 57: should a be a metavariable?
3883 warning: line 63: should g be a metavariable?
3884 warning: line 64: should a be a metavariable?
3885 warning: line 65: should b be a metavariable?
3886 warning: line 71: should h be a metavariable?
3887 warning: line 73: should a be a metavariable?
3888 warning: line 75: should b be a metavariable?
3889 warning: line 82: should i be a metavariable?
3890 warning: line 84: should a be a metavariable?
3891 warning: line 86: should b be a metavariable?
3893 --- tests/list_test.c
3894 +++ /tmp/cocci-output-25045-72d8a3-list_test.c
3917 -int f(int a) { return; }
3918 +int f() { return; }
3920 -int g(int a,int b) { return; }
3921 +int g(int b) { return; }
3923 -int h(int x, int a, int y, int b, int z) { return; }
3924 +int h(int x, int y, int b, int z) { return; }
3926 -int h(int a, int y, int b, int z) { return; }
3927 +int h(int y, int b, int z) { return; }
3929 -int h(int x, int a, int b, int z) { return; }
3930 +int h(int x, int b, int z) { return; }
3932 -int h(int x, int a, int y, int b) { return; }
3933 +int h(int x, int y, int b) { return; }
3935 -int h(int a, int b, int z) { return; }
3936 +int h(int b, int z) { return; }
3938 -int h(int x, int a, int b) { return; }
3939 +int h(int x, int b) { return; }
3941 -int h(int a, int b) { return; }
3942 +int h(int b) { return; }
3953 -int h[] = { x, a, y, b, z };
3954 +int h[] = { x, y, b, z };
3956 -int h[] = { a, y, b, z, };
3957 +int h[] = { y, b, z, };
3959 -int h[] = { x, a, b, z };
3960 +int h[] = { x, b, z };
3962 -int h[] = { x, a, y, b, };
3963 +int h[] = { x, y, b, };
3965 -int h[] = { a, b, z };
3966 +int h[] = { b, z };
3968 -int h[] = { x, a, b, };
3969 +int h[] = { x, b, };
3971 -int h[] = { a, b };
3974 int i[] = { x, a, y, b, z };
3976 @@ -57,33 +55,30 @@ int i[] = { a, y, b, z, };
3978 int i[] = { x, a, b, z };
3980 -int i[] = { x, a, y, b, };
3981 +int i[] = { x, a, y, };
3983 int i[] = { a, b, z };
3985 -int i[] = { x, a, b, };
3986 +int i[] = { x, a, };
3988 -int i[] = { a, b };
4014 @@ -91,63 +86,46 @@ struct h {
4053 -enum h { x, a, y, b, z, };
4054 -enum h { a, y, b, z };
4055 -enum h { x, a, b, z, };
4056 -enum h { x, a, y, b };
4057 -enum h { a, b, z, };
4058 -enum h { x, a, b };
4060 +enum h { x, y, b, z, };
4061 +enum h { y, b, z };
4062 +enum h { x, b, z, };
4063 +enum h { x, y, b };
4068 enum i { x, a, y, b, z, };
4069 enum i { a, y, b, z };
4070 enum i { x, a, b, z, };
4071 -enum i { x, a, y, b, };
4072 +enum i { x, a, y, };
4073 enum i { a, b, z, };
4074 -enum i { x, a, b, };
4081 -#define h(x,a,y,b,z) 3
4082 -#define h(a,y,b,z) 3
4083 -#define h(x,a,b,z) 3
4084 -#define h(x,a,y,b) 3
4093 +++ /tmp/cocci-output-25045-d5a3e5-local.c
4095 -int f(int xx, int yy) { return 0; }
4096 +int f(int a, int b, int yy) { return 0; }
4099 --- tests/localglobal.c
4100 +++ /tmp/cocci-output-25045-980f34-localglobal.c
4101 @@ -3,5 +3,5 @@ int a;
4106 + return global + local + local;
4111 +++ /tmp/cocci-output-25045-1095bd-localid.c
4112 @@ -2,8 +2,7 @@ int c;
4126 +++ /tmp/cocci-output-25045-fbe696-log.c
4127 @@ -8,5 +8,4 @@ static struct var_t vars[] = {
4136 +++ /tmp/cocci-output-25045-94a768-long.c
4139 - hello_world("this is a very long sentence. this is a very long sentence. ",
4140 - "I don't know how coccinelle will treat this!");
4141 + hello_you("this is a very long sentence. this is a very long sentence. ",
4142 + "I don't know how coccinelle will treat this!");
4146 --- tests/longconst.c
4147 +++ /tmp/cocci-output-25045-6e7c14-longconst.c
4148 @@ -2,18 +2,18 @@ long function1()
4157 - a = 4294967296 << b;
4159 - a = 4294967295 << b;
4160 - a = 0x7fffffff << b;
4165 + a = f(1l, "long");
4166 + a = f(1u, "unsigned");
4167 + a = f(65536l, "long");
4168 + a = f(65536u, "unsigned");
4169 + a = f(65536, "int");
4170 + a = f(4294967296, "int");
4171 + a = f(65535, "int");
4172 + a = f(4294967295, "int");
4173 + a = f(0x7fffffff, "int");
4174 + a = f(0x1fl, "long");
4175 + a = f(0x1fu, "unsigned");
4176 + a = f(0x1FL, "long");
4177 + a = f(0x1FU, "unsigned");
4181 warning: line 5: should a be a metavariable?
4183 --- tests/longline2.c
4184 +++ /tmp/cocci-output-25045-54cc92-longline2.c
4187 - f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,a,shdkjsdsdhkjsa,x,y,z);
4188 - f(sdhfkjdkdsahksadsdhjkdsa, sahdjshdkjsahdkjhsakjdsh, a, shdkjsdsdhkjsa, x, y, z);
4189 + f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,a,
4190 + 1111111111111111111111111111111111111, 111111111111111111111111, 111,
4191 + shdkjsdsdhkjsa,x,y,z);
4192 + f(sdhfkjdkdsahksadsdhjkdsa, sahdjshdkjsahdkjhsakjdsh, a,
4193 + 1111111111111111111111111111111111111, 111111111111111111111111, 111,
4194 + shdkjsdsdhkjsa, x, y, z);
4195 f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa);
4196 - f(a,sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa);
4197 - f(a,sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa,
4198 + f(a,1111111111111111111111111111111111111, 111111111111111111111111, 111,
4199 + sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,
4201 + f(a,1111111111111111111111111111111111111, 111111111111111111111111, 111,
4202 + sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,
4204 sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa);
4208 --- tests/longlong.c
4209 +++ /tmp/cocci-output-25045-3b37d1-longlong.c
4221 --- tests/longlongint.c
4222 +++ /tmp/cocci-output-25045-7a3acc-longlongint.c
4227 - unsigned long long int a;
4229 - unsigned long long m;
4236 +++ /tmp/cocci-output-25045-eb7978-loop.c
4240 while (1) { x : 15; }
4244 warning: line 4: should x be a metavariable?
4247 +++ /tmp/cocci-output-25045-4c548e-lvalue.c
4258 +++ /tmp/cocci-output-25045-274b97-macro.c
4260 -#define SC_FCMND(fcmnd) ((Scsi_Cmnd *)((long)fcmnd - (long)&(((Scsi_Cmnd *)0)->SCp)))
4261 +#define SC_FCMND(fcmnd) ((struct scsi_cmnd *)((long)fcmnd - (long)&(((struct scsi_cmnd *)0)->SCp)))
4264 - return ((Scsi_Cmnd *)((long)fcmnd - (long)&(((Scsi_Cmnd *)0)->SCp)));
4265 + return ((struct scsi_cmnd *)((long)fcmnd - (long)&(((struct scsi_cmnd *)0)->SCp)));
4269 --- tests/macro_int16.c
4270 +++ /tmp/cocci-output-25045-d167b2-macro_int16.c
4281 --- tests/match_init.c
4282 +++ /tmp/cocci-output-25045-7da0de-match_init.c
4284 int probably_works () {
4290 int does_it_work () {
4296 int should_work () {
4304 --- tests/match_no_meta.c
4305 +++ /tmp/cocci-output-25045-0ddd00-match_no_meta.c
4306 @@ -2,6 +2,4 @@ void main(int i)
4314 warning: line 6: should i be a metavariable?
4315 warning: line 14: should i be a metavariable?
4318 +++ /tmp/cocci-output-25045-e6cc16-max.c
4321 - if (x < 25) return i;
4322 + if (x < 25) return 3;
4327 +++ /tmp/cocci-output-25045-39396c-md1.c
4348 +++ /tmp/cocci-output-25045-31218a-md2.c
4371 +++ /tmp/cocci-output-25045-13d20b-md3.c
4382 +++ /tmp/cocci-output-25045-ff6186-mdadd.c
4393 +++ /tmp/cocci-output-25045-cee302-mdec.c
4409 - int a, *b, *c, *d;
4410 - int *a, *b, *c, d;
4411 - int *a, *b, c, *d;
4412 - int *a, b, *c, *d;
4414 - int *a, b, *c, *d;
4415 - int a, *b, *c, *d;
4416 - int *a, *b, c, *d;
4443 warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code
4444 exn while in timeout_function
4446 exn while in timeout_function
4448 exn while in timeout_function
4451 --- tests/mdeclrep.c
4452 +++ /tmp/cocci-output-25045-87c24a-mdeclrep.c
4484 +++ /tmp/cocci-output-25045-774178-memory.c
4487 int __queue_add(Queue_t *queue, Scsi_Cmnd *SCpnt, int head)
4489 - if (BAD_MAGIC(1,12))
4491 + BUG_ON(BAD_MAGIC(1, 12));
4493 merge_after_iteration.res
4494 exn while in timeout_function
4497 warning: line 42: x, previously declared as a metavariable, is used as an identifier
4498 warning: line 48: should y be a metavariable?
4500 --- tests/metaline.c
4501 +++ /tmp/cocci-output-25045-d289a9-metaline.c
4511 + while (12) f(4+3);
4519 +++ /tmp/cocci-output-25045-55b7f4-metaops.c
4520 @@ -2,24 +2,24 @@ int p1() {
4563 @@ -28,17 +28,17 @@ int p2() {
4594 --- tests/metaops0.c
4595 +++ /tmp/cocci-output-25045-a6971d-metaops0.c
4643 --- tests/metaruleelem.c
4644 +++ /tmp/cocci-output-25045-5eca6c-metaruleelem.c
4656 --- tests/metastatement2.c
4657 +++ /tmp/cocci-output-25045-6d238c-metastatement2.c
4662 - { replace(); replace(); }
4665 metastatement_for.res
4667 --- tests/metastatement_for.c
4668 +++ /tmp/cocci-output-25045-c725b4-metastatement_for.c
4673 - for (i = 0; i < 10; i++) {
4679 metastatement_if.res
4681 --- tests/metastatement_if.c
4682 +++ /tmp/cocci-output-25045-77235b-metastatement_if.c
4683 @@ -5,8 +5,4 @@ void main(void)
4695 +++ /tmp/cocci-output-25045-145f04-mincom.c
4698 - if (rc == LS_NONE_FIRST_DE)
4699 + if (rc == LS_NONE_FIRST_DE) {
4700 /* It is not "ls -{a}l" operation, no need statahead for it. */
4701 - GOTO(out, rc = -EAGAIN);
4709 +++ /tmp/cocci-output-25045-928510-minenum.c
4711 -enum h { x, a, z, q, b };
4712 +enum h { x, qq, q, b };
4715 --- tests/minenum1.c
4716 +++ /tmp/cocci-output-25045-1d752a-minenum1.c
4724 +++ /tmp/cocci-output-25045-fc123d-minfn.c
4726 int main () { return first; }
4728 -int f () { return second; }
4729 -int f () { return second; }
4731 int main () { return third; }
4738 int main () { return fifth; }
4741 --- tests/mini_null_ref.c
4742 +++ /tmp/cocci-output-25045-4b81b9-mini_null_ref.c
4743 @@ -2,11 +2,12 @@ static int __devinit w90p910_keypad_prob
4745 const struct w90p910_keypad_platform_data *pdata =
4746 pdev->dev.platform_data;
4747 - const struct matrix_keymap_data *keymap_data = pdata->keymap_data;
4748 + const struct matrix_keymap_data *keymap_data;
4750 dev_err(&pdev->dev, "no platform data defined\n");
4753 + keymap_data = pdata->keymap_data;
4759 --- tests/miniswap.c
4760 +++ /tmp/cocci-output-25045-a27e79-miniswap.c
4762 static void swap_refcount_rec(void *a, void *b, int size)
4764 - struct ocfs2_refcount_rec *l, tmp;
4765 + struct ocfs2_refcount_rec *l;
4770 --- tests/minstruct.c
4771 +++ /tmp/cocci-output-25045-a197d2-minstruct.c
4773 static struct i2c_client client_template = {
4774 - .name = "(unset)",
4776 + .name = "(unset)",
4779 .driver = &i2c_driver_videotext
4783 --- tests/minusdots.c
4784 +++ /tmp/cocci-output-25045-c9b49f-minusdots.c
4797 --- tests/minusdots_ver1.c
4798 +++ /tmp/cocci-output-25045-708406-minusdots_ver1.c
4807 exn while in timeout_function
4808 multi_initialize_finalize.res
4809 exn while in timeout_function
4811 warning: line 4: should ab be a metavariable?
4813 --- tests/multichars.c
4814 +++ /tmp/cocci-output-25045-b39e1b-multichars.c
4826 --- tests/multidec.c
4827 +++ /tmp/cocci-output-25045-80c14c-multidec.c
4843 --- tests/multidecl3.c
4844 +++ /tmp/cocci-output-25045-c84301-multidecl3.c
4847 - int *i, i[12], i, k, r;
4852 - int *i, i[12], i, k, r;
4867 --- tests/multipath.c
4868 +++ /tmp/cocci-output-25045-748286-multipath.c
4869 @@ -2,8 +2,8 @@ static void multipathd(struct md_thread
4872 if ((mp_bh->path = multipath_map (conf))<0) {
4873 - printk(KERN_ERR "multipath: %s: redirecting sector %llu"
4874 - " to another IO path\n",
4875 + printk("KERN_ERR %s: %s: redirecting sector %llu to another IO path\n",
4877 bdevname(bio->bi_bdev,b),
4878 (unsigned long long)bio->bi_iter.bi_sector);
4881 warning: rule starting on line 3: metavariable T not used in the - or context code
4883 --- tests/multiplus.c
4884 +++ /tmp/cocci-output-25045-af0ea0-multiplus.c
4886 -static void xm_link_timer(void *arg)
4887 +static void xm_link_timer(struct work_struct *work)
4889 struct net_device *dev = arg;
4890 struct skge_port *skge = netdev_priv(arg);
4893 --- tests/multiremove.c
4894 +++ /tmp/cocci-output-25045-072a9b-multiremove.c
4898 - if (x) { foo(); abc(); }
4900 - if (x) { bar(); abc(); }
4902 - if (x) { foo(); abc(); bar(); bar(); foo(); }
4906 --- tests/multistruct.c
4907 +++ /tmp/cocci-output-25045-d6abb6-multistruct.c
4916 --- tests/multitype.c
4917 +++ /tmp/cocci-output-25045-51ca1d-multitype.c
4918 @@ -3,5 +3,5 @@ typedef struct foo { int a; } foo_t;
4926 warning: non_delayed_fn: metavariable T not used in the - or context code
4928 --- tests/multitypedef.c
4929 +++ /tmp/cocci-output-25045-a35b38-multitypedef.c
4930 @@ -5,5 +5,5 @@ typedef struct HYSDN_CARD {
4932 ergo_inithardware(hysdn_card * card)
4934 - INIT_WORK(&card->irq_queue, ergo_irq_bh, card);
4935 + INIT_WORK(&card->irq_queue, ergo_irq_bh);
4939 --- tests/multivars.c
4940 +++ /tmp/cocci-output-25045-06af4b-multivars.c
4944 - f(1+2+v.field1,1+2+v.field1);
4945 + h(1 + 2 + v.field1);
4951 +++ /tmp/cocci-output-25045-682271-na.c
4952 @@ -4,10 +4,10 @@ void foo()
4956 - if (!i & FOO) return;
4969 --- tests/nameless.c
4970 +++ /tmp/cocci-output-25045-895875-nameless.c
4976 +typedef struct __COCCI__TMP__STRUCTNAME__ {
4980 warning: line 6: should hostno be a metavariable?
4981 warning: line 18: should xxx be a metavariable?
4984 +++ /tmp/cocci-output-25045-7f2c2a-nest.c
4986 void info_func(int i) {
4991 + 1+hostptr->host_no+hostptr->host_no;
4992 + 2+hostptr->host_no+hostptr->host_no;
4996 warning: one: metavariable S not used in the - or context code
4999 +++ /tmp/cocci-output-25045-c7fd1b-nestone.c
5002 if (x) { xxx(); return;}
5008 +++ /tmp/cocci-output-25045-134663-nestseq.c
5009 @@ -2,4 +2,5 @@ int main () {
5017 --- tests/neststruct.c
5018 +++ /tmp/cocci-output-25045-bb7930-neststruct.c
5019 @@ -8,6 +8,6 @@ struct usb_hub {
5021 static int hub_configure(struct usb_hub *hub)
5023 - hub->status = kmalloc(sizeof(*hub->status), GFP_KERNEL);
5024 + hub->status = kzalloc(sizeof(*hub->status), GFP_KERNEL);
5028 warning: line 4: should x be a metavariable?
5031 +++ /tmp/cocci-output-25045-51d717-nl.c
5042 +++ /tmp/cocci-output-25045-14d633-noa.c
5043 @@ -2,6 +2,6 @@ int main () {
5044 if (x) { a(); } else { a(); }
5049 if (x) { a(); } else { x(); }
5054 +++ /tmp/cocci-output-25045-96a8fd-nocast.c
5056 -int main (unsigned int __nocast gfp_mask, int x) {
5057 +int main (gfp_t gfp_mask, int x) {
5058 buf = kmalloc(sizeof *send_buf + buf_size, gfp_mask);
5064 +++ /tmp/cocci-output-25045-fa962f-noret.c
5067 -static xmain (int x);
5068 -inline ymain (int x);
5069 +main (int x, int q);
5070 +static xmain (int x, int q);
5071 +inline ymain (int x, int q);
5075 +main (int x, int q) {
5080 -static xmain (int y) {
5082 +static xmain (int y, int q) {
5087 -inline ymain (int y) {
5089 +inline ymain (int y, int q) {
5096 +++ /tmp/cocci-output-25045-0eb823-not.c
5113 +++ /tmp/cocci-output-25045-1bc075-notest.c
5123 warning: line 6: should true be a metavariable?
5124 warning: line 6: should false be a metavariable?
5127 +++ /tmp/cocci-output-25045-0a19ce-notnot.c
5131 - return bar ? true : false;
5137 +++ /tmp/cocci-output-25045-24c987-noty.c
5140 if (NULL == x) { return; }
5146 +++ /tmp/cocci-output-25045-425303-noty2.c
5163 warning: line 4: should x be a metavariable?
5165 --- tests/null_bool.c
5166 +++ /tmp/cocci-output-25045-2b621f-null_bool.c
5169 - if (x != NULL) return;
5170 - if (a && x != NULL && b) return;
5172 - if (a && x && b) return;
5174 + if (a && 12 && b) return;
5176 + if (a && 12 && b) return;
5182 --- tests/null_type.c
5183 +++ /tmp/cocci-output-25045-3adac3-null_type.c
5184 @@ -2,7 +2,7 @@ int main(int i) {
5195 warning: line 4: should x be a metavariable?
5196 warning: line 6: should x be a metavariable?
5198 --- tests/oddifdef.c
5199 +++ /tmp/cocci-output-25045-a021f2-oddifdef.c
5200 @@ -7,9 +7,7 @@ void one () {
5210 @@ -22,9 +20,7 @@ void two() {
5220 @@ -37,8 +33,6 @@ void three() {
5232 +++ /tmp/cocci-output-25045-806231-of.c
5234 static struct iommu_table *iommu_table_find(struct iommu_table * tbl)
5236 for (node = NULL; (node = of_find_all_nodes(node)); ) {
5240 + of_node_put(node);
5245 static struct iommu_table *iommu_table_find(struct iommu_table * tbl)
5247 for (node = NULL; (node = something(node)); ) {
5250 + of_node_put(node);
5259 +++ /tmp/cocci-output-25045-6663b7-oneline.c
5270 +++ /tmp/cocci-output-25045-9b28e1-op.c
5280 +++ /tmp/cocci-output-25045-92018a-opt.c
5285 optional_qualifier.res
5287 --- tests/optional_qualifier.c
5288 +++ /tmp/cocci-output-25045-18f6ed-optional_qualifier.c
5293 optional_storage.res
5295 --- tests/optional_storage.c
5296 +++ /tmp/cocci-output-25045-8de443-optional_storage.c
5299 +static int foo1(void)
5306 +++ /tmp/cocci-output-25045-e3bd94-orexp.c
5315 --- tests/output_init.c
5316 +++ /tmp/cocci-output-25045-0e0f38-output_init.c
5324 warning: aaa: metavariable f not used in the - or context code
5325 warning: xxx: metavariable f not used in the - or context code
5327 --- tests/overshoot.c
5328 +++ /tmp/cocci-output-25045-c22ce7-overshoot.c
5341 warning: line 9: should errp be a metavariable?
5342 warning: line 20: should errp be a metavariable?
5345 +++ /tmp/cocci-output-25045-513f2e-p1p2.c
5347 -int main(int x, Error **errp);
5348 +int __attribute__((nonnull(1))) main(int x, Error **errp);
5350 -int main(int x, int y, Error **errp);
5351 +int __attribute__((nonnull(2))) main(int x, int y, Error **errp);
5355 +++ /tmp/cocci-output-25045-15a8a0-p9.c
5357 -int f(int, int, int x) {
5358 +int f(int v0, int v1, int x) {
5364 +++ /tmp/cocci-output-25045-abadd4-pa.c
5365 @@ -4,7 +4,8 @@ char *parse_args(const char *doing,
5369 - int (*unknown)(char *param, char *val, const char *doing))
5371 + int (*unknown)(char *param, char *val, const char *doing, void *arg))
5378 +++ /tmp/cocci-output-25045-41550c-param.c
5380 -void foo() { return; }
5383 warning: line 6: should x be a metavariable?
5384 warning: line 14: should y be a metavariable?
5386 --- tests/param_end.c
5387 +++ /tmp/cocci-output-25045-8baf36-param_end.c
5389 -int one (int x) { return; }
5390 +int one () { return; }
5392 -int two (int a, int x, int b) { return; }
5393 +int two (int a, int b) { return; }
5395 -int three (int x, int a) { return; }
5396 +int three (int a) { return; }
5398 -int four (int a, int x) { return; }
5399 +int four (int a) { return; }
5401 -int yone (int y) { return; }
5402 +int yone () { return; }
5404 -int ytwo (int a, int y, int b) { return; }
5405 +int ytwo (int a, int b) { return; }
5407 -int ythree (int y, int a) { return; }
5408 +int ythree (int a) { return; }
5410 -int yfour (int a, int y) { return; }
5411 +int yfour (int a) { return; }
5414 --- tests/param_to_exp.c
5415 +++ /tmp/cocci-output-25045-cbe757-param_to_exp.c
5417 int main (int x, int y) {
5423 --- tests/param_ver1.c
5424 +++ /tmp/cocci-output-25045-20bb8a-param_ver1.c
5426 -void foo(int x) { return; }
5430 --- tests/parameters_dots.c
5431 +++ /tmp/cocci-output-25045-c3082d-parameters_dots.c
5442 --- tests/parenmac.c
5443 +++ /tmp/cocci-output-25045-7f3128-parenmac.c
5445 -#define TXSSZ(val) (val<<4)
5446 +#define TXSSZ(val) ((val)<<4)
5448 warning: rule starting on line 1: metavariable S not used in the - or context code
5451 +++ /tmp/cocci-output-25045-397152-partial.c
5453 #define CS_THIS_MODULE THIS_MODULE,
5454 #define CS_OWNER owner:
5455 -void cs46xx_null(struct pci_dev *pcidev) { return PAGE_SIZE; }
5456 +void cs46xx_null(struct pci_dev *pcidev) { return PAGE_SIZE2; }
5459 --- tests/partialmd.c
5460 +++ /tmp/cocci-output-25045-3ef4ce-partialmd.c
5468 --- tests/partialmd2.c
5469 +++ /tmp/cocci-output-25045-86b17d-partialmd2.c
5477 --- tests/partialmd3.c
5478 +++ /tmp/cocci-output-25045-f1612a-partialmd3.c
5484 pb_distribute_type.res
5485 warning: line 6: should x be a metavariable?
5487 --- tests/pb_distribute_type.c
5488 +++ /tmp/cocci-output-25045-a1b54a-pb_distribute_type.c
5508 pb_distribute_type2.res
5509 warning: line 8: should x be a metavariable?
5511 --- tests/pb_distribute_type2.c
5512 +++ /tmp/cocci-output-25045-7498b2-pb_distribute_type2.c
5532 pb_distribute_type3.res
5533 warning: line 9: should x be a metavariable?
5534 exn while in timeout_function
5535 pb_distribute_type4.res
5536 warning: line 8: should x be a metavariable?
5538 --- tests/pb_distribute_type4.c
5539 +++ /tmp/cocci-output-25045-d781f5-pb_distribute_type4.c
5560 warning: line 23: should i be a metavariable?
5562 --- tests/pb_params_iso.c
5563 +++ /tmp/cocci-output-25045-e947a1-pb_params_iso.c
5566 -int f(bool a, int i, bool b) {
5567 +int f(bool a, int i, char j, bool b) {
5571 -int f(int i, bool b) {
5572 +int f(int i, char j, bool b) {
5576 -int f(bool a, int i) {
5577 +int f(bool a, int i, char j) {
5582 +int f(int i, char j) {
5586 pb_parsing_macro.res
5588 --- tests/pb_parsing_macro.c
5589 +++ /tmp/cocci-output-25045-00fe2a-pb_parsing_macro.c
5591 #define FOO_METH_TEST(a) prefix_##a
5592 void FOO_METH_TEST(foo)(int x){
5598 --- tests/pb_tag_symbols.c
5599 +++ /tmp/cocci-output-25045-85350d-pb_tag_symbols.c
5601 static int typhoon_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
5603 - if (copy_from_user(v,arg) != 0)
5604 - return -EFAULT; else {}
5609 +++ /tmp/cocci-output-25045-d65a55-pcim.c
5612 - ctx->sensePA = pci_map_single(adapter->dev, cmd->sense_buffer,
5613 + ctx->sensePA = dma_map_single(&adapter->dev->dev,
5614 + cmd->sense_buffer,
5615 SCSI_SENSE_BUFFERSIZE,
5616 - PCI_DMA_FROMDEVICE);
5622 +++ /tmp/cocci-output-25045-e57abc-pcomma.c
5624 -int main (int x) {}
5625 +int main (char c, int x) {}
5627 -int main (int *a, int x) {}
5628 +int main (int *a, char c, int x) {}
5630 -int main (int x, int *b) {}
5631 +int main (char c, int x, int *b) {}
5633 -int main (int *a, int x, int *b) {}
5634 +int main (int *a, char c, int x, int *b) {}
5649 +++ /tmp/cocci-output-25045-c39271-plus33.c
5651 +typedef double double3x3[3][3];
5656 +++ /tmp/cocci-output-25045-85b5e1-pmac.c
5658 #include <asm/feature.h>
5661 -#define chip_t pmac_t
5663 static int snd_pmac_register_sleep_notifier(pmac_t *chip);
5664 static int snd_pmac_unregister_sleep_notifier(pmac_t *chip);
5666 exn while in timeout_function
5670 +++ /tmp/cocci-output-25045-a0bcc4-posiso.c
5674 - if (x == NULL) x = a; else x = b;
5675 if (!x) x = a; else x = b;
5676 if (x == a) x = a; else x = b;
5677 - if (x == NULL) x = a;
5683 --- tests/positionc.c
5684 +++ /tmp/cocci-output-25045-9f4a25-positionc.c
5685 @@ -2,8 +2,6 @@ int main () {
5686 if (foo(6,7)) x = ret; else x = ret;
5687 if (foo(6,7)) x = ret; else x = ret;
5688 if (foo(7,7)) x = ret; else x = ret;
5689 - if (bar(6,7)) x = ret; else x = ret;
5690 - if (bar(6,7)) x = ret; else x = ret;
5691 if (bar(7,7)) x = ret; else x = ret;
5697 +++ /tmp/cocci-output-25045-2028ea-post.c
5700 - f(3, foo + bar, 5);
5703 - h(3, some + thing, 5);
5709 --- tests/pragmatest1.c
5710 +++ /tmp/cocci-output-25045-f83d85-pragmatest1.c
5714 -#pragma xxx (a, b, c)
5716 warning: line 6: should link be a metavariable?
5717 warning: rule starting on line 1: metavariable E not used in the - or context code
5719 --- tests/print_return.c
5720 +++ /tmp/cocci-output-25045-f034b7-print_return.c
5722 int config(struct pcmcia_device *link) {
5730 +++ /tmp/cocci-output-25045-8e70e4-proto.c
5732 static void bch_l2l1(struct PStack *st, int pr, void *arg);
5733 -static void bch_sched_event(struct BCState *bcs, int event);
5734 static void bch_empty_fifo(struct BCState *bcs, int count);
5737 -bch_sched_event(struct BCState *bcs, int event)
5739 - bcs->event |= 1 << event;
5740 - schedule_work(&bcs->work);
5745 +++ /tmp/cocci-output-25045-329d4d-proto2.c
5747 static void bch_l2l1(struct PStack *st, int pr, void *arg);
5748 -static void bch_sched_event(struct BCState *bcs, int event);
5749 +static void bch_sched_event(int event);
5750 static void bch_empty_fifo(struct BCState *bcs, int count);
5753 -bch_sched_event(struct BCState *bcs, int event)
5755 +bch_sched_event(int event) {
5756 bcs->event |= 1 << event;
5757 schedule_work(&bcs->work);
5761 --- tests/proto_ver1.c
5762 +++ /tmp/cocci-output-25045-8759c0-proto_ver1.c
5764 void bch_l2l1(struct PStack *st, int pr, void *arg);
5765 -void bch_sched_event(struct BCState *bcs, int event);
5766 void bch_empty_fifo(struct BCState *bcs, int count);
5769 -bch_sched_event(struct BCState *bcs, int event)
5771 - bcs->event |= 1 << event;
5772 - schedule_work(&bcs->work);
5776 --- tests/proto_ver2.c
5777 +++ /tmp/cocci-output-25045-7306c6-proto_ver2.c
5778 @@ -46,7 +46,6 @@ static inline void dch_int(struct IsdnCa
5779 static void __devinit dch_setstack(struct PStack *st, struct IsdnCardState *cs);
5780 static void __devinit dch_init(struct IsdnCardState *cs);
5781 static void bch_l2l1(struct PStack *st, int pr, void *arg);
5782 -static void bch_sched_event(struct BCState *bcs, int event);
5783 static void bch_empty_fifo(struct BCState *bcs, int count);
5784 static void bch_fill_fifo(struct BCState *bcs);
5785 static void bch_int(struct IsdnCardState *cs, u_char hscx);
5786 @@ -584,16 +583,6 @@ bch_l2l1(struct PStack *st, int pr, void
5789 //----------------------------------------------------------
5790 -// proceed with bottom half handler BChannel_bh()
5791 -//----------------------------------------------------------
5793 -bch_sched_event(struct BCState *bcs, int event)
5795 - bcs->event |= 1 << event;
5796 - schedule_work(&bcs->work);
5799 -//----------------------------------------------------------
5800 // Read B channel fifo to receive buffer
5801 //----------------------------------------------------------
5805 --- tests/protoassert.c
5806 +++ /tmp/cocci-output-25045-6891aa-protoassert.c
5808 static unsigned mii_rd(ioaddr_t ioaddr, u_char phyaddr, u_char phyreg);
5810 +static struct pcmcia_driver ZZZ_driver = {
5811 + .owner = THIS_MODULE,
5818 warning: line 14: should x be a metavariable?
5819 warning: line 16: should x be a metavariable?
5823 +++ /tmp/cocci-output-25045-dfd7f3-ptrar.c
5837 python_iteration.res
5838 1 pending new file instances
5839 0 pending original file instances
5842 warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code
5843 (ONCE) already tagged but only removed, so safe
5845 --- tests/python_mdecl.c
5846 +++ /tmp/cocci-output-25045-cc76ab-python_mdecl.c
5848 -int one () { if (c < 0) return 12; return x < 0; }
5850 int one () { return x < 0; }
5851 int one () { return rvw; }
5852 int two () { if (c < 0) return 21; return y; }
5853 -int one () { int c; if (c) return 12; return x < 0; }
5856 --- tests/python_mdeclp.c
5857 +++ /tmp/cocci-output-25045-32ef52-python_mdeclp.c
5859 -int one() { return 1; }
5861 int two() { return 1; }
5864 --- tests/python_poscon.c
5865 +++ /tmp/cocci-output-25045-1a64c8-python_poscon.c
5866 @@ -2,8 +2,8 @@ int main () {
5881 --- tests/qualifier.c
5882 +++ /tmp/cocci-output-25045-6851ed-qualifier.c
5884 int *foo(const int *i)
5887 + return (survived_r1) i;
5897 @@ -16,15 +16,15 @@ struct bar {
5898 int *baz(const struct bar *b)
5901 - return (int *)&b->i;
5902 + return (survived_r1)&b->i;
5904 - return (int *)&b->j[0];
5905 + return (survived_r1)&b->j[0];
5908 int *baz2(struct bar *b)
5911 - return (int *)&b->i;
5914 - return (int *)&b->j[0];
5920 +++ /tmp/cocci-output-25045-be0e62-range.c
5942 +++ /tmp/cocci-output-25045-69cd93-rcu3.c
5943 @@ -3,6 +3,6 @@ static struct mtd_chip_driver *get_mtd_c
5944 struct list_head *pos;
5945 struct mtd_chip_driver *this;
5947 - this = list_entry(pos, typeof(*this), list);
5948 - this = list_entry(pos, struct foo, list);
5949 + this = list_entry(_X(pos), typeof(*this), list);
5950 + this = list_entry(_X(pos), struct foo, list);
5955 +++ /tmp/cocci-output-25045-fae487-regexp.c
5960 +int foo_begins_by_foo;
5961 +int foo_ends_by_foo;
5962 +int foo_contains_foo;
5965 +int bar_doesn_t_contain_foo;
5968 +int foobar_begins_by_foo;
5969 +int foobar_contains_foo;
5970 +int foobar_is_an_id;
5972 +int barfoobar_contains_foo;
5973 +int barfoobar_is_an_id;
5975 +int barfoo_ends_by_foo;
5976 +int barfoo_contains_foo;
5977 +int barfoo_is_an_id;
5983 +++ /tmp/cocci-output-25045-46e6ed-regexp2.c
5988 +int t0_equals_cst_that_begins_by_FOO;
5989 +int t0_equals_cst_that_ends_by_FOO;
5990 +int t0_equals_cst_that_contains_FOO;
5991 +int t0_is_constant;
5993 +int t1_equals_cst_that_doesn_t_contain_FOO;
5994 +int t1_is_constant;
5996 +int t2_equals_cst_that_begins_by_FOO;
5997 +int t2_equals_cst_that_contains_FOO;
5998 +int t2_is_constant;
6000 +int t3_equals_cst_that_contains_FOO;
6001 +int t3_is_constant;
6003 +int t4_equals_cst_that_ends_by_FOO;
6004 +int t4_equals_cst_that_contains_FOO;
6005 +int t4_is_constant;
6011 +++ /tmp/cocci-output-25045-be44b6-regexp3.c
6016 +char *t0_equals_cst_that_begins_by_FOO;
6017 +char *t0_equals_cst_that_ends_by_FOO;
6018 +char *t0_equals_cst_that_contains_FOO;
6019 +char *t0_is_constant;
6021 +char *t1_equals_cst_that_doesn_t_contain_FOO;
6022 +char *t1_is_constant;
6023 char *t2 = "FOOBAR";
6024 +char *t2_equals_cst_that_begins_by_FOO;
6025 +char *t2_equals_cst_that_contains_FOO;
6026 +char *t2_is_constant;
6027 char *t3 = "BARFOOBAR";
6028 +char *t3_equals_cst_that_contains_FOO;
6029 +char *t3_is_constant;
6030 char *t4 = "BARFOO";
6031 +char *t4_equals_cst_that_ends_by_FOO;
6032 +char *t4_equals_cst_that_contains_FOO;
6033 +char *t4_is_constant;
6035 +char *s0_is_a_format_for_at_least_a_string;
6036 +char *s0_equals_cst_that_doesn_t_contain_FOO;
6037 +char *s0_is_constant;
6043 +++ /tmp/cocci-output-25045-45047d-rem1.c
6053 +++ /tmp/cocci-output-25045-15cd45-rem2.c
6063 +++ /tmp/cocci-output-25045-efabb5-remaft.c
6076 +++ /tmp/cocci-output-25045-7ec26f-remcom.c
6077 @@ -3,20 +3,12 @@ asyncmeta_retry(
6080 if ( LogTest( LDAP_DEBUG_ANY ) ) {
6081 - char buf[ SLAP_TEXT_BUFLEN ];
6083 /* this lock is required; however,
6084 * it's invoked only when logging is on */
6085 ldap_pvt_thread_mutex_lock( &mt->mt_uri_mutex );
6086 - snprintf( buf, sizeof( buf ),
6087 - "retrying URI=\"%s\" DN=\"%s\"",
6089 - BER_BVISNULL( &msc->msc_bound_ndn ) ?
6090 - "" : msc->msc_bound_ndn.bv_val );
6091 + Debug(LDAP_DEBUG_ANY, merged, op->o_log_prefix,
6092 + candidate, mt->mt_uri,
6093 + BER_BVISNULL(&msc->msc_bound_ndn) ? "" : msc->msc_bound_ndn.bv_val);
6094 ldap_pvt_thread_mutex_unlock( &mt->mt_uri_mutex );
6096 - Debug( LDAP_DEBUG_ANY,
6097 - "%s asyncmeta_retry[%d]: %s.\n",
6098 - op->o_log_prefix, candidate, buf );
6104 +++ /tmp/cocci-output-25045-165df0-remodif.c
6105 @@ -5,7 +5,7 @@ static int hexium_attach(struct saa7146_
6109 - hexium = kzalloc(sizeof(struct hexium), GFP_KERNEL);
6110 + hexium = kzalloc(sizeof(*hexium), GFP_KERNEL);
6111 hexium->i2c_adapter = (struct i2c_adapter) {
6112 .name = "hexium gemini",
6114 remove-code-in-branch1.res
6116 --- tests/remove-code-in-branch1.c
6117 +++ /tmp/cocci-output-25045-147517-remove-code-in-branch1.c
6129 --- tests/remove_call.c
6130 +++ /tmp/cocci-output-25045-e2a9cd-remove_call.c
6133 - int x = 3 + FN() + FN();
6134 - x = 3 + FN() + FN();
6136 - return 3 + FN() + FN();
6140 --- tests/remparam.c
6141 +++ /tmp/cocci-output-25045-de6055-remparam.c
6144 -snd_ad1889_interrupt(void *dev_id, int x,
6145 - struct pt_regs *regs)
6146 +snd_ad1889_interrupt(void *dev_id, int x
6154 -snd_ad1889_interrupt(void *dev_id,
6155 - struct pt_regs *regs)
6156 +snd_ad1889_interrupt(void *dev_id
6164 +++ /tmp/cocci-output-25045-c3a31e-rems.c
6174 +++ /tmp/cocci-output-25045-4b98d1-rems1.c
6182 warning: line 2: should mpuio_irq_chip be a metavariable?
6183 warning: line 8: should xxx be a metavariable?
6185 --- tests/remstruct.c
6186 +++ /tmp/cocci-output-25045-76bab6-remstruct.c
6188 -static struct irqchip mpuio_irq_chip = {
6189 - .ack = mpuio_ack_irq,
6190 - .mask = mpuio_mask_irq,
6191 - .unmask = mpuio_unmask_irq
6194 -static struct irqchip xxx = {
6199 int hello ( String input )
6203 --- tests/replace_typedef.c
6204 +++ /tmp/cocci-output-25045-9f8dcd-replace_typedef.c
6205 @@ -3,8 +3,8 @@ typedef struct foo { int x; } foo_t;
6218 --- tests/reserved.c
6219 +++ /tmp/cocci-output-25045-342b1c-reserved.c
6231 +++ /tmp/cocci-output-25045-431e3e-retest.c
6242 --- tests/retmacro.c
6243 +++ /tmp/cocci-output-25045-5eace3-retmacro.c
6245 #define REG_PATTERN_TEST(R, M, W) \
6247 - for (pat = 0; pat < sizeof(test)/sizeof(test[0]); pat++) { \
6248 + for (pat = 0; pat < ARRAY_SIZE(test); pat++) { \
6249 if (value != (test[pat] & W & M)) { \
6254 #define REG_PATTERN_TEST2(R, M, W) \
6256 - for (pat = 0; pat < sizeof(test)/sizeof(test[0]); pat++) { \
6257 + for (pat = 0; pat < ARRAY_SIZE(test); pat++) { \
6258 if (value != (test[pat] & W & M)) { \
6263 warning: rule starting on line 18: metavariable S not used in the - or context code
6266 +++ /tmp/cocci-output-25045-6f74f5-return.c
6270 - if (x) { aaa(); bbb(); return; }
6271 - if (x) { aaa(); bbb(); return; }
6272 + if (x) { aaa(); bbb(); before_return();
6274 + if (x) { aaa(); bbb(); before_return();
6281 --- tests/return_implicit.c
6282 +++ /tmp/cocci-output-25045-5d1c60-return_implicit.c
6292 +++ /tmp/cocci-output-25045-5fd960-retval.c
6296 - if (retval2 != -ENODEV) {
6309 - if (retval2 != -ENODEV) {
6322 +++ /tmp/cocci-output-25045-61cbf9-retval2.c
6323 @@ -11,7 +11,7 @@ int getlen(int *input, size_t maxlen, in
6327 -int getlen(int *input, size_t maxlen, int delim, size_t *result) {
6328 +int newname(int *input, size_t maxlen, int delim, size_t *result) {
6330 for (i = 0; i < maxlen; ++i) {
6331 if (input[i] == delim) {
6333 warning: rule starting on line 8: metavariable p1 not used in the - or context code
6335 --- tests/reusevar.c
6336 +++ /tmp/cocci-output-25045-88290b-reusevar.c
6352 +++ /tmp/cocci-output-25045-08441c-roa.c
6354 -struct arm_delay_ops arm_delay_ops __ro_after_init = {
6355 +struct found used __ro_after_init = {
6356 .delay = __loop_delay,
6357 .const_udelay = __loop_const_udelay,
6358 .udelay = __loop_udelay,
6361 -struct arm_delay_ops2 arm_delay_ops2 = {
6362 +struct arm_delay_ops2 used = {
6363 .delay = __loop_delay,
6364 .const_udelay = __loop_const_udelay,
6365 .udelay = __loop_udelay,
6369 +++ /tmp/cocci-output-25045-2d1251-rptr.c
6371 int foo(struct resource *r)
6379 --- tests/same_expr.c
6380 +++ /tmp/cocci-output-25045-2486f7-same_expr.c
6390 --- tests/scope_problem.c
6391 +++ /tmp/cocci-output-25045-402c42-scope_problem.c
6411 +++ /tmp/cocci-output-25045-998a08-sd_2.c
6413 - struct particle_data_extra { MyFloat Mass; };
6414 + struct particle_data_extra { MyFloat *Mass; };
6417 warning: rule starting on line 1: metavariable S not used in the - or context code
6418 warning: rule starting on line 1: metavariable x not used in the - or context code
6419 warning: rule starting on line 1: metavariable T not used in the - or context code
6421 --- tests/shared_brace.c
6422 +++ /tmp/cocci-output-25045-afc15e-shared_brace.c
6425 int __init ixj_init(void)
6427 - if (pci_present()) {
6428 - if ((probe = ixj_probe_pci(&cnt)) < 0) {
6432 + if ((probe = ixj_probe_pci(&cnt)) < 0) {
6437 warning: line 4: should x be a metavariable?
6438 warning: line 10: should a be a metavariable?
6441 +++ /tmp/cocci-output-25045-750ad0-signed.c
6453 +++ /tmp/cocci-output-25045-e3a181-sis.c
6455 -DECLARE_MUTEX(disconnect_sem);
6456 +DEFINE_MUTEX(disconnect_sem);
6457 /*int foo() { return; }*/
6458 // if uncomment, and erase newline, then have Line ID EOF and
6459 // some patterns in parsing_hacks don't apply anymore :(
6463 +++ /tmp/cocci-output-25045-521ece-sizeof.c
6465 int main (int param) {
6467 - int i = sizeof(3);
6469 + int i = sizeof(int);
6470 + int j = sizeof(int);
6471 int k = sizeof (int *);
6476 --- tests/sizeof_julia.c
6477 +++ /tmp/cocci-output-25045-b00944-sizeof_julia.c
6479 static int typhoon_ioctl(struct video_device *dev, unsigned int cmd,
6482 - copy_from_user(&v, arg, sizeof(v));
6488 +++ /tmp/cocci-output-25045-ad64d3-sizeptr.c
6489 @@ -5,7 +5,7 @@ int main () {
6496 + foo(ASIZE(sizeof ANINT(*x)),ASIZE(a));
6497 + foo(ANINT(*x),ASSIZE(b));
6498 + foo(APTRDIFF(x - y),APTRDIFF(c));
6502 --- tests/sizestar.c
6503 +++ /tmp/cocci-output-25045-f0547a-sizestar.c
6506 max = num_var_ranges;
6507 if (fcount == NULL) {
6508 - fcount = kzalloc(max * sizeof *fcount, GFP_KERNEL);
6509 + fcount = kzalloc(max, sizeof *fcount, GFP_KERNEL);
6512 FILE_FCOUNT(file) = fcount;
6516 +++ /tmp/cocci-output-25045-9dd763-skip.c
6527 +++ /tmp/cocci-output-25045-2f71e6-sl2.c
6547 exn while in timeout_function
6551 +++ /tmp/cocci-output-25045-cc2a5f-smallfn.c
6631 +++ /tmp/cocci-output-25045-9ed936-sp.c
6636 struct pci_dev *pci;
6637 -} snd_card_als4000_t;
6643 +++ /tmp/cocci-output-25045-6d9fe1-spacing.c
6647 +void *bar(int *baz)
6662 +void *bar(int *baz)
6669 +++ /tmp/cocci-output-25045-17957f-spl.c
6670 @@ -2,11 +2,13 @@ int main() {
6671 spin_lock(&isp116x->lock);
6672 /* take idle endpoints out of the schedule */
6673 if (!list_empty(&ep->hep->urb_list)) {
6674 + spin_unlock(&isp116x->lock);
6678 /* async deschedule */
6679 if (!list_empty(&ep->schedule)) {
6680 + spin_unlock(&isp116x->lock);
6686 --- tests/starprint.c
6687 +++ /tmp/cocci-output-25045-eea6fb-starprint.c
6691 -int foo(LPINT x, LPINT *y)
6692 +int foo(int *x, int **y)
6699 +++ /tmp/cocci-output-25045-a1725d-static.c
6701 static inline int i8042_read_data(void)
6703 - return jazz_kh->data;
6709 +++ /tmp/cocci-output-25045-f80b15-stm10.c
6720 --- tests/stm10_ver1.c
6721 +++ /tmp/cocci-output-25045-579be5-stm10_ver1.c
6725 { replace(); replace();}
6732 +++ /tmp/cocci-output-25045-b5a8ec-stm2.c
6742 +++ /tmp/cocci-output-25045-1d66d5-stm3.c
6753 +++ /tmp/cocci-output-25045-236ff5-stm4.c
6754 @@ -2,4 +2,5 @@ int main(int x) {
6763 +++ /tmp/cocci-output-25045-16bb72-stm5.c
6775 +++ /tmp/cocci-output-25045-c8fbe8-stm6.c
6787 +++ /tmp/cocci-output-25045-27ded8-stm8.c
6798 +++ /tmp/cocci-output-25045-b08053-stmt.c
6806 warning: line 4: should x be a metavariable?
6808 --- tests/str_init.c
6809 +++ /tmp/cocci-output-25045-11cec6-str_init.c
6819 warning: rule starting on line 1: metavariable f not used in the - or context code
6821 --- tests/strangeorder.c
6822 +++ /tmp/cocci-output-25045-8b1e9d-strangeorder.c
6823 @@ -4,8 +4,10 @@ i2c_new_device(struct i2c_adapter *adap,
6824 struct i2c_client *client;
6826 client = kzalloc(sizeof *client, GFP_KERNEL);
6833 client->adapter = adap;
6838 +++ /tmp/cocci-output-25045-d5fc51-strid.c
6848 +++ /tmp/cocci-output-25045-791791-strid2.c
6849 @@ -3,8 +3,8 @@ int main () {
6864 +++ /tmp/cocci-output-25045-614f8f-struct.c
6865 @@ -8,7 +8,5 @@ struct foo {
6875 --- tests/struct_metavar.c
6876 +++ /tmp/cocci-output-25045-940d2e-struct_metavar.c
6877 @@ -9,9 +9,6 @@ struct foo {
6889 --- tests/struct_typedef.c
6890 +++ /tmp/cocci-output-25045-f5735f-struct_typedef.c
6892 -typedef struct dvb_frontend {
6893 - struct dvb_frontend_ops* ops;
6894 +typedef struct dvb2_frontend {
6895 + struct dvb_frontend_ops ops;
6900 warning: line 5: should my_foo be a metavariable?
6902 --- tests/structfoo.c
6903 +++ /tmp/cocci-output-25045-f00200-structfoo.c
6905 -struct foo my_foo[] = {
6912 --- tests/substruct.c
6913 +++ /tmp/cocci-output-25045-77b1ed-substruct.c
6915 struct a { int a; } x[2] =
6919 + { DECLARE_A(7), },
6920 + { DECLARE_A(17), },
6925 +++ /tmp/cocci-output-25045-ef9a46-sw.c
6927 -int f() { switch (x) { case FOO: return; } }
6932 +++ /tmp/cocci-output-25045-b594ac-swap3.c
6933 @@ -2,7 +2,7 @@ static void __ar955x_tx_iq_cal_sort(stru
6934 struct coeff *coeff,
6935 int i, int nmeasurement)
6937 - int im, ix, iy, temp;
6940 for (iy = ix + 1; iy <= MAXIQCAL - 1; iy++) {
6941 // if ( iy <= MAXIQCAL - 1) {
6945 +++ /tmp/cocci-output-25045-31b252-switch.c
6946 @@ -3,6 +3,5 @@ int main () {
6954 warning: switch_1: metavariable S_1 not used in the - or context code
6956 --- tests/switchdecl.c
6957 +++ /tmp/cocci-output-25045-471525-switchdecl.c
6958 @@ -4,7 +4,7 @@ switch (2)
6968 warning: line 12: should g be a metavariable?
6971 +++ /tmp/cocci-output-25045-1e203d-symbol.c
6983 +++ /tmp/cocci-output-25045-79c59b-td.c
6985 -struct foo {int a;};
6986 +struct foo {int b;};
6988 -typedef struct blah {int a;} name;
6989 +typedef struct blah {int b;} name;
6991 -typedef struct {int a;} xxx;
6992 +typedef struct {int b;} xxx;
6996 +++ /tmp/cocci-output-25045-776e9a-tdnl.c
6997 @@ -4,5 +4,4 @@ void main() {
7006 +++ /tmp/cocci-output-25045-343d02-tdplus.c
7008 -typedef int (*filler_t)(int, int);
7009 +typedef int (*filler_t)(int, struct address_space *, int);
7013 +++ /tmp/cocci-output-25045-be9345-tern.c
7016 - return (wc >= 0 && wc <= 0x7f ? wc : 0x7f);
7017 + return wc >= 0 && wc <= 0x7f ? wc : 0x7f;
7023 +++ /tmp/cocci-output-25045-16f879-test0.c
7033 +++ /tmp/cocci-output-25045-45eda0-test1.c
7034 @@ -6,9 +6,9 @@ void main(int foo) {
7049 --- tests/test10_ver1.c
7050 +++ /tmp/cocci-output-25045-41832a-test10_ver1.c
7051 @@ -3,7 +3,7 @@ void main(int i) {
7063 --- tests/test11_ver1.c
7064 +++ /tmp/cocci-output-25045-13877d-test11_ver1.c
7065 @@ -2,6 +2,6 @@ void main(int i) {
7076 +++ /tmp/cocci-output-25045-8a723e-test12.c
7078 void main(int foo) {
7088 +++ /tmp/cocci-output-25045-70fd7b-test2.c
7089 @@ -2,7 +2,7 @@ void main()
7102 +++ /tmp/cocci-output-25045-9d10e8-test3.c
7103 @@ -4,7 +4,7 @@ void main()
7116 +++ /tmp/cocci-output-25045-58f9bd-test4.c
7128 +++ /tmp/cocci-output-25045-888c96-test5.c
7129 @@ -12,9 +12,9 @@ void main() {
7140 // g(1); // if add this then the CTL even with the direct path will this time
7143 --- tests/test5_ver1.c
7144 +++ /tmp/cocci-output-25045-ebac47-test5_ver1.c
7145 @@ -12,9 +12,9 @@ void main() {
7156 g(1); // if add this then the CTL even with the direct path will this time
7160 +++ /tmp/cocci-output-25045-a27bc3-test6.c
7161 @@ -4,13 +4,13 @@ void main()
7166 + f(4, "foo") + f(5, "foo");
7168 //f(f(3)); // if uncomment, should have the warning "already minused token"
7179 @@ -20,7 +20,7 @@ void main()
7191 +++ /tmp/cocci-output-25045-57a85f-test7.c
7192 @@ -2,10 +2,12 @@ void main()
7210 +++ /tmp/cocci-output-25045-af9e65-test8.c
7212 -void main(int foo) {
7213 +void main(char i, int foo) {
7223 +++ /tmp/cocci-output-25045-c84a28-test9.c
7224 @@ -4,9 +4,9 @@ void main(int foo) {
7225 // f(1); // if uncomment then problems
7235 // if uncomment then problems
7239 +++ /tmp/cocci-output-25045-b4069d-test_s.c
7240 @@ -2,7 +2,7 @@ int main () {
7249 @@ -11,7 +11,7 @@ int main () {
7258 test_unsigned_meta.res
7259 warning: line 6: should x be a metavariable?
7260 warning: line 13: should y be a metavariable?
7261 warning: line 19: should q be a metavariable?
7262 warning: line 28: should m be a metavariable?
7263 warning: line 33: should x be a metavariable?
7264 warning: line 39: should y be a metavariable?
7266 --- tests/test_unsigned_meta.c
7267 +++ /tmp/cocci-output-25045-2e97c2-test_unsigned_meta.c
7287 +++ /tmp/cocci-output-25045-b9682d-testand.c
7298 --- tests/testand2.c
7299 +++ /tmp/cocci-output-25045-ec4f4e-testand2.c
7310 --- tests/three_types.c
7311 +++ /tmp/cocci-output-25045-f7da97-three_types.c
7312 @@ -7,5 +7,5 @@ via_init_dmablit(drm_device_t *dev)
7314 drm_via_blitq_t *blitq;
7316 - INIT_WORK(&blitq->wq, via_dmablit_workqueue,blitq);
7317 + INIT_WORK(&blitq->wq, via_dmablit_workqueue);
7322 +++ /tmp/cocci-output-25045-46caff-threea.c
7331 +++ /tmp/cocci-output-25045-0ddd39-top.c
7333 -MODULE_PARM(suppress_pollack, "i");
7334 +module_param(I, int, 0);
7338 +++ /tmp/cocci-output-25045-dda9f9-topdec.c
7339 @@ -5,4 +5,5 @@ static int debug;
7340 /* Network device part of the driver */
7342 static LIST_HEAD(tun_dev_list);
7343 -static struct ethtool_ops tun_ethtool_ops;
7344 +static const struct ethtool_ops tun_ethtool_ops;
7348 --- tests/topdec_ver1.c
7349 +++ /tmp/cocci-output-25045-91a4db-topdec_ver1.c
7354 -/* Network device part of the driver */
7355 +static const struct ethtool_ops tun_ethtool_ops;
7357 -static struct ethtool_ops tun_ethtool_ops;
7360 --- tests/topdec_ver2.c
7361 +++ /tmp/cocci-output-25045-3abd6b-topdec_ver2.c
7362 @@ -5,4 +5,5 @@ static int debug;
7363 /* Network device part of the driver */
7366 -static struct ethtool_ops tun_ethtool_ops;
7367 +static const struct ethtool_ops tun_ethtool_ops;
7369 toplevel_macrostmt.res
7371 --- tests/toplevel_macrostmt.c
7372 +++ /tmp/cocci-output-25045-5bc829-toplevel_macrostmt.c
7373 @@ -2,7 +2,7 @@ void main(int i)
7378 +module_param(x, int, y);
7379 MODULE_AUTHOR("me");
7383 warning: line 5: should usb_stor_host_template be a metavariable?
7385 --- tests/toplevel_struct.c
7386 +++ /tmp/cocci-output-25045-2d58ba-toplevel_struct.c
7387 @@ -3,6 +3,7 @@ struct SHT usb_stor_host_template = {
7388 .name = "usb-storage",
7389 .proc_name = "usb-storage",
7390 .proc_info2 = usb_storage_proc_info2,
7392 .proc_info = usb_storage_proc_info,
7394 .info = usb_storage_info,
7395 @@ -72,11 +73,11 @@ unsigned char usb_stor_sense_notready[18
7398 void usb_storage_proc_info(int i) {
7403 void usb_storage_proc_info2(int i) {
7412 +++ /tmp/cocci-output-25045-f60dbc-triplet.c
7414 typedef double dtriplet_t[3] ; // FIXME: such code would not be parsed on cocci side
7416 +typedef int itriplet_t[3];
7421 warning: rule starting on line 10: metavariable C not used in the - or context code
7422 warning: rule starting on line 10: metavariable B not used in the - or context code
7425 +++ /tmp/cocci-output-25045-7937d1-tup.c
7427 static int cm206_block_ioctl(struct inode *inode, struct file *file,
7428 unsigned cmd, unsigned long arg)
7430 - return cdrom_ioctl(&cm206_info, inode, cmd, arg);
7434 static struct block_device_operations cm206_bdops =
7437 --- tests/twomatch.c
7438 +++ /tmp/cocci-output-25045-ac80c9-twomatch.c
7448 --- tests/twoproto.c
7449 +++ /tmp/cocci-output-25045-cba8b0-twoproto.c
7451 static void tc574_config(dev_link_t *link);
7453 -static int tc574_attach(struct pcmcia_device *p_dev)
7454 +static int tc574_attach(struct pcmcia_device *link)
7456 - dev_link_t *link = dev_to_instance(p_dev);
7459 -static void tc574_detach(struct pcmcia_device *p_dev)
7460 +static void tc574_detach(struct pcmcia_device *link)
7462 - dev_link_t *link = dev_to_instance(p_dev);
7467 +++ /tmp/cocci-output-25045-1261dc-ty.c
7471 + const struct foo x;
7475 warning: line 7: should x be a metavariable?
7478 +++ /tmp/cocci-output-25045-74dbda-ty1.c
7486 --- tests/ty_tyexp.c
7487 +++ /tmp/cocci-output-25045-004f37-ty_tyexp.c
7489 void main(double z) {
7498 +float main(float z) {
7502 +float main2(float z);
7505 warning: line 20: should a be a metavariable?
7506 warning: func: metavariable T not used in the - or context code
7509 +++ /tmp/cocci-output-25045-04a794-tydisj.c
7511 -int64_t foo() { int64_t a; int i; return i << 20; }
7512 +int64_t foo() { int64_t a; int i; xxx();
7518 +++ /tmp/cocci-output-25045-100704-tyex.c
7532 - foo (a.x,a.y,a.name);
7533 - foo (b->x,b->y,b->name);
7534 + foo (a.p.x,a.p.y,a.name);
7535 + foo (b->p.x,b->p.y,b->name);
7538 warning: line 7: should x be a metavariable?
7541 +++ /tmp/cocci-output-25045-f1127b-type.c
7552 +++ /tmp/cocci-output-25045-5cb417-type1.c
7562 --- tests/type_annotated.c
7563 +++ /tmp/cocci-output-25045-81ef69-type_annotated.c
7564 @@ -4,7 +4,7 @@ void f1(int z) {
7573 @@ -15,6 +15,6 @@ void f2(struct foo i) {
7581 type_constraints.res
7582 warning: line 32: should foo be a metavariable?
7583 warning: line 33: should xyz be a metavariable?
7585 --- tests/type_constraints.c
7586 +++ /tmp/cocci-output-25045-24a57e-type_constraints.c
7602 --- tests/type_ver1.c
7603 +++ /tmp/cocci-output-25045-32a00e-type_ver1.c
7613 --- tests/type_ver2.c
7614 +++ /tmp/cocci-output-25045-98d00d-type_ver2.c
7625 +++ /tmp/cocci-output-25045-d95fd2-typedef.c
7627 typedef struct bluecard_info_t {
7629 + struct pcmcia_device *p_dev;
7632 static void should_work(u_long arg)
7634 foo *info = (struct bluecard_info_t *)arg;
7635 - unsigned int iobase = info->link.io.BasePort1;
7636 + unsigned int iobase = info->p_dev->io.BasePort1;
7639 static void does_work(u_long arg)
7641 struct bluecard_info_t *info = (struct bluecard_info_t *)arg;
7642 - unsigned int iobase = info->link.io.BasePort1;
7643 + unsigned int iobase = info->p_dev->io.BasePort1;
7647 --- tests/typedef3.c
7648 +++ /tmp/cocci-output-25045-772e05-typedef3.c
7650 typedef struct bluecard_info_t {
7652 + struct pcmcia_device *p_dev;
7655 static void should_work(foo *info)
7656 @@ -9,5 +9,5 @@ static void should_work(foo *info)
7658 static void does_work(struct bluecard_info_t *info)
7660 - unsigned int iobase = info->link.io.BasePort1;
7661 + unsigned int iobase = info->p_dev->io.BasePort1;
7667 +++ /tmp/cocci-output-25045-46a1b0-typeof.c
7672 f(sizeof(struct foo));
7678 +++ /tmp/cocci-output-25045-ee1085-typin.c
7679 @@ -2,7 +2,7 @@ int x;
7690 warning: line 13: should list be a metavariable?
7693 +++ /tmp/cocci-output-25045-b5c2ab-unbrace.c
7694 @@ -5,8 +5,6 @@ static int mlxsw_sp_flower_parse_actions
7695 struct netlink_ext_ack *extack)
7697 const struct tc_action *a;
7698 - LIST_HEAD(actions);
7701 if (!tcf_exts_has_actions(exts))
7703 @@ -16,12 +14,9 @@ static int mlxsw_sp_flower_parse_actions
7707 - tcf_exts_to_list(exts, &actions);
7708 - list_for_each_entry(a, &actions, list) {
7719 @@ -33,8 +28,6 @@ static int mlxsw_sp_flower_parse_actions
7720 struct netlink_ext_ack *extack)
7722 const struct tc_action *a;
7723 - LIST_HEAD(actions);
7726 if (!tcf_exts_has_actions(exts))
7728 @@ -44,82 +37,79 @@ static int mlxsw_sp_flower_parse_actions
7732 - tcf_exts_to_list(exts, &actions);
7733 - list_for_each_entry(a, &actions, list) {
7734 - if (is_tcf_gact_ok(a)) {
7735 - err = mlxsw_sp_acl_rulei_act_terminate(rulei);
7737 - NL_SET_ERR_MSG_MOD(extack, "Cannot append terminate action");
7740 - } else if (is_tcf_gact_shot(a)) {
7741 - err = mlxsw_sp_acl_rulei_act_drop(rulei);
7743 - NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action");
7746 - } else if (is_tcf_gact_trap(a)) {
7747 - err = mlxsw_sp_acl_rulei_act_trap(rulei);
7749 - NL_SET_ERR_MSG_MOD(extack, "Cannot append trap action");
7752 - } else if (is_tcf_gact_goto_chain(a)) {
7753 - u32 chain_index = tcf_gact_goto_chain_index(a);
7754 - struct mlxsw_sp_acl_ruleset *ruleset;
7757 - ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block,
7759 - MLXSW_SP_ACL_PROFILE_FLOWER);
7760 - if (IS_ERR(ruleset))
7761 - return PTR_ERR(ruleset);
7763 - group_id = mlxsw_sp_acl_ruleset_group_id(ruleset);
7764 - err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id);
7766 - NL_SET_ERR_MSG_MOD(extack, "Cannot append jump action");
7769 - } else if (is_tcf_mirred_egress_redirect(a)) {
7770 - struct net_device *out_dev;
7771 - struct mlxsw_sp_fid *fid;
7774 - fid = mlxsw_sp_acl_dummy_fid(mlxsw_sp);
7775 - fid_index = mlxsw_sp_fid_index(fid);
7776 - err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei,
7777 - fid_index, extack);
7781 - out_dev = tcf_mirred_dev(a);
7782 - err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei,
7786 - } else if (is_tcf_mirred_egress_mirror(a)) {
7787 - struct net_device *out_dev = tcf_mirred_dev(a);
7789 - err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei,
7794 - } else if (is_tcf_vlan(a)) {
7795 - u16 proto = be16_to_cpu(tcf_vlan_push_proto(a));
7796 - u32 action = tcf_vlan_action(a);
7797 - u8 prio = tcf_vlan_push_prio(a);
7798 - u16 vid = tcf_vlan_push_vid(a);
7800 - return mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei,
7802 - proto, prio, extack);
7804 - NL_SET_ERR_MSG_MOD(extack, "Unsupported action");
7805 - dev_err(mlxsw_sp->bus_info->dev, "Unsupported action\n");
7806 - return -EOPNOTSUPP;
7807 + if (is_tcf_gact_ok(a)) {
7808 + err = mlxsw_sp_acl_rulei_act_terminate(rulei);
7810 + NL_SET_ERR_MSG_MOD(extack, "Cannot append terminate action");
7813 + } else if (is_tcf_gact_shot(a)) {
7814 + err = mlxsw_sp_acl_rulei_act_drop(rulei);
7816 + NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action");
7819 + } else if (is_tcf_gact_trap(a)) {
7820 + err = mlxsw_sp_acl_rulei_act_trap(rulei);
7822 + NL_SET_ERR_MSG_MOD(extack, "Cannot append trap action");
7825 + } else if (is_tcf_gact_goto_chain(a)) {
7826 + u32 chain_index = tcf_gact_goto_chain_index(a);
7827 + struct mlxsw_sp_acl_ruleset *ruleset;
7830 + ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block,
7832 + MLXSW_SP_ACL_PROFILE_FLOWER);
7833 + if (IS_ERR(ruleset))
7834 + return PTR_ERR(ruleset);
7836 + group_id = mlxsw_sp_acl_ruleset_group_id(ruleset);
7837 + err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id);
7839 + NL_SET_ERR_MSG_MOD(extack, "Cannot append jump action");
7842 + } else if (is_tcf_mirred_egress_redirect(a)) {
7843 + struct net_device *out_dev;
7844 + struct mlxsw_sp_fid *fid;
7847 + fid = mlxsw_sp_acl_dummy_fid(mlxsw_sp);
7848 + fid_index = mlxsw_sp_fid_index(fid);
7849 + err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei,
7850 + fid_index, extack);
7854 + out_dev = tcf_mirred_dev(a);
7855 + err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei,
7859 +} else if (is_tcf_mirred_egress_mirror(a)) {
7860 + struct net_device *out_dev = tcf_mirred_dev(a);
7862 + err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei,
7867 +} else if (is_tcf_vlan(a)) {
7868 + u16 proto = be16_to_cpu(tcf_vlan_push_proto(a));
7869 + u32 action = tcf_vlan_action(a);
7870 + u8 prio = tcf_vlan_push_prio(a);
7871 + u16 vid = tcf_vlan_push_vid(a);
7873 + return mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei,
7875 + proto, prio, extack);
7877 + NL_SET_ERR_MSG_MOD(extack, "Unsupported action");
7878 + dev_err(mlxsw_sp->bus_info->dev, "Unsupported action\n");
7879 + return -EOPNOTSUPP;
7886 +++ /tmp/cocci-output-25045-8c8ba4-undref.c
7893 exn while in timeout_function
7895 exn while in timeout_function
7899 +++ /tmp/cocci-output-25045-e36424-unelse.c
7900 @@ -2,8 +2,6 @@ static short find_control(u16 control_in
7905 - HPI_DEBUG_LOG(three,
7908 + HPI_DEBUG_LOG(three,
7914 +++ /tmp/cocci-output-25045-5f71df-unfree.c
7915 @@ -2,8 +2,7 @@ static void mppe_free(void *arg)
7917 struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
7919 - if (state->sha1_digest)
7920 - kfree(state->sha1_digest);
7921 + kfree(state->sha1_digest);
7928 +++ /tmp/cocci-output-25045-1b9998-unl.c
7931 - if (new_pe == NULL) {
7932 + if (unlikely(new_pe == NULL)) {
7938 - if (new_pe == NULL)
7939 + if (unlikely(new_pe == NULL))
7944 --- tests/unstruct.c
7945 +++ /tmp/cocci-output-25045-3c3dad-unstruct.c
7947 -struct foo x __read_mostly = { .a = 12, };
7949 -foo_t bar_t x(int y) { return 0; }
7953 --- tests/updassign.c
7954 +++ /tmp/cocci-output-25045-702471-updassign.c
7962 --- tests/useless_cast.c
7963 +++ /tmp/cocci-output-25045-0c6fce-useless_cast.c
7964 @@ -8,7 +8,7 @@ struct device {
7968 -struct netdev_private *np = (struct netdev_private *)
7969 +struct netdev_private *np =
7976 +++ /tmp/cocci-output-25045-47ba16-varargs.c
7980 -fas216_log_command(FAS216_Info *info, int level, Scsi_Cmnd *SCpnt, char *fmt, ...)
7981 +fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt,
7986 --- tests/varargs2.c
7987 +++ /tmp/cocci-output-25045-7dd472-varargs2.c
7989 static void f(char *fmt, ...)
7995 --- tests/varargs3.c
7996 +++ /tmp/cocci-output-25045-4cb38b-varargs3.c
7998 -static int foo(char *fmt, ...)
8002 @@ -8,7 +7,6 @@ static int bar(int x, y)
8006 -static int baz(FILE *stream, ...)
8012 --- tests/video1bis.c
8013 +++ /tmp/cocci-output-25045-b26014-video1bis.c
8014 @@ -3,7 +3,5 @@ void *arg)
8016 if (cmd == VIDIOCGTUNER) {
8017 struct video_tuner v;
8018 - if (copy_from_user(v, arg, sizeof(v)) != 0)
8019 - ret(-EFAULT); else {}
8025 +++ /tmp/cocci-output-25045-98a652-void.c
8027 int xbar(void) { return; }
8034 // this is some info about bar
8036 int bar(void) { return; }
8045 +++ /tmp/cocci-output-25045-50a9bf-vpos.c
8058 --- tests/whitespace.c
8059 +++ /tmp/cocci-output-25045-1276bf-whitespace.c
8062 - foo(sizeof (struct xxx));
8063 + foo(sizeof(struct xxx), 12);
8067 --- tests/wierd_argument.c
8068 +++ /tmp/cocci-output-25045-920888-wierd_argument.c
8070 static void ewx_i2c_setlines(snd_i2c_bus_t *bus, int clk, int data)
8072 - ice1712_t *ice = snd_magic_cast(ice1712_t, bus->private_data, return);
8073 - ice1712_t *ice = snd_magic_cast(ice1712_t, bus->private_data, );
8074 + ice1712_t *ice = bus->private_data;
8075 + ice1712_t *ice = bus->private_data;
8076 unsigned char tmp = 0;
8082 --- tests/wrongcheck.c
8083 +++ /tmp/cocci-output-25045-beea3b-wrongcheck.c
8086 - err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV,
8087 - buffer, sizeof(buffer));
8088 if (err == sizeof(buffer)) return;
8091 warning: rule starting on line 1: metavariable A not used in the + code
8094 +++ /tmp/cocci-output-25045-84174a-ws2.c
8106 +++ /tmp/cocci-output-25045-505a1e-xfield.c
8116 +++ /tmp/cocci-output-25045-c74053-y2.c
8119 asuscom_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs)
8122 - printk(KERN_WARNING "ISDNLink: Spurious interrupt!\n");
8126 debugl1(cs, "IPAC ISTA %02X", ista);
8127 if ((ista & 0x3f) && icnt) {
8131 +++ /tmp/cocci-output-25045-476058-zero.c
8134 - memset(command, 0, sizeof(struct sbp2_command_info));
8135 - memset(command, 0x00, sizeof(struct sbp2_command_info));
8136 - memset(command, 0x0, sizeof(struct sbp2_command_info));
8137 - memset(command, '\0', sizeof(struct sbp2_command_info));
8139 --------------------------------
8141 --------------------------------
8145 a_and_e.res : CORRECT
8146 a_and_e_ver1.res : CORRECT
8149 addaft.res : CORRECT
8150 addbefore.res : CORRECT
8151 addbeforeafter.res : CORRECT
8152 addelse.res : CORRECT
8154 addfield.res : CORRECT
8155 addfield2.res : CORRECT
8157 addif1.res : CORRECT
8158 addif2.res : CORRECT
8159 addifdef.res : CORRECT
8160 addifelse.res : CORRECT
8161 addifelse2.res : CORRECT
8162 addinc.res : CORRECT
8163 addtoo.res : CORRECT
8164 addtrace.res : CORRECT
8165 after_if.res : CORRECT
8167 allex2.res : CORRECT
8168 allex3.res : CORRECT
8171 anonfield.res : CORRECT
8174 argument.res : CORRECT
8175 arparam.res : CORRECT
8176 array_init.res : CORRECT
8177 array_size.res : CORRECT
8178 arraysz.res : CORRECT
8179 as_stm.res : CORRECT
8180 attradd.res : CORRECT
8181 attrs2groups.res : CORRECT
8184 bad_iso_example.res : INCORRECT:diff token: ( VS x
8185 File "tests/bad_iso_example.c", line 2, column 6, charpos = 19
8187 whole content = if ((x = 3)) return;
8188 File "tests/bad_iso_example.res", line 2, column 6, charpos = 19
8190 whole content = if (x) return;
8192 diff (result(<) vs expected_result(>)) =
8195 - if ((x = 3)) return;
8199 bad_kfree.res : CORRECT
8200 bad_ptr_print.res : CORRECT
8201 bad_typedef.res : CORRECT
8202 badexp.res : CORRECT
8203 badpos.res : PROBLEM
8204 exn = Failure("rule starting on line 1: already tagged token:\nC code context\nFile \"tests/badpos.c\", line 5, column 30, charpos = 139\n around = 'reg_ptr',\n whole content = \t (int) -(((struct pt_regs *) reg_ptr)->orig_eax + 2));")
8205 badtypedef.res : CORRECT
8206 badwhen.res : CORRECT
8207 badzero.res : CORRECT
8210 before.res : CORRECT
8213 bigrepl.res : CORRECT
8215 bitfield.res : CORRECT
8216 bitfield_matching.res : CORRECT
8218 braces.res : CORRECT
8219 branchparen.res : CORRECT
8222 bugloop.res : CORRECT
8226 caseprint.res : CORRECT
8228 cast_iso.res : CORRECT
8229 castdecl.res : CORRECT
8230 cex_wishlist_complex1.res : CORRECT
8231 cex_wishlist_complex2.res : CORRECT
8232 cex_wishlist_complex3.res : CORRECT
8233 change.res : CORRECT
8234 change_type.res : CORRECT
8235 changei.res : INCORRECT:diff token: i VS xxx
8236 File <COCCIOUTPUTFILE>, line 1, column 15, charpos = 15
8238 whole content = typedef struct i xxx;
8239 File "tests/changei.res", line 1, column 15, charpos = 15
8241 whole content = typedef struct xxx istruct;
8243 diff (result(<) vs expected_result(>)) =
8245 -typedef struct i xxx;
8246 +typedef struct xxx istruct;
8251 comadd.res : CORRECT
8253 comment_brace.res : CORRECT
8254 comment_brace2.res : CORRECT
8255 comments.res : CORRECT
8256 compare.res : CORRECT
8257 compare_const2.res : CORRECT
8258 condexp.res : CORRECT
8260 const1bis.res : CORRECT
8261 const_adding.res : CORRECT
8262 const_array.res : CORRECT
8263 const_implicit_iso.res : CORRECT
8264 constraints.res : CORRECT
8265 constrem.res : CORRECT
8266 constructor.res : CORRECT
8267 constty.res : CORRECT
8268 constx.res : CORRECT
8269 countcalls.res : PROBLEM
8270 exn = Failure("OCaml scripting is unsupported.")
8271 countcalls_python.res : CORRECT
8272 countcalls_python.stdout : CORRECT
8276 cs_check.res : CORRECT
8278 cst_null.res : CORRECT
8280 exn = Failure("OCaml scripting is unsupported.")
8281 cststr.res : CORRECT
8283 dbg.res : INCORRECT:PB parsing only in generated-file
8284 diff (result(<) vs expected_result(>)) =
8286 struct resource *pr, *r = &dev->resource[idx];
8290 - pr = NULL;("PCI");
8294 dbg1.res : INCORRECT:diff token: E VS (
8295 File <COCCIOUTPUTFILE>, line 5, column 2, charpos = 75
8297 whole content = E = NULL;("PCI");
8298 File "tests/dbg1.res", line 4, column 5, charpos = 72
8300 whole content = DBG("PCI");
8302 diff (result(<) vs expected_result(>)) =
8305 static inline void alloc_resource(struct pci_dev *dev, int idx)
8312 dc_close.res : CORRECT
8317 decl_space.res : CORRECT
8318 decl_split.res : INCORRECT:diff token: int VS }
8319 File "tests/decl_split.c", line 2, column 8, charpos = 27
8321 whole content = int x, y;
8322 File "tests/decl_split.res", line 2, column 0, charpos = 19
8326 diff (result(<) vs expected_result(>)) =
8331 decl_star.res : CORRECT
8332 declmeta.res : CORRECT
8334 define_exp.res : CORRECT
8335 define_param.res : CORRECT
8336 defineinit.res : CORRECT
8337 deftodo.res : CORRECT
8338 delete_function.res : CORRECT
8341 destroy.res : CORRECT
8342 devlink.res : CORRECT
8344 disjexpr.res : CORRECT
8345 disjexpr_ver1.res : CORRECT
8346 disjexpr_ver2.res : CORRECT
8347 disjid.res : CORRECT
8348 distribute.res : CORRECT
8349 double.res : CORRECT
8350 double_assign.res : CORRECT
8351 double_lines.res : CORRECT
8352 double_switch.res : CORRECT
8353 doublepos.res : CORRECT
8354 doubleswitch.res : CORRECT
8355 doundo.res : CORRECT
8356 dowhile.res : CORRECT
8357 dropbr.res : CORRECT
8358 dropcom.res : CORRECT
8359 dropenderr.res : CORRECT
8361 dropparam.res : CORRECT
8365 edots_ver1.res : CORRECT
8366 elsify.res : CORRECT
8368 end_commas.res : CORRECT
8371 endpos.res : PROBLEM
8372 exn = Failure("OCaml scripting is unsupported.")
8375 exn = Failure("OCaml scripting is unsupported.")
8378 expnest.res : CORRECT
8379 expopt.res : CORRECT
8380 expopt2.res : CORRECT
8381 expopt3.res : CORRECT
8382 expopt3_ver1.res : CORRECT
8383 expopt3_ver2.res : CORRECT
8385 exn = Failure("OCaml scripting is unsupported.")
8386 failing_andany.res : INCORRECT:diff token: request_irq VS }
8387 File <COCCIOUTPUTFILE>, line 4, column 8, charpos = 111
8388 around = 'request_irq',
8389 whole content = request_irq(irq_flags);
8390 File "tests/failing_andany.res", line 4, column 0, charpos = 103
8394 diff (result(<) vs expected_result(>)) =
8396 static int smc_probe1(struct net_device *dev, void __iomem *ioaddr,
8397 unsigned long irq_flags)
8399 - request_irq(irq_flags);
8400 - register_netdev(dev);
8403 static int smc_probe2(struct net_device *dev, void __iomem *ioaddr,
8404 fields.res : CORRECT
8405 fieldsmin.res : CORRECT
8406 finalize_only.res : PROBLEM
8407 exn = Failure("OCaml scripting is unsupported.")
8408 find_long.res : CORRECT
8409 fix_flow_need.res : CORRECT
8410 fn_todo.res : CORRECT
8414 fntypedef.res : CORRECT
8415 format.res : CORRECT
8416 format2.res : PROBLEM
8417 exn = Failure("OCaml scripting is unsupported.")
8418 formatlist.res : CORRECT
8419 fortest.res : CORRECT
8420 fortype.res : CORRECT
8427 gcc_min_max.res : CORRECT
8429 gilles-question.res : CORRECT
8430 gotobreak.res : CORRECT
8432 headers.res : CORRECT
8435 icomma.res : PROBLEM
8436 exn = Failure("Error in Python script, line 10, file \"tests/icomma.cocci\": Python failure")
8437 idcon_ocaml.res : PROBLEM
8438 exn = Failure("OCaml scripting is unsupported.")
8439 idcon_python.res : CORRECT
8445 ifdef1.res : CORRECT
8446 ifdef2.res : CORRECT
8447 ifdef3.res : CORRECT
8448 ifdef4.res : CORRECT
8449 ifdef5.res : CORRECT
8450 ifdef6.res : CORRECT
8451 ifdef6a.res : CORRECT
8452 ifdefmeta.res : CORRECT
8453 ifdefmeta1.res : CORRECT
8454 ifdefmeta2.res : CORRECT
8455 ifdefmeta3.res : CORRECT
8457 ifgoto.res : CORRECT
8458 ifields.res : CORRECT
8460 ifreturn.res : CORRECT
8461 ifreturn3.res : CORRECT
8462 ifreturn4.res : CORRECT
8463 ifreturn6.res : CORRECT
8467 incdir.res : INCORRECT:diff token: x VS 12
8468 File "tests/incdir.c", line 4, column 6, charpos = 46
8470 whole content = foo(x);
8471 File "tests/incdir.res", line 4, column 6, charpos = 46
8473 whole content = foo(12);
8475 diff (result(<) vs expected_result(>)) =
8477 #include "sub/incdir2.c"
8485 inclifdef.res : CORRECT
8486 include.res : CORRECT
8487 incompatible_value.res : CORRECT
8488 incpos.res : CORRECT
8489 incpos1.res : CORRECT
8490 inherited.res : CORRECT
8491 inherited_ver1.res : CORRECT
8492 inhmet.res : CORRECT
8493 inhpos.res : CORRECT
8494 initializer.res : CORRECT
8495 initializer_many_fields.res : CORRECT
8496 inline.res : CORRECT
8497 insdef.res : CORRECT
8498 int2bool-local.res : CORRECT
8499 introbrace.res : CORRECT
8500 invert.res : CORRECT
8503 isococci.res : CORRECT
8505 isotest.res : CORRECT
8506 isotest2.res : CORRECT
8507 iteration.res : PROBLEM
8508 exn = Failure("OCaml scripting is unsupported.")
8509 iteration_after_merge.res : PROBLEM
8510 exn = Failure("OCaml scripting is unsupported.")
8511 iterator.res : CORRECT
8512 iterprint.res : CORRECT
8513 jloop1.res : PROBLEM
8514 exn = Coccinelle_modules.Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/jloop1.cocci\", line 10, column 3, charpos = 129\n around = '...>',\n whole content = ...>\n")
8515 julia10.res : CORRECT
8516 julia7.res : CORRECT
8517 justremove.res : CORRECT
8518 keep_comma.res : CORRECT
8520 kmalloc.res : CORRECT
8524 ktype2.res : CORRECT
8525 labels_metastatement.res : CORRECT
8526 labels_metastatement_ver1.res : CORRECT
8528 line_before_last.res : CORRECT
8529 list_test.res : CORRECT
8531 localglobal.res : CORRECT
8532 localid.res : CORRECT
8535 longconst.res : CORRECT
8536 longline2.res : CORRECT
8537 longlong.res : CORRECT
8538 longlongint.res : CORRECT
8540 lvalue.res : CORRECT
8542 macro_int16.res : CORRECT
8543 match_init.res : CORRECT
8544 match_no_meta.res : CORRECT
8552 exn = Failure("OCaml scripting is unsupported.")
8553 mdeclp.res : PROBLEM
8554 exn = Failure("OCaml scripting is unsupported.")
8555 mdeclp2.res : PROBLEM
8556 exn = Failure("OCaml scripting is unsupported.")
8557 mdeclrep.res : CORRECT
8558 memory.res : CORRECT
8559 merge_after_iteration.res : PROBLEM
8560 exn = Failure("OCaml scripting is unsupported.")
8561 metahex.res : INCORRECT:diff token: f VS }
8562 File "tests/metahex.c", line 2, column 2, charpos = 15
8564 whole content = f(3);
8565 File "tests/metahex.res", line 2, column 0, charpos = 13
8569 diff (result(<) vs expected_result(>)) =
8575 metaline.res : CORRECT
8576 metaops.res : CORRECT
8577 metaops0.res : CORRECT
8578 metaruleelem.res : CORRECT
8579 metastatement2.res : CORRECT
8580 metastatement_for.res : CORRECT
8581 metastatement_if.res : CORRECT
8582 mincom.res : CORRECT
8583 minenum.res : CORRECT
8584 minenum1.res : CORRECT
8586 mini_null_ref.res : CORRECT
8587 miniswap.res : CORRECT
8588 minstruct.res : CORRECT
8589 minusdots.res : CORRECT
8590 minusdots_ver1.res : CORRECT
8591 multi_func1.res : PROBLEM
8592 exn = Coccinelle_modules.Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/multi_func1.cocci\", line 12, column 2, charpos = 102\n around = 'fn2',\n whole content = fn2(...) {\n")
8593 multi_initialize_finalize.res : PROBLEM
8594 exn = Failure("OCaml scripting is unsupported.")
8595 multichars.res : CORRECT
8596 multidec.res : CORRECT
8597 multidecl3.res : CORRECT
8598 multipath.res : CORRECT
8599 multiplus.res : CORRECT
8600 multiremove.res : CORRECT
8601 multistruct.res : CORRECT
8602 multitype.res : CORRECT
8603 multitypedef.res : CORRECT
8604 multivars.res : CORRECT
8606 nameless.res : CORRECT
8608 nestone.res : CORRECT
8609 nestseq.res : CORRECT
8610 neststruct.res : CORRECT
8613 nocast.res : CORRECT
8616 notest.res : CORRECT
8617 notnot.res : CORRECT
8620 null_bool.res : INCORRECT:diff token: ) VS !=
8621 File <COCCIOUTPUTFILE>, line 2, column 8, charpos = 22
8623 whole content = if (12) return;
8624 File "tests/null_bool.res", line 2, column 9, charpos = 23
8626 whole content = if (12 != NULL) return;
8628 diff (result(<) vs expected_result(>)) =
8632 - if (a && 12 && b) return;
8633 + if (12 != NULL) return;
8634 + if (a && 12 != NULL && b) return;
8636 if (a && 12 && b) return;
8638 null_type.res : CORRECT
8639 oddifdef.res : INCORRECT:diff token: #else VS x
8640 File <COCCIOUTPUTFILE>, line 10, column 0, charpos = 114
8642 whole content = #else
8643 File "tests/oddifdef.res", line 10, column 2, charpos = 116
8645 whole content = x = 0;
8647 diff (result(<) vs expected_result(>)) =
8678 oneline.res : CORRECT
8681 optional_qualifier.res : CORRECT
8682 optional_storage.res : CORRECT
8684 output.res : CORRECT
8685 output.stdout : CORRECT
8686 output_init.res : CORRECT
8687 overshoot.res : CORRECT
8692 param_end.res : CORRECT
8693 param_to_exp.res : CORRECT
8694 param_ver1.res : CORRECT
8695 parameters_dots.res : CORRECT
8696 parenmac.res : CORRECT
8697 partial.res : CORRECT
8698 partialmd.res : CORRECT
8699 partialmd2.res : CORRECT
8700 partialmd3.res : CORRECT
8701 pb_distribute_type.res : INCORRECT:PB parsing only in generated-file
8702 diff (result(<) vs expected_result(>)) =
8711 pb_distribute_type2.res : INCORRECT:PB parsing only in generated-file
8712 diff (result(<) vs expected_result(>)) =
8728 pb_distribute_type3.res : PROBLEM
8729 exn = Failure("line 7: index 53 53 already used\n")
8730 pb_distribute_type4.res : CORRECT
8731 pb_params_iso.res : CORRECT
8732 pb_parsing_macro.res : CORRECT
8733 pb_tag_symbols.res : CORRECT
8735 pcomma.res : CORRECT
8736 plus33.res : INCORRECT:diff token: double3x3 VS xdouble3x3
8737 File <COCCIOUTPUTFILE>, line 1, column 15, charpos = 15
8738 around = 'double3x3',
8739 whole content = typedef double double3x3[3][3];
8740 File "tests/plus33.res", line 1, column 15, charpos = 15
8741 around = 'xdouble3x3',
8742 whole content = typedef double xdouble3x3[3][3];
8744 diff (result(<) vs expected_result(>)) =
8746 -typedef double double3x3[3][3];
8747 +typedef double xdouble3x3[3][3];
8750 poscon.res : PROBLEM
8751 exn = Failure("OCaml scripting is unsupported.")
8752 posiso.res : CORRECT
8753 positionc.res : CORRECT
8755 pragmatest1.res : CORRECT
8756 print_return.res : CORRECT
8758 proto2.res : CORRECT
8759 proto_ver1.res : CORRECT
8760 proto_ver2.res : CORRECT
8761 protoassert.res : CORRECT
8762 protox.res : CORRECT
8764 python_iteration.res : CORRECT
8765 python_iteration.stdout : CORRECT
8766 python_mdecl.res : CORRECT
8767 python_mdeclp.res : CORRECT
8768 python_poscon.res : CORRECT
8769 qualifier.res : CORRECT
8772 regexp.res : CORRECT
8773 regexp2.res : CORRECT
8774 regexp3.res : CORRECT
8777 remaft.res : CORRECT
8778 remcom.res : CORRECT
8779 remodif.res : CORRECT
8780 remove-code-in-branch1.res : CORRECT
8781 remove_call.res : CORRECT
8782 remparam.res : CORRECT
8785 remstruct.res : CORRECT
8786 replace_typedef.res : CORRECT
8787 reserved.res : CORRECT
8788 retest.res : CORRECT
8789 retmacro.res : CORRECT
8791 return.res : CORRECT
8792 return_implicit.res : CORRECT
8793 retval.res : CORRECT
8794 retval2.res : CORRECT
8795 reusevar.res : CORRECT
8798 same_expr.res : CORRECT
8799 scope_problem.res : INCORRECT:diff token: } VS a
8800 File <COCCIOUTPUTFILE>, line 4, column 2, charpos = 42
8803 File "tests/scope_problem.res", line 4, column 4, charpos = 44
8805 whole content = a = 2;
8807 diff (result(<) vs expected_result(>)) =
8818 serio.res : INCORRECT:diff token: init_MUTEX VS mutex_init
8819 File "tests/serio.c", line 7, column 1, charpos = 130
8820 around = 'init_MUTEX',
8821 whole content = init_MUTEX(&serio->drv_sem);
8822 File "tests/serio.res", line 7, column 1, charpos = 130
8823 around = 'mutex_init',
8824 whole content = mutex_init(&serio->new_lock);
8826 diff (result(<) vs expected_result(>)) =
8829 static void serio_init_port(struct serio *serio)
8831 - init_MUTEX(&serio->drv_sem);
8832 + mutex_init(&serio->new_lock);
8834 shared_brace.res : CORRECT
8835 signed.res : CORRECT
8837 sizeof.res : CORRECT
8838 sizeof_julia.res : CORRECT
8839 sizeptr.res : CORRECT
8840 sizestar.res : CORRECT
8844 exn = Failure("OCaml scripting is unsupported.")
8845 smallfn.res : CORRECT
8847 spaces.res : CORRECT
8848 spacing.res : CORRECT
8850 starprint.res : CORRECT
8851 static.res : CORRECT
8854 stm10_ver1.res : CORRECT
8863 str_init.res : CORRECT
8864 strangeorder.res : CORRECT
8866 strid2.res : CORRECT
8867 string.res : CORRECT
8868 struct.res : CORRECT
8869 struct_metavar.res : CORRECT
8870 struct_typedef.res : CORRECT
8871 structfoo.res : CORRECT
8872 substruct.res : CORRECT
8875 switch.res : CORRECT
8876 switchdecl.res : CORRECT
8877 symbol.res : CORRECT
8880 tdplus.res : CORRECT
8884 test10.res : CORRECT
8885 test10_ver1.res : CORRECT
8886 test11.res : CORRECT
8887 test11_ver1.res : CORRECT
8888 test12.res : CORRECT
8893 test5_ver1.res : CORRECT
8898 test_s.res : CORRECT
8899 test_unsigned_meta.res : CORRECT
8900 testand.res : CORRECT
8901 testand2.res : CORRECT
8902 three_types.res : CORRECT
8903 threea.res : CORRECT
8905 topdec.res : CORRECT
8906 topdec_ver1.res : CORRECT
8907 topdec_ver2.res : CORRECT
8908 toplevel_macrostmt.res : CORRECT
8909 toplevel_struct.res : CORRECT
8910 triplet.res : CORRECT
8912 twomatch.res : CORRECT
8913 twoproto.res : CORRECT
8916 ty_tyexp.res : CORRECT
8917 tydisj.res : CORRECT
8921 type_annotated.res : CORRECT
8922 type_constraints.res : CORRECT
8923 type_ver1.res : CORRECT
8924 type_ver2.res : INCORRECT:PB parsing only in generated-file
8925 diff (result(<) vs expected_result(>)) =
8933 typedef.res : CORRECT
8934 typedef3.res : INCORRECT:diff token: link VS p_dev
8935 File <COCCIOUTPUTFILE>, line 7, column 29, charpos = 137
8937 whole content = unsigned int iobase = info->link.io.BasePort1;
8938 File "tests/typedef3.res", line 7, column 29, charpos = 137
8940 whole content = unsigned int iobase = info->p_dev->io.BasePort1;
8942 diff (result(<) vs expected_result(>)) =
8945 static void should_work(foo *info)
8947 - unsigned int iobase = info->link.io.BasePort1;
8948 + unsigned int iobase = info->p_dev->io.BasePort1;
8951 static void does_work(struct bluecard_info_t *info)
8952 typedef_double.res : CORRECT
8953 typeof.res : CORRECT
8955 unbrace.res : CORRECT
8956 undref.res : CORRECT
8957 undref2.res : PROBLEM
8958 exn = Failure("OCaml scripting is unsupported.")
8959 undref3.res : PROBLEM
8960 exn = Failure("OCaml scripting is unsupported.")
8961 unelse.res : CORRECT
8962 unfree.res : CORRECT
8964 unstruct.res : CORRECT
8965 updassign.res : CORRECT
8966 useless_cast.res : CORRECT
8967 varargs.res : CORRECT
8968 varargs2.res : CORRECT
8969 varargs3.res : CORRECT
8970 video1bis.res : CORRECT
8973 whitespace.res : CORRECT
8974 wierd_argument.res : CORRECT
8975 wierdinit.res : seems incorrect, but only because of code that was not parsablediff token: dev_link_t VS struct
8976 File "tests/wierdinit.c", line 4, column 1, charpos = 27
8977 around = 'dev_link_t',
8978 whole content = dev_link_t *link;
8979 File "tests/wierdinit.res", line 4, column 1, charpos = 27
8981 whole content = struct pcmcia_device *link;
8982 wrongcheck.res : CORRECT
8984 xfield.res : CORRECT
8987 --------------------------------
8988 regression testing information
8989 --------------------------------
8990 regression file: tests/SCORE_expected.sexp
8991 new test file appeared: 62.res
8992 new test file appeared: a.res
8993 new test file appeared: a3d.res
8994 new test file appeared: a_and_e.res
8995 new test file appeared: a_and_e_ver1.res
8996 new test file appeared: ab.res
8997 new test file appeared: add1.res
8998 new test file appeared: addaft.res
8999 new test file appeared: addbefore.res
9000 new test file appeared: addbeforeafter.res
9001 new test file appeared: addelse.res
9002 new test file appeared: addes.res
9003 new test file appeared: addfield.res
9004 new test file appeared: addfield2.res
9005 new test file appeared: addif.res
9006 new test file appeared: addif1.res
9007 new test file appeared: addif2.res
9008 new test file appeared: addifdef.res
9009 new test file appeared: addifelse.res
9010 new test file appeared: addifelse2.res
9011 new test file appeared: addinc.res
9012 new test file appeared: addtoo.res
9013 new test file appeared: addtrace.res
9014 new test file appeared: after_if.res
9015 new test file appeared: allex.res
9016 new test file appeared: allex2.res
9017 new test file appeared: allex3.res
9018 new test file appeared: andid.res
9019 new test file appeared: anon.res
9020 new test file appeared: anonfield.res
9021 new test file appeared: ar.res
9022 new test file appeared: arg.res
9023 new test file appeared: argument.res
9024 new test file appeared: arparam.res
9025 new test file appeared: array_init.res
9026 new test file appeared: array_size.res
9027 new test file appeared: arraysz.res
9028 new test file appeared: as_stm.res
9029 new test file appeared: attradd.res
9030 new test file appeared: attrs2groups.res
9031 new test file appeared: b1.res
9032 new test file appeared: b2.res
9033 new test file appeared: bad_iso_example.res
9034 new test file appeared: bad_kfree.res
9035 new test file appeared: bad_ptr_print.res
9036 new test file appeared: bad_typedef.res
9037 new test file appeared: badexp.res
9038 new test file appeared: badpos.res
9039 new test file appeared: badtypedef.res
9040 new test file appeared: badwhen.res
9041 new test file appeared: badzero.res
9042 new test file appeared: bc_1.res
9043 new test file appeared: befS.res
9044 new test file appeared: before.res
9045 new test file appeared: ben.res
9046 new test file appeared: bigin.res
9047 new test file appeared: bigrepl.res
9048 new test file appeared: binop.res
9049 new test file appeared: bitfield.res
9050 new test file appeared: bitfield_matching.res
9051 new test file appeared: boolr.res
9052 new test file appeared: braces.res
9053 new test file appeared: branchparen.res
9054 new test file appeared: break.res
9055 new test file appeared: bug1.res
9056 new test file appeared: bugloop.res
9057 new test file appeared: bugon.res
9058 new test file appeared: bus.res
9059 new test file appeared: cards.res
9060 new test file appeared: caseprint.res
9061 new test file appeared: cast.res
9062 new test file appeared: cast_iso.res
9063 new test file appeared: castdecl.res
9064 new test file appeared: cex_wishlist_complex1.res
9065 new test file appeared: cex_wishlist_complex2.res
9066 new test file appeared: cex_wishlist_complex3.res
9067 new test file appeared: change.res
9068 new test file appeared: change_type.res
9069 new test file appeared: changei.res
9070 new test file appeared: com.res
9071 new test file appeared: comadd.res
9072 new test file appeared: comj.res
9073 new test file appeared: comment_brace.res
9074 new test file appeared: comment_brace2.res
9075 new test file appeared: comments.res
9076 new test file appeared: compare.res
9077 new test file appeared: compare_const2.res
9078 new test file appeared: condexp.res
9079 new test file appeared: const.res
9080 new test file appeared: const1bis.res
9081 new test file appeared: const_adding.res
9082 new test file appeared: const_array.res
9083 new test file appeared: const_implicit_iso.res
9084 new test file appeared: constraints.res
9085 new test file appeared: constrem.res
9086 new test file appeared: constructor.res
9087 new test file appeared: constty.res
9088 new test file appeared: constx.res
9089 new test file appeared: countcalls.res
9090 new test file appeared: countcalls_python.res
9091 new test file appeared: countcalls_python.stdout
9092 new test file appeared: cptr.res
9093 new test file appeared: cr.res
9094 new test file appeared: cr1a.res
9095 new test file appeared: cs_check.res
9096 new test file appeared: cst.res
9097 new test file appeared: cst_null.res
9098 new test file appeared: cstr.res
9099 new test file appeared: cststr.res
9100 new test file appeared: csw.res
9101 new test file appeared: dbg.res
9102 new test file appeared: dbg1.res
9103 new test file appeared: dc_close.res
9104 new test file appeared: debug.res
9105 new test file appeared: dec.res
9106 new test file appeared: decl.res
9107 new test file appeared: decl2.res
9108 new test file appeared: decl_space.res
9109 new test file appeared: decl_split.res
9110 new test file appeared: decl_star.res
9111 new test file appeared: declmeta.res
9112 new test file appeared: defe.res
9113 new test file appeared: define_exp.res
9114 new test file appeared: define_param.res
9115 new test file appeared: defineinit.res
9116 new test file appeared: deftodo.res
9117 new test file appeared: delete_function.res
9118 new test file appeared: delp.res
9119 new test file appeared: deref.res
9120 new test file appeared: destroy.res
9121 new test file appeared: devlink.res
9122 new test file appeared: disj.res
9123 new test file appeared: disjexpr.res
9124 new test file appeared: disjexpr_ver1.res
9125 new test file appeared: disjexpr_ver2.res
9126 new test file appeared: disjid.res
9127 new test file appeared: distribute.res
9128 new test file appeared: double.res
9129 new test file appeared: double_assign.res
9130 new test file appeared: double_lines.res
9131 new test file appeared: double_switch.res
9132 new test file appeared: doublepos.res
9133 new test file appeared: doubleswitch.res
9134 new test file appeared: doundo.res
9135 new test file appeared: dowhile.res
9136 new test file appeared: dropbr.res
9137 new test file appeared: dropcom.res
9138 new test file appeared: dropenderr.res
9139 new test file appeared: dropf.res
9140 new test file appeared: dropparam.res
9141 new test file appeared: dtest.res
9142 new test file appeared: eb1.res
9143 new test file appeared: edots.res
9144 new test file appeared: edots_ver1.res
9145 new test file appeared: elsify.res
9146 new test file appeared: empty.res
9147 new test file appeared: end_commas.res
9148 new test file appeared: endif.res
9149 new test file appeared: endnl.res
9150 new test file appeared: endpos.res
9151 new test file appeared: enum.res
9152 new test file appeared: exitc.res
9153 new test file appeared: exitp.res
9154 new test file appeared: exp.res
9155 new test file appeared: expnest.res
9156 new test file appeared: expopt.res
9157 new test file appeared: expopt2.res
9158 new test file appeared: expopt3.res
9159 new test file appeared: expopt3_ver1.res
9160 new test file appeared: expopt3_ver2.res
9161 new test file appeared: extra.res
9162 new test file appeared: failing_andany.res
9163 new test file appeared: fields.res
9164 new test file appeared: fieldsmin.res
9165 new test file appeared: finalize_only.res
9166 new test file appeared: find_long.res
9167 new test file appeared: fix_flow_need.res
9168 new test file appeared: fn_todo.res
9169 new test file appeared: fnptr.res
9170 new test file appeared: fnret.res
9171 new test file appeared: fnty.res
9172 new test file appeared: fntypedef.res
9173 new test file appeared: format.res
9174 new test file appeared: format2.res
9175 new test file appeared: formatlist.res
9176 new test file appeared: fortest.res
9177 new test file appeared: fortype.res
9178 new test file appeared: four.res
9179 new test file appeared: foura.res
9180 new test file appeared: fp.res
9181 new test file appeared: fsh.res
9182 new test file appeared: fun.res
9183 new test file appeared: func.res
9184 new test file appeared: gcc_min_max.res
9185 new test file appeared: getc.res
9186 new test file appeared: gilles-question.res
9187 new test file appeared: gotobreak.res
9188 new test file appeared: hd.res
9189 new test file appeared: headers.res
9190 new test file appeared: hex.res
9191 new test file appeared: hil1.res
9192 new test file appeared: icomma.res
9193 new test file appeared: idcon_ocaml.res
9194 new test file appeared: idcon_python.res
9195 new test file appeared: idstr.res
9196 new test file appeared: if.res
9197 new test file appeared: ifadd.res
9198 new test file appeared: ifbr.res
9199 new test file appeared: ifd.res
9200 new test file appeared: ifdef1.res
9201 new test file appeared: ifdef2.res
9202 new test file appeared: ifdef3.res
9203 new test file appeared: ifdef4.res
9204 new test file appeared: ifdef5.res
9205 new test file appeared: ifdef6.res
9206 new test file appeared: ifdef6a.res
9207 new test file appeared: ifdefmeta.res
9208 new test file appeared: ifdefmeta1.res
9209 new test file appeared: ifdefmeta2.res
9210 new test file appeared: ifdefmeta3.res
9211 new test file appeared: ifend.res
9212 new test file appeared: ifgoto.res
9213 new test file appeared: ifields.res
9214 new test file appeared: ifif.res
9215 new test file appeared: ifreturn.res
9216 new test file appeared: ifreturn3.res
9217 new test file appeared: ifreturn4.res
9218 new test file appeared: ifreturn6.res
9219 new test file appeared: ifzer.res
9220 new test file appeared: ifzz.res
9221 new test file appeared: inc.res
9222 new test file appeared: incdir.res
9223 new test file appeared: incl.res
9224 new test file appeared: incl2.res
9225 new test file appeared: inclifdef.res
9226 new test file appeared: include.res
9227 new test file appeared: incompatible_value.res
9228 new test file appeared: incpos.res
9229 new test file appeared: incpos1.res
9230 new test file appeared: inherited.res
9231 new test file appeared: inherited_ver1.res
9232 new test file appeared: inhmet.res
9233 new test file appeared: inhpos.res
9234 new test file appeared: initializer.res
9235 new test file appeared: initializer_many_fields.res
9236 new test file appeared: inline.res
9237 new test file appeared: insdef.res
9238 new test file appeared: int2bool-local.res
9239 new test file appeared: introbrace.res
9240 new test file appeared: invert.res
9241 new test file appeared: ip.res
9242 new test file appeared: ip2.res
9243 new test file appeared: isococci.res
9244 new test file appeared: isoif.res
9245 new test file appeared: isotest.res
9246 new test file appeared: isotest2.res
9247 new test file appeared: iteration.res
9248 new test file appeared: iteration_after_merge.res
9249 new test file appeared: iterator.res
9250 new test file appeared: iterprint.res
9251 new test file appeared: jloop1.res
9252 new test file appeared: julia10.res
9253 new test file appeared: julia7.res
9254 new test file appeared: justremove.res
9255 new test file appeared: keep_comma.res
9256 new test file appeared: km.res
9257 new test file appeared: kmalloc.res
9258 new test file appeared: kmc.res
9259 new test file appeared: kr.res
9260 new test file appeared: ktype.res
9261 new test file appeared: ktype2.res
9262 new test file appeared: labels_metastatement.res
9263 new test file appeared: labels_metastatement_ver1.res
9264 new test file appeared: lid.res
9265 new test file appeared: line_before_last.res
9266 new test file appeared: list_test.res
9267 new test file appeared: local.res
9268 new test file appeared: localglobal.res
9269 new test file appeared: localid.res
9270 new test file appeared: log.res
9271 new test file appeared: long.res
9272 new test file appeared: longconst.res
9273 new test file appeared: longline2.res
9274 new test file appeared: longlong.res
9275 new test file appeared: longlongint.res
9276 new test file appeared: loop.res
9277 new test file appeared: lvalue.res
9278 new test file appeared: macro.res
9279 new test file appeared: macro_int16.res
9280 new test file appeared: match_init.res
9281 new test file appeared: match_no_meta.res
9282 new test file appeared: max.res
9283 new test file appeared: md1.res
9284 new test file appeared: md2.res
9285 new test file appeared: md3.res
9286 new test file appeared: mdadd.res
9287 new test file appeared: mdec.res
9288 new test file appeared: mdecl.res
9289 new test file appeared: mdeclp.res
9290 new test file appeared: mdeclp2.res
9291 new test file appeared: mdeclrep.res
9292 new test file appeared: memory.res
9293 new test file appeared: merge_after_iteration.res
9294 new test file appeared: metahex.res
9295 new test file appeared: metaline.res
9296 new test file appeared: metaops.res
9297 new test file appeared: metaops0.res
9298 new test file appeared: metaruleelem.res
9299 new test file appeared: metastatement2.res
9300 new test file appeared: metastatement_for.res
9301 new test file appeared: metastatement_if.res
9302 new test file appeared: mincom.res
9303 new test file appeared: minenum.res
9304 new test file appeared: minenum1.res
9305 new test file appeared: minfn.res
9306 new test file appeared: mini_null_ref.res
9307 new test file appeared: miniswap.res
9308 new test file appeared: minstruct.res
9309 new test file appeared: minusdots.res
9310 new test file appeared: minusdots_ver1.res
9311 new test file appeared: multi_func1.res
9312 new test file appeared: multi_initialize_finalize.res
9313 new test file appeared: multichars.res
9314 new test file appeared: multidec.res
9315 new test file appeared: multidecl3.res
9316 new test file appeared: multipath.res
9317 new test file appeared: multiplus.res
9318 new test file appeared: multiremove.res
9319 new test file appeared: multistruct.res
9320 new test file appeared: multitype.res
9321 new test file appeared: multitypedef.res
9322 new test file appeared: multivars.res
9323 new test file appeared: na.res
9324 new test file appeared: nameless.res
9325 new test file appeared: nest.res
9326 new test file appeared: nestone.res
9327 new test file appeared: nestseq.res
9328 new test file appeared: neststruct.res
9329 new test file appeared: nl.res
9330 new test file appeared: noa.res
9331 new test file appeared: nocast.res
9332 new test file appeared: noret.res
9333 new test file appeared: not.res
9334 new test file appeared: notest.res
9335 new test file appeared: notnot.res
9336 new test file appeared: noty.res
9337 new test file appeared: noty2.res
9338 new test file appeared: null_bool.res
9339 new test file appeared: null_type.res
9340 new test file appeared: oddifdef.res
9341 new test file appeared: of.res
9342 new test file appeared: oneline.res
9343 new test file appeared: op.res
9344 new test file appeared: opt.res
9345 new test file appeared: optional_qualifier.res
9346 new test file appeared: optional_storage.res
9347 new test file appeared: orexp.res
9348 new test file appeared: output.res
9349 new test file appeared: output.stdout
9350 new test file appeared: output_init.res
9351 new test file appeared: overshoot.res
9352 new test file appeared: p1p2.res
9353 new test file appeared: p9.res
9354 new test file appeared: pa.res
9355 new test file appeared: param.res
9356 new test file appeared: param_end.res
9357 new test file appeared: param_to_exp.res
9358 new test file appeared: param_ver1.res
9359 new test file appeared: parameters_dots.res
9360 new test file appeared: parenmac.res
9361 new test file appeared: partial.res
9362 new test file appeared: partialmd.res
9363 new test file appeared: partialmd2.res
9364 new test file appeared: partialmd3.res
9365 new test file appeared: pb_distribute_type.res
9366 new test file appeared: pb_distribute_type2.res
9367 new test file appeared: pb_distribute_type3.res
9368 new test file appeared: pb_distribute_type4.res
9369 new test file appeared: pb_params_iso.res
9370 new test file appeared: pb_parsing_macro.res
9371 new test file appeared: pb_tag_symbols.res
9372 new test file appeared: pcim.res
9373 new test file appeared: pcomma.res
9374 new test file appeared: plus33.res
9375 new test file appeared: pmac.res
9376 new test file appeared: poscon.res
9377 new test file appeared: posiso.res
9378 new test file appeared: positionc.res
9379 new test file appeared: post.res
9380 new test file appeared: pragmatest1.res
9381 new test file appeared: print_return.res
9382 new test file appeared: proto.res
9383 new test file appeared: proto2.res
9384 new test file appeared: proto_ver1.res
9385 new test file appeared: proto_ver2.res
9386 new test file appeared: protoassert.res
9387 new test file appeared: protox.res
9388 new test file appeared: ptrar.res
9389 new test file appeared: python_iteration.res
9390 new test file appeared: python_iteration.stdout
9391 new test file appeared: python_mdecl.res
9392 new test file appeared: python_mdeclp.res
9393 new test file appeared: python_poscon.res
9394 new test file appeared: qualifier.res
9395 new test file appeared: range.res
9396 new test file appeared: rcu3.res
9397 new test file appeared: regexp.res
9398 new test file appeared: regexp2.res
9399 new test file appeared: regexp3.res
9400 new test file appeared: rem1.res
9401 new test file appeared: rem2.res
9402 new test file appeared: remaft.res
9403 new test file appeared: remcom.res
9404 new test file appeared: remodif.res
9405 new test file appeared: remove-code-in-branch1.res
9406 new test file appeared: remove_call.res
9407 new test file appeared: remparam.res
9408 new test file appeared: rems.res
9409 new test file appeared: rems1.res
9410 new test file appeared: remstruct.res
9411 new test file appeared: replace_typedef.res
9412 new test file appeared: reserved.res
9413 new test file appeared: retest.res
9414 new test file appeared: retmacro.res
9415 new test file appeared: rets.res
9416 new test file appeared: return.res
9417 new test file appeared: return_implicit.res
9418 new test file appeared: retval.res
9419 new test file appeared: retval2.res
9420 new test file appeared: reusevar.res
9421 new test file appeared: roa.res
9422 new test file appeared: rptr.res
9423 new test file appeared: same_expr.res
9424 new test file appeared: scope_problem.res
9425 new test file appeared: sd_2.res
9426 new test file appeared: serio.res
9427 new test file appeared: shared_brace.res
9428 new test file appeared: signed.res
9429 new test file appeared: sis.res
9430 new test file appeared: sizeof.res
9431 new test file appeared: sizeof_julia.res
9432 new test file appeared: sizeptr.res
9433 new test file appeared: sizestar.res
9434 new test file appeared: skip.res
9435 new test file appeared: sl2.res
9436 new test file appeared: slen.res
9437 new test file appeared: smallfn.res
9438 new test file appeared: sp.res
9439 new test file appeared: spaces.res
9440 new test file appeared: spacing.res
9441 new test file appeared: spl.res
9442 new test file appeared: starprint.res
9443 new test file appeared: static.res
9444 new test file appeared: stm1.res
9445 new test file appeared: stm10.res
9446 new test file appeared: stm10_ver1.res
9447 new test file appeared: stm2.res
9448 new test file appeared: stm3.res
9449 new test file appeared: stm4.res
9450 new test file appeared: stm5.res
9451 new test file appeared: stm6.res
9452 new test file appeared: stm7.res
9453 new test file appeared: stm8.res
9454 new test file appeared: stmt.res
9455 new test file appeared: str_init.res
9456 new test file appeared: strangeorder.res
9457 new test file appeared: strid.res
9458 new test file appeared: strid2.res
9459 new test file appeared: string.res
9460 new test file appeared: struct.res
9461 new test file appeared: struct_metavar.res
9462 new test file appeared: struct_typedef.res
9463 new test file appeared: structfoo.res
9464 new test file appeared: substruct.res
9465 new test file appeared: sw.res
9466 new test file appeared: swap3.res
9467 new test file appeared: switch.res
9468 new test file appeared: switchdecl.res
9469 new test file appeared: symbol.res
9470 new test file appeared: td.res
9471 new test file appeared: tdnl.res
9472 new test file appeared: tdplus.res
9473 new test file appeared: tern.res
9474 new test file appeared: test0.res
9475 new test file appeared: test1.res
9476 new test file appeared: test10.res
9477 new test file appeared: test10_ver1.res
9478 new test file appeared: test11.res
9479 new test file appeared: test11_ver1.res
9480 new test file appeared: test12.res
9481 new test file appeared: test2.res
9482 new test file appeared: test3.res
9483 new test file appeared: test4.res
9484 new test file appeared: test5.res
9485 new test file appeared: test5_ver1.res
9486 new test file appeared: test6.res
9487 new test file appeared: test7.res
9488 new test file appeared: test8.res
9489 new test file appeared: test9.res
9490 new test file appeared: test_s.res
9491 new test file appeared: test_unsigned_meta.res
9492 new test file appeared: testand.res
9493 new test file appeared: testand2.res
9494 new test file appeared: three_types.res
9495 new test file appeared: threea.res
9496 new test file appeared: top.res
9497 new test file appeared: topdec.res
9498 new test file appeared: topdec_ver1.res
9499 new test file appeared: topdec_ver2.res
9500 new test file appeared: toplevel_macrostmt.res
9501 new test file appeared: toplevel_struct.res
9502 new test file appeared: triplet.res
9503 new test file appeared: tup.res
9504 new test file appeared: twomatch.res
9505 new test file appeared: twoproto.res
9506 new test file appeared: ty.res
9507 new test file appeared: ty1.res
9508 new test file appeared: ty_tyexp.res
9509 new test file appeared: tydisj.res
9510 new test file appeared: tyex.res
9511 new test file appeared: type.res
9512 new test file appeared: type1.res
9513 new test file appeared: type_annotated.res
9514 new test file appeared: type_constraints.res
9515 new test file appeared: type_ver1.res
9516 new test file appeared: type_ver2.res
9517 new test file appeared: typedef.res
9518 new test file appeared: typedef3.res
9519 new test file appeared: typedef_double.res
9520 new test file appeared: typeof.res
9521 new test file appeared: typin.res
9522 new test file appeared: unbrace.res
9523 new test file appeared: undref.res
9524 new test file appeared: undref2.res
9525 new test file appeared: undref3.res
9526 new test file appeared: unelse.res
9527 new test file appeared: unfree.res
9528 new test file appeared: unl.res
9529 new test file appeared: unstruct.res
9530 new test file appeared: updassign.res
9531 new test file appeared: useless_cast.res
9532 new test file appeared: varargs.res
9533 new test file appeared: varargs2.res
9534 new test file appeared: varargs3.res
9535 new test file appeared: video1bis.res
9536 new test file appeared: void.res
9537 new test file appeared: vpos.res
9538 new test file appeared: whitespace.res
9539 new test file appeared: wierd_argument.res
9540 new test file appeared: wierdinit.res
9541 new test file appeared: wrongcheck.res
9542 new test file appeared: ws2.res
9543 new test file appeared: xfield.res
9544 new test file appeared: y2.res
9545 new test file appeared: zero.res
9546 --------------------------------
9548 --------------------------------
9550 Current score is greater than expected :)
9551 (was expecting 0 but got 513)
9552 Generating new expected score file and saving old one
9553 mv tests/SCORE_expected.sexp tests/SCORE_expected.sexp.save [y/n] ?
9555 make[1]: *** [Makefile:267: check] Error 255
9556 make[1]: Leaving directory '$(@D)'