Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 519146 Details for
Bug 647348
dev-util/coccinelle-1.0.6: make test failed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 298.40 KB, created by
Thomas Deutschmann (RETIRED)
on 2018-02-11 21:39:36 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2018-02-11 21:39:36 UTC
Size:
298.40 KB
patch
obsolete
> * Package: dev-util/coccinelle-1.0.6 > * Repository: gentoo > * Maintainer: radhermit@gentoo.org ml@gentoo.org > * USE: abi_x86_32 elibc_glibc kernel_linux ocamlopt python python_targets_python2_7 test userland_GNU x86 > * FEATURES: preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking coccinelle-1.0.6.tgz to /var/tmp/portage/dev-util/coccinelle-1.0.6/work >>>> Source unpacked in /var/tmp/portage/dev-util/coccinelle-1.0.6/work >>>> Preparing source in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6 ... >./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/coccinelle-1.0.6 --htmldir=/usr/share/doc/coccinelle-1.0.6/html --libdir=/usr/lib --enable-python --disable-ocaml --disable-pcre --disable-pcre-syntax --enable-opt >configure: configuring coccinelle 1.0.6 in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6 >checking for a BSD-compatible install... /usr/lib/portage/python3.5/ebuild-helpers/xattr/install -c >checking whether build environment is sane... yes >checking for a thread-safe mkdir -p... /bin/mkdir -p >checking for gawk... gawk >checking whether make sets $(MAKE)... yes >checking whether make supports nested variables... yes >configure: determining version suffix >checking for i686-pc-linux-gnu-date... no >checking for date... /bin/date >configure: version suffix set to Sun, 11 Feb 2018 22:35:09 +0100 >configure: this configure program uses pkg-config m4 macros >configure: this configure program uses ocaml m4 macros (see setup/ocaml.m4) >configure: this configure program uses custom m4 macros (see setup/cocci.m4) >configure: some fake substitutions for required but unavailable programs may be used (see setup/fake*) >configure: verifying basic tools >checking for style of include used by make... GNU >checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc >checking whether the C compiler works... yes >checking for C compiler default output file name... a.out >checking for suffix of executables... >checking whether we are cross compiling... no >checking for suffix of object files... o >checking whether we are using the GNU C compiler... yes >checking whether i686-pc-linux-gnu-gcc accepts -g... yes >checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed >checking whether i686-pc-linux-gnu-gcc understands -c and -o together... yes >checking dependency style of i686-pc-linux-gnu-gcc... none >checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E >checking for bash... /bin/sh >checking for tar... /bin/tar >checking for patch... /usr/bin/patch >checking for echo... /bin/echo >checking for patchelf... no >checking for i686-pc-linux-gnu-pkg-config... /usr/bin/i686-pc-linux-gnu-pkg-config >checking pkg-config is at least version 0.9.0... yes >checking for i686-pc-linux-gnu-ocamlc... no >checking for ocamlc... /usr/bin/ocamlc >OCaml version is 4.05.0 >OCaml library path is /usr/lib/ocaml >checking for i686-pc-linux-gnu-ocamlopt... no >checking for ocamlopt... /usr/bin/ocamlopt >checking for i686-pc-linux-gnu-ocamlc.opt... no >checking for ocamlc.opt... /usr/bin/ocamlc.opt >checking for i686-pc-linux-gnu-ocamlopt.opt... no >checking for ocamlopt.opt... /usr/bin/ocamlopt.opt >checking for i686-pc-linux-gnu-ocaml... no >checking for ocaml... /usr/bin/ocaml >checking for i686-pc-linux-gnu-ocamldep... no >checking for ocamldep... /usr/bin/ocamldep >checking for i686-pc-linux-gnu-ocamlmktop... no >checking for ocamlmktop... /usr/bin/ocamlmktop >checking for i686-pc-linux-gnu-ocamlmklib... no >checking for ocamlmklib... /usr/bin/ocamlmklib >checking for i686-pc-linux-gnu-ocamldoc... no >checking for ocamldoc... /usr/bin/ocamldoc >checking that the OCaml version is at least 3.12... yes >checking that the OCaml version is at least 4.02... yes >checking for i686-pc-linux-gnu-ocamllex... no >checking for ocamllex... /usr/bin/ocamllex >checking for i686-pc-linux-gnu-ocamllex.opt... no >checking for ocamllex.opt... /usr/bin/ocamllex.opt >checking for i686-pc-linux-gnu-ocamlyacc... no >checking for ocamlyacc... /usr/bin/ocamlyacc >checking for i686-pc-linux-gnu-ocamlfind... no >checking for ocamlfind... /usr/bin/ocamlfind >checking for i686-pc-linux-gnu-ocamlprof... no >checking for ocamlprof... /usr/bin/ocamlprof >configure: verifying basic ocaml modules >configure: coccinelle may use external ocaml libraries in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles >configure: the following OCaml packages should be provided by your ocaml installation >checking for OCaml findlib package unix... found >checking for OCaml findlib package bigarray... found >checking for OCaml findlib package num... found >checking for OCaml findlib package str... found >configure: configuring package dynlink >checking for OCaml findlib package dynlink... found >configure: configuring package parmap >checking for OCaml findlib package parmap... found >configure: verifying optional features >checking for i686-pc-linux-gnu-menhir... no >checking for menhir... /usr/bin/menhir >configure: system menhir will be used >configure: system menhir will be used >configure: configuring package pyml >checking for OCaml findlib package pyml... not found >configure: OCaml package pyml is not available >checking for a bundled substitute of pyml... yes >configure: using bundled substitute for pyml in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ >checking for i686-pc-linux-gnu-pdflatex... no >checking for pdflatex... /usr/bin/pdflatex >checking that generated files are newer than configure... done >configure: creating ./config.status >config.status: creating Makefile.config >config.status: creating version.ml >config.status: creating commons/commands.ml >config.status: creating globals/config.ml >config.status: creating globals/regexp.ml >config.status: creating python/pycocci.ml >config.status: creating ocaml/prepare_ocamlcocci.ml >config.status: creating scripts/spatch.sh >config.status: creating tools/spgen/scripts/spgen.sh >config.status: creating docs/spatch.1 >config.status: creating setup/Makefile >config.status: executing depfiles commands >configure: configuration completed >------------------------------------------------------------------------------ >Summary > >configure flags: --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/coccinelle-1.0.6 --htmldir=/usr/share/doc/coccinelle-1.0.6/html --libdir=/usr/lib --enable-python --disable-ocaml --disable-pcre --disable-pcre-syntax --enable-opt >findlib: /usr/bin/ocamlfind (an actual version is strongly recommended) >menhir: /usr/bin/menhir (for local package use --without-menhir, install the menhir package otherwise) > >ocaml scripting: no (overridable with --enable-ocaml) >python scripting: yes (overridable with --enable-python) > >pcre regexes: no (overridable with --enable-pcre-syntax) >pcre module: no (for local package use --disable-pcre) >pcre library: (requires the libpcre-ocaml-dev package) > >optimized spatch: yes (overridable with --disable-opt) > >------------------------------------------------------------------------------ >Coccinelle can now be compiled and installed. > > >If you compile coccinelle again after source code changes or >configuration changes, you may need to run first: > $ make clean > >To compile coccinelle, run: > $ make > >To install coccinelle, run: > $ make install > >Then, to test coccinelle, run for example: > $ spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c > >Or when coccinelle is not installed yet: > $ COCCINELLE_HOME=/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6 ./scripts/spatch -sp_file demos/simple.cocci demos/simple.c -o /tmp/new_simple.c >------------------------------------------------------------------------------ >You may need to set some environment variables so that the python >libraries are found. The frontend 'spatch' sets the following variables: > > $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib > $ export PYTHONPATH=$PYTHONPATH:/usr/lib/coccinelle/python > >------------------------------------------------------------------------------ >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6 ... >make --jobs 5 --load-average 7.95 depend >Constructing '.depend' >set -e; for i in /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ commons globals ctl parsing_cocci parsing_c ocaml python engine popl09 extra tools/spgen; do echo $i; make -C $i depend; done >/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pyml_compat.mli -o pyml-current/pyml_compat.cmi >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pytypes.mli -o pyml-current/pytypes.cmi >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/pyml_compat.ml -o pyml-current/pyml_compat.cmx >[1mFile "[1mpyml-current/pyml_compat.ml", line 1, characters 16-32[0m[0m: >[1;35mWarning[0m 3: deprecated: String.lowercase >Use String.lowercase_ascii instead. >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/generate.ml -o pyml-current/generate.cmx >/usr/bin/ocamlopt.opt pyml-current/pyml_compat.cmx pyml-current/generate.cmx -o pyml-current/generate >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: pyml-current/generate.o: warning: relocation in readonly section `.text' >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. >cd pyml-current && ./generate >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -i pyml-current/pywrappers.ml >pyml-current/pywrappers.mli >touch .prepare >/usr/bin/ocamldep -I pyml-current pyml-current/*.ml pyml-current/*.mli >.depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >commons >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >/usr/bin/ocamldep -I ocamlextra common.mli objet.mli ocollection.mli ograph_extended.mli ograph_simple.mli commands.ml common.ml ograph_simple.ml ograph_extended.ml > .depend >for i in ocamlextra; do /usr/bin/ocamldep -I ocamlextra $i/*.ml $i/*.mli >> .depend; done >/usr/bin/ocamldep -I ocamlextra common.mli objet.mli ocollection.mli ograph_extended.mli ograph_simple.mli commands.ml common.ml ograph_simple.ml ograph_extended.ml > .depend >for i in ocamlextra; do /usr/bin/ocamldep -I ocamlextra $i/*.ml $i/*.mli >> .depend; done >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >globals >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >/usr/bin/ocamldep -I ../commons *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >ctl >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >parsing_cocci >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >/usr/bin/menhir --ocamlc "/usr/bin/ocamlc.opt" --ocamldep "/usr/bin/ocamldep" --table --base parser_cocci_menhir parser_cocci_menhir.mly >Warning: you are using the standard library and/or the %inline keyword. We >recommend switching on --infer in order to avoid obscure type error messages. >/usr/bin/menhir --ocamlc "/usr/bin/ocamlc.opt" --ocamldep "/usr/bin/ocamldep" --table --base parser_cocci_menhir parser_cocci_menhir.mly >Warning: you are using the standard library and/or the %inline keyword. We >recommend switching on --infer in order to avoid obscure type error messages. >/usr/bin/ocamldep *.mli *.ml > .depend >/usr/bin/ocamldep *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >parsing_c >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >/usr/bin/ocamllex.opt lexer_c.mll >/usr/bin/ocamlyacc -v parser_c.mly >/usr/bin/ocamlyacc -v parser_c.mly >549 states, 26116 transitions, table size 107758 bytes >15973 additional bytes used for bindings >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >ocaml >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >python >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >engine >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >popl09 >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >/usr/bin/ocamldep -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >extra >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >/usr/bin/ocamldep -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c *.mli *.ml > .depend >/usr/bin/ocamldep -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c *.mli *.ml > .depend >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >tools/spgen >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' >make -C source depend >make[2]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' >/usr/bin/ocamllex.opt spgen_lexer.mll >143 states, 8123 transitions, table size 33350 bytes >23641 additional bytes used for bindings >/usr/bin/ocamldep *.mli *.ml > .depend >make[2]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' >/usr/bin/ocamldep -I commons -I commons/ocamlextra -I globals -I ctl -I parsing_cocci -I parsing_c -I ocaml -I python -I engine -I popl09 -I extra -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ cocci.mli testing.mli flag_cocci.ml cocci.ml testing.ml read_options.ml main.ml > .depend >make --jobs 5 --load-average 7.95 all.opt >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[1]: '.depend' is up to date. >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make opt-only >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make .depend >make[2]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[2]: '.depend' is up to date. >make[2]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make subdirs.opt BUILD_OPT=yes >make[2]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pytypes.ml -o pyml-current/pytypes.cmo >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pywrappers.mli -o pyml-current/pywrappers.cmi >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/py.mli -o pyml-current/py.cmi >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -ccopt -fPIC pyml-current/pyml_stubs.c -o pyml-current/pyml_stubs.o >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/pytypes.ml -o pyml-current/pytypes.cmx >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pywrappers.ml -o pyml-current/pywrappers.cmo >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/py.ml -o pyml-current/py.cmo >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pycaml.mli -o pyml-current/pycaml.cmi >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/pywrappers.ml -o pyml-current/pywrappers.cmx >/usr/bin/ocamlc.opt -unsafe -I pyml-current -custom -cclib -lpyml_stubs -c pyml-current/pycaml.ml -o pyml-current/pycaml.cmo >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/py.ml -o pyml-current/py.cmx >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -c pyml-current/pycaml.ml -o pyml-current/pycaml.cmx >/usr/bin/ocamlopt.opt -I pyml-current -cclib -lpyml_stubs -a pyml-current/pytypes.cmx pyml-current/pywrappers.cmx pyml-current/py.cmx pyml-current/pycaml.cmx -o pyml-current/pyml.cmxa >mv pyml_stubs.o pyml-current/pyml_stubs.o >/usr/bin/ocamlmklib -linkall -o pyml-current/pyml_stubs pyml-current/pyml_stubs.o >/usr/bin/ocamlmklib -linkall -o pyml-current/pyml_stubs pyml-current/pyml_stubs.o pyml-current/libpyml_stubs.a >cp pyml-current/pyml.cmxa pyml-current/pywrappers.cmx pyml-current/py.cmx pyml-current/pycaml.cmx pyml-current/pyml.a pyml-current/pywrappers.cmi pyml-current/py.cmi pyml-current/pycaml.cmi pyml-current/libpyml_stubs.a . >if [ -n "pyml" ]; then \ > cp pyml-current/dllpyml_stubs.so .; \ >fi >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >/usr/bin/ocamlc.opt -unsafe -I ocamlextra -c ocamlextra/dumper.mli >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -c commands.ml >/usr/bin/ocamlc.opt -unsafe -I ocamlextra -c common.mli >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -c ocamlextra/dumper.ml >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -c common.ml >/usr/bin/ocamlc.opt -unsafe -I ocamlextra -c ograph_simple.mli >/usr/bin/ocamlc.opt -unsafe -I ocamlextra -c ograph_extended.mli >[1mFile "[1mcommon.ml", line 2211, characters 16-32[0m[0m: >[1;35mWarning[0m 3: deprecated: String.lowercase >Use String.lowercase_ascii instead. >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -c ograph_simple.ml >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -c ograph_extended.ml >/usr/bin/ocamlopt.opt -unsafe -I ocamlextra -a -o commons.cmxa ocamlextra/dumper.cmx commands.cmx common.cmx ograph_simple.cmx ograph_extended.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -c config.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -c flag.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -c iteration.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -c regexp_str.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -c regexp.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -c iteration.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -a -o globals.cmxa config.cmx flag.cmx iteration.cmx regexp_str.cmx regexp.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c flag_ctl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c ast_ctl.ml >skipped building ast_ctl.cmo in optimizing mode: ast_ctl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c pretty_print_ctl.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c ctl_engine.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c pretty_print_ctl.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c wrapper_ctl.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c ctl_engine.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c wrapper_ctl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -a -o ctl.cmxa flag_ctl.cmx ast_ctl.cmx pretty_print_ctl.cmx ctl_engine.cmx wrapper_ctl.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c flag_parsing_cocci.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast_cocci.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c semantic_cocci.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_printf.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c lexer_cli.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c cocci_grep.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c dpll.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c git_grep.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c command_line.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast_cocci.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast0_cocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c pretty_print_cocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c stmtlist.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c free_vars.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c safe_for_multi_decls.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_printf.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c disjdistr.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c cocci_grep.ml >skipped building flag_parsing_cocci.cmo in optimizing mode: flag_parsing_cocci.cmx will be built instead. >skipped building semantic_cocci.cmo in optimizing mode: semantic_cocci.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c dpll.ml >[1mFile "[1mparse_printf.ml", line 23, characters 19-34[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c get_constants2.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c git_grep.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjacency.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c commas_on_lists.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_cocci.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c command_line.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast0toast.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unparse_ast0.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unify_ast.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c compute_lines.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c comm_assoc.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c single_statement.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c simple_assignments.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c get_metas.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c check_meta.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c top_level.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c type_infer.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c test_exps.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unitary_ast0.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c arity.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c index.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c context_neg.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjust_pragmas.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c insert_plus.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c function_prototypes.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c data.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c id_utils.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast0_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c pretty_print_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast0_types.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c compute_lines.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c top_level.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c arity.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c index.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c data.ml >skipped building visitor_ast0_types.cmo in optimizing mode: visitor_ast0_types.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast0.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_pattern.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast0.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_compile.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c stmtlist.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c free_vars.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c safe_for_multi_decls.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c disjdistr.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c get_constants2.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c id_utils.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast0toast.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_compile.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c simple_assignments.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c get_metas.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c check_meta.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c test_exps.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unitary_ast0.ml >[1mFile "[1mcheck_meta.ml", line 62, characters 28-44[0m[0m: >[1;35mWarning[0m 3: deprecated: String.uppercase >Use String.uppercase_ascii instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjust_pragmas.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjacency.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c commas_on_lists.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unparse_ast0.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unify_ast.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c type_infer.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c comm_assoc.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c context_neg.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_aux.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_pattern.ml >skipped building parse_aux.cmo in optimizing mode: parse_aux.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parser_cocci_menhir.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parser_cocci_menhir.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c insert_plus.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c single_statement.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c function_prototypes.ml >[1mFile "[1mparser_cocci_menhir.mly", line 680, characters 29-44[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c lexer_cocci.ml >[1mFile "[1mlexer_cocci.ml", line 2683, characters 27-39[0m[0m: >[1;35mWarning[0m 3: deprecated: Array.create >Use Array.make instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c lexer_script.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/menhirLib -a -o cocci_parser.cmxa menhirLib.cmx flag_parsing_cocci.cmx ast_cocci.cmx ast0_cocci.cmx pretty_print_cocci.cmx visitor_ast0_types.cmx visitor_ast.cmx visitor_ast0.cmx ast0toast.cmx unparse_ast0.cmx unify_ast.cmx compute_lines.cmx iso_pattern.cmx comm_assoc.cmx iso_compile.cmx single_statement.cmx simple_assignments.cmx get_metas.cmx stmtlist.cmx check_meta.cmx top_level.cmx type_infer.cmx test_exps.cmx unitary_ast0.cmx arity.cmx index.cmx context_neg.cmx adjust_pragmas.cmx insert_plus.cmx function_prototypes.cmx semantic_cocci.cmx data.cmx free_vars.cmx safe_for_multi_decls.cmx parse_printf.cmx parse_aux.cmx disjdistr.cmx lexer_cocci.cmx parser_cocci_menhir.cmx lexer_cli.cmx lexer_script.cmx cocci_grep.cmx dpll.cmx get_constants2.cmx id_utils.cmx git_grep.cmx adjacency.cmx commas_on_lists.cmx parse_cocci.cmx command_line.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_annot.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c flag_parsing_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_stat.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c semantic_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lexer_parser.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c compare_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c test_parsing_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_annot.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lexer_parser.ml >skipped building token_c.cmo in optimizing mode: token_c.cmx will be built instead. >skipped building parsing_stat.cmo in optimizing mode: parsing_stat.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c ast_c.ml >skipped building ast_c.cmo in optimizing mode: ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c includes.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parser_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_cocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_hrule.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_recovery_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_consistency_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c danger.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_annoter_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c comment_annotater_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c includes.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c visitor_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c_build.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c pretty_print_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parser_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_string_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_helpers.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_views_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_token_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c visitor_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_hacks.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_analysis_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_ast_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lib_parsing_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_consistency_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c_build.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c pretty_print_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lexer_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_string_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_helpers.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c danger.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_views_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_recovery_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c comment_annotater_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_token_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_hacks.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_hrule.ml >[1mFile "[1munparse_c.ml", line 2367, characters 6-18[0m[0m: >[1;35mWarning[0m 3: deprecated: String.unsafe_set >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_analysis_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_ast_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_annoter_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c compare_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c test_parsing_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -a -o parsing_c.cmxa token_annot.cmx flag_parsing_c.cmx parsing_stat.cmx includes.cmx token_c.cmx ast_c.cmx control_flow_c.cmx visitor_c.cmx lib_parsing_c.cmx control_flow_c_build.cmx pretty_print_c.cmx semantic_c.cmx lexer_parser.cmx parser_c.cmx lexer_c.cmx parse_string_c.cmx token_helpers.cmx token_views_c.cmx cpp_token_c.cmx parsing_hacks.cmx cpp_analysis_c.cmx unparse_cocci.cmx unparse_c.cmx unparse_hrule.cmx parsing_recovery_c.cmx parsing_consistency_c.cmx danger.cmx parse_c.cmx type_c.cmx cpp_ast_c.cmx type_annoter_c.cmx comment_annotater_c.cmx compare_c.cmx test_parsing_c.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c exposed_modules.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c no_prepare_ocamlcocci.ml >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c prepare_ocamlcocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c run_ocamlcocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c externalanalysis.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c ocamlcocci_aux.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c ocamlcocci_aux.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c prepare_ocamlcocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c externalanalysis.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c coccilib.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c run_ocamlcocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -a -o cocciocaml.cmxa externalanalysis.cmx exposed_modules.cmx coccilib.cmx ocamlcocci_aux.cmx no_prepare_ocamlcocci.cmx prepare_ocamlcocci.cmx run_ocamlcocci.cmx >for i in `grep " (\*" exposed_modules.ml | sed "s/^.*(\* //" | sed "s/\..* \*)$//"`; do cp ../$i.cmi .; done >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci_aux.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci_aux.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c yes_pycocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -a -o coccipython.cmxa pycocci_aux.cmx yes_pycocci.cmx pycocci.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c flag_matcher.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c lib_engine.ml >skipped building ../ctl/ast_ctl.cmo in optimizing mode: ../ctl/ast_ctl.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_exhaustive_pattern.ml >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_reachability.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c c_vs_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c isomorphisms_c_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c cocci_vs_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_reachability.ml >skipped building lib_engine.cmo in optimizing mode: lib_engine.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c c_vs_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pattern_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c transformation_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttomember.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttoctl2.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctltotex.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c postprocess_transinfo.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctlcocci_integration.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pretty_print_engine.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttomember.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctltotex.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c postprocess_transinfo.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pretty_print_engine.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c cocci_vs_c.ml >[1mFile "[1mcocci_vs_c.ml", line 125, characters 14-31[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttoctl2.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pattern_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c transformation_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctlcocci_integration.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -a -o cocciengine.cmxa flag_matcher.cmx lib_engine.cmx pretty_print_engine.cmx check_exhaustive_pattern.cmx check_reachability.cmx c_vs_c.cmx isomorphisms_c_c.cmx cocci_vs_c.cmx pattern_c.cmx transformation_c.cmx asttomember.cmx asttoctl2.cmx ctltotex.cmx postprocess_transinfo.cmx ctlcocci_integration.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c ast_popl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c flag_popl.ml >skipped building ../engine/lib_engine.cmo in optimizing mode: ../engine/lib_engine.cmx will be built instead. >skipped building ../ctl/ast_ctl.cmo in optimizing mode: ../ctl/ast_ctl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popl.mli >skipped building ast_popl.cmo in optimizing mode: ast_popl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c asttopopl.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c insert_quantifiers.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c pretty_print_popl.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popltoctl.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c asttopopl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c insert_quantifiers.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c pretty_print_popl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popltoctl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -a -o popl.cmxa ast_popl.cmx asttopopl.cmx insert_quantifiers.cmx pretty_print_popl.cmx flag_popl.cmx popltoctl.cmx popl.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c classic_patch.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c kbuild.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c maintainers.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c classic_patch.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c kbuild.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -c maintainers.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../parsing_cocci -I ../parsing_c -a -o extra.cmxa classic_patch.cmx kbuild.cmx maintainers.cmx >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' > > > Compiling spgen in native code... > > >make -C source all.opt >make[5]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' >/usr/bin/ocamlopt.opt -g -I ../../../commons -I ../../../commons/ocamlextra -I ../../../globals -I ../../../parsing_cocci -I ../../../parsing_c -o spgen.opt str.cmxa unix.cmxa bigarray.cmxa nums.cmxa ../../../commons/commons.cmxa ../../../globals/globals.cmxa ../../../parsing_cocci/cocci_parser.cmxa ../../../parsing_c/parsing_c.cmxa spgen_lexer.ml globals.mli ast_tostring.mli detect_patch.mli meta_variable.mli snapshot.mli user_input.mli position_generator.mli disj_generator.mli rule_body.mli rule_header.mli context_rule.mli script_rule.mli file_transform.mli spgen_interactive.mli spgen_config.mli spgen.mli spgen_test.mli globals.ml ast_tostring.ml detect_patch.ml meta_variable.ml snapshot.ml user_input.ml position_generator.ml disj_generator.ml rule_body.ml rule_header.ml context_rule.ml script_rule.ml file_transform.ml spgen_interactive.ml spgen_config.ml spgen.ml spgen_test.ml main.ml >[1mFile "[1muser_input.ml", line 90, characters 10-26[0m[0m: >[1;35mWarning[0m 3: deprecated: String.lowercase >Use String.lowercase_ascii instead. >[1mFile "[1mspgen_interactive.ml", line 51, characters 8-24[0m[0m: >[1;35mWarning[0m 3: deprecated: String.lowercase >Use String.lowercase_ascii instead. >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: main.o: warning: relocation in readonly section `.text' >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. >make[5]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' > > > The native code version of spgen can now be installed via 'make install'. > > >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[2]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make spatch.opt BUILD_OPT=yes >make[2]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[4]: 'globals.cmxa' is up to date. >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/globals' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[4]: 'commons.cmxa' is up to date. >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/commons' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >skipped building ast_ctl.cmo in optimizing mode: ast_ctl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c pretty_print_ctl.mli >skipped building visitor_ast0_types.cmo in optimizing mode: visitor_ast0_types.cmx will be built instead. >skipped building token_c.cmo in optimizing mode: token_c.cmx will be built instead. >/usr/bin/ocamlmklib -linkall -o pyml-current/pyml_stubs pyml-current/pyml_stubs.o pyml-current/libpyml_stubs.a >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c ctl_engine.mli >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c externalanalysis.mli >skipped building semantic_cocci.cmo in optimizing mode: semantic_cocci.cmx will be built instead. >skipped building flag_parsing_cocci.cmo in optimizing mode: flag_parsing_cocci.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast0.mli >skipped building parsing_stat.cmo in optimizing mode: parsing_stat.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c pretty_print_ctl.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c ocamlcocci_aux.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_pattern.mli >skipped building ast_c.cmo in optimizing mode: ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c includes.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c visitor_ast0.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c run_ocamlcocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parser_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c externalanalysis.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c wrapper_ctl.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_cocci.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c ctl_engine.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_hrule.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_recovery_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_consistency_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c danger.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c ocamlcocci_aux.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_annoter_c.mli >cp pyml-current/pyml.cmxa pyml-current/pywrappers.cmx pyml-current/py.cmx pyml-current/pycaml.cmx pyml-current/pyml.a pyml-current/pywrappers.cmi pyml-current/py.cmi pyml-current/pycaml.cmi pyml-current/libpyml_stubs.a . >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c comment_annotater_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c includes.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c coccilib.ml >if [ -n "pyml" ]; then \ > cp pyml-current/dllpyml_stubs.so .; \ >fi >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c.ml >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -c run_ocamlcocci.ml >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci_aux.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c visitor_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c_build.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c pretty_print_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parser_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci_aux.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -I ../parsing_c -I ../engine -a -o cocciocaml.cmxa externalanalysis.cmx exposed_modules.cmx coccilib.cmx ocamlcocci_aux.cmx no_prepare_ocamlcocci.cmx prepare_ocamlcocci.cmx run_ocamlcocci.cmx >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c yes_pycocci.ml >for i in `grep " (\*" exposed_modules.ml | sed "s/^.*(\* //" | sed "s/\..* \*)$//"`; do cp ../$i.cmi .; done >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -c pycocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_c -I ../parsing_cocci -I ../ocaml -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -a -o coccipython.cmxa pycocci_aux.cmx yes_pycocci.cmx pycocci.cmx >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_compile.mli >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/python' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c simple_assignments.ml >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ocaml' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c lib_engine.ml >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -c wrapper_ctl.ml >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >skipped building ast_popl.cmo in optimizing mode: ast_popl.cmx will be built instead. >skipped building ../engine/lib_engine.cmo in optimizing mode: ../engine/lib_engine.cmx will be built instead. >skipped building ../ctl/ast_ctl.cmo in optimizing mode: ../ctl/ast_ctl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c asttopopl.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c insert_quantifiers.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c pretty_print_popl.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c get_metas.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -a -o ctl.cmxa flag_ctl.cmx ast_ctl.cmx pretty_print_ctl.cmx ctl_engine.cmx wrapper_ctl.cmx >skipped building ../ctl/ast_ctl.cmo in optimizing mode: ../ctl/ast_ctl.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popltoctl.mli >skipped building ../parsing_c/ast_c.cmo in optimizing mode: ../parsing_c/ast_c.cmx will be built instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_exhaustive_pattern.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popl.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c asttopopl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c check_meta.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c insert_quantifiers.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_reachability.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_string_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c c_vs_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_helpers.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c cocci_vs_c.mli >[1mFile "[1mcheck_meta.ml", line 62, characters 28-44[0m[0m: >[1;35mWarning[0m 3: deprecated: String.uppercase >Use String.uppercase_ascii instead. >skipped building lib_engine.cmo in optimizing mode: lib_engine.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_views_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c pretty_print_popl.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c check_reachability.ml >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/ctl' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[4]: 'extra.cmxa' is up to date. >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_c.ml >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/extra' >make[3]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c c_vs_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popltoctl.ml > > > Compiling spgen in native code... > > >make -C source all.opt >make[4]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' >make[4]: Nothing to be done for 'all.opt'. >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen/source' > > > The native code version of spgen can now be installed via 'make install'. > > >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/tools/spgen' >/usr/bin/ocamlc.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c cocci.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c visitor_c.ml >/usr/bin/ocamlc.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c testing.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -c popl.ml >/usr/bin/ocamlc.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c read_options.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pattern_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lexer_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../engine -a -o popl.cmxa ast_popl.cmx asttopopl.cmx insert_quantifiers.cmx pretty_print_popl.cmx flag_popl.cmx popltoctl.cmx popl.cmx >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c transformation_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttomember.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttoctl2.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctltotex.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c postprocess_transinfo.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctlcocci_integration.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pretty_print_engine.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c cocci_vs_c.ml >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/popl09' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttomember.ml >[1mFile "[1mcocci_vs_c.ml", line 125, characters 14-31[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_string_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctltotex.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_helpers.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_token_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c test_exps.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c postprocess_transinfo.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pretty_print_engine.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_consistency_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c asttoctl2.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unitary_ast0.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjust_pragmas.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c lib_parsing_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c adjacency.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c commas_on_lists.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c token_views_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c ast0toast.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_hacks.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_analysis_c.mli >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_recovery_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c danger.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_ast_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c comment_annotater_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c control_flow_c_build.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c pretty_print_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_compile.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c type_infer.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_token_c.ml >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_c.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parsing_hacks.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unparse_ast0.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c unify_ast.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c pattern_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c transformation_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c comm_assoc.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c context_neg.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -c ctlcocci_integration.ml >[1mFile "[1munparse_c.ml", line 2367, characters 6-18[0m[0m: >[1;35mWarning[0m 3: deprecated: String.unsafe_set >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c iso_pattern.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c unparse_hrule.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../ctl -I ../parsing_cocci -I ../parsing_c -I ../ocaml -I ../python -a -o cocciengine.cmxa flag_matcher.cmx lib_engine.cmx pretty_print_engine.cmx check_exhaustive_pattern.cmx check_reachability.cmx c_vs_c.cmx isomorphisms_c_c.cmx cocci_vs_c.cmx pattern_c.cmx transformation_c.cmx asttomember.cmx asttoctl2.cmx ctltotex.cmx postprocess_transinfo.cmx ctlcocci_integration.cmx >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c parse_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_analysis_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_aux.ml >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/engine' >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c cpp_ast_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c type_annoter_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c compare_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c insert_plus.ml >skipped building parse_aux.cmo in optimizing mode: parse_aux.cmx will be built instead. >/usr/bin/ocamlc.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parser_cocci_menhir.mli >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parser_cocci_menhir.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -c test_parsing_c.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I ../parsing_cocci -a -o parsing_c.cmxa token_annot.cmx flag_parsing_c.cmx parsing_stat.cmx includes.cmx token_c.cmx ast_c.cmx control_flow_c.cmx visitor_c.cmx lib_parsing_c.cmx control_flow_c_build.cmx pretty_print_c.cmx semantic_c.cmx lexer_parser.cmx parser_c.cmx lexer_c.cmx parse_string_c.cmx token_helpers.cmx token_views_c.cmx cpp_token_c.cmx parsing_hacks.cmx cpp_analysis_c.cmx unparse_cocci.cmx unparse_c.cmx unparse_hrule.cmx parsing_recovery_c.cmx parsing_consistency_c.cmx danger.cmx parse_c.cmx type_c.cmx cpp_ast_c.cmx type_annoter_c.cmx comment_annotater_c.cmx compare_c.cmx test_parsing_c.cmx >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c single_statement.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c function_prototypes.ml >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_c' >[1mFile "[1mparser_cocci_menhir.mly", line 680, characters 29-44[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c lexer_cocci.ml >[1mFile "[1mlexer_cocci.ml", line 2683, characters 27-39[0m[0m: >[1;35mWarning[0m 3: deprecated: Array.create >Use Array.make instead. >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c lexer_script.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -c parse_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I ../commons -I ../commons/ocamlextra -I ../globals -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/menhirLib -a -o cocci_parser.cmxa menhirLib.cmx flag_parsing_cocci.cmx ast_cocci.cmx ast0_cocci.cmx pretty_print_cocci.cmx visitor_ast0_types.cmx visitor_ast.cmx visitor_ast0.cmx ast0toast.cmx unparse_ast0.cmx unify_ast.cmx compute_lines.cmx iso_pattern.cmx comm_assoc.cmx iso_compile.cmx single_statement.cmx simple_assignments.cmx get_metas.cmx stmtlist.cmx check_meta.cmx top_level.cmx type_infer.cmx test_exps.cmx unitary_ast0.cmx arity.cmx index.cmx context_neg.cmx adjust_pragmas.cmx insert_plus.cmx function_prototypes.cmx semantic_cocci.cmx data.cmx free_vars.cmx safe_for_multi_decls.cmx parse_printf.cmx parse_aux.cmx disjdistr.cmx lexer_cocci.cmx parser_cocci_menhir.cmx lexer_cli.cmx lexer_script.cmx cocci_grep.cmx dpll.cmx get_constants2.cmx id_utils.cmx git_grep.cmx adjacency.cmx commas_on_lists.cmx parse_cocci.cmx command_line.cmx >make[4]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >make[3]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/parsing_cocci' >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c flag_cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c read_options.ml >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c cocci.ml >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c testing.ml >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -c main.ml >[1mFile "[1mmain.ml", line 830, characters 22-49[0m[0m: >[1;35mWarning[0m 52: Code should not depend on the actual values of >this constructor's arguments. They are only for information >and may change in future versions. (See manual section 8.5) >/usr/bin/ocamlopt.opt -unsafe -I /usr/lib/ocaml/menhirLib -I /usr/lib/ocaml/parmap -I /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml/ -I commons -I commons/ocamlextra -I ctl -I engine -I extra -I globals -I ocaml -I parsing_c -I parsing_cocci -I popl09 -I python -cclib -lpyml_stubs -cclib -lparmap_stubs -o spatch.opt str.cmxa unix.cmxa bigarray.cmxa nums.cmxa /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/bundles/pyml//pyml.cmxa /usr/lib/ocaml/parmap/parmap.cmxa commons/commons.cmxa globals/globals.cmxa ctl/ctl.cmxa parsing_cocci/cocci_parser.cmxa parsing_c/parsing_c.cmxa ocaml/cocciocaml.cmxa python/coccipython.cmxa engine/cocciengine.cmxa popl09/popl.cmxa extra/extra.cmxa flag_cocci.cmx cocci.cmx testing.cmx read_options.cmx main.cmx >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: main.o: warning: relocation in readonly section `.text' >/usr/lib/gcc/i686-pc-linux-gnu/6.4.0/../../../../i686-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in a shared object. >make[2]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >The compilation of spatch.opt finished. >spatch.opt can be installed or used. >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >make preinstall >make[1]: Entering directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >cp scripts/spatch.sh scripts/spatch >cp scripts/spatch.sh scripts/spatch.opt >cp scripts/spatch.sh scripts/spatch.byte >chmod +x scripts/spatch >chmod +x scripts/spatch.opt >chmod +x scripts/spatch.byte >make[1]: Leaving directory '/var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6' >>>> Source compiled. >>>> Test phase: dev-util/coccinelle-1.0.6 >make --jobs 5 --load-average 7.95 check >Testing if spatch works on hello world... >Testing if spatch works with regexes... >Testing if spatch works with python scripts... >running the test suite >COCCINELLE_HOME="$(pwd)" ./scripts/spatch --testall --no-update-score-file >init_defs_builtins: /var/tmp/portage/dev-util/coccinelle-1.0.6/work/coccinelle-1.0.6/standard.h >62.res >diff = >--- tests/62.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c573e3-62.c >@@ -1,8 +1,12 @@ > static struct usb_driver carl9170_driver = { > .id_table = carl9170_usb_ids, >+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)) > .soft_unbind = 1, >+#endif > #ifdef CONFIG_PM > .reset_resume = carl9170_usb_resume, > #endif /* CONFIG_PM */ >+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) > .disable_hub_initiated_lpm = 1, >+#endif > }; >a.res >a3d.res >diff = >--- tests/a3d.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bcf5af-a3d.c >@@ -6,13 +6,13 @@ struct a3d { > static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev) > { > struct a3d *a3d; >- a3d->adc.idbus = BUS_GAMEPORT; >- a3d->dev.idbus = BUS_GAMEPORT; >+ a3d->adc.id.bustype = BUS_GAMEPORT; >+ a3d->dev.id.bustype = BUS_GAMEPORT; > } > > static void a3d_connect(struct gameport *gameport, struct gameport_dev *dev) > { > struct a3d *a3d; >- a3d->adc.idbus = BUS_GAMEPORT; >+ a3d->adc.id.bustype = BUS_GAMEPORT; > } > >a_and_e.res >a_and_e_ver1.res >diff = >--- tests/a_and_e_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-97fdfd-a_and_e_ver1.c >@@ -1,6 +1,7 @@ > void main(int i) { > > g(); >+ f(2, 0); > if(1) > f(1,2); > else >ab.res >warning: line 4: should a be a metavariable? >diff = >--- tests/ab.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7b4491-ab.c >@@ -1,5 +1,5 @@ > int main () { > foo = 5; >- a = 12; >+ b = 12; > xxx = 12; > } >addaft.res >diff = >--- tests/addaft.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6ee8de-addaft.c >@@ -1,16 +1,8 @@ > int main () { > foo(); >- if (x) { >- a(); >- b(); >- c(); >- } >+ bar(); > foo(); >- while (x) { >- a(); >- if (b()) continues; >- c(); >- } >+ bar(); > foo(); >- r(); >+ bar(); > } >addbefore.res >diff = >--- tests/addbefore.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b8292a-addbefore.c >@@ -1,5 +1,6 @@ > int main () { > if (x) { >+ foo(); > goto out; > } > after(); >addbeforeafter.res >diff = >--- tests/addbeforeafter.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7450e2-addbeforeafter.c >@@ -1,6 +1,8 @@ > int main () { > if (x) { >+ foo(); > goto out; >+ bar(); > } > after(); > out: >addelse.res >diff = >--- tests/addelse.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7fed19-addelse.c >@@ -1,3 +1,2 @@ > int main () { >- if (x == 12) return 6; > } >addfield.res >diff = >--- tests/addfield.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e0bb8b-addfield.c >@@ -1,4 +1,6 @@ > struct i2c_client I = { >- .name = E, > .foo = 16, >+ .dev = { >+ .name = E, >+ }, > }; >addif.res >diff = >--- tests/addif.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-89f567-addif.c >@@ -1,7 +1,19 @@ >+#ifdef FOO >+/* some comment */ >+int xxx() { >+ /* a comment by itself */ >+ return 12;/* another comment */ } >+#endif > static int foo() { > return 12; > } > >+#ifdef FOO >+/* some comment */ >+int xxx() { >+ /* a comment by itself */ >+ return 12;/* another comment */ } >+#endif > static int bar() { > return 12; > } >addif1.res >diff = >--- tests/addif1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fd5d0d-addif1.c >@@ -1,7 +1,15 @@ >+#ifdef FOO >+int xxx() { >+ return 12; } >+#endif > static int foo() { > return 12; > } > >+#ifdef FOO >+int xxx() { >+ return 12; } >+#endif > static int bar() { > return 12; > } >addif2.res >diff = >--- tests/addif2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f1cf4f-addif2.c >@@ -1,7 +1,13 @@ >+#ifdef FOO >+int/*foo*/ xxx; >+#endif > static int foo() { > return 12; > } > >+#ifdef FOO >+int/*foo*/ xxx; >+#endif > static int bar() { > return 12; > } >addifdef.res >diff = >--- tests/addifdef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c63cef-addifdef.c >@@ -1,10 +1,14 @@ > #ifdef FOO >+#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) > int one () { > return 1; > } >+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */ > #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,1) */ > > /* comment about two */ >+#ifdef LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) > int two () { > return 2; > } >+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) */ >addifelse.res >diff = >--- tests/addifelse.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e883cb-addifelse.c >@@ -1,8 +1,14 @@ >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) > static void rfcomm_l2data_ready(struct sock *sk) > { > BT_DBG("%p", sk); > rfcomm_schedule(); > } >+#else >+static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){ >+ rfcomm_l2data_ready(sk); >+} >+#endif > > static int rfcomm_l2sock_create(struct socket **sock) > { >addifelse2.res >diff = >--- tests/addifelse2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-16015c-addifelse2.c >@@ -1,8 +1,15 @@ >+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,15,0) >+static void backport_rfcomm_l2data_ready(struct sock *sk, int unused){ >+ rfcomm_l2data_ready(sk); >+} >+#else >+ > static void rfcomm_l2data_ready(struct sock *sk) > { > BT_DBG("%p", sk); > rfcomm_schedule(); > } >+#endif > > static int rfcomm_l2sock_create(struct socket **sock) > { >addtoo.res >diff = >--- tests/addtoo.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b138c2-addtoo.c >@@ -1,16 +1,8 @@ > int main () { >- if (x) { >- a(); >- b(); >- c(); >- } >+ bar(); > foo(); >- while (x) { >- a(); >- if (b()) continues; >- c(); >- } >+ bar(); > foo(); >- r(); >+ bar(); > foo(); > } >addtrace.res >diff = >--- tests/addtrace.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f89aa6-addtrace.c >@@ -2,13 +2,24 @@ short VerDate(char *pcDate) > { > short sRetour = 0; > if ( pcDate == 0 ) { >- sRetour = 1; >+ trace("ifth"); >+ { >+ sRetour = 1; >+ } > } >- if ( pcDate == 0 ) >- sRetour = 1; >+ trace("endif"); > if ( pcDate == 0 ) { >+ trace("ifth"); > sRetour = 1; >- return sRetour; > } >+ trace("endif"); >+ if ( pcDate == 0 ) { >+ trace("ifth"); >+ { >+ sRetour = 1; >+ return sRetour; >+ } >+ } >+ trace("endif"); > return sRetour; > } >after_if.res >diff = >--- tests/after_if.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a19a11-after_if.c >@@ -1,4 +1,5 @@ > #ifdef ELMC_MULTICAST > static void set_multicast_list(struct net_device *dev); > #endif >-static struct ethtool_ops netdev_ethtool_ops; >+static const struct ethtool_ops netdev_ethtool_ops; >+ >allex.res >diff = >--- tests/allex.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ac956f-allex.c >@@ -6,7 +6,7 @@ int main () { > goto out; > } > } >- if (x) return 15; >+ if (x) return 200; > out: > return rc; > } >allex2.res >diff = >--- tests/allex2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e86162-allex2.c >@@ -8,5 +8,5 @@ int main () { > } > return 15; > out: >- return 0; >+ return 100; > } >allex3.res >diff = >--- tests/allex3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-684faf-allex3.c >@@ -9,5 +9,4 @@ int main () { > } > return 15; > out: >- return 0; > } >anon.res >diff = >--- tests/anon.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9eb2de-anon.c >@@ -12,5 +12,5 @@ static int ppa_queuecommand(struct scsi_ > void (*done) (struct scsi_cmnd *)) > { > ppa_struct *dev = ppa_dev(cmd->device->host); >- schedule_work(&dev->ppa_tq); >+ schedule_delayed_work(&dev->ppa_tq, 0); > } >ar.res >diff = >--- tests/ar.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d7817d-ar.c >@@ -4,9 +4,4 @@ int main() { > struct foo *x; > struct bar *y; > struct foo z[15]; >- >- x->y = 12; >- y->a->y = 12; >- y->b[7].y = 12; >- z[15].y = 12; > } >arg.res >diff = >--- tests/arg.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-30bb4c-arg.c >@@ -1,6 +1,6 @@ > int main () { >- foo(bar()); >- foo(1,bar()); >- foo(bar(),2); >- foo(1,bar(),2); >+ foo(); >+ foo(1); >+ foo(2); >+ foo(1,2); > } >argument.res >diff = >--- tests/argument.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-210e07-argument.c >@@ -1,8 +1,5 @@ > void main(int i){ > >- f(1,2,3); >- >- h(1,2); >- h(); >+ g(3, 2, 1); > > } >arparam.res >diff = >--- tests/arparam.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-aec502-arparam.c >@@ -1,3 +1,7 @@ >+g(int q[1024]) { >+ return 12; >+} >+ > int main(int q[1024]) > { return 12; } > >array_init.res >diff = >--- tests/array_init.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-00667f-array_init.c >@@ -1,3 +1,2 @@ > static int term[MAX_ECARDS] = { 1, 1, 1, 1, 1, 1, 1, 1 }; >-MODULE_PARM(term, "1-8i"); > >array_size.res >diff = >--- tests/array_size.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-372446-array_size.c >@@ -1,2 +1,2 @@ >-#define MAX_SETUP_STRINGS (sizeof(setup_strings) / sizeof(char *)) >+#define MAX_SETUP_STRINGS ARRAY_SIZE(setup_strings) > #define SETUP_BUFFER_SIZE 200 >arraysz.res >diff = >--- tests/arraysz.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a1273e-arraysz.c >@@ -7,4 +7,4 @@ typedef struct signature { > static const Signature signatures[] = { > {"SSTBIOS", 0x0000d, 7} /* "SSTBIOS" @ offset 0x0000d */ > }; >-#define NUM_SIGNATURES (sizeof(signatures)/sizeof(Signature)) >+#define NUM_SIGNATURES ARRAY_SIZE(signatures) >as_stm.res >diff = >--- tests/as_stm.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-49a582-as_stm.c >@@ -1,3 +1,5 @@ > int main () { >+#ifdef BEFORE > if (f()) return 15; >+#endif > } >attradd.res >diff = >--- tests/attradd.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d664af-attradd.c >@@ -1,3 +1,5 @@ > int main () { >- char f; >+ char __attribute__((aligned(1))) f; > } >+// some comment >+// some other comment >attrs2groups.res >diff = >--- tests/attrs2groups.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4c5235-attrs2groups.c >@@ -3,18 +3,24 @@ static ssize_t devspec_show(struct devic > { > return 42; > } >+static BUG(); >+NOBUG(); > > static ssize_t name_show(struct device *dev, > struct device_attribute *attr, char *buf) > { > return 0; > } >+static BUG(); >+NOBUG(); > > static ssize_t modalias_show(struct device *dev, > struct device_attribute *attr, char *buf) > { > return 1; > } >+static BUG(); >+NOBUG(); > > > struct device_attribute ibmebus_bus_device_attrs[] = { >b1.res >diff = >--- tests/b1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-30e45a-b1.c >@@ -1,7 +1,9 @@ > int main () { > while (1) { >- if (x > 1 ) { foo(); break; } >+ if (x > 1 ) { foo(); >+ bar(); break; } > } > while (1) >- if (x > 1 ) { foo(); break; } >+ if (x > 1 ) { foo(); >+ bar(); break; } > } >b2.res >diff = >--- tests/b2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1e7cae-b2.c >@@ -1,9 +1,11 @@ > int main () { > if (1) { >- if (x > 1 ) { foo(); brk(); } >+ if (x > 1 ) { foo(); >+ bar(); brk(); } > } else aaa(); > if (1) >- while (x > 1 ) { foo(); brk(); } >+ while (x > 1 ) { foo(); >+ bar(); brk(); } > else aaa(); > foo(); brk(); > } >bad_iso_example.res >bad_kfree.res >diff = >--- tests/bad_kfree.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c950c9-bad_kfree.c >@@ -14,7 +14,7 @@ int bad () { > kfree(itv[i]); > print("foo",itv[i]); > print("foo",itv[i]); >- a = itv[i]; >+ a = NULL; > itv[i]=12; > a = itv[i]; > } >bad_ptr_print.res >diff = >--- tests/bad_ptr_print.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9923e5-bad_ptr_print.c >@@ -1,4 +1,4 @@ > static inline int tester(struct usb_endpoint_descriptor *epd) > { >- f((struct foo *)x); >+ g((struct foo *)x); > } >bad_typedef.res >diff = >--- tests/bad_typedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0991c7-bad_typedef.c >@@ -4,7 +4,7 @@ typedef struct { > > > int main1 (scsi_changer *x) { >- foo(x->lock); >+ foo(x->new_lock); > } > > struct scsi_changer_two { >@@ -13,5 +13,5 @@ struct scsi_changer_two { > > > int main2 (struct scsi_changer_two *x) { >- foo(x->lock); >+ foo(x->new_lock); > } >badexp.res >diff = >--- tests/badexp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c4c646-badexp.c >@@ -1,4 +1,4 @@ > int main() { > foo(a); >- b = a; >+ b = 3 +a * 27; > } >badpos.res > >previous modification: >MINUS > >>> xxx > >According to environment 0: > > >current modification: >MINUS >According to environment 0: > > >exn while in timeout_function >badtypedef.res >diff = >--- tests/badtypedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2fbef3-badtypedef.c >@@ -5,7 +5,7 @@ int main() { > foo_t *b; > foo_t *c; > >- xxx(a); >- yyy(b); >+ aaa(a); >+ bbb(b); > } > >badwhen.res >diff = >--- tests/badwhen.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-42c156-badwhen.c >@@ -4,7 +4,5 @@ int main () { > g(); > } > int second() { >- f(); > if (xfoo()) return; >- g(); > } >badzero.res >diff = >--- tests/badzero.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f63ae3-badzero.c >@@ -4,7 +4,7 @@ int main () { > int z; > if (y - x == 0) return; > if ((y - x) == 0) return; >- if (y - z == 0) return; >- if ((y - z) == 0) return; >+ if (27) return; >+ if (27) return; > } > >befS.res >diff = >--- tests/befS.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-292926-befS.c >@@ -1,20 +1,32 @@ > int main () { >+ foo(); > xxx(); >+ foo(); > if(y) { >- rrr(); >+ foo(); >+ { >+ foo(); >+ rrr(); >+ } > } > } > > int main () { >+ foo(); > xxx(); >- if(y) >+ foo(); >+ if(y) { >+ foo(); > rrr(); >+ } > } > > > int d() {} > > int main2 () { >+ foo(); > yyy(); >+ foo(); > xxx(); > } >before.res >diff = >--- tests/before.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9583b6-before.c >@@ -1,4 +1,6 @@ > int main () { >+ blah(); > one(); >+ blah(); > foo(); > } >ben.res >diff = >--- tests/ben.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b639ad-ben.c >@@ -1,22 +1,20 @@ >+static GType this_type = 0; >+static const GTypeInfo this_info = { >+ sizeof(LassoProviderClass), >+ NULL, >+ NULL, >+ (GClassInitFunc)class_init, >+ NULL, >+ NULL, >+ sizeof(LassoProvider), >+ 0, >+ (GInstanceInitFunc)instance_init, >+ NULL, >+}; > GType > lasso_provider_get_type() > { >- static GType this_type = 0; >- > if (!this_type) { >- static const GTypeInfo this_info = { >- sizeof (LassoProviderClass), >- NULL, >- NULL, >- (GClassInitFunc) class_init, >- NULL, >- NULL, >- sizeof(LassoProvider), >- 0, >- (GInstanceInitFunc) instance_init, >- NULL >- }; >- > this_type = g_type_register_static(LASSO_TYPE_NODE, > "LassoProvider", &this_info, 0); > } >bigin.res >diff = >--- tests/bigin.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-29dc3d-bigin.c >@@ -9,5 +9,6 @@ int main() { > if (x) > if (x) > blah(); >+ bar(); > foo(); > } >bigrepl.res >diff = >--- tests/bigrepl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-625392-bigrepl.c >@@ -1,6 +1,9 @@ > int main () { >- one(argument1(nested, argument), argument2(nested, argument), foo(), >+ one(argument1(nested, argument), argument2(nested, argument), >+ call(to, a, very, complicated, function, with, many, args), > argument3(nested, argument)); >- one(argument1(nested, argument), argument2(nested, argument), foo(), a(b)); >- one(argument1(nested, argument), argument2(nested, argument), foo()); >+ one(argument1(nested, argument), argument2(nested, argument), >+ call(to, a, very, complicated, function, with, many, args), a(b)); >+ one(argument1(nested, argument), argument2(nested, argument), >+ call(to, a, very, complicated, function, with, many, args)); > } >binop.res >diff = >--- tests/binop.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3f8acc-binop.c >@@ -2,10 +2,12 @@ void main() { > int i = 0; > int j = 0; > >- if( (i = j) + 0 ) { >+ i = j; >+ if(i + 0 ) { > i = j; > } >- if( (i = j) + 0 != 0 ) { >+ i = j; >+ if(i + 0 != 0 ) { > i = j; > } > } >bitfield.res >diff = >--- tests/bitfield.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7815cb-bitfield.c >@@ -1,5 +1,5 @@ > struct dvb_frontend { >- struct dvb_frontend_ops* ops; >+ struct dvb_frontend_ops ops; > }; > > typedef struct { >boolr.res > (ONCE) already tagged but only removed, so safe >diff = >--- tests/boolr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-998a60-boolr.c >@@ -1,4 +1,3 @@ > int main() { >- bool i3, i4, i5; > int b; > } >braces.res >diff = >--- tests/braces.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d38e2e-braces.c >@@ -1,9 +1,9 @@ >-#define main { foo(); } >+#define main foo(); > > int main() { foo(); } > >-int main() { if (x) { foo(); } } >+int main() { if (x) foo(); } > >-int main() { while (x) { foo(); } } >+int main() { while (x) foo(); } > >-int main() { if (x) { foo(); } else { foo(); } } >+int main() { if (x) foo(); else foo(); } >branchparen.res >diff = >--- tests/branchparen.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ddcac1-branchparen.c >@@ -1,6 +1,10 @@ > int main () { >- if (x) >+ if (x) { >+ foo(); > xxx(); >- else >+ } >+ else { >+ foo(); > xxx(); >+ } > } >break.res >diff = >--- tests/break.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4bbffb-break.c >@@ -5,8 +5,10 @@ int main () { > x = 15; > if (x > 1 ) { foo(); break; } > } while (a == 3); >- if (x > 1 ) { foo(); break; } >- if (x > 1 ) { foo(); break; } >+ if (x > 1 ) { foo(); >+ bar(); break; } >+ if (x > 1 ) { foo(); >+ bar(); break; } > } > } > >@@ -18,6 +20,7 @@ int mainx () { > if (x > 1 ) { xxx(); continue; } > } while (a == 3); > if (x > 1 ) { xxx(); break; } >- if (x > 1 ) { xxx(); continue; } >+ if (x > 1 ) { xxx(); >+ bar(); continue; } > } > } >bug1.res >diff = >--- tests/bug1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-68f43c-bug1.c >@@ -1,4 +1,5 @@ >-static int typhoon_ioctl(struct video_device *dev, unsigned int cmd,void *arg) >+static int typhoon_ioctl(struct inode *i, struct file *f, unsigned int cmd, >+ void *arg) > { > struct typhoon_device *typhoon = dev->priv; > return 0; >bugloop.res >diff = >--- tests/bugloop.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-024154-bugloop.c >@@ -8,8 +8,8 @@ static int stir_transmit_thread(void *ar > while (x) > { > /* if suspending, then power off and wait */ >- if (unlikely(current->flags & PF_FREEZE)) { >- refrigerator(PF_FREEZE); >+ if (unlikely(freezing(current))) { >+ refrigerator(); > > } > } >bugon.res >diff = >--- tests/bugon.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e51391-bugon.c >@@ -1,5 +1,4 @@ > static void b44_tx(struct b44 *bp) > { >- if (unlikely(skb == NULL)) >- BUG(); >+ BUG_ON(skb == NULL); > } >bus.res >diff = >--- tests/bus.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-175477-bus.c >@@ -1,5 +1,5 @@ > int main () { > struct foo *dev; >- dev->probe(); >- foo(); >+ c1(); >+ c2(); > } >cards.res >diff = >--- tests/cards.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-336970-cards.c >@@ -1,3 +1,3 @@ >-MODULE_PARM(io, "1-" __MODULE_STRING(MAX_CARDS) "i"); >+ > > int x; >caseprint.res >diff = >--- tests/caseprint.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-aa4f26-caseprint.c >@@ -3,4 +3,10 @@ int f() { > case 12: return 0; > case 1: return 2; > } >+ switch (x) { >+ case 12: >+ return 0; >+ case 1: >+ return 2; >+ } > } >cast.res >diff = >--- tests/cast.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b5e484-cast.c >@@ -1,3 +1,2 @@ > int main () { >- ((struct xxx *)E)->foo = 12; > } >cast_iso.res >diff = >--- tests/cast_iso.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-491c8e-cast_iso.c >@@ -1,6 +1,6 @@ > static int vx_hwdep_dsp_load(snd_hwdep_t *hw, snd_hwdep_dsp_image_t *dsp) > { >- vx_core_t *vx = snd_magic_cast(vx_core_t, hw->private_data, return -ENXIO); >- ak4117_t *chip = snd_magic_cast(ak4117_t, (void *)data, return); >+ vx_core_t *vx = hw->private_data; >+ ak4117_t *chip = (ak4117_t *)data; > > } >castdecl.res >diff = >--- tests/castdecl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ab2954-castdecl.c >@@ -1,9 +1,9 @@ > int main() { >- long i1, i2; >- long i3; >- long lType = (long)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L; >- unsigned char c1 = 'a', c2 = 'b'; >- unsigned char c3 = 'c'; >+ int i1, i2; >+ int i3; >+ int lType = (int)TYPE_OBJ_DS_REPORT, lNuPageBloc = 0L; >+ char c1 = 'a', c2 = 'b'; >+ char c3 = 'c'; > i1 = 11; > i2 = 22; > i3 = 33; >change.res >diff = >--- tests/change.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a2a91b-change.c >@@ -1,5 +1,6 @@ > int main () { > foo(); >+ blah(one, two); > this_type = g_type_register_static(LASSO_TYPE_NODE, > "LassoProvider", &this_info, 0); > } >change_type.res >diff = >--- tests/change_type.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ddb0cf-change_type.c >@@ -1,4 +1,4 @@ > int main () { > struct foo *x; >- return (struct blah *)x; >+ return 42; > } >changei.res >diff = >--- tests/changei.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-058864-changei.c >@@ -1,7 +1,7 @@ >-typedef struct i istruct; >+typedef struct i xxx; > >-int main (int x) { >- char c; >- return x + c; >+int xxx (int xxx) { >+ char xxx; >+ return xxx + xxx; > } > >com.res >diff = >--- tests/com.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7cdf40-com.c >@@ -1,8 +1,3 @@ > int main() { >- foo(); >- /* a comment */ >- foo(); >- /* a comment */ >- foo(); > bar(); > } >comadd.res >diff = >--- tests/comadd.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-74e92c-comadd.c >@@ -1,3 +1,5 @@ >+// some comment >+// some other comment > int main () { > return 12; > } >comment_brace.res >diff = >--- tests/comment_brace.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fe77f0-comment_brace.c >@@ -1,7 +1,9 @@ > int main () > { >- while ((inw(base) & 0xad00) != 0) /* data status */ >+ while ((inw(base) & 0xad00) != 0) /* data status */ { >+ release_region(); > continue; >+ } > return 0; > } > >comment_brace2.res >diff = >--- tests/comment_brace2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b87af6-comment_brace2.c >@@ -1,7 +1,9 @@ > int main () > { >- while ((inw(base) & 0xad00) != 0) /* data status */ >+ while ((inw(base) & 0xad00) != 0) /* data status */ { >+ release_region(); > continue; >+ } > return 0; > } > >comments.res >diff = >--- tests/comments.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0eefbe-comments.c >@@ -1,5 +1,15 @@ > > int main() { >+ // Calls foo() >+ foo(); > return 0; > } > >+/** >+ Some info about @foo() >+ @return void >+*/ >+void foo() { >+ /* Do nothing */ >+} >+ >compare.res >diff = >--- tests/compare.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-79a7ff-compare.c >@@ -1,7 +1,7 @@ > struct aic7xxx_host { > struct aic7xxx_cmd_queue { >- Scsi_Cmnd *head; >- Scsi_Cmnd *tail; >+ struct scsi_cmnd *head; >+ struct scsi_cmnd *tail; > } completeq; > unsigned char msg_buf[13]; /* The message for the target */ > unsigned char msg_type; >compare_const2.res >diff = >--- tests/compare_const2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-72f449-compare_const2.c >@@ -1,6 +1,6 @@ > int main () { > // int i,o; >- if (0 == ((1 == i || 3 == i) >- && (18 == o || 17 == o))) >+ if (((i == 1 || i == 3) >+ && (o == 18 || o == 17)) == 0) > return -EINVAL; > } >condexp.res >diff = >--- tests/condexp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2264ff-condexp.c >@@ -5,7 +5,7 @@ main(int argc, char *argv[]) > dpy = XOpenDisplay (displayname); > if (!dpy) { > fprintf (stderr, "%s: unable to open display \"%s\"\n", >- ProgramName, XDisplayName (displayname)); >+ ProgramName, displayname ? displayname : getenv("DISPLAY")); > Exit (1); > } > screenno = DefaultScreen (dpy); >const.res >warning: line 2: should text be a metavariable? >warning: line 3: should buf be a metavariable? >warning: line 3: should text be a metavariable? >diff = >--- tests/const.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4f6ef6-const.c >@@ -1,3 +1,3 @@ > void foo(const char *text) { >- strcat(buf->data, text); >+ strcat_safe(buf->data, buf->len, text); > } >const1bis.res >warning: line 3: should i be a metavariable? >diff = >--- tests/const1bis.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f5ad40-const1bis.c >@@ -1,5 +1,5 @@ > void foo(int j) { >- const int i; >+ float i; > int i; > i++; > } >const_adding.res >diff = >--- tests/const_adding.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-387c7c-const_adding.c >@@ -2,6 +2,6 @@ void main(int i) > { > > const struct file_operations a; >- struct file_operations b; >+ const struct file_operations b; > > } >const_array.res >diff = >--- tests/const_array.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-28f47b-const_array.c >@@ -24,9 +24,9 @@ static const struct foo *r128_family4[] > }; > > int main () { >- ent->driver_data = sizeof(r128_family)/sizeof(char *); >- ent->driver_data = sizeof(r128_family1)/sizeof(char *); >- ent->driver_data = sizeof(r128_family2)/sizeof(char *); >- ent->driver_data = sizeof(r128_family3)/sizeof(struct foo *); >- ent->driver_data = sizeof(r128_family4)/sizeof(struct foo *); >+ ent->driver_data = ARRAY_SIZE(r128_family); >+ ent->driver_data = ARRAY_SIZE(r128_family1); >+ ent->driver_data = ARRAY_SIZE(r128_family2); >+ ent->driver_data = ARRAY_SIZE(r128_family3); >+ ent->driver_data = ARRAY_SIZE(r128_family4); > } >const_implicit_iso.res >diff = >--- tests/const_implicit_iso.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0c79c0-const_implicit_iso.c >@@ -1,4 +1,4 @@ > void main(double y) { >- const int x; >+ const float x; > > } >constrem.res >warning: line 9: should f be a metavariable? >diff = >--- tests/constrem.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-aea5c0-constrem.c >@@ -1,3 +1 @@ >-static const int a; > >-static const int (*f)(const int); >constructor.res >diff = >--- tests/constructor.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9f33ea-constructor.c >@@ -1,5 +1,5 @@ > int main () { >- imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res, >- Edata, Esize_data, Edma_mask); >+ changed_imx_add_platform_device_dmamask(Ename, Eid, Eres, Enum_res, Edata, >+ Esize_data, Edma_mask); > } > >constty.res >diff = >--- tests/constty.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8a179a-constty.c >@@ -1,7 +1,6 @@ > int main () { > const int x; > int y; >- f(x,int); > f(y,int); > f(x,const int); > } >constx.res >diff = >--- tests/constx.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-300bad-constx.c >@@ -1,8 +1,8 @@ > int main() { >- foo(12); >+ foobar(12, 12); > foo(x); >- foo(CONSTANT); >- foo('a'); >- foo("string"); >- foo(1.0001); >+ foobar(CONSTANT, CONSTANT); >+ foobar('a', 'a'); >+ foobar("string", "string"); >+ foobar(1.0001, 1.0001); > } >cptr.res >diff = >--- tests/cptr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-880125-cptr.c >@@ -1 +1 @@ >-static const char *str = "..."; >+static const char * const str = "..."; >cr.res >diff = >--- tests/cr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ea2200-cr.c >@@ -1,7 +1,6 @@ > int main(void) > { > #if ! HAVE_XYZ >- f1(); >- f2(); >+ f3(); > #endif > } >cr1a.res >diff = >--- tests/cr1a.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d3a7b2-cr1a.c >@@ -6,14 +6,17 @@ int __init probe_base_port(int base) > if (base) > b = e = base; > for (base = b; base <= e; base += 0x10) { >- if (check_region(base, 0x10)) >+ if (!request_region(base, 0x10, req_reg_arg3)) > continue; > for (i = 0; i < 3; i++) > fool = inw(base + 2); /* empty possibly uart_receive_buffer */ > if ((inw(base + 6) & 0xffef) != 0x0001 || /* line_status */ >- (inw(base) & 0xad00) != 0) >+ (inw(base) & 0xad00) != 0) { >+ release_region(base, 0x10); > continue; >+ } > return (base); >+ release_region(base, 0x10); > } > return 0; > } >cs_check.res >warning: line 5: should handle be a metavariable? >diff = >--- tests/cs_check.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bc10dd-cs_check.c >@@ -4,7 +4,7 @@ do { last_fn = (fn); if ((last_ret = (re > static void nsp_cs_config(dev_link_t *link) > { > client_handle_t handle = link->handle; >- CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(handle, &tuple)); >+ CS_CHECK(GetFirstTuple, pcmcia_get_first_tuple(link, &tuple)); > cs_failed: > return; > } >cst.res >diff = >--- tests/cst.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5f4121-cst.c >@@ -1,5 +1,5 @@ > int main(int x) { >- emu10k1_t *emu = snd_magic_cast(1, 2, return -ENXIO); >+ emu10k1_t *emu = 4; > int z = 12; > return y; > } >cst_null.res >diff = >--- tests/cst_null.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fc0361-cst_null.c >@@ -2,9 +2,8 @@ void* videobuf_alloc(unsigned int size) > { > struct videobuf_buffer *vb; > >- vb = kmalloc(size,GFP_KERNEL); >+ vb = kzalloc(size, GFP_KERNEL); > if (vb != NULL) { >- memset(vb,0,size); > videobuf_dma_init(&vb->dma); > init_waitqueue_head(&vb->done); > vb->magic = MAGIC_BUFFER; >@@ -17,9 +16,8 @@ void* videobuf_alloc(unsigned int size) > { > struct videobuf_buffer *vb; > >- vb = kmalloc(size,GFP_KERNEL); >+ vb = kzalloc(size, GFP_KERNEL); > if (vb) { >- memset(vb,0,size); > videobuf_dma_init(&vb->dma); > init_waitqueue_head(&vb->done); > vb->magic = MAGIC_BUFFER; >@@ -32,9 +30,8 @@ void* videobuf_alloc(unsigned int size) > { > struct videobuf_buffer *vb; > >- vb = kmalloc(size,GFP_KERNEL); >+ vb = kzalloc(size, GFP_KERNEL); > if (NULL != vb) { >- memset(vb,0,size); > videobuf_dma_init(&vb->dma); > init_waitqueue_head(&vb->done); > vb->magic = MAGIC_BUFFER; >csw.res >warning: line 4: should x be a metavariable? >diff = >--- tests/csw.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-572743-csw.c >@@ -1,14 +1,6 @@ > int main() { > switch (x) { >- case XYZ: >- link->state &= ~DEV_PRESENT; >- if (link->state & DEV_CONFIG) { >- bluecard_close(info); >- bluecard_release(link); >- } >- break; > case MID: mid(); break; >- case FOO: bar(); break; > } > } > >dbg.res >diff = >--- tests/dbg.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bfff1e-dbg.c >@@ -4,5 +4,6 @@ static inline void alloc_resource(struct > struct resource *pr, *r = &dev->resource[idx]; > > if (pr) >- DBG("PCI"); >+ DBG else >+ pr = NULL;("PCI"); > } >dbg1.res >diff = >--- tests/dbg1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-838fda-dbg1.c >@@ -1,5 +1,6 @@ > > static inline void alloc_resource(struct pci_dev *dev, int idx) > { >- DBG("PCI"); >+ DBG >+ E = NULL;("PCI"); > } >dc_close.res >diff = >--- tests/dc_close.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9e59ed-dc_close.c >@@ -5,6 +5,7 @@ initicc(struct IsdnCardState *cs) > > INIT_WORK(&cs->work, icc_bh, cs); > cs->setstack_d = setstack_icc; >+ cs->DC_Send_Data = d_fill_fifo; > cs->DC_Close = DC_Close_icc; > cs->dc.icc.mon_rx = NULL; > >debug.res >diff = >--- tests/debug.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ad1db6-debug.c >@@ -1,5 +1,4 @@ > static int __init init_3c574_cs(void) > { >- DEBUG(0, "%s\n", version); > return 0; > } >dec.res >diff = >--- tests/dec.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-64d8d5-dec.c >@@ -1,4 +1,5 @@ > int f(int x) { >+ int z; > static int y; > return x; > } >decl.res >diff = >--- tests/decl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-92e81e-decl.c >@@ -1,5 +1,6 @@ > static int az_ioctl(int cmd, void *arg) > { >+ foo(); > return 0; > } > >decl2.res >warning: line 8: should x be a metavariable? >diff = >--- tests/decl2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-dbb4c5-decl2.c >@@ -1,6 +1,6 @@ > static int az_ioctl(int cmd, void *arg) > { >- if (x) { >+ if (y) { > return 0; > } > else { >decl_space.res >diff = >--- tests/decl_space.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7957ef-decl_space.c >@@ -1,4 +1,4 @@ > int main () { >- int *x = y; >- int x = y; >+ int *x = g; >+ int x = g; > } >decl_split.res >decl_star.res >diff = >--- tests/decl_star.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-aad5f0-decl_star.c >@@ -1,5 +1,5 @@ > int main () { >- int *x; >- int x; >+ int *y; >+ int y; > return x; > } >defe.res >diff = >--- tests/defe.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9cbf52-defe.c >@@ -1 +1,0 @@ >-#define x 3 >define_exp.res >diff = >--- tests/define_exp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-57f7d9-define_exp.c >@@ -1,5 +1,5 @@ > #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? \ >- SA_SHIRQ : SA_INTERRUPT) >+ IRQF_SHARED : IRQF_DISABLED) > > > void main(int i) >define_param.res >diff = >--- tests/define_param.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c38d0f-define_param.c >@@ -1,10 +1,10 @@ >-#define fieldsize(a) (sizeof(a)/sizeof(*a)) >+ > > static int > atari_proc_infos(unsigned char *nvram, char *buffer, int *len, > off_t *begin, off_t offset, int size) > { >- for (i = fieldsize(boot_prefs) - 1; i >= 0; --i) { >+ for (i = ARRAY_SIZE(boot_prefs) - 1; i >= 0; --i) { > if (nvram[1] == boot_prefs[i].val) { > PRINT_PROC("%s\n", boot_prefs[i].name); > break; >deftodo.res >delete_function.res >diff = >--- tests/delete_function.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-087d22-delete_function.c >@@ -2,12 +2,6 @@ int first () { > return 0; > } > >-int foo() { >- a(); >- a(); >- a(); >-} >- > int last () { > return 0; > } >delp.res >diff = >--- tests/delp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-da1a7f-delp.c >@@ -1,4 +1,4 @@ > int main () { > return >- (foo); >+ foo; > } >deref.res >diff = >--- tests/deref.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-49134c-deref.c >@@ -1,6 +1,6 @@ > int main () { > int **q; >- foo(*q+12); >- xxx(q[0]+12); >+ foo(12); >+ xxx(12); > yyy(q+12); > } >destroy.res >diff = >--- tests/destroy.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-22c3c2-destroy.c >@@ -6,7 +6,12 @@ static void wlcore_nvs_cb(const struct f > goto out; > > out_irq: >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31) > free_irq(wl->irq, wl); >+#else >+ compat_free_threaded_irq(&private->irq_compat); >+ compat_destroy_threaded_irq(&wl->irq_compat); >+#endif > #ifdef foo > out: > release_firmware(fw); >devlink.res >diff = >--- tests/devlink.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-dd295e-devlink.c >@@ -1,12 +1,12 @@ >-static void cm4000_release(dev_link_t *link); >+static void cm4000_release(struct pcmcia_device *link); > > int main () { > memset(&dev->atr_csum,0, >- sizeof(dev_link_t) - sizeof(dev_node)); >+ sizeof(struct pcmcia_device) - sizeof(dev_node)); > } > > int xmain () { >- dev_link_t x; >+ struct pcmcia_device x; > memset(&dev->atr_csum,0, >- sizeof(dev_link_t) - sizeof(dev_node)); >+ sizeof(struct pcmcia_device) - sizeof(dev_node)); > } >disjexpr.res >diff = >--- tests/disjexpr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ecda0b-disjexpr.c >@@ -1,3 +1,3 @@ > int main (int i) { >- f(v.fld, v, v.fld2); >+ f(v->fld, *v, v->fld2); > } >disjexpr_ver1.res >diff = >--- tests/disjexpr_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7d0a21-disjexpr_ver1.c >@@ -1,3 +1,3 @@ > int main (int i) { >- f(v.fld); >+ f(v->fld); > } >disjexpr_ver2.res >diff = >--- tests/disjexpr_ver2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-af5c67-disjexpr_ver2.c >@@ -1,3 +1,3 @@ > int main (int i) { >- f(v.fld, v.fld2, v); >+ f(v->fld, v->fld2, *v); > } >disjid.res >diff = >--- tests/disjid.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-16b333-disjid.c >@@ -1,5 +1,5 @@ >-int foo (int x, int z) { return 0; } >-int foo (int y, int z) { return 0; } >-int bar (int x, int z) { return 0; } >-int bar (int y, int z) { return 0; } >+int foo (int x, int z) { return 1; } >+int foo (int y, int z) { return 1; } >+int bar (int x, int z) { return 1; } >+int bar (int y, int z) { return 1; } > int xxx (int y, int z) { return 0; } >distribute.res >diff = >--- tests/distribute.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-087ffc-distribute.c >@@ -1,4 +1,4 @@ > int main(int i) { > >- f(1+1); >+ f(g(1) * 0 * g(2)); > } >double.res >diff = >--- tests/double.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d18f8c-double.c >@@ -1,5 +1,5 @@ > static void BChannel_proc_xmt(struct BCState *bcs) { >- if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && (!skb_queue_len(&bcs->squeue))) { >+ if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && skb_queue_empty(&bcs->squeue)) { > st->l2.l2l1(st, PH_DEACTIVATE | CONFIRM, NULL); > } > } >double_assign.res >diff = >--- tests/double_assign.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c5c75d-double_assign.c >@@ -4,6 +4,5 @@ int main() { > } > > int badmain() { >- x = 12; > x = 1; > } >double_lines.res >diff = >--- tests/double_lines.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-969e1d-double_lines.c >@@ -1,7 +1,4 @@ > int main () { > test(); >- foo(); >- foo(); >- foo(); > endtest(); > } >double_switch.res >doublepos.res >diff = >--- tests/doublepos.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b3dbc1-doublepos.c >@@ -1,5 +1,4 @@ > int main() { >- f(1,2); > f(1,5); > f(6,5); > } >doubleswitch.res >diff = >--- tests/doubleswitch.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a7c607-doubleswitch.c >@@ -3,8 +3,6 @@ void zfLnxRecvEth(zdev_t* dev, zbuf_t* b > #ifdef ZM_AVOID_UDP_LARGE_PACKET_FAIL > zbuf_t *new_buf; > >- foo(); >- > switch(netif_rx(new_buf)) > #else > >doundo.res >diff = >--- tests/doundo.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e447bc-doundo.c >@@ -4,5 +4,5 @@ int main() > { > const s8 (*queue_priority_mapping)[2]; > s8 *noevent; >- foo(); >+ new_foo(); > } >dowhile.res >diff = >--- tests/dowhile.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c23f0a-dowhile.c >@@ -1,7 +1,5 @@ > int main() { > do { >- f(); > } > while (0); >- g(); > } >dropbr.res >diff = >--- tests/dropbr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0b6d32-dropbr.c >@@ -1,5 +1,3 @@ > int main () { >- if (a) { >- bar(); >- } >+ if (a) foo(); > } >dropcom.res >diff = >--- tests/dropcom.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2c446b-dropcom.c >@@ -2,10 +2,6 @@ > int one() { return 0; } > #endif /* XXX */ > >-int main () { >- return 1; >-} >- > int xyz () { > return 1; > } >dropenderr.res >diff = >--- tests/dropenderr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-27e019-dropenderr.c >@@ -1,8 +1,6 @@ > int main () { >- if (x) goto end; >- if (x) goto end2; >+ if (x) {} >+ if (x) {} > return 0; >- end: >- end2: > return -1; > } >dropf.res >diff = >--- tests/dropf.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4c1ba8-dropf.c >@@ -1,3 +1,3 @@ > int main() { >- x = f(1) + f(3); >+ x = f(1 + 3) + f(3 + 3); > } >dropparam.res >diff = >--- tests/dropparam.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4da7f9-dropparam.c >@@ -2,12 +2,12 @@ int f(char *x, int y, char* z) { > return; > } > >-int g(char *x, int y, char* z) { >+int g(char *x, char* z) { > return; > } > > > void main(void) > { >- g("toto", 3, "tata"); >+ g("toto", "tata"); > } >eb1.res >diff = >--- tests/eb1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3d071e-eb1.c >@@ -1,7 +1,13 @@ > int func() { > int c; >- Packet p1,p2; >+ Packet * p1 = SCMalloc(SIZE_OF_PACKET),* p2 = SCMalloc(SIZE_OF_PACKET); > int y; >+ if (p1 == NULL) >+ return 0; >+ if (p2 == NULL) >+ return 0; > a = 3; >+ SCFree(p1); >+ SCFree(p2); > return x+y; > } >edots.res >diff = >--- tests/edots.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7af125-edots.c >@@ -1,6 +1,6 @@ > void main(int i) { >- foo[45]; >- bar[45+v.field]; >+ foo; >+ bar; > > // f(foo[45] + bar[45]); > >edots_ver1.res >diff = >--- tests/edots_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7497f4-edots_ver1.c >@@ -1,7 +1,7 @@ > void main(int i) { >- foo[45]; >- bar[45+v.field]; >+ foo; >+ bar; > >- f(foo[45] + bar[45]); >+ f(foo + bar); > > } >elsify.res >diff = >--- tests/elsify.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ca8903-elsify.c >@@ -1,7 +1,7 @@ > int main () { > if (x) >- GOTO(rc = 1); >+ rc = 1; > else >- GOTO(rc = 2); >+ rc = 2; > } > >empty.res >diff = >--- tests/empty.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-160cec-empty.c >@@ -1,6 +1,6 @@ > static int vlsi_hard_start_xmit(struct sk_buff *skb, struct net_device *ndev) > { >- pci_restore_state(pdev, idev->cfg_space); >+ pci_restore_state(pdev); > if (ring_first(idev->tx_ring) == NULL) { > } > else >end_commas.res >diff = >--- tests/end_commas.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e332ce-end_commas.c >@@ -1,4 +1,6 @@ > static struct i2c_client client_template = { >- .name = "adv7175_client", >- .driver = &i2c_driver_adv7175 >+ .driver = &i2c_driver_adv7175, >+ .dev = { >+ .name = "adv7175_client", >+ } > }; >endif.res >warning: line 5: should x be a metavariable? >diff = >--- tests/endif.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d77e7d-endif.c >@@ -2,18 +2,23 @@ void f(int i) { > > x = 1; > if(1) x = 3; >+ foo(); > > x = 1; > while(1) x = 3; >+ foo(); > > x = 1; > do x = 3; while(1); >+ foo(); > > x = 1; > for(1;1;1) x = 3; >+ foo(); > > x = 1; > for(1;1;1) { x = 3; } >+ foo(); > > // switch(1) { > // case 0: x = 3; >endnl.res >diff = >--- tests/endnl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d121d3-endnl.c >@@ -1,18 +1,36 @@ > int main () { >+#ifdef FOO >+ call(1); >+#endif > foo(1); > bar(2); >+#ifdef BAR >+ call(2); >+#endif > one: >+#ifdef FOO >+ call(3); >+#endif > foo(3); > two: > bar(4); >+#ifdef BAR >+ call(4); >+#endif > three: > xxx(5); > #ifdef X > #endif >+#ifdef FOO >+ call(6); >+#endif > foo(6); > #ifdef X > #endif > bar(7); >+#ifdef BAR >+ call(7); >+#endif > #ifdef X > #endif > } >endpos.res >warning: s: metavariable p not used in the - or context code >exn while in timeout_function >enum.res >diff = >--- tests/enum.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3f4940-enum.c >@@ -18,5 +18,5 @@ xxx > static reg_errcode_t > regex_compile () > { >- unsigned char *pending_exact = 0; >+ unsigned char *pending_exact = NULL; > } >exitc.res >exn while in timeout_function >exitp.res >diff = >--- tests/exitp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bac9b1-exitp.c >@@ -1,6 +1,6 @@ > int main () { >- f(a1); >- f(a2); >- f(done); >- f(a4); >+ g(a1); >+ g(a2); >+ g(done); >+ g(a4); > } >exp.res >diff = >--- tests/exp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-272b62-exp.c >@@ -1,14 +1,14 @@ > int main(int i) { > >- int k = foo(); >+ int k = bar(); > > if(1) { >- foo(); >+ bar(); > } else { >- foo(); >+ bar(); > } > >- foo(); >+ bar(); > > > } >expnest.res >diff = >--- tests/expnest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4f782d-expnest.c >@@ -2,5 +2,5 @@ int main() { > x = 3 + 4; > x = f() + 15; > x = 15 + g(); >- x = f() + g(); >+ x = f() - g(); > } >expopt.res >diff = >--- tests/expopt.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-acf811-expopt.c >@@ -1,5 +1,5 @@ > int main() { > int *x; > f(x); >- *x = 7; >+ x = 7; > } >expopt2.res >diff = >--- tests/expopt2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-39874b-expopt2.c >@@ -1,5 +1,5 @@ > void main(int i) { > >- f(v, w.aa); >+ f(v, g(w.aa)); > > } >expopt3.res >diff = >--- tests/expopt3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2b3590-expopt3.c >@@ -1,5 +1,5 @@ > static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) > { >- struct video_tuner v; >- pcm20_getflags(pcm20, &v.flags, &v.xxx, &v.signal); >+ struct video_tuner *v; >+ pcm20_getflags(pcm20, &v->flags, &v->xxx, &v->signal); > } >expopt3_ver1.res >diff = >--- tests/expopt3_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-235a32-expopt3_ver1.c >@@ -1,6 +1,6 @@ > static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) > { >- struct video_tuner v; >+ struct video_tuner *v; > //&v.field; >- f(&v.field1, &v.field2, &v.field3, &v.field4); >+ f(&v->field1, &v->field2, &v->field3, &v->field4); > } >expopt3_ver2.res >diff = >--- tests/expopt3_ver2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-70f20c-expopt3_ver2.c >@@ -1,5 +1,5 @@ > static int pcm20_ioctl(struct video_device *dev, unsigned int cmd, void *arg) > { >- struct video_tuner v; >- f(v.field1, v.field2); >+ struct video_tuner *v; >+ f(v->field1, v->field2); > } >extra.res >exn while in timeout_function >failing_andany.res >diff = >--- tests/failing_andany.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b5fa57-failing_andany.c >@@ -8,6 +8,4 @@ static int smc_probe1(struct net_device > static int smc_probe2(struct net_device *dev, void __iomem *ioaddr, > unsigned long irq_flags) > { >- request_irq(dev); >- register_netdev(dev); > } >fields.res >warning: line 4: should x be a metavariable? >diff = >--- tests/fields.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7c687f-fields.c >@@ -1,4 +1,7 @@ > struct foo x = { >+ .a = 1, >+ .b = 2, >+ .c = 3, > .xa = 1, > .xb = 2, > .xc = 3, >fieldsmin.res >warning: line 4: should x be a metavariable? >diff = >--- tests/fieldsmin.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fa5491-fieldsmin.c >@@ -1,5 +1,3 @@ > struct foo x = { >- .a = 1, >- .b = 2, > .c = 3, > }; >find_long.res >diff = >--- tests/find_long.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a571d9-find_long.c >@@ -3,8 +3,8 @@ long function() > long a; > int b; > >- a + b; >- b + a; >+ (long)(a + b); >+ (long)(b + a); > > return a; > } >fix_flow_need.res >diff = >--- tests/fix_flow_need.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e2ebb9-fix_flow_need.c >@@ -5,7 +5,6 @@ void main(int i) { > if(1) { > foo(); > } >- bar(); > > foobar(); > } >fn_todo.res >diff = >--- tests/fn_todo.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8452ba-fn_todo.c >@@ -5,6 +5,6 @@ static void task_kill_later(struct asd_a > struct Scsi_Host *shost = sas_ha->core.shost; > struct sas_task *task = ascb->uldd_task; > >- INIT_WORK(&task->abort_work, (void (*)(void *))sas_task_abort, task); >+ INIT_WORK(&task->abort_work, sas_task_abort); > queue_work(shost->work_q, &task->abort_work); > } >fnptr.res >diff = >--- tests/fnptr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-35a384-fnptr.c >@@ -8,5 +8,5 @@ static int sci_request_irq(struct sci_po > sci_er_interrupt, sci_rx_interrupt, sci_tx_interrupt, > sci_br_interrupt, > }; >- request_irq(port->irqs[0], sci_mpxed_interrupt, SA_INTERRUPT); >+ request_irq(port->irqs[0], sci_mpxed_interrupt, foo()); > } >fnret.res >warning: line 6: should x be a metavariable? >diff = >--- tests/fnret.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-636f2e-fnret.c >@@ -1 +1 @@ >-static void foo(int x) { return; } >+ >fnty.res >diff = >--- tests/fnty.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e784ac-fnty.c >@@ -1,4 +1,4 @@ >-struct allfns { >+struct newname { > int (*x) (int); > int (*y) (int); > }; >format.res >diff = >--- tests/format.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7b1bc9-format.c >@@ -1,5 +1,5 @@ > int main () { >- printf("one %d two\n", 1); >- printf("one %d two %d three\n", 1, 2); >+ printf("blah", 1); >+ printf("blah", 1, 2); > printf("one two three\n"); > } >format2.res >exn while in timeout_function >formatlist.res >diff = >--- tests/formatlist.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-426081-formatlist.c >@@ -1,10 +1,10 @@ > int main () { > foo("xyz %d abc"); >- foo("xyz %d %d abc"); >+ foo("blah2"); > foo("mno %d %d abc"); > foo("mno %d abc %d %d abc %d"); >- foo("xyz %d abc %d %d abc %d"); >- foo("xyz %d abc %d %d abc %d mno"); >+ foo("blah"); >+ foo("blah"); > foo("xyz %d abc %d %d abc %d %d abc %d"); > foo("xyz %d abc %d %d abc"); > foo("xyz abc"); >fortest.res >diff = >--- tests/fortest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-990620-fortest.c >@@ -1,18 +1,18 @@ > int main() { >- for(x=0; x!=10; x++) >- y = 12; >- for(x=0; x!=10; ) >- y = 12; >- for(x=0; ; x++) >- y = 12; >- for(x=0; ; ) >- y = 12; >- for( ; x!=10; x++) >- y = 12; >- for( ; x!=10; ) >- y = 12; >- for( ; ; x++) >- y = 12; >- for( ; ; ) >- y = 12; >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); >+ bar(); >+ foo(); > } >fortype.res >warning: line 4: should x be a metavariable? >diff = >--- tests/fortype.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-52c073-fortype.c >@@ -1,4 +1,4 @@ > int main () { >- for (int x = 0; x!=10; x++) >- return x; >+ for (char * p = 0; y!=10; y++) >+ return y; > } >four.res >diff = >--- tests/four.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-618988-four.c >@@ -1,5 +1,3 @@ > int main () { > f(1); >- h(2); >- i(2); > } >foura.res >diff = >--- tests/foura.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-36ec7c-foura.c >@@ -1,5 +1,4 @@ > int main () { > f(1); > h(2); >- i(2); > } >fp.res >diff = >--- tests/fp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f2149c-fp.c >@@ -1,3 +1,2 @@ > int main(int (*x)(int,int)) { >- x(); > } >fsh.res >diff = >--- tests/fsh.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f382cb-fsh.c >@@ -1,4 +1,4 @@ > int main () { > f(c); >- g(); >+ g(foo-c); > } >fun.res >warning: line 5: should x be a metavariable? >warning: line 5: should x be a metavariable? >diff = >--- tests/fun.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d69e79-fun.c >@@ -1 +1,4 @@ >+struct a { >+ int a; >+}; > int f(int x) { return x; } >func.res >diff = >--- tests/func.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bd6f8f-func.c >@@ -1,6 +1,7 @@ > static int hidg_setup(struct usb_function *f, > const struct usb_ctrlrequest *ctrl) > { >- VDBG(cdev, "hid_setup crtl_request : bRequestType:0x%x bRequest:0x%x " >- "Value:0x%x\n", ctrl->bRequestType, ctrl->bRequest, value); >+ VDBG(cdev, >+ "%s crtl_request : bRequestType:0x%x bRequest:0x%x Value:0x%x\n", >+ ctrl->bRequestType, ctrl->bRequest, value); > } >gcc_min_max.res >diff = >--- tests/gcc_min_max.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-10673b-gcc_min_max.c >@@ -1,8 +1,8 @@ > int main() > { > int a, b; >- a <? b; >- a <?= b; >- a >? b; >- a >?= b; >+ min(a, b); >+ a = min(a, b); >+ max(a, b); >+ a = max(a, b); > } >getc.res >diff = >--- tests/getc.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-210bfb-getc.c >@@ -1,4 +1,4 @@ > int IFoo_QueryInterface(int *iface, long *riid, void **ppv) > { >- return IBar_QueryInterface(iface, riid, *ppv); >+ return 12; > } >gilles-question.res >diff = >--- tests/gilles-question.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a65165-gilles-question.c >@@ -2,8 +2,6 @@ void main(int i) { > > f(0); > if(1) { >- g(0); > } >- g(0); > } > >gotobreak.res >diff = >--- tests/gotobreak.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9ef489-gotobreak.c >@@ -11,5 +11,5 @@ static void sedlbauer_config(struct pcmc > CS_CHECK(GetNextTuple, pcmcia_get_next_tuple(link, &tuple)); > } > >- return; >+ return 0; > } >hd.res >warning: line 4: should x be a metavariable? >warning: line 4: should y be a metavariable? >diff = >--- tests/hd.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-407ecb-hd.c >@@ -1,3 +1,3 @@ > #include "hd.h" > >-int f(int x, int y) { return x; } >+int f(int x) { return x; } >headers.res >diff = >--- tests/headers.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-424bb0-headers.c >@@ -10,12 +10,12 @@ static int empeg_write (struct usb_seria > > } > >-static void empeg_write_bulk_callback (struct urb *urb, struct pt_regs *regs) >+static void empeg_write_bulk_callback(struct urb *urb) > { > } > > >-static void empeg_read_bulk_callback (struct urb *urb, struct pt_regs *regs) >+static void empeg_read_bulk_callback(struct urb *urb) > { > usb_fill_bulk_urb(empeg_read_bulk_callback); > >hex.res >diff = >--- tests/hex.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ecc6b4-hex.c >@@ -1,3 +1,2 @@ > int main() { >- f(0x00); > } >hil1.res >diff = >--- tests/hil1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-67c5fe-hil1.c >@@ -2,5 +2,5 @@ > { HILSE_FUNC, { func: &funct }, funct_arg, zero_rc }, > > int main () { >- return 12; >+ return 5; > } >idcon_ocaml.res >exn while in timeout_function >idcon_python.res >diff = >--- tests/idcon_python.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-58e5db-idcon_python.c >@@ -1,5 +1,5 @@ > void f(void) { >- g(a); >+ g(18); > g(b); >- g(c); >+ g(18); > } >idstr.res >diff = >--- tests/idstr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-02ca46-idstr.c >@@ -1,3 +1,3 @@ > int main () { >- printf("arena 0x%08x, numfree = %d\n", (unsigned)dt, dt->numfree); >+ printf("y", (unsigned)dt, dt->numfree); > } >if.res >diff = >--- tests/if.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-258835-if.c >@@ -1,27 +1,37 @@ > int main () { >+ before(); > f(x); >+ after(); >+ before(); > g(x); >+ after(); > } > > int main1 () { >+ before(); > f(x); > if (x == NULL) { >+ before(); > g(x); > } > } > > int main1 () { >+ before(); > f(x); > while (x == NULL) { > if (q == 3) { >+ before(); > g(x); > } > } > x = 6; > } > int main2 () { >+ before(); > f(x); > if (x == NULL || y == 2) { >+ before(); > g(x); > } > } >ifadd.res >diff = >--- tests/ifadd.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-738783-ifadd.c >@@ -3,6 +3,7 @@ int main() { > if (x) { > one(); > two(); >+ foo(); > } > } > } >ifbr.res >warning: line 13: should ret be a metavariable? >warning: rule starting on line 1: metavariable E not used in the - or context code >ifd.res >diff = >--- tests/ifd.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-52c7d2-ifd.c >@@ -1,9 +1,13 @@ > int main () { > one(); >+#ifdef 0 >+#ifdef 10 > foo(); > one(); > one(); > bar(); >+#endif >+#endif > one(); > } > >ifdef1.res >diff = >--- tests/ifdef1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-250e1e-ifdef1.c >@@ -1,5 +1,8 @@ > #include <asm/thread_info.h> > #include <asm/memory.h> >+#ifdef CONFIG_NKERNEL >+#include <asm/nk/f_nk.h> >+#endif > #include <asm/mach/time.h> > #include <asm/io.h> > >ifdef2.res >diff = >--- tests/ifdef2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-892f13-ifdef2.c >@@ -1,6 +1,11 @@ > #include <asm/thread_info.h> > #include <asm/memory.h> > #include <asm/mach/time.h> >+#ifdef CONFIG_NKERNEL >+#include <nk/nkern.h> >+#include <asm/nkern.h> >+unsigned long maxsize = 0; >+#endif > #include <asm/io.h> > > >ifdef3.res >diff = >--- tests/ifdef3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f1b4f8-ifdef3.c >@@ -2,6 +2,14 @@ > #include <asm/memory.h> > #include <asm/mach/time.h> > #include <asm/io.h> >+#ifdef CONFIG_NKERNEL >+#include <foo.h> >+#define CONFIG_NKERNEL_NO_SHARED_IRQ // use local (native) mask/unmask >+#undef CONFIG_NKERNEL_DEBUG_IRQ >+#endif >+static inline void nop(void) { >+ int i; >+} > > > void init_IRQ(void) >ifdef4.res >warning: line 9: should desc be a metavariable? >warning: line 9: should irq_desc be a metavariable? >diff = >--- tests/ifdef4.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ca3571-ifdef4.c >@@ -7,7 +7,10 @@ > void init_IRQ(void) > { > for (irq = 0; irq < IRQS; irq++) { >- *desc = irq_desc; >+#ifdef CONFIG_NKERNEL >+ if (irq < IRQ_LIMIT) >+#endif >+*desc = irq_desc; > uselessCall(); > } > } >ifdef5.res >diff = >--- tests/ifdef5.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6ececb-ifdef5.c >@@ -11,3 +11,10 @@ void init_IRQ(void) > uselessCall(); > } > } >+#ifdef CONFIG_NKERNEL >+#ifndef TIMER_32K_SYNCHRONIZED >+#define TIMER_32K_SYNCHRONIZED 0xffffffff >+#endif >+unsigned long nk_vtick_read_stamp(void) { >+ return omap_readl(TIMER_32K_SYNCHRONIZED); >+} >ifdef6.res >diff = >--- tests/ifdef6.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b71dc1-ifdef6.c >@@ -1,5 +1,8 @@ > #include <asm/thread_info.h> > #include <asm/memory.h> >+#ifdef CONFIG_NKERNEL >+#define foo(x) f(x) >+#endif > #include <asm/mach/time.h> > #include <asm/io.h> > >ifdef6a.res >diff = >--- tests/ifdef6a.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-07de2d-ifdef6a.c >@@ -1,4 +1,7 @@ > #include <asm/thread_info.h> >+#ifdef CONFIG_NKERNEL >+#define foo(x) f(x) >+#endif > #include <asm/memory.h> > #include <asm/mach/time.h> > #include <asm/io.h> >ifdefmeta.res >diff = >--- tests/ifdefmeta.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-44b8dd-ifdefmeta.c >@@ -1,26 +1,22 @@ > int main() { >- buf = alloca(3 >- #ifdef PLATFORM_A >-// platform a stuff >- +5 >- +50 >- #endif >- #ifdef PLATFORM_B >-/* platform b stuff */ >- +2 >- #endif >- ); >- buf = alloca(3 >- #ifdef PLATFORM_A >-// platform a stuff >- +5 >- +50 >- #endif >- #ifdef PLATFORM_B >-/* platform b stuff */ >- +2 >- #endif >- ); >+ buf = malloc(3 >+#ifdef PLATFORM_A >+ + 5 + 50 >+#endif >+ >+#ifdef PLATFORM_B >+ + 2 >+#endif >+); >+ buf = malloc(3 >+#ifdef PLATFORM_A >+ + 5 + 50 >+#endif >+ >+#ifdef PLATFORM_B >+ + 2 >+#endif >+); > } > > int other() { >@@ -41,9 +37,6 @@ int other() { > } > > int third() { >- buf = alloca(3+5+2); >- buf = alloca(3 >- +5 >- +2 >- ); >+ buf = malloc(3 + 5 + 2); >+ buf = malloc(3 + 5 + 2); > } >ifdefmeta1.res >diff = >--- tests/ifdefmeta1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-165579-ifdefmeta1.c >@@ -1,17 +1,2 @@ > int main() { >- buf = alloca(3 >- #ifdef PLATFORM_A >-// platform a stuff >- >- >- +5 >- >- >- >- #endif >- #ifdef PLATFORM_B >-/* platform b stuff */ >- +2 >- #endif >- ); > } >ifdefmeta2.res >diff = >--- tests/ifdefmeta2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-679200-ifdefmeta2.c >@@ -1,12 +1,2 @@ > int main() { >- buf = alloca(3 >- >- >- +5 >- >- >- >- >- +2 >- ); > } >ifdefmeta3.res >diff = >--- tests/ifdefmeta3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f1a0fb-ifdefmeta3.c >@@ -1,11 +1,5 @@ > int main () { > f(); >- if (foo) { >- one(); >-#ifdef ONE >- two(); >-#endif >- three(); >- } >+ xxx(); > g(); > } >ifend.res >diff = >--- tests/ifend.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-001b94-ifend.c >@@ -3,5 +3,3 @@ static int vortex_debug = VORTEX_DEBUG; > #else > static int vortex_debug = 1; > #endif >- >-#include <linux/config.h> >ifgoto.res >diff = >--- tests/ifgoto.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c4006f-ifgoto.c >@@ -1,5 +1,7 @@ > int main () { >- if (x) >- GOTO(l,a = 3); >+ if (x) { >+ a = 3; >+ goto l; >+ } > l: return; > } >ifields.res >diff = >--- tests/ifields.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c04b51-ifields.c >@@ -1,14 +1,16 @@ > typedef struct tag_obj { > int x; > int y; >- const IFaceVtbl *lpVtbl; >+ IFace IFace_iface; > int a; > } Tobj; > > > static struct IFaceImpl obj = { > 1, 2, >- &x, >+ { >+ &x, 4, >+ }, > 3 > }; > >ifif.res >diff = >--- tests/ifif.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6b8c61-ifif.c >@@ -1,5 +1,13 @@ > int main () { >+#ifdef FOO1 >+#ifdef FOO2 > foo(); >+#endif /* FOO1 */ >+#endif /* FOO2 */ > xxx(); >+#ifdef BAR1 >+#ifdef BAR2 > bar(); >+#endif /* BAR1 */ >+#endif /* BAR2 */ > } >ifreturn.res >diff = >--- tests/ifreturn.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2e1730-ifreturn.c >@@ -1,31 +1,46 @@ > int main () { > if (x) { >- return 1; >+ blah(); >+ { >+ return 1; >+ } > } > return 12; > } > > int main () { > if (a) { >- if (x) { >- return 1; >+ blah(); >+ { >+ if (x) { >+ blah(); >+ { >+ return 1; >+ } >+ } >+ b(); > } >- b(); > } > return 12; > } > > int main () { > if (a) { >- if (b) { >- if (x) { >- return 1; >- } >- else { >- return 1; >+ blah(); >+ { >+ if (b) { >+ blah(); >+ { >+ if (x) { >+ return 1; >+ } >+ else { >+ return 1; >+ } >+ } > } >+ b(); > } >- b(); > } > return 12; > } >ifreturn3.res >diff = >--- tests/ifreturn3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-31fb67-ifreturn3.c >@@ -3,7 +3,10 @@ int GetExitCode (int iFlag_Code) > if(iFlag_Code==OK) { > return OK; > } else // blah >+ { >+ mwtrace(); > return WARNING; >+ } > return 0; > } > >@@ -11,7 +14,9 @@ int GetExitCode (int iFlag_Code) > { > if(iFlag_Code==OK) { > return OK; >- } else >+ } else { >+ mwtrace(); > return WARNING; >+ } > return 0; > } >ifreturn4.res >diff = >--- tests/ifreturn4.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-dce949-ifreturn4.c >@@ -2,10 +2,16 @@ int GetExitCode (int iFlag_Code) > { > if(iFlag_Code==OK) { > return OK; >- } else if(iFlag_Code==WARNING) { >- return WARNING; > } else { >- return_ERREUR; >+ mwtrace(); >+ if(iFlag_Code==WARNING) { >+ return WARNING; >+ } else { >+ mwtrace(); >+ { >+ return_ERREUR; >+ } >+ } > } > return 0; > } >ifreturn6.res >diff = >--- tests/ifreturn6.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-10038e-ifreturn6.c >@@ -3,7 +3,8 @@ int main () { > blah(); > goto end; > } >- else goto end2; >+ else blah(); >+ later(); > end: > xxx(); > end2: >ifzer.res >diff = >--- tests/ifzer.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0aa872-ifzer.c >@@ -3,6 +3,5 @@ int main() { > and have lived on another thread's stack; that stack may have become > unmapped meanwhile (CONFIG_DEBUG_PAGEALLOC). */ > #endif >- foo(); > } > >ifzz.res >diff = >--- tests/ifzz.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-379af9-ifzz.c >@@ -2,9 +2,9 @@ if 0 > char c; > #endif > >-int foo(void) >+size_t foo(void) > { >- int i = 1; >+ size_t i = 1; > > #if 0 > TRACE("\n"); >inc.res >diff = >--- tests/inc.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bb49c8-inc.c >@@ -1,2 +1 @@ >-#define foo 3 >-#define xxx 4 >+#define foobar 3 >incdir.res >incl.res >diff = >--- tests/incl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-21c998-incl.c >@@ -1,6 +1,8 @@ >+#include "before.h" > #include <linux/foo.h> > #include <asm/semaphore.h> > #include <linux/foo2.h> >+#include "after.h" > #ifdef FOO > #include <linux/bar.h> > #endif FOO >incl2.res >diff = >--- tests/incl2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9d3ca1-incl2.c >@@ -1,3 +1,4 @@ >+#include "beginning.h" > #include <linux/foo.h> > #include <linux/foo.h> > #include "linux/foo.h" >inclifdef.res >diff = >--- tests/inclifdef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-eb0e41-inclifdef.c >@@ -1,4 +1,5 @@ > #include <linux/foo.h> >+#include <linux/mutex.h> > #ifdef CONFIG > #include <linux/bar.h> > #endif >include.res >diff = >--- tests/include.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-491932-include.c >@@ -1,8 +1,6 @@ > > #include <stdio.h> > #include <stdio2.h> >-#include <devfs_kernel.h> >-#include <devfs_kernel.h> > > > void main(int i) { >incompatible_value.res >incpos.res >keeping first hdr 1 >dropping first hdr >dropping first hdr >dropping second hdr >dropping second hdr >diff = >--- tests/incpos.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-71a91f-incpos.c >@@ -1,3 +1,4 @@ >+#include <foo.h> > #include <one> > #include "two" > #include <three> >incpos1.res >keeping first hdr 2 >dropping first hdr >keeping second hdr 1 because of 2 >dropping second hdr >diff = >--- tests/incpos1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8b4950-incpos1.c >@@ -1,3 +1,4 @@ >+#include <foo.h> > #include "two" > #include <three> > #include "four" >inherited.res >diff = >--- tests/inherited.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-44b2cf-inherited.c >@@ -6,5 +6,5 @@ void main(int i) { > h(2); > h2(2); > >- foo(1); >+ bar(1); > } >inherited_ver1.res >diff = >--- tests/inherited_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8d4429-inherited_ver1.c >@@ -3,8 +3,8 @@ void main(int i) { > //g(1); > f(2); > >- h(2); >- h2(2); >+ hh(2); >+ hh22(2); > >- foo(1); >+ bar(1); > } >inhmet.res >diff = >--- tests/inhmet.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-21a223-inhmet.c >@@ -1,3 +1,3 @@ > int main () { >- x->s = 12; >+ foo(); > } >inhpos.res >diff = >--- tests/inhpos.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-26590c-inhpos.c >@@ -1,3 +1,2 @@ > int main () { >- g(3); > } >initializer.res >warning: line 5: should var be a metavariable? >diff = >--- tests/initializer.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-723a78-initializer.c >@@ -1,5 +1,6 @@ > struct SHT var = { > .f1 = toto1, >- .f2 = toto2, >+ .foo = 12, >+ .foo2 = 12, > .f3 = toto3, > }; >initializer_many_fields.res >warning: line 4: should x be a metavariable? >inline.res >warning: line 4: should x be a metavariable? >diff = >--- tests/inline.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-293bf3-inline.c >@@ -1 +1 @@ >-inline void foo(int x) { return; } >+ >insdef.res >diff = >--- tests/insdef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5c43ca-insdef.c >@@ -1 +1,2 @@ > #define TABINFOGEN >+#include <tbl.h> >int2bool-local.res >diff = >--- tests/int2bool-local.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e87803-int2bool-local.c >@@ -1,8 +1,9 @@ > int nxnypz1(){ >- int x, y, z; >+ bool z; >+ int x, y; > x = 1; > y = 0; >- z = 0; >+ z = false; > if (x) > return x; > >@@ -31,8 +32,9 @@ int nxny3() { > } > > int px4() { >- int x; >- x = 0; >+ bool x; >+ >+ x = false; > return 4; > } > >@@ -49,11 +51,13 @@ int nxny5() { > } > > int pxpy6() { >- int x; >- int y; >+ bool x; >+ >+ bool y; >+ > >- x = 0; >- y = 1; >+ x = false; >+ y = true; > > x = x && y; > >introbrace.res >diff = >--- tests/introbrace.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5e6b6e-introbrace.c >@@ -1,8 +1,12 @@ > int main() { >- if (x) >+ if (x) { > rc = request_threaded_irq(a, > b); >- else >+ rc = compat_request_threaded_irq(12); >+ } >+ else { > rc = request_threaded_irq(a, > b); >+ rc = compat_request_threaded_irq(12); >+ } > } >invert.res >diff = >--- tests/invert.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-927525-invert.c >@@ -1,3 +1,3 @@ > int main () { >- x = y + z; >+ x = z + y; > } >ip.res >diff = >--- tests/ip.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-dadebe-ip.c >@@ -2,10 +2,18 @@ void GetInfoDestTV(short sNoFo) > { > if(sNoFo == 1) > printf("one"); >- else if(sNoFo == 2) >- printf("two"); >- else if(sNoFo == 2) >- printf("three"); >- else >- printf("other"); >+ else { >+ trace("ifelel"); >+ if(sNoFo == 2) >+ printf("two"); >+ else { >+ trace("ifelel"); >+ if(sNoFo == 2) >+ printf("three"); >+ else { >+ trace("ifelel"); >+ printf("other"); >+ } >+ } >+ } > } >ip2.res >diff = >--- tests/ip2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-907bfc-ip2.c >@@ -1,11 +1,17 @@ > void GetInfoDestTV(short sNoFo) > { >- if(sNoFo == 1) >+ if(sNoFo == 1) { >+ trace("ifelel"); > printf("one"); >- else if(sNoFo == 2) >+ } >+ else if(sNoFo == 2) { >+ trace("ifelel"); > printf("two"); >- else if(sNoFo == 2) >+ } >+ else if(sNoFo == 2) { >+ trace("ifelel"); > printf("three"); >+ } > else > printf("other"); > } >isococci.res >diff = >--- tests/isococci.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-67bd40-isococci.c >@@ -1,6 +1,4 @@ > > void f(int i) { > >- if(x > 0) return x; >- > } >isoif.res >warning: r: metavariable p1 not used in the - or context code >warning: r: metavariable E not used in the - or context code >diff = >--- tests/isoif.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d23704-isoif.c >@@ -1,4 +1,2 @@ > int main () { >- if (x == NULL) one(); else two(); >- if (x != NULL) three(); else four(); > } >isotest.res >diff = >--- tests/isotest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f53886-isotest.c >@@ -1,7 +1,6 @@ > void main(int i) { > >- char j; >- int i; // = 1; >+ char j;// = 1; > > j++; > >isotest2.res >diff = >--- tests/isotest2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ff68d3-isotest2.c >@@ -1,7 +1,6 @@ > void main(int i) { > > char j; >- int i = 1; > > j++; > >iteration.res >exn while in timeout_function >iterator.res >diff = >--- tests/iterator.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a06897-iterator.c >@@ -2,9 +2,5 @@ void pcibios_report_status(u_int status_ > { > struct list_head *l; > >- list_for_each(l, &pci_root_buses) { >- struct pci_bus *bus = pci_bus_b(l); >- >- pcibios_bus_report_status(bus, status_mask, warn); >- } >+ foo(); > } >iterprint.res >diff = >--- tests/iterprint.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e1a2e6-iterprint.c >@@ -1,6 +1,4 @@ > int main () { >- for(bit = 0; bit < size; bit++) { >- if (test_bit(bit, bitmap)) >- x = 12; >- } >+ for_each_set_bit(bit, bitmap, size) >+ x = 12; > } >jloop1.res >exn while in timeout_function >julia10.res >diff = >--- tests/julia10.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b9afdb-julia10.c >@@ -1,7 +1,5 @@ > int main(int x) { > f(); >- h(); > g(); >- h(); > } > >julia7.res >diff = >--- tests/julia7.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3c33c2-julia7.c >@@ -1,7 +1,6 @@ > int main(int x) { > foo(); >- if (x) {bar(); after(); return 0;} >- bar(); >+ if (x) {after(); return 0;} > after(); > } > >justremove.res >diff = >--- tests/justremove.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-876cf2-justremove.c >@@ -1,17 +1,6 @@ > int main () { >- if (x) { >- a(); >- b(); >- c(); >- } > foo(); >- while (x) { >- a(); >- if (b()) continues; >- c(); >- } > foo(); >- r(); > foo(); > } > >keep_comma.res >diff = >--- tests/keep_comma.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-06ed03-keep_comma.c >@@ -1,4 +1,4 @@ > int main () { >- foo(); >+ xxx(); > snd_assert(!atomic_read(&substream->runtime->mmap_count), ); > } >km.res >diff = >--- tests/km.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-319139-km.c >@@ -1,5 +1,4 @@ > int main() { >- int *data = kmalloc(element->string.length + 1, GFP_KERNEL); >+ int *data = kzalloc(element->string.length + 1, GFP_KERNEL); > foo(); >- memset(data, 0, element->string.length + 1); > } >kmalloc.res >diff = >--- tests/kmalloc.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d0148c-kmalloc.c >@@ -1,9 +1,7 @@ > int main() { > struct bar *y; >- struct foo *x = kmalloc(sizeof(struct foo),GPF_KERNEL); >+ struct foo *x = kzalloc(sizeof(struct foo), GPF_KERNEL); > if (!x) return -ENOMEM; >- y = kmalloc(sizeof(struct bar),GPF_KERNEL); >+ y = kzalloc(sizeof(struct bar), GPF_KERNEL); > if (!y) return -ENOMEM; >- memset(x,0,sizeof(struct foo)); >- memset(y,0,sizeof(struct bar)); > } >kmc.res >warning: r: metavariable x1 not used in the - or context code >warning: r: metavariable S not used in the - or context code >diff = >--- tests/kmc.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1dbe80-kmc.c >@@ -10,5 +10,4 @@ dmabounce_register_dev(struct device *de > > err_destroy: > kfreea(device_info); >- return 1; > } >kr.res >diff = >--- tests/kr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1f9197-kr.c >@@ -3,5 +3,4 @@ int a(x) > { > y = (j) > r; >- foo(); > } >ktype.res >warning: rule starting on line 1: metavariable T2 not used in the - or context code >warning: rule starting on line 1: metavariable T not used in the - or context code >diff = >--- tests/ktype.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4dd315-ktype.c >@@ -3,8 +3,6 @@ typedef struct r1_private_data_s conf_t; > static int run(mddev_t *mddev) > { > conf_t *conf; >- conf = kmalloc(sizeof(conf_t), GFP_KERNEL); >+ conf = kzalloc(sizeof(conf_t), GFP_KERNEL); > if (!conf) return; >- >- memset(conf, 0, sizeof(*conf)); > } >ktype2.res >warning: r: metavariable T2 not used in the - or context code >warning: r: metavariable T not used in the - or context code >diff = >--- tests/ktype2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f50165-ktype2.c >@@ -3,11 +3,8 @@ typedef struct r1_private_data_s conf_t; > static int run(mddev_t *mddev) > { > conf_t *conf; >- conf = kmalloc(sizeof(conf_t), GFP_KERNEL); >+ conf = kzalloc(sizeof(conf_t), GFP_KERNEL); > if (!conf) { >- memset(conf, 0, sizeof(*conf)); > return; > } >- >- memset(conf, 0, sizeof(*conf)); > } >labels_metastatement.res >diff = >--- tests/labels_metastatement.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f3d92d-labels_metastatement.c >@@ -1,9 +1,15 @@ > int foo(int i) { > > if(1) { >- x = 3; >- z = 4; >- } // we don't want that it add both foo on the } and on the endif >+ { >+ x = 3; >+ foo(); >+ z = 4; >+ foo(); >+ } >+ foo(); >+ } >+ foo(); // we don't want that it add both foo on the } and on the endif > // (note: but need correct endif accrochage) > > } >labels_metastatement_ver1.res >diff = >--- tests/labels_metastatement_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1b9195-labels_metastatement_ver1.c >@@ -1,5 +1,9 @@ > int foo(int i) { > >- if(1) x = 3; >+ if(1) { >+ x = 3; >+ foo(); >+ } >+ foo(); > > } >lid.res >diff = >--- tests/lid.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-71a33c-lid.c >@@ -1,6 +1,6 @@ > int main () { > int a; > static int b; >- f(a); >+ f(12); > f(b); > } >line_before_last.res >diff = >--- tests/line_before_last.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0309ee-line_before_last.c >@@ -1,17 +1,13 @@ > int main () { >- foo(); > xxx(); > > } > > int main () { > xxx(); >- foo(); > > } > > int main () { > xxx(); >- >- foo(); > } >list_test.res >warning: line 5: should a be a metavariable? >warning: line 12: should a be a metavariable? >warning: line 13: should b be a metavariable? >warning: line 21: should a be a metavariable? >warning: line 23: should b be a metavariable? >warning: line 31: should a be a metavariable? >warning: line 38: should a be a metavariable? >warning: line 39: should b be a metavariable? >warning: line 47: should a be a metavariable? >warning: line 49: should b be a metavariable? >warning: line 56: should f be a metavariable? >warning: line 57: should a be a metavariable? >warning: line 63: should g be a metavariable? >warning: line 64: should a be a metavariable? >warning: line 65: should b be a metavariable? >warning: line 71: should h be a metavariable? >warning: line 73: should a be a metavariable? >warning: line 75: should b be a metavariable? >warning: line 82: should i be a metavariable? >warning: line 84: should a be a metavariable? >warning: line 86: should b be a metavariable? >diff = >--- tests/list_test.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-cc310d-list_test.c >@@ -1,55 +1,53 @@ > int main () { >- f(a); >- g(a,b); >- h(x,a,y,b,z); >- h(a,y,b,z); >- h(x,a,b,z); >- h(x,a,y,b); >- h(a,b,z); >- h(x,a,b); >- h(a,b); >+ f(); >+ g(b); >+ h(x,y,b,z); >+ h(y,b,z); >+ h(x,b,z); >+ h(x,y,b); >+ h(b,z); >+ h(x,b); >+ h(b); > } > >-int f(int a) { return; } >+int f() { return; } > >-int g(int a,int b) { return; } >+int g(int b) { return; } > >-int h(int x, int a, int y, int b, int z) { return; } >+int h(int x, int y, int b, int z) { return; } > >-int h(int a, int y, int b, int z) { return; } >+int h(int y, int b, int z) { return; } > >-int h(int x, int a, int b, int z) { return; } >+int h(int x, int b, int z) { return; } > >-int h(int x, int a, int y, int b) { return; } >+int h(int x, int y, int b) { return; } > >-int h(int a, int b, int z) { return; } >+int h(int b, int z) { return; } > >-int h(int x, int a, int b) { return; } >+int h(int x, int b) { return; } > >-int h(int a, int b) { return; } >+int h(int b) { return; } > > int f[] = { >- a > }; > > int g[] = { >- a, > b > }; > >-int h[] = { x, a, y, b, z }; >+int h[] = { x, y, b, z }; > >-int h[] = { a, y, b, z, }; >+int h[] = { y, b, z, }; > >-int h[] = { x, a, b, z }; >+int h[] = { x, b, z }; > >-int h[] = { x, a, y, b, }; >+int h[] = { x, y, b, }; > >-int h[] = { a, b, z }; >+int h[] = { b, z }; > >-int h[] = { x, a, b, }; >+int h[] = { x, b, }; > >-int h[] = { a, b }; >+int h[] = { b }; > > int i[] = { x, a, y, b, z }; > >@@ -57,33 +55,30 @@ int i[] = { a, y, b, z, }; > > int i[] = { x, a, b, z }; > >-int i[] = { x, a, y, b, }; >+int i[] = { x, a, y, }; > > int i[] = { a, b, z }; > >-int i[] = { x, a, b, }; >+int i[] = { x, a, }; > >-int i[] = { a, b }; >+int i[] = { a, }; > > struct f { >- int a; >+ int b; > }; > > struct g { >- int a; > int b; > }; > > struct h { > int x; >- int a; > int y; > int b; > int z; > }; > > struct h { >- int a; > int y; > int b; > int z; >@@ -91,63 +86,46 @@ struct h { > > struct h { > int x; >- int a; > int b; > int z; > }; > > struct h { > int x; >- int a; > int y; > int b; > }; > > struct h { >- int a; > int b; > int z; > }; > > struct h { > int x; >- int a; > int b; > }; > > struct h { >- int a; > int b; > }; > >-enum f { a }; >+enum f { b }; > >-enum g { a, b }; >+enum g { b }; > >-enum h { x, a, y, b, z, }; >-enum h { a, y, b, z }; >-enum h { x, a, b, z, }; >-enum h { x, a, y, b }; >-enum h { a, b, z, }; >-enum h { x, a, b }; >-enum h { a, b, }; >+enum h { x, y, b, z, }; >+enum h { y, b, z }; >+enum h { x, b, z, }; >+enum h { x, y, b }; >+enum h { b, z, }; >+enum h { x, b }; >+enum h { b, }; > > enum i { x, a, y, b, z, }; > enum i { a, y, b, z }; > enum i { x, a, b, z, }; >-enum i { x, a, y, b, }; >+enum i { x, a, y, }; > enum i { a, b, z, }; >-enum i { x, a, b, }; >-enum i { a, b, }; >- >-#define f(a) 3 >- >-#define g(a,b) 3 >- >-#define h(x,a,y,b,z) 3 >-#define h(a,y,b,z) 3 >-#define h(x,a,b,z) 3 >-#define h(x,a,y,b) 3 >-#define h(a,b,z) 3 >-#define h(x,a,b) 3 >-#define h(a,b) 3 >+enum i { x, a, }; >+enum i { a, }; >local.res >diff = >--- tests/local.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-125bcb-local.c >@@ -1 +1 @@ >-int f(int xx, int yy) { return 0; } >+int f(int a, int b, int yy) { return 0; } >localglobal.res >diff = >--- tests/localglobal.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8315e5-localglobal.c >@@ -3,5 +3,5 @@ int a; > int main(int b) { > int c; > int local; >- return a + b + c; >+ return global + local + local; > } >localid.res >diff = >--- tests/localid.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-59dbc8-localid.c >@@ -2,8 +2,7 @@ int c; > > int main () { > int a; >- f(a); > f(a+1); >- f(b); >- f(c); >+ h(b); >+ g(c); > } >log.res >diff = >--- tests/log.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-174583-log.c >@@ -8,5 +8,4 @@ static struct var_t vars[] = { > > > int main () { >- f("foo"); > } >long.res >diff = >--- tests/long.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c397c6-long.c >@@ -1,4 +1,4 @@ > int main () { >- hello_world("this is a very long sentence. this is a very long sentence. ", >- "I don't know how coccinelle will treat this!"); >+ hello_you("this is a very long sentence. this is a very long sentence. ", >+ "I don't know how coccinelle will treat this!"); > } >longconst.res >diff = >--- tests/longconst.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ced351-longconst.c >@@ -2,18 +2,18 @@ long function1() > { > long a; > int b; >- a = 1l << b; >- a = 1u << b; >- a = 65536l << b; >- a = 65536u << b; >- a = 65536 << b; >- a = 4294967296 << b; >- a = 65535 << b; >- a = 4294967295 << b; >- a = 0x7fffffff << b; >- a = 0x1fl << b; >- a = 0x1fu << b; >- a = 0x1FL << b; >- a = 0x1FU << b; >+ a = f(1l, "long"); >+ a = f(1u, "unsigned"); >+ a = f(65536l, "long"); >+ a = f(65536u, "unsigned"); >+ a = f(65536, "int"); >+ a = f(4294967296, "int"); >+ a = f(65535, "int"); >+ a = f(4294967295, "int"); >+ a = f(0x7fffffff, "int"); >+ a = f(0x1fl, "long"); >+ a = f(0x1fu, "unsigned"); >+ a = f(0x1FL, "long"); >+ a = f(0x1FU, "unsigned"); > return a; > } >longline2.res >warning: line 5: should a be a metavariable? >diff = >--- tests/longline2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c3ff6c-longline2.c >@@ -1,8 +1,16 @@ > int main() { >- f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,a,shdkjsdsdhkjsa,x,y,z); >- f(sdhfkjdkdsahksadsdhjkdsa, sahdjshdkjsahdkjhsakjdsh, a, shdkjsdsdhkjsa, x, y, z); >+ f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,a, >+ 1111111111111111111111111111111111111, 111111111111111111111111, 111, >+ shdkjsdsdhkjsa,x,y,z); >+ f(sdhfkjdkdsahksadsdhjkdsa, sahdjshdkjsahdkjhsakjdsh, a, >+ 1111111111111111111111111111111111111, 111111111111111111111111, 111, >+ shdkjsdsdhkjsa, x, y, z); > f(sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa); >- f(a,sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa); >- f(a,sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa, >+ f(a,1111111111111111111111111111111111111, 111111111111111111111111, 111, >+ sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa, >+ shdkjsdsdhkjsa); >+ f(a,1111111111111111111111111111111111111, 111111111111111111111111, 111, >+ sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa, >+ shdkjsdsdhkjsa, > sdhfkjdkdsahksadsdhjkdsa,sahdjshdkjsahdkjhsakjdsh,aaaaaaaaaaaaaaaaaaaa,shdkjsdsdhkjsa); > } >longlong.res >diff = >--- tests/longlong.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3b8b7a-longlong.c >@@ -1,6 +1,6 @@ >-long long a; >+int a; > > int main () { >- long long b; >+ int b; > return 0; > } >longlongint.res >diff = >--- tests/longlongint.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e2dcc1-longlongint.c >@@ -1,9 +1,3 @@ > int main() { >- unsigned int x; >- int y; >- unsigned long long int a; >- long long int b; >- unsigned long long m; >- long long n; > return 0; > } >loop.res >diff = >--- tests/loop.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-328655-loop.c >@@ -1,5 +1,3 @@ > int main() { >- f(); > while (1) { x : 15; } >- g(); > } >lvalue.res >warning: line 4: should x be a metavariable? >diff = >--- tests/lvalue.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e3f840-lvalue.c >@@ -1,4 +1,4 @@ > int main() { >- x = x + 1; >- *x = 12; >+ f(x) = f(x) + 1; >+ *f(x) = 12; > } >macro.res >diff = >--- tests/macro.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-56a7f8-macro.c >@@ -1,5 +1,5 @@ >-#define SC_FCMND(fcmnd) ((Scsi_Cmnd *)((long)fcmnd - (long)&(((Scsi_Cmnd *)0)->SCp))) >+#define SC_FCMND(fcmnd) ((struct scsi_cmnd *)((long)fcmnd - (long)&(((struct scsi_cmnd *)0)->SCp))) > > int main() { >- return ((Scsi_Cmnd *)((long)fcmnd - (long)&(((Scsi_Cmnd *)0)->SCp))); >+ return ((struct scsi_cmnd *)((long)fcmnd - (long)&(((struct scsi_cmnd *)0)->SCp))); > } >macro_int16.res >diff = >--- tests/macro_int16.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e34d06-macro_int16.c >@@ -4,6 +4,6 @@ > void main(void) > { > INT16 a, b, c; >- c = a + b; >+ c = a - b; > } > >match_init.res >diff = >--- tests/match_init.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-29f6dc-match_init.c >@@ -1,15 +1,15 @@ > int probably_works () { >- int x = 3; >+ int a = 12; > f(x); > } > > int does_it_work () { >- int y, x = 3; >+ int y, a = 12; > f(x); > } > > int should_work () { >- x = 3; >+ a = 12; > f(x); > } > >match_no_meta.res >diff = >--- tests/match_no_meta.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ea9e87-match_no_meta.c >@@ -2,6 +2,4 @@ void main(int i) > { > foo(1); > bar(2); >- >- bar(3); > } >max.res >warning: line 6: should i be a metavariable? >warning: line 14: should i be a metavariable? >diff = >--- tests/max.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f3d43f-max.c >@@ -1,3 +1,3 @@ > int main () { >- if (x < 25) return i; >+ if (x < 25) return 3; > } >mdec.res >diff = >--- tests/mdec.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-458346-mdec.c >@@ -1,23 +1,26 @@ > int main () { >- int a, b, c, d; >- int a, b, c, *d; >- int a, b, *c, d; >- int a, *b, c, d; >- int *a, b, c, d; >- int a, b, *c, *d; >- int a, *b, *c, d; >- int *a, *b, c, d; >- int *a, b, c, *d; >- int a, *b, c, *d; >- int *a, b, *c, d; >- int a, *b, c, *d; >- int *a, b, *c, d; >- int a, *b, *c, *d; >- int *a, *b, *c, d; >- int *a, *b, c, *d; >- int *a, b, *c, *d; >- int *a, b, c, *d; >- int *a, b, *c, *d; >- int a, *b, *c, *d; >- int *a, *b, c, *d; >+ char d; >+ char c; >+ char b; >+ char a; >+ int *d; >+ int *c; >+ int *b; >+ int *a; >+ int *c, *d; >+ int *b, *c; >+ int *a, *b; >+ int *a, *d; >+ int *b, *d; >+ int *a, *c; >+ int *b, *d; >+ int *a, *c; >+ int *b, *c, *d; >+ int *a, *b, *c; >+ int *a, *b, *d; >+ int *a, *c, *d; >+ int *a, *d; >+ int *a, *c, *d; >+ int *b, *c, *d; >+ int *a, *b, *d; > } >mdecl.res >warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code >exn while in timeout_function >mdeclp.res >exn while in timeout_function >mdeclp2.res >exn while in timeout_function >memory.res >diff = >--- tests/memory.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-911278-memory.c >@@ -2,6 +2,5 @@ > > int __queue_add(Queue_t *queue, Scsi_Cmnd *SCpnt, int head) > { >- if (BAD_MAGIC(1,12)) >- BUG(); >+ BUG_ON(BAD_MAGIC(1, 12)); > } >metahex.res >metaline.res >warning: line 42: x, previously declared as a metavariable, is used as an identifier >warning: line 48: should y be a metavariable? >diff = >--- tests/metaline.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-cde146-metaline.c >@@ -1,9 +1,8 @@ > int main () { >- static int x; > static int y; >- if (12) f(4+3); >- g(4+3); >- m(3+3); >- g(3+3); >+ static int x; >+ while (12) f(4+3); >+ h(4 + 3); >+ q(3 + 3); > r(3+4); > } >metaops.res >diff = >--- tests/metaops.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-44e228-metaops.c >@@ -2,24 +2,24 @@ int p1() { > int x = 0; > int y = 1; > >- x = x + y; >- x = x * y; >- x = x / y; >- x = x - y; >- x = x && y; >- x = x || y; >- x = x == y; >- x = x != y; >- x = x > y; >- x = x < y; >- x = x >= y; >- x = x <= y; >- x = x % y; >- x = x | y; >- x = x & y; >- x = x ^ y; >- x = x << y; >- x = x >> y; >+ x += x - y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; >+ x += x + y; > > return 42; > } >@@ -28,17 +28,17 @@ int p2() { > int x = 0; > int y = 1; > >- x = 1; >- x += 2; >- x -= 3; >- x *= 4; >- x /= 5; >- x %= 6; >- x |= 7; >- x &= 8; >- x ^= 9; >- x <<= 10; >- x >>= 11; >+ x += 1; >+ x = 2; >+ x = 3; >+ x = 4; >+ x = 5; >+ x = 6; >+ x = 7; >+ x = 8; >+ x = 9; >+ x = 10; >+ x = 11; > > return 42; > } >metaops0.res >diff = >--- tests/metaops0.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-890aca-metaops0.c >@@ -1,44 +1,11 @@ > int p1() { >- int x = 0; >- int y = 1; > >- x = x + y; >- x = x * y; >- x = x / y; >- x = x - y; >- x = x && y; >- x = x || y; >- x = x == y; >- x = x != y; >- x = x > y; >- x = x < y; >- x = x >= y; >- x = x <= y; >- x = x % y; >- x = x | y; >- x = x & y; >- x = x ^ y; >- x = x << y; >- x = x >> y; > > return 42; > } > > int p2() { >- int x = 0; >- int y = 1; > >- x = 1; >- x += 2; >- x -= 3; >- x *= 4; >- x /= 5; >- x %= 6; >- x |= 7; >- x &= 8; >- x ^= 9; >- x <<= 10; >- x >>= 11; > > return 42; > } >metaruleelem.res >diff = >--- tests/metaruleelem.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ff4178-metaruleelem.c >@@ -1,6 +1,7 @@ > int main(int x) { > f(); >- if(1) { >+ foo(); >+ if (1) { > replace(); > } > g(); >metastatement2.res >diff = >--- tests/metastatement2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3d28d7-metastatement2.c >@@ -1,6 +1,5 @@ > void main(int i) { > > f(); >- { replace(); replace(); } > g(); > } >metastatement_for.res >diff = >--- tests/metastatement_for.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5b9b5e-metastatement_for.c >@@ -1,9 +1,6 @@ > void main(void) > { > int i; >- for (i = 0; i < 10; i++) { >- printf("%d", i); >- } > > if (i == 0) { > printf("%d", i); >metastatement_if.res >diff = >--- tests/metastatement_if.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ed8ea0-metastatement_if.c >@@ -5,8 +5,4 @@ void main(void) > printf("%d", i); > } > >- if (i == 0) { >- printf("%d", i); >- } >- > } >mincom.res >diff = >--- tests/mincom.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9b0fe8-mincom.c >@@ -1,5 +1,7 @@ > int main () { >- if (rc == LS_NONE_FIRST_DE) >+ if (rc == LS_NONE_FIRST_DE) { > /* It is not "ls -{a}l" operation, no need statahead for it. */ >- GOTO(out, rc = -EAGAIN); >+ a(); >+ b(); >+ } > } >minenum.res >diff = >--- tests/minenum.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c2a78a-minenum.c >@@ -1 +1 @@ >-enum h { x, a, z, q, b }; >+enum h { x, qq, q, b }; >minenum1.res >diff = >--- tests/minenum1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d20bf4-minenum1.c >@@ -1,2 +1,2 @@ >-enum h { x, a, z, >+enum h { x, qq, > q, b }; >minfn.res >diff = >--- tests/minfn.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e0b46a-minfn.c >@@ -1,13 +1,5 @@ > int main () { return first; } > >-int f () { return second; } >-int f () { return second; } >- > int main () { return third; } > >-#define x 3 >-#define x 3 >-#define x 3 >-#define x 3 >- > int main () { return fifth; } >mini_null_ref.res >diff = >--- tests/mini_null_ref.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5efc6e-mini_null_ref.c >@@ -2,11 +2,12 @@ static int __devinit w90p910_keypad_prob > { > const struct w90p910_keypad_platform_data *pdata = > pdev->dev.platform_data; >- const struct matrix_keymap_data *keymap_data = pdata->keymap_data; >+ const struct matrix_keymap_data *keymap_data; > if (!pdata) { > dev_err(&pdev->dev, "no platform data defined\n"); > return -EINVAL; > } >+ keymap_data = pdata->keymap_data; > > return; > } >miniswap.res >diff = >--- tests/miniswap.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9d83a5-miniswap.c >@@ -1,5 +1,5 @@ > static void swap_refcount_rec(void *a, void *b, int size) > { >- struct ocfs2_refcount_rec *l, tmp; >+ struct ocfs2_refcount_rec *l; > swap(l,tmp); > } >minstruct.res >diff = >--- tests/minstruct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f9eb8f-minstruct.c >@@ -1,5 +1,7 @@ > static struct i2c_client client_template = { >- .name = "(unset)", >+ .dev = { >+ .name = "(unset)", >+ }, > .id = -1, > .driver = &i2c_driver_videotext > }; >minusdots.res >diff = >--- tests/minusdots.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b96e45-minusdots.c >@@ -1,9 +1,3 @@ > void main(int i) { >- >- if (!hostptr) { >- if (hostptr) { >- return -ESRCH; >- } >- } > > } >minusdots_ver1.res >diff = >--- tests/minusdots_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a0db17-minusdots_ver1.c >@@ -1,6 +1,2 @@ > void main(int i) { >- >- if (!hostptr) { >- i++; >- } > } >multi_func1.res >exn while in timeout_function >multichars.res >warning: line 4: should ab be a metavariable? >diff = >--- tests/multichars.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-92750f-multichars.c >@@ -1,5 +1,5 @@ > int main () { >- f('XYZ',ab); >- f('X\nY',ab); >- f('\n',ab); >+ f('XYZ',12); >+ f('X\nY',12); >+ f('\n',12); > } >multidec.res >diff = >--- tests/multidec.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-973a87-multidec.c >@@ -1,11 +1,6 @@ > int main () { > int x = 3,z; >- int x = 12; >- int x = 12,y; >+ int y; > int >-x >-= >-12 >-, > y; > } >multidecl3.res >diff = >--- tests/multidecl3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fa07da-multidecl3.c >@@ -1,17 +1,13 @@ > int main () { >- int *i, i[12], i, k, r; >+ int k, r; > } > > struct foo { >- int *i, i[12], i, k, r; >- int *i, i[12], i; >- int *i; >+ int k, r; > }; > > int main () { >- int *i, i[12], i; > } > > struct foo { >- int *i, i[12], i; > }; >multipath.res >diff = >--- tests/multipath.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2addeb-multipath.c >@@ -2,8 +2,8 @@ static void multipathd(struct md_thread > { > for (;;) { > if ((mp_bh->path = multipath_map (conf))<0) { >- printk(KERN_ERR "multipath: %s: redirecting sector %llu" >- " to another IO path\n", >+ printk("KERN_ERR %s: %s: redirecting sector %llu to another IO path\n", >+ __func__, > bdevname(bio->bi_bdev,b), > (unsigned long long)bio->bi_iter.bi_sector); > } >multiplus.res >warning: rule starting on line 3: metavariable T not used in the - or context code >diff = >--- tests/multiplus.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3725bf-multiplus.c >@@ -1,4 +1,4 @@ >-static void xm_link_timer(void *arg) >+static void xm_link_timer(struct work_struct *work) > { > struct net_device *dev = arg; > struct skge_port *skge = netdev_priv(arg); >multiremove.res >diff = >--- tests/multiremove.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b31b12-multiremove.c >@@ -1,8 +1,5 @@ > int main () { > if (x) { xyz1(); } >- if (x) { foo(); abc(); } > if (x) { xyz2(); } >- if (x) { bar(); abc(); } > if (x) { xyz3(); } >- if (x) { foo(); abc(); bar(); bar(); foo(); } > } >multistruct.res >diff = >--- tests/multistruct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2833d7-multistruct.c >@@ -1,5 +1,3 @@ >-struct one x; > >-struct two y; > > struct three z; >multitype.res >diff = >--- tests/multitype.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f8dd87-multitype.c >@@ -3,5 +3,5 @@ typedef struct foo { int a; } foo_t; > int main() { > foo_t * x; > f(x->a); >- g(x); >+ g(x, NULL); > } >multitypedef.res >warning: non_delayed_fn: metavariable T not used in the - or context code >diff = >--- tests/multitypedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2afac4-multitypedef.c >@@ -5,5 +5,5 @@ typedef struct HYSDN_CARD { > int > ergo_inithardware(hysdn_card * card) > { >- INIT_WORK(&card->irq_queue, ergo_irq_bh, card); >+ INIT_WORK(&card->irq_queue, ergo_irq_bh); > } >multivars.res >diff = >--- tests/multivars.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-5ce0d1-multivars.c >@@ -1,5 +1,5 @@ > void main(int i) { > >- f(1+2+v.field1,1+2+v.field1); >+ h(1 + 2 + v.field1); > > } >na.res >diff = >--- tests/na.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-04f710-na.c >@@ -4,10 +4,10 @@ void foo() > { > int i; > >- if (!i & FOO) return; >- !i & -FOO; >+ if (12) return; >+ 12; > !i & !FOO; >- !i & 100; >- !i & -100; >+ 12; >+ 12; > !i & !100; > } >nameless.res >diff = >--- tests/nameless.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-655807-nameless.c >@@ -1,6 +1,6 @@ > typedef union { > int foo; > } t_foo; >-typedef struct { >+typedef struct __COCCI__TMP__STRUCTNAME__ { > int foo; > } t_foo; >nest.res >warning: line 6: should hostno be a metavariable? >warning: line 18: should xxx be a metavariable? >diff = >--- tests/nest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-632591-nest.c >@@ -1,7 +1,7 @@ > void info_func(int i) { > foo(); > while (x) { >- 1+hostno+xxx; >- 2+hostno+xxx; >+ 1+hostptr->host_no+hostptr->host_no; >+ 2+hostptr->host_no+hostptr->host_no; > } > } >nestone.res >warning: one: metavariable S not used in the - or context code >diff = >--- tests/nestone.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4477a9-nestone.c >@@ -1,4 +1,3 @@ > int foo() { > if (x) { xxx(); return;} >- yyy(); > } >nestseq.res >diff = >--- tests/nestseq.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3b0467-nestseq.c >@@ -2,4 +2,5 @@ int main () { > f(); > g(12); > h(); >+ xxx(12); > } >neststruct.res >diff = >--- tests/neststruct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-eb3948-neststruct.c >@@ -8,6 +8,6 @@ struct usb_hub { > > static int hub_configure(struct usb_hub *hub) > { >- hub->status = kmalloc(sizeof(*hub->status), GFP_KERNEL); >+ hub->status = kzalloc(sizeof(*hub->status), GFP_KERNEL); > > } >nl.res >warning: line 4: should x be a metavariable? >diff = >--- tests/nl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4d3536-nl.c >@@ -1,4 +1,4 @@ > int main() { >- if (x) return; >- x = x + 1; >+ if (y) return; >+ y = y + 1; > } >noa.res >diff = >--- tests/noa.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f8c031-noa.c >@@ -2,6 +2,6 @@ int main () { > if (x) { a(); } else { a(); } > } > >-int tochange () { >+int has_no_a () { > if (x) { a(); } else { x(); } > } >nocast.res >diff = >--- tests/nocast.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-76969e-nocast.c >@@ -1,4 +1,4 @@ >-int main (unsigned int __nocast gfp_mask, int x) { >+int main (gfp_t gfp_mask, int x) { > buf = kmalloc(sizeof *send_buf + buf_size, gfp_mask); > } > >noret.res >diff = >--- tests/noret.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e46912-noret.c >@@ -1,18 +1,18 @@ >-main (int x); >-static xmain (int x); >-inline ymain (int x); >+main (int x, int q); >+static xmain (int x, int q); >+inline ymain (int x, int q); > >-main (int x) { >- return x; >+main (int x, int q) { >+ return 12; > } > // foo > >-static xmain (int y) { >- return y; >+static xmain (int y, int q) { >+ return 12; > } > // xxx > >-inline ymain (int y) { >- return y; >+inline ymain (int y, int q) { >+ return 12; > } > // xxx >not.res >diff = >--- tests/not.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fdbbe2-not.c >@@ -1,9 +1,9 @@ > int main() { > int x; >- this(12,x); >+ f(20); > this(foo,x); > bar(12,x); > foo(12,x); >- this(12,x); >- this(12,x); >+ f(20); >+ f(20); > } >notest.res >diff = >--- tests/notest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-976c21-notest.c >@@ -1,6 +1,6 @@ > int main() { > struct foo *x; > x = FN(); >- if (!x) return; >+ if (12) return; > return; > } >noty.res >diff = >--- tests/noty.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fc928e-noty.c >@@ -1,3 +1,4 @@ > int main(int *x) { > if (NULL == x) { return; } >+ g(); > } >noty2.res >diff = >--- tests/noty2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ad974f-noty2.c >@@ -1,14 +1,11 @@ > main () { >- foo(); > return; > } > > int main2 () { >- foo(); > return; > } > > blah_t main3 () { >- foo(); > return; > } >null_bool.res >warning: line 4: should x be a metavariable? >diff = >--- tests/null_bool.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-af4995-null_bool.c >@@ -1,8 +1,8 @@ > int main () { >- if (x != NULL) return; >- if (a && x != NULL && b) return; >- if (x) return; >- if (a && x && b) return; >+ if (12) return; >+ if (a && 12 && b) return; >+ if (12) return; >+ if (a && 12 && b) return; > x = x + 20; > } > >null_type.res >diff = >--- tests/null_type.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-95182a-null_type.c >@@ -2,7 +2,7 @@ int main(int i) { > > int *x; > >- g(x); >- g(NULL); >+ g(f(x)); >+ g(f(NULL)); > > } >oddifdef.res >warning: line 4: should x be a metavariable? >warning: line 6: should x be a metavariable? >diff = >--- tests/oddifdef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-64ec90-oddifdef.c >@@ -7,9 +7,7 @@ void one () { > a = 5; > > #ifdef FOO >- x = 0; > #else >- x = 0; > #endif > } > >@@ -22,9 +20,7 @@ void two() { > a = 3; > > #ifdef FOO >- x = 0; > #else >- x = 0; > #endif > } > >@@ -37,8 +33,6 @@ void three() { > #endif > > #ifdef FOO >- x = 0; > #else >- x = 0; > #endif > } >of.res >diff = >--- tests/of.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f10a56-of.c >@@ -1,16 +1,20 @@ > static struct iommu_table *iommu_table_find(struct iommu_table * tbl) > { > for (node = NULL; (node = of_find_all_nodes(node)); ) { >- if (x) >+ if (x) { > return it; >+ of_node_put(node); >+ } > } > } > > static struct iommu_table *iommu_table_find(struct iommu_table * tbl) > { > for (node = NULL; (node = something(node)); ) { >- if (x) >+ if (x) { >+ of_node_put(node); > return it; >+ } > } > } > >oneline.res >diff = >--- tests/oneline.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-868542-oneline.c >@@ -1,4 +1,4 @@ > int main () { >- f(); >- f(); >+ g(); >+ g(); > } >op.res >diff = >--- tests/op.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6ab728-op.c >@@ -1,5 +1,4 @@ > int main () { >- return 3; > } > > int main () { >opt.res >diff = >--- tests/opt.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c63afe-opt.c >@@ -1,3 +1,2 @@ > int main () { >- yyy(); > } >optional_qualifier.res >diff = >--- tests/optional_qualifier.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ea2d83-optional_qualifier.c >@@ -1,2 +1,2 @@ >-int a; >+const int a; > const int b; >optional_storage.res >diff = >--- tests/optional_storage.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d142fb-optional_storage.c >@@ -1,4 +1,4 @@ >-int foo1(void) >+static int foo1(void) > { > } > >orexp.res >diff = >--- tests/orexp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-60e16b-orexp.c >@@ -1,3 +1,3 @@ > int main() { >- bar(12+12); >+ 4; > } >output.res >output_init.res >Hello world. >diff = >--- tests/output_init.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-62a348-output_init.c >@@ -1,3 +1,3 @@ > void f(void) { >- f(); >+ g(); > } >overshoot.res >warning: aaa: metavariable f not used in the - or context code >warning: xxx: metavariable f not used in the - or context code >diff = >--- tests/overshoot.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bcfc2e-overshoot.c >@@ -1,9 +1,6 @@ > int main () { > a(); >- s(); >- d(); >- f(); >- b(); >+ g();g();g(); > b(); > q(); > } >p9.res >diff = >--- tests/p9.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-facc76-p9.c >@@ -1,3 +1,3 @@ >-int f(int, int, int x) { >+int f(int v0, int v1, int x) { > return x; > } >pa.res >diff = >--- tests/pa.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a809c3-pa.c >@@ -4,7 +4,8 @@ char *parse_args(const char *doing, > unsigned num, > s16 min_level, > s16 max_level, >- int (*unknown)(char *param, char *val, const char *doing)) >+ void *arg, >+ int (*unknown)(char *param, char *val, const char *doing, void *arg)) > { > return 0; > } >param.res >diff = >--- tests/param.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0baebb-param.c >@@ -1 +1 @@ >-void foo() { return; } >+ >param_end.res >warning: line 6: should x be a metavariable? >warning: line 14: should y be a metavariable? >diff = >--- tests/param_end.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d44b08-param_end.c >@@ -1,15 +1,15 @@ >-int one (int x) { return; } >+int one () { return; } > >-int two (int a, int x, int b) { return; } >+int two (int a, int b) { return; } > >-int three (int x, int a) { return; } >+int three (int a) { return; } > >-int four (int a, int x) { return; } >+int four (int a) { return; } > >-int yone (int y) { return; } >+int yone () { return; } > >-int ytwo (int a, int y, int b) { return; } >+int ytwo (int a, int b) { return; } > >-int ythree (int y, int a) { return; } >+int ythree (int a) { return; } > >-int yfour (int a, int y) { return; } >+int yfour (int a) { return; } >param_to_exp.res >diff = >--- tests/param_to_exp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-819d4e-param_to_exp.c >@@ -1,3 +1,4 @@ > int main (int x, int y) { >+ foo(x, y); > return 0; > } >param_ver1.res >diff = >--- tests/param_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-53b505-param_ver1.c >@@ -1 +1 @@ >-void foo(int x) { return; } >+ >parameters_dots.res >diff = >--- tests/parameters_dots.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c9a971-parameters_dots.c >@@ -1,7 +1,4 @@ > void main(int i) { > >- f(1); > g(3); >- f(1,2); >- f(); > } >parenmac.res >diff = >--- tests/parenmac.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e55ca2-parenmac.c >@@ -1 +1 @@ >-#define TXSSZ(val) (val<<4) >+#define TXSSZ(val) ((val)<<4) >partial.res >warning: rule starting on line 1: metavariable S not used in the - or context code >diff = >--- tests/partial.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-945dff-partial.c >@@ -1,3 +1,3 @@ > #define CS_THIS_MODULE THIS_MODULE, > #define CS_OWNER owner: >-void cs46xx_null(struct pci_dev *pcidev) { return PAGE_SIZE; } >+void cs46xx_null(struct pci_dev *pcidev) { return PAGE_SIZE2; } >pb_distribute_type.res >warning: line 6: should x be a metavariable? >diff = >--- tests/pb_distribute_type.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9d7957-pb_distribute_type.c >@@ -1,15 +1,15 @@ > int foo() { >- int x; >+ int *x; > return 0; > } > > > int foo() { >- int *x; >+ int **x; > return 0; > } > > int foo() { >- int x[45]; >+ int[45] *x; > return 0; > } >pb_distribute_type2.res >warning: line 8: should x be a metavariable? >diff = >--- tests/pb_distribute_type2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fb1cbf-pb_distribute_type2.c >@@ -1,15 +1,15 @@ > int foo() { >- int x; >+ int * x; > return 0; > } > > > int foo() { >- int *x; >+ int **x; > return 0; > } > > int foo() { >- int x[45]; >+ int x[45]*; > return 0; > } >pb_distribute_type3.res >warning: line 9: should x be a metavariable? >exn while in timeout_function >pb_distribute_type4.res >warning: line 8: should x be a metavariable? >diff = >--- tests/pb_distribute_type4.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fcb907-pb_distribute_type4.c >@@ -1,15 +1,15 @@ > int foo() { >- int x; >+ float x; > return 0; > } > > > int foo() { >- int *x; >+ float x; > return 0; > } > > int foo() { >- int x[45]; >+ float x; > return 0; > } >pb_params_iso.res >warning: line 23: should i be a metavariable? >diff = >--- tests/pb_params_iso.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ccca74-pb_params_iso.c >@@ -1,17 +1,17 @@ > >-int f(bool a, int i, bool b) { >+int f(bool a, int i, char j, bool b) { > i++; > } > >-int f(int i, bool b) { >+int f(int i, char j, bool b) { > i++; > } > >-int f(bool a, int i) { >+int f(bool a, int i, char j) { > i++; > } > >-int f(int i) { >+int f(int i, char j) { > i++; > } > >pb_parsing_macro.res >diff = >--- tests/pb_parsing_macro.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f6543c-pb_parsing_macro.c >@@ -1,4 +1,4 @@ > #define FOO_METH_TEST(a) prefix_##a > void FOO_METH_TEST(foo)(int x){ >- alloca(x); >+ malloc(x); > } >pb_tag_symbols.res >diff = >--- tests/pb_tag_symbols.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8768d6-pb_tag_symbols.c >@@ -1,5 +1,3 @@ > static int typhoon_ioctl(struct video_device *dev, unsigned int cmd, void *arg) > { >- if (copy_from_user(v,arg) != 0) >- return -EFAULT; else {} > } >pcim.res >diff = >--- tests/pcim.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f23e7b-pcim.c >@@ -1,5 +1,6 @@ > int main () { >- ctx->sensePA = pci_map_single(adapter->dev, cmd->sense_buffer, >- SCSI_SENSE_BUFFERSIZE, >- PCI_DMA_FROMDEVICE); >+ ctx->sensePA = dma_map_single(&adapter->dev->dev, >+ cmd->sense_buffer, >+ SCSI_SENSE_BUFFERSIZE, >+ DMA_FROM_DEVICE); > } >pcomma.res >diff = >--- tests/pcomma.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e35dd5-pcomma.c >@@ -1,14 +1,14 @@ >-int main (int x) {} >+int main (char c, int x) {} > >-int main (int *a, int x) {} >+int main (int *a, char c, int x) {} > >-int main (int x, int *b) {} >+int main (char c, int x, int *b) {} > >-int main (int *a, int x, int *b) {} >+int main (int *a, char c, int x, int *b) {} > > int f() { >- f(e); >- f(e,1); >- f(0,e); >- f(0,e,1); >+ f(12, e); >+ f(12, e,1); >+ f(0,12, e); >+ f(0,12, e,1); > } >pmac.res >diff = >--- tests/pmac.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6a3d42-pmac.c >@@ -4,7 +4,5 @@ > #include <asm/feature.h> > #endif > >-#define chip_t pmac_t >- > static int snd_pmac_register_sleep_notifier(pmac_t *chip); > static int snd_pmac_unregister_sleep_notifier(pmac_t *chip); >poscon.res >exn while in timeout_function >posiso.res >diff = >--- tests/posiso.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b9f6ae-posiso.c >@@ -1,9 +1,7 @@ > int main () { > int *x; >- if (x == NULL) x = a; else x = b; > if (!x) x = a; else x = b; > if (x == a) x = a; else x = b; >- if (x == NULL) x = a; > if (!x) x = a; > if (x == a) x = a; > } >positionc.res >diff = >--- tests/positionc.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9ec80f-positionc.c >@@ -2,8 +2,6 @@ int main () { > if (foo(6,7)) x = ret; else x = ret; > if (foo(6,7)) x = ret; else x = ret; > if (foo(7,7)) x = ret; else x = ret; >- if (bar(6,7)) x = ret; else x = ret; >- if (bar(6,7)) x = ret; else x = ret; > if (bar(7,7)) x = ret; else x = ret; > } > >post.res >diff = >--- tests/post.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7c0789-post.c >@@ -1,8 +1,6 @@ > int main() { >- f(3, foo + bar, 5); > f(4, 3, 5); > f(4, 3, 5); >- h(3, some + thing, 5); > h(4, 3, 5); > h(4, 3, 5); > } >pragmatest.res >diff = >--- tests/pragmatest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-375d29-pragmatest.c >@@ -1,17 +1,10 @@ > int two () { return 12; } > >-#define foo 12 >- >-#pragma inline(one) >- >-int one (); >+int one () __attribute__((always_inline)); > > int one () { return 12; } > > int three () { return 12; } > >-#pragma abc one def >- > #pragma abc ddd def > >-#pragma abc one def >pragmatest1.res >diff = >--- tests/pragmatest1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a331e4-pragmatest1.c >@@ -1,3 +1,2 @@ >-#pragma xxx a b c > >-#pragma xxx (a, b, c) >+ >print_return.res >warning: line 6: should link be a metavariable? >warning: rule starting on line 1: metavariable E not used in the - or context code >diff = >--- tests/print_return.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8b6a82-print_return.c >@@ -1,4 +1,3 @@ > int config(struct pcmcia_device *link) { >- bar(); >- return 0; >+ return bar(); > } >proto.res >diff = >--- tests/proto.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-371953-proto.c >@@ -1,10 +1,2 @@ > static void bch_l2l1(struct PStack *st, int pr, void *arg); >-static void bch_sched_event(struct BCState *bcs, int event); > static void bch_empty_fifo(struct BCState *bcs, int count); >- >-static void >-bch_sched_event(struct BCState *bcs, int event) >-{ >- bcs->event |= 1 << event; >- schedule_work(&bcs->work); >-} >proto2.res >diff = >--- tests/proto2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-be313c-proto2.c >@@ -1,10 +1,9 @@ > static void bch_l2l1(struct PStack *st, int pr, void *arg); >-static void bch_sched_event(struct BCState *bcs, int event); >+static void bch_sched_event(int event); > static void bch_empty_fifo(struct BCState *bcs, int count); > > static void >-bch_sched_event(struct BCState *bcs, int event) >-{ >+bch_sched_event(int event) { > bcs->event |= 1 << event; > schedule_work(&bcs->work); > } >proto_ver1.res >diff = >--- tests/proto_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3e3989-proto_ver1.c >@@ -1,10 +1,2 @@ > void bch_l2l1(struct PStack *st, int pr, void *arg); >-void bch_sched_event(struct BCState *bcs, int event); > void bch_empty_fifo(struct BCState *bcs, int count); >- >-void >-bch_sched_event(struct BCState *bcs, int event) >-{ >- bcs->event |= 1 << event; >- schedule_work(&bcs->work); >-} >proto_ver2.res >diff = >--- tests/proto_ver2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-debb7a-proto_ver2.c >@@ -46,7 +46,6 @@ static inline void dch_int(struct IsdnCa > static void __devinit dch_setstack(struct PStack *st, struct IsdnCardState *cs); > static void __devinit dch_init(struct IsdnCardState *cs); > static void bch_l2l1(struct PStack *st, int pr, void *arg); >-static void bch_sched_event(struct BCState *bcs, int event); > static void bch_empty_fifo(struct BCState *bcs, int count); > static void bch_fill_fifo(struct BCState *bcs); > static void bch_int(struct IsdnCardState *cs, u_char hscx); >@@ -584,16 +583,6 @@ bch_l2l1(struct PStack *st, int pr, void > } > > //---------------------------------------------------------- >-// proceed with bottom half handler BChannel_bh() >-//---------------------------------------------------------- >-static void >-bch_sched_event(struct BCState *bcs, int event) >-{ >- bcs->event |= 1 << event; >- schedule_work(&bcs->work); >-} >- >-//---------------------------------------------------------- > // Read B channel fifo to receive buffer > //---------------------------------------------------------- > static void >protoassert.res >diff = >--- tests/protoassert.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ab7ffc-protoassert.c >@@ -1,6 +1,8 @@ > static unsigned mii_rd(ioaddr_t ioaddr, u_char phyaddr, u_char phyreg); > >+static struct pcmcia_driver ZZZ_driver = { >+ .owner = THIS_MODULE, >+}; > int init(void) > { >- foo(); > } >protox.res >warning: line 14: should x be a metavariable? >warning: line 16: should x be a metavariable? >ptrar.res >diff = >--- tests/ptrar.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1c1f54-ptrar.c >@@ -1,8 +1,8 @@ > int main () { > struct foo *x; > struct foo y[12]; >- *y = 4; >- *x = 2; >- a = sizeof x; >- b = sizeof "foo"; >+ *12 = 4; >+ *20 = 2; >+ a = sizeof 20; >+ b = sizeof 12; > } >python_iteration.res >1 pending new file instances >0 pending original file instances > >python_mdecl.res >warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code > (ONCE) already tagged but only removed, so safe >diff = >--- tests/python_mdecl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3e644c-python_mdecl.c >@@ -1,5 +1,4 @@ >-int one () { if (c < 0) return 12; return x < 0; } >+ > int one () { return x < 0; } > int one () { return rvw; } > int two () { if (c < 0) return 21; return y; } >-int one () { int c; if (c) return 12; return x < 0; } >python_mdeclp.res >diff = >--- tests/python_mdeclp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-72af62-python_mdeclp.c >@@ -1,2 +1,2 @@ >-int one() { return 1; } >+ > int two() { return 1; } >python_poscon.res >diff = >--- tests/python_poscon.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-957051-python_poscon.c >@@ -2,8 +2,8 @@ int main () { > f(0); > g(0); > g(0); >- g(0); >- g(0); >- g(0); >- g(0); >+ g(27); >+ g(27); >+ g(27); >+ g(27); > } >rcu3.res >diff = >--- tests/rcu3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e71f03-rcu3.c >@@ -3,6 +3,6 @@ static struct mtd_chip_driver *get_mtd_c > struct list_head *pos; > struct mtd_chip_driver *this; > >- this = list_entry(pos, typeof(*this), list); >- this = list_entry(pos, struct foo, list); >+ this = list_entry(_X(pos), typeof(*this), list); >+ this = list_entry(_X(pos), struct foo, list); > } >regexp.res >diff = >--- tests/regexp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-286e83-regexp.c >@@ -1,9 +1,23 @@ > int main(void) { > > int foo; >+int foo_begins_by_foo; >+int foo_ends_by_foo; >+int foo_contains_foo; >+int foo_is_an_id; > int bar; >+int bar_doesn_t_contain_foo; >+int bar_is_an_id; > int foobar; >+int foobar_begins_by_foo; >+int foobar_contains_foo; >+int foobar_is_an_id; > int barfoobar; >+int barfoobar_contains_foo; >+int barfoobar_is_an_id; > int barfoo; >+int barfoo_ends_by_foo; >+int barfoo_contains_foo; >+int barfoo_is_an_id; > > } >regexp2.res >diff = >--- tests/regexp2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-45f36f-regexp2.c >@@ -2,9 +2,23 @@ > int main(void) { > > int t0 = FOO; >+int t0_equals_cst_that_begins_by_FOO; >+int t0_equals_cst_that_ends_by_FOO; >+int t0_equals_cst_that_contains_FOO; >+int t0_is_constant; > int t1 = BAR; >+int t1_equals_cst_that_doesn_t_contain_FOO; >+int t1_is_constant; > int t2 = FOOBAR; >+int t2_equals_cst_that_begins_by_FOO; >+int t2_equals_cst_that_contains_FOO; >+int t2_is_constant; > int t3 = BARFOOBAR; >+int t3_equals_cst_that_contains_FOO; >+int t3_is_constant; > int t4 = BARFOO; >+int t4_equals_cst_that_ends_by_FOO; >+int t4_equals_cst_that_contains_FOO; >+int t4_is_constant; > > } >regexp3.res >diff = >--- tests/regexp3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-84cda8-regexp3.c >@@ -2,10 +2,27 @@ > int main(void) { > > char *t0 = "FOO"; >+char *t0_equals_cst_that_begins_by_FOO; >+char *t0_equals_cst_that_ends_by_FOO; >+char *t0_equals_cst_that_contains_FOO; >+char *t0_is_constant; > char *t1 = "BAR"; >+char *t1_equals_cst_that_doesn_t_contain_FOO; >+char *t1_is_constant; > char *t2 = "FOOBAR"; >+char *t2_equals_cst_that_begins_by_FOO; >+char *t2_equals_cst_that_contains_FOO; >+char *t2_is_constant; > char *t3 = "BARFOOBAR"; >+char *t3_equals_cst_that_contains_FOO; >+char *t3_is_constant; > char *t4 = "BARFOO"; >+char *t4_equals_cst_that_ends_by_FOO; >+char *t4_equals_cst_that_contains_FOO; >+char *t4_is_constant; > char *s0 = "%s"; >+char *s0_is_a_format_for_at_least_a_string; >+char *s0_equals_cst_that_doesn_t_contain_FOO; >+char *s0_is_constant; > > } >rem1.res >diff = >--- tests/rem1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c7d92b-rem1.c >@@ -1,5 +1,4 @@ > int main () { > xxx(); >- if (x) { foo(); } > yyy(); > } >rem2.res >diff = >--- tests/rem2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9f6472-rem2.c >@@ -1,5 +1,4 @@ > int main () { > xxx(); >- if (x) foo(); > yyy(); > } >remaft.res >diff = >--- tests/remaft.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7721e7-remaft.c >@@ -1,8 +1,6 @@ > int main() { > #ifdef BLAH >- a(); > #endif >- b(); > c() > #ifdef BLAH > ; >remove-code-in-branch1.res >diff = >--- tests/remove-code-in-branch1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9cde03-remove-code-in-branch1.c >@@ -1,7 +1,7 @@ > int main(void) > { > if (a > 1) >- c(); >+ {} > > return 0; > } >remove_call.res >diff = >--- tests/remove_call.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ca1309-remove_call.c >@@ -1,6 +1,2 @@ > int main () { >- int x = 3 + FN() + FN(); >- x = 3 + FN() + FN(); >- FN(); >- return 3 + FN() + FN(); > } >remparam.res >diff = >--- tests/remparam.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1e251a-remparam.c >@@ -1,14 +1,14 @@ > static irqreturn_t >-snd_ad1889_interrupt(void *dev_id, int x, >- struct pt_regs *regs) >+snd_ad1889_interrupt(void *dev_id, int x >+ ) > { > > return IRQ_HANDLED; > } > > static irqreturn_t >-snd_ad1889_interrupt(void *dev_id, >- struct pt_regs *regs) >+snd_ad1889_interrupt(void *dev_id >+ ) > { > > return IRQ_HANDLED; >rems.res >diff = >--- tests/rems.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a32131-rems.c >@@ -1,5 +1,4 @@ > int main () { > x(); >- if (x) a(); > y(); > } >rems1.res >diff = >--- tests/rems1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-12be7f-rems1.c >@@ -1,5 +1,4 @@ > int main () { > x(); >- a(); > y(); > } >remstruct.res >warning: line 2: should mpuio_irq_chip be a metavariable? >warning: line 8: should xxx be a metavariable? >diff = >--- tests/remstruct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bdedb2-remstruct.c >@@ -1,13 +1,4 @@ >-static struct irqchip mpuio_irq_chip = { >- .ack = mpuio_ack_irq, >- .mask = mpuio_mask_irq, >- .unmask = mpuio_unmask_irq >-}; > >-static struct irqchip xxx = { >- .a = 12, >- .b = 15, >-}; > > int hello ( String input ) > { >replace_typedef.res >diff = >--- tests/replace_typedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b0c03f-replace_typedef.c >@@ -3,8 +3,8 @@ typedef struct foo { int x; } foo_t; > typedef int int_t; > > int main() { >- foo_t x; >- int_t y; >+ struct foo x; >+ int y; > x.x = 12; > return x.x + y; > } >reserved.res >diff = >--- tests/reserved.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-64d983-reserved.c >@@ -1,7 +1,4 @@ > int main() { >- f(1,1); >- f(2,2,2); >- f(3,3,3,3); > f(1,2); > f(2,3,2); > f(3,4,3,3); >retest.res >diff = >--- tests/retest.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9a5704-retest.c >@@ -1,6 +1,6 @@ > int main () { > foo(); >- if (x) >+ if (f(x)) > return 3; > bar(); > } >retmacro.res >diff = >--- tests/retmacro.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6daebc-retmacro.c >@@ -1,6 +1,6 @@ > #define REG_PATTERN_TEST(R, M, W) \ > { \ >- for (pat = 0; pat < sizeof(test)/sizeof(test[0]); pat++) { \ >+ for (pat = 0; pat < ARRAY_SIZE(test); pat++) { \ > if (value != (test[pat] & W & M)) { \ > return 1; \ > } \ >@@ -10,7 +10,7 @@ > > #define REG_PATTERN_TEST2(R, M, W) \ > { \ >- for (pat = 0; pat < sizeof(test)/sizeof(test[0]); pat++) { \ >+ for (pat = 0; pat < ARRAY_SIZE(test); pat++) { \ > if (value != (test[pat] & W & M)) { \ > } \ > } \ >rets.res >return.res >warning: rule starting on line 18: metavariable S not used in the - or context code >diff = >--- tests/return.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-26789d-return.c >@@ -1,6 +1,9 @@ > void foo(int y) { > int x; >- if (x) { aaa(); bbb(); return; } >- if (x) { aaa(); bbb(); return; } >+ if (x) { aaa(); bbb(); before_return(); >+ return; } >+ if (x) { aaa(); bbb(); before_return(); >+ return; } > ccc(); >+ before_return(); > } >return_implicit.res >diff = >--- tests/return_implicit.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b0edf2-return_implicit.c >@@ -1,4 +1,5 @@ > void main(void) > { > foo(); >+ return -ENODEV; > } >retval.res >diff = >--- tests/retval.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bb3eba-retval.c >@@ -1,21 +1,15 @@ > int main () { > if (retval1) { >- if (retval2 != -ENODEV) { >- foo(); >- return 3; >- } >- bar(); >+ foo(); >+ return 3; > } > return 6; > } > > int second () { > if (retval1) { >- if (retval2 != -ENODEV) { >- foo(); >- goto out; >- } >- bar(); >+ foo(); >+ goto out; > } > out: > return 6; >retval2.res >diff = >--- tests/retval2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fe1624-retval2.c >@@ -11,7 +11,7 @@ int getlen(int *input, size_t maxlen, in > return -1; > } > >-int getlen(int *input, size_t maxlen, int delim, size_t *result) { >+int newname(int *input, size_t maxlen, int delim, size_t *result) { > size_t i; > for (i = 0; i < maxlen; ++i) { > if (input[i] == delim) { >rptr.res >diff = >--- tests/rptr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ba18d1-rptr.c >@@ -1,6 +1,4 @@ > int foo(struct resource *r) > { >- if (r == NULL) >- return 0; > return 1; > } >same_expr.res >diff = >--- tests/same_expr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-67b24c-same_expr.c >@@ -1,6 +1,5 @@ > void main(int i) > { >- f(1,1); > f(1,2); > > } >scope_problem.res >diff = >--- tests/scope_problem.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-70d529-scope_problem.c >@@ -1,15 +1,7 @@ > void main(int i) { >- >- int a; >- foo(a); >- a = 1; >- > if(1) { > int a; >- a = 2; > } > >- a = 3; >- > > } >serio.res >shared_brace.res >warning: rule starting on line 1: metavariable S not used in the - or context code >warning: rule starting on line 1: metavariable x not used in the - or context code >warning: rule starting on line 1: metavariable T not used in the - or context code >diff = >--- tests/shared_brace.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-69e8fc-shared_brace.c >@@ -1,9 +1,7 @@ > > int __init ixj_init(void) > { >- if (pci_present()) { >- if ((probe = ixj_probe_pci(&cnt)) < 0) { >- return probe; >- } >+ if ((probe = ixj_probe_pci(&cnt)) < 0) { >+ return probe; > } > } >signed.res >warning: line 4: should x be a metavariable? >warning: line 10: should a be a metavariable? >diff = >--- tests/signed.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1f8d62-signed.c >@@ -1,5 +1,5 @@ > int main() { >- signed x; >- unsigned a; >+ signed y; >+ unsigned b; > return x; > } >sis.res >diff = >--- tests/sis.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ba2e04-sis.c >@@ -1,4 +1,4 @@ >-DECLARE_MUTEX(disconnect_sem); >+DEFINE_MUTEX(disconnect_sem); > /*int foo() { return; }*/ > // if uncomment, and erase newline, then have Line ID EOF and > // some patterns in parsing_hacks don't apply anymore :( >sizeof.res >diff = >--- tests/sizeof.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-c94da4-sizeof.c >@@ -1,7 +1,7 @@ > int main (int param) { > >- int i = sizeof(3); >- int j = sizeof 3; >+ int i = sizeof(int); >+ int j = sizeof(int); > int k = sizeof (int *); > > } >sizeof_julia.res >diff = >--- tests/sizeof_julia.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2b5f2b-sizeof_julia.c >@@ -1,5 +1,5 @@ > static int typhoon_ioctl(struct video_device *dev, unsigned int cmd, > void *arg) > { >- copy_from_user(&v, arg, sizeof(v)); >+ foo(); > } >sizeptr.res >diff = >--- tests/sizeptr.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-671700-sizeptr.c >@@ -5,7 +5,7 @@ int main () { > ssize_t b; > ptrdiff_t c; > >- foo(sizeof *x,a); >- foo(*x,b); >- foo(x-y,c); >+ foo(ASIZE(sizeof ANINT(*x)),ASIZE(a)); >+ foo(ANINT(*x),ASSIZE(b)); >+ foo(APTRDIFF(x - y),APTRDIFF(c)); > } >sizestar.res >diff = >--- tests/sizestar.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-f08bae-sizestar.c >@@ -1,7 +1,7 @@ > int main () { > max = num_var_ranges; > if (fcount == NULL) { >- fcount = kzalloc(max * sizeof *fcount, GFP_KERNEL); >+ fcount = kzalloc(max, sizeof *fcount, GFP_KERNEL); > if (!fcount) > return -ENOMEM; > FILE_FCOUNT(file) = fcount; >skip.res >diff = >--- tests/skip.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a09836-skip.c >@@ -1,5 +1,3 @@ > int main () { >- f(1); >- f(2); >- g(); >+ h(); > } >sl2.res >diff = >--- tests/sl2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4cc21f-sl2.c >@@ -1,11 +1,14 @@ > int main () { >+ something(); >+ others(); >+ more(); >+} >+ >+int other () { > one(); > two(); > one(); > two(); >-} >- >-int other () { > one(); > two(); > one(); >slen.res >exn while in timeout_function >smallfn.res >diff = >--- tests/smallfn.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-27473b-smallfn.c >@@ -1,30 +1,65 @@ > int main () { > if (y) { >- one(); >+ { >+ one(); >+ foo(); >+ } >+ foo(); > } > else { >- two(); >+ { >+ two(); >+ foo(); >+ } >+ foo(); > } >+ foo(); > while (y) { >- one(); >+ { >+ one(); >+ foo(); >+ } >+ foo(); >+ } >+ foo(); >+ { >+ do { >+ one(); >+ foo(); >+ } >+ foo(); while(y); >+ foo(); > } >- do { >- one(); >- } while(y); > switch (y) { >- case 12:one(); >- case 27:two(); >+ case 12: >+ foo();one(); >+ foo(); >+ case 27: >+ foo();two(); >+ foo(); > } >+ foo(); > { > one(); >+ foo(); > } >+ foo(); > } > > int main () { > if (y) { >- one(); >+ { >+ one(); >+ foo(); >+ } >+ foo(); > } > else { >- two(); >+ { >+ two(); >+ foo(); >+ } >+ foo(); > } >+ foo(); > } >sp.res >diff = >--- tests/sp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-55225e-sp.c >@@ -1,4 +1,4 @@ >-typedef struct { >+struct name { > unsigned long gcr; > struct pci_dev *pci; >-} snd_card_als4000_t; >+}; >spaces.res >spacing.res >diff = >--- tests/spacing.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-04c584-spacing.c >@@ -1,8 +1,19 @@ > typedef int *foo; > >+void *bar(int *baz) { >+ return baz; >+} >+ > int f(int x) { > one(); > if (x) { > two(); >+ if (y) { >+ test(); >+ } > } > } >+ >+void *bar(int *baz) { >+ return baz; >+} >spl.res >diff = >--- tests/spl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-abcb27-spl.c >@@ -2,11 +2,13 @@ int main() { > spin_lock(&isp116x->lock); > /* take idle endpoints out of the schedule */ > if (!list_empty(&ep->hep->urb_list)) { >+ spin_unlock(&isp116x->lock); > return; > } > > /* async deschedule */ > if (!list_empty(&ep->schedule)) { >+ spin_unlock(&isp116x->lock); > return; > } > } >starprint.res >diff = >--- tests/starprint.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0faecc-starprint.c >@@ -1,6 +1,6 @@ > typedef int *LPINT; > >-int foo(LPINT x, LPINT *y) >+int foo(int *x, int **y) > { > return *x == **y; > } >static.res >diff = >--- tests/static.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-569a9f-static.c >@@ -1,4 +1,3 @@ > static inline int i8042_read_data(void) > { >- return jazz_kh->data; > } >stm1.res >stm10.res >diff = >--- tests/stm10.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3a1dd4-stm10.c >@@ -1,6 +1,7 @@ > int main(int x) { > f(); > if (x) replace(); >+ h(); > g(); > if (x) replace(); > } >stm10_ver1.res >diff = >--- tests/stm10_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6743ca-stm10_ver1.c >@@ -1,5 +1,6 @@ > int main(int x) { > f(); > { replace(); replace();} >+ h(); > g(); > } >stm2.res >diff = >--- tests/stm2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2255af-stm2.c >@@ -1,5 +1,4 @@ > int main(int x) { > f(); >- replace(); > g(); > } >stm3.res >diff = >--- tests/stm3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-eea1da-stm3.c >@@ -1,5 +1,5 @@ > int main(int x) { > f(); >- replace(); >+ g(); > g(); > } >stm4.res >diff = >--- tests/stm4.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-63710a-stm4.c >@@ -2,4 +2,5 @@ int main(int x) { > f(); > replace(); > g(); >+ g(); > } >stm5.res >diff = >--- tests/stm5.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-802781-stm5.c >@@ -1,5 +1,7 @@ > int main(int x) { > f(); >+ h(); > replace(); > g(); >+ g(); > } >stm6.res >diff = >--- tests/stm6.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bd974f-stm6.c >@@ -1,5 +1,6 @@ > int main(int x) { > f(); >+ h(); > replace(); > g(); > } >stm7.res >stm8.res >diff = >--- tests/stm8.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9b4059-stm8.c >@@ -1,5 +1,5 @@ > int main(int x) { > f(); >- replace(); >+ g(); replace(); > g(); > } >stmt.res >diff = >--- tests/stmt.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-242fe7-stmt.c >@@ -1,4 +1,5 @@ > int f() { > int x; >+ foo(); > xxx(); > } >str_init.res >warning: line 4: should x be a metavariable? >diff = >--- tests/str_init.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-213085-str_init.c >@@ -1,7 +1,3 @@ > struct foo x = { >- .aaa = 5, >- .rrr = 1, > .xxx= 12, >- .bbb = 2, >- .ccc = 4, > }; >strangeorder.res >warning: rule starting on line 1: metavariable f not used in the - or context code >diff = >--- tests/strangeorder.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-044758-strangeorder.c >@@ -4,8 +4,10 @@ i2c_new_device(struct i2c_adapter *adap, > struct i2c_client *client; > > client = kzalloc(sizeof *client, GFP_KERNEL); >- if (!client) >+ if (!client) { >+ client = NULL; > return NULL; >+ } > > client->adapter = adap; > if (status < 0) { >strid.res >diff = >--- tests/strid.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-90ea89-strid.c >@@ -1,4 +1,4 @@ > int main () { > struct foo *a; >- print(a); >+ print(f(a, 12)); > } >strid2.res >diff = >--- tests/strid2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d6cc4a-strid2.c >@@ -3,8 +3,8 @@ int main () { > enum foo1 *b; > struct foo a1; > enum foo1 b1; >- print(a); >- print(b); >+ print(f(a, 12)); >+ print(f(b, 12)); > print(a1.x); > print(b1); > } >string.res >struct.res >diff = >--- tests/struct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fa9db2-struct.c >@@ -8,7 +8,5 @@ struct foo { > > int main() { > struct foo *a; >- f(a->first); >- f(a->second); > } > >struct_metavar.res >diff = >--- tests/struct_metavar.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-16d313-struct_metavar.c >@@ -9,9 +9,6 @@ struct foo { > int main() { > struct foo *a; > struct notfoo *b; >- f(a->first); >- f(a->second); >- f(a->second); > f(b->first); > f(b->second); > } >struct_typedef.res >diff = >--- tests/struct_typedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-07dbeb-struct_typedef.c >@@ -1,5 +1,5 @@ >-typedef struct dvb_frontend { >- struct dvb_frontend_ops* ops; >+typedef struct dvb2_frontend { >+ struct dvb_frontend_ops ops; > } xx_t; > > typedef struct { >structfoo.res >warning: line 5: should my_foo be a metavariable? >diff = >--- tests/structfoo.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-80b58c-structfoo.c >@@ -1,4 +1 @@ >-struct foo my_foo[] = { >-.a = 1, >-.u.b = 42, >-}; >+FOO(1, 42); >substruct.res >diff = >--- tests/substruct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ff7666-substruct.c >@@ -1,5 +1,5 @@ > struct a { int a; } x[2] = > { >- { .a = 7, }, >- { .a = 17, }, >+ { DECLARE_A(7), }, >+ { DECLARE_A(17), }, > }; >sw.res >diff = >--- tests/sw.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-8ab848-sw.c >@@ -1 +1 @@ >-int f() { switch (x) { case FOO: return; } } >+ >swap3.res >diff = >--- tests/swap3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d549c6-swap3.c >@@ -2,7 +2,7 @@ static void __ar955x_tx_iq_cal_sort(stru > struct coeff *coeff, > int i, int nmeasurement) > { >- int im, ix, iy, temp; >+ int im, ix, iy; > > for (iy = ix + 1; iy <= MAXIQCAL - 1; iy++) { > // if ( iy <= MAXIQCAL - 1) { >switch.res >diff = >--- tests/switch.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-df2c91-switch.c >@@ -3,6 +3,5 @@ int main () { > default: > break; > case X: >- f(); > } > } >switchdecl.res >warning: switch_1: metavariable S_1 not used in the - or context code >diff = >--- tests/switchdecl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-6a02e8-switchdecl.c >@@ -4,7 +4,7 @@ switch (2) > { > int x; > int x; >- case 2: x=y; >+ case 2: > break; > > case 4: j++; >symbol.res >warning: line 12: should g be a metavariable? >diff = >--- tests/symbol.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-28f581-symbol.c >@@ -1,7 +1,5 @@ > int main() { > int f = 0; > >- f = 3; >- > return f; > } >td.res >diff = >--- tests/td.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-13f61b-td.c >@@ -1,5 +1,5 @@ >-struct foo {int a;}; >+struct foo {int b;}; > >-typedef struct blah {int a;} name; >+typedef struct blah {int b;} name; > >-typedef struct {int a;} xxx; >+typedef struct {int b;} xxx; >tdnl.res >diff = >--- tests/tdnl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e78524-tdnl.c >@@ -4,5 +4,4 @@ void main() { > > > td2.attr; >- foo(); > } >tern.res >diff = >--- tests/tern.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-709a06-tern.c >@@ -1,4 +1,4 @@ > int main () { >- return (wc >= 0 && wc <= 0x7f ? wc : 0x7f); >+ return wc >= 0 && wc <= 0x7f ? wc : 0x7f; > } > >test0.res >diff = >--- tests/test0.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-73f127-test0.c >@@ -1,5 +1,3 @@ > int main(int i) { >- f(1); > f(2); >- f(1); > } >test1.res >diff = >--- tests/test1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1cf355-test1.c >@@ -6,9 +6,9 @@ void main(int foo) { > x(); > if(1) { > // h(3); >- h(3); >+ h(1, 3, 2); > } else { >- h(4); >+ h(1, 4, 2); > } > > >test10.res >test10_ver1.res >diff = >--- tests/test10_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-310541-test10_ver1.c >@@ -3,7 +3,7 @@ void main(int i) { > f(1); > g(1); > //g(1); >- h(1); >+ h(1, 1); > h(1); > > } >test11.res >test11_ver1.res >diff = >--- tests/test11_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e8b867-test11_ver1.c >@@ -2,6 +2,6 @@ void main(int i) { > f(1); > g(1); > //g(1); >- h(1); >+ h(1, 1); > > } >test12.res >diff = >--- tests/test12.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b0b7f4-test12.c >@@ -1,6 +1,6 @@ > void main(int foo) { > >- f(1); >+ f(1, 2); > foo(); > g(2); > >test2.res >diff = >--- tests/test2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-d9b851-test2.c >@@ -2,7 +2,7 @@ void main() > { > f(1,2,3); > if(1) >- g(1); >+ h(1); > else >- g(1); >+ h(1); > } >test3.res >diff = >--- tests/test3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4f7c43-test3.c >@@ -4,7 +4,7 @@ void main() > f(3); > > if(1) >- g(1); >+ h(3, 1); > else >- g(2); >+ h(3, 2); > } >test4.res >diff = >--- tests/test4.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-7a5d60-test4.c >@@ -1,7 +1,6 @@ > void main() > { > f(1,2,3); >- h(1); > if(1) > g(1); > else >test5.res >diff = >--- tests/test5.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-04f4d7-test5.c >@@ -12,9 +12,9 @@ void main() { > f(1); > > if(1) { >- g(1); >+ h(1); > } else { >- g(1); >+ h(1); > } > > // g(1); // if add this then the CTL even with the direct path will this time >test5_ver1.res >diff = >--- tests/test5_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-59e380-test5_ver1.c >@@ -12,9 +12,9 @@ void main() { > f(1); > > if(1) { >- g(1); >+ h(1); > } else { >- g(1); >+ h(1); > } > > g(1); // if add this then the CTL even with the direct path will this time >test6.res >diff = >--- tests/test6.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-591a21-test6.c >@@ -4,13 +4,13 @@ void main() > { > /* a comment */ > >- f(4) + f(5); >+ f(4, "foo") + f(5, "foo"); > > //f(f(3)); // if uncomment, should have the warning "already minused token" >- if(f(1)) >- f(1); >+ if(f(1, "foo")) >+ f(1, "foo"); > else >- f(2); >+ f(2, "foo"); > > if(1) > g(1); >@@ -20,7 +20,7 @@ void main() > > > void mainbis() { >- f(10); >+ f(10, "foo"); > } > > >test7.res >diff = >--- tests/test7.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-a3c807-test7.c >@@ -2,10 +2,12 @@ void main() > { > > if(1) { >- f(1); >+ f(1, "foo"); >+ f(1, "bar"); > } > >- f(3); >+ f(3, "foo"); >+ f(3, "bar"); > > /* nice comment */ > } >test8.res >diff = >--- tests/test8.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-92cd14-test8.c >@@ -1,7 +1,6 @@ >-void main(int foo) { >+void main(char i, int foo) { > > float k; >- int i; > float j; > > { >test9.res >diff = >--- tests/test9.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1c5290-test9.c >@@ -4,9 +4,9 @@ void main(int foo) { > // f(1); // if uncoment then problems > g(2); > if(1) { >- h(3); >+ h(1, 3); > } else { >- h(4); >+ h(1, 4); > } > > // if uncomment then problems >test_s.res >diff = >--- tests/test_s.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-876d10-test_s.c >@@ -2,7 +2,7 @@ int main () { > if (x-one) { > one(); > } >- if (x-two) { >+ if (12) { > one(); > two(); > } >@@ -11,7 +11,7 @@ int main () { > two(); > three(); > } >- if (two) { >+ if (12) { > while (x) { > one(); > } >test_unsigned_meta.res >warning: line 6: should x be a metavariable? >warning: line 13: should y be a metavariable? >warning: line 19: should q be a metavariable? >warning: line 28: should m be a metavariable? >warning: line 33: should x be a metavariable? >warning: line 39: should y be a metavariable? >diff = >--- tests/test_unsigned_meta.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-4df382-test_unsigned_meta.c >@@ -1,8 +1,12 @@ > int main () { >- unsigned int x; >- signed int y; >+ signed int x; >+ char new_x; >+ unsigned int y; >+ char new_y; > unsigned char q; >- char m; >+ char r; >+ unsigned char s1; >+ signed char s2; > return 0; > } > >testand.res >diff = >--- tests/testand.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fa755a-testand.c >@@ -1,5 +1,5 @@ > int main () { > f(1,2,3,4); >- f(3,4,8,9); >- f(8,9,3,4); >+ f(4,4,15,9); >+ f(15,9,4,4); > } >testand2.res >diff = >--- tests/testand2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-71a650-testand2.c >@@ -1,6 +1,6 @@ > int main () { > f(1,2,3,4); >- f(3,4,8,9); >+ m(3,4,80,9); > g(8,9,3,4); > } > >three_types.res >diff = >--- tests/three_types.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-be9912-three_types.c >@@ -7,5 +7,5 @@ via_init_dmablit(drm_device_t *dev) > { > drm_via_blitq_t *blitq; > >- INIT_WORK(&blitq->wq, via_dmablit_workqueue,blitq); >+ INIT_WORK(&blitq->wq, via_dmablit_workqueue); > } >threea.res >diff = >--- tests/threea.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-856ec7-threea.c >@@ -1,4 +1,3 @@ > int main() { > f(12); >- q(12); > } >top.res >diff = >--- tests/top.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-19fbd6-top.c >@@ -1 +1 @@ >-MODULE_PARM(suppress_pollack, "i"); >+module_param(I, int, 0); >topdec.res >diff = >--- tests/topdec.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-be8fe8-topdec.c >@@ -5,4 +5,5 @@ static int debug; > /* Network device part of the driver */ > > static LIST_HEAD(tun_dev_list); >-static struct ethtool_ops tun_ethtool_ops; >+static const struct ethtool_ops tun_ethtool_ops; >+ >topdec_ver1.res >diff = >--- tests/topdec_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2da9e0-topdec_ver1.c >@@ -2,6 +2,5 @@ > static int debug; > #endif > >-/* Network device part of the driver */ >+static const struct ethtool_ops tun_ethtool_ops; > >-static struct ethtool_ops tun_ethtool_ops; >topdec_ver2.res >diff = >--- tests/topdec_ver2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-db1681-topdec_ver2.c >@@ -5,4 +5,5 @@ static int debug; > /* Network device part of the driver */ > > int x; >-static struct ethtool_ops tun_ethtool_ops; >+static const struct ethtool_ops tun_ethtool_ops; >+ >toplevel_macrostmt.res >diff = >--- tests/toplevel_macrostmt.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-568386-toplevel_macrostmt.c >@@ -2,7 +2,7 @@ void main(int i) > { > } > >-MODULE_PARM(x,y); >+module_param(x, int, y); > MODULE_AUTHOR("me"); > > >toplevel_struct.res >warning: line 5: should usb_stor_host_template be a metavariable? >diff = >--- tests/toplevel_struct.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-207ede-toplevel_struct.c >@@ -3,6 +3,7 @@ struct SHT usb_stor_host_template = { > .name = "usb-storage", > .proc_name = "usb-storage", > .proc_info2 = usb_storage_proc_info2, >+ .foo = 12, > .proc_info = usb_storage_proc_info, > .proc_dir = NULL, > .info = usb_storage_info, >@@ -72,11 +73,11 @@ unsigned char usb_stor_sense_notready[18 > > > void usb_storage_proc_info(int i) { >- f(1); >+ g(1); > } > > void usb_storage_proc_info2(int i) { >- f(27); >+ g(27); > } > > >tup.res >warning: rule starting on line 10: metavariable C not used in the - or context code >warning: rule starting on line 10: metavariable B not used in the - or context code >diff = >--- tests/tup.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2124a9-tup.c >@@ -1,7 +1,7 @@ > static int cm206_block_ioctl(struct inode *inode, struct file *file, > unsigned cmd, unsigned long arg) > { >- return cdrom_ioctl(&cm206_info, inode, cmd, arg); >+ return xxx(); > } > > static struct block_device_operations cm206_bdops = >twomatch.res >diff = >--- tests/twomatch.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-2014f9-twomatch.c >@@ -1,5 +1,5 @@ > int main() { > bar(12,1); >- xxx(12,1); >+ yyy(); > } > >twoproto.res >diff = >--- tests/twoproto.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fa059c-twoproto.c >@@ -1,11 +1,9 @@ > static void tc574_config(dev_link_t *link); > >-static int tc574_attach(struct pcmcia_device *p_dev) >+static int tc574_attach(struct pcmcia_device *link) > { >- dev_link_t *link = dev_to_instance(p_dev); > } > >-static void tc574_detach(struct pcmcia_device *p_dev) >+static void tc574_detach(struct pcmcia_device *link) > { >- dev_link_t *link = dev_to_instance(p_dev); > } >ty.res >diff = >--- tests/ty.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9d6fd5-ty.c >@@ -1,4 +1,4 @@ > int main () { >- struct foo x; >+ const struct foo x; > return 12; > } >ty1.res >warning: line 7: should x be a metavariable? >diff = >--- tests/ty1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-74d2d2-ty1.c >@@ -1,4 +1,3 @@ > int fn(int y) { > char x; >- foo(int,char); > } >ty_tyexp.res >diff = >--- tests/ty_tyexp.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-187c93-ty_tyexp.c >@@ -1,11 +1,11 @@ > void main(double z) { > >- int x; >- int y; >+ float x; >+ float y; > } > >-int main(int z) { >+float main(float z) { > } > >-int main2(int z); >+float main2(float z); > >tydisj.res >warning: line 20: should a be a metavariable? >warning: func: metavariable T not used in the - or context code >diff = >--- tests/tydisj.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-99ef2d-tydisj.c >@@ -1,2 +1,3 @@ >-int64_t foo() { int64_t a; int i; return i << 20; } >+int64_t foo() { int64_t a; int i; xxx(); >+ return i << 20; } > >tyex.res >diff = >--- tests/tyex.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-cedd56-tyex.c >@@ -1,12 +1,15 @@ > typedef struct { > double x; > double y; >+} Point; >+typedef struct { > char *name; >+ Point p; > } Location; > > int main () { > Location a; > Location *b; >- foo (a.x,a.y,a.name); >- foo (b->x,b->y,b->name); >+ foo (a.p.x,a.p.y,a.name); >+ foo (b->p.x,b->p.y,b->name); > } >type.res >warning: line 7: should x be a metavariable? >diff = >--- tests/type.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-53de4f-type.c >@@ -1,5 +1,5 @@ > int foo() { >- int x; >+ int *x; > return 0; > } > >type1.res >diff = >--- tests/type1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9f767f-type1.c >@@ -1,5 +1,5 @@ > int foo() { >- int x; >+ int * x; > return 0; > } > >type_annotated.res >diff = >--- tests/type_annotated.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-000baa-type_annotated.c >@@ -4,7 +4,7 @@ void f1(int z) { > struct foo2 j; > int k; > >- j+i.foo+j.foo; >+ j+i.newfoo+j.foo; > > } > >@@ -15,6 +15,6 @@ void f2(struct foo i) { > struct foo2 j; > int k; > >- j+i.foo+j.foo; >+ j+i.newfoo+j.foo; > > } >type_ver1.res >diff = >--- tests/type_ver1.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e0d0b7-type_ver1.c >@@ -1,5 +1,5 @@ > int foo() { >- struct foo x; >+ struct foo *x; > return 0; > } > >type_ver2.res >diff = >--- tests/type_ver2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-25e0dc-type_ver2.c >@@ -1,5 +1,5 @@ > int foo() { >- int x[10]; >+ int[10] *x; > return 0; > } > >typedef.res >diff = >--- tests/typedef.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fe3c36-typedef.c >@@ -1,15 +1,15 @@ > typedef struct bluecard_info_t { >- dev_link_t link; >+ struct pcmcia_device *p_dev; > } foo; > > static void should_work(u_long arg) > { > foo *info = (struct bluecard_info_t *)arg; >- unsigned int iobase = info->link.io.BasePort1; >+ unsigned int iobase = info->p_dev->io.BasePort1; > } > > static void does_work(u_long arg) > { > struct bluecard_info_t *info = (struct bluecard_info_t *)arg; >- unsigned int iobase = info->link.io.BasePort1; >+ unsigned int iobase = info->p_dev->io.BasePort1; > } >typedef3.res >diff = >--- tests/typedef3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-581191-typedef3.c >@@ -1,5 +1,5 @@ > typedef struct bluecard_info_t { >- dev_link_t link; >+ struct pcmcia_device *p_dev; > } foo; > > static void should_work(foo *info) >@@ -9,5 +9,5 @@ static void should_work(foo *info) > > static void does_work(struct bluecard_info_t *info) > { >- unsigned int iobase = info->link.io.BasePort1; >+ unsigned int iobase = info->p_dev->io.BasePort1; > } >typedef_double.res >typeof.res >diff = >--- tests/typeof.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-fab847-typeof.c >@@ -1,6 +1,4 @@ > int main() { > int x; >- f(x); > f(sizeof(struct foo)); >- f(sizeof(int)); > } >unelse.res >diff = >--- tests/unelse.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-e9f701-unelse.c >@@ -2,8 +2,6 @@ static short find_control(u16 control_in > { > if (!*pI) > return 0; >- else { >- HPI_DEBUG_LOG(three, >- one); >- } >+ HPI_DEBUG_LOG(three, >+ one); > } >unfree.res >diff = >--- tests/unfree.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-3264af-unfree.c >@@ -2,8 +2,7 @@ static void mppe_free(void *arg) > { > struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg; > if (state) { >- if (state->sha1_digest) >- kfree(state->sha1_digest); >+ kfree(state->sha1_digest); > kfree(state); > } > } >unl.res >diff = >--- tests/unl.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-95f4c6-unl.c >@@ -1,10 +1,10 @@ > int main () { >- if (new_pe == NULL) { >+ if (unlikely(new_pe == NULL)) { > return NULL; > } > } > > int main () { >- if (new_pe == NULL) >+ if (unlikely(new_pe == NULL)) > return NULL; > } >useless_cast.res >diff = >--- tests/useless_cast.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-9792e0-useless_cast.c >@@ -8,7 +8,7 @@ struct device { > > struct device *dev; > >-struct netdev_private *np = (struct netdev_private *) >+struct netdev_private *np = > dev->priv; > > >varargs.res >diff = >--- tests/varargs.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-531c0d-varargs.c >@@ -1,4 +1,5 @@ > > static void >-fas216_log_command(FAS216_Info *info, int level, Scsi_Cmnd *SCpnt, char *fmt, ...) >+fas216_log_command(FAS216_Info *info, int level, struct scsi_cmnd *SCpnt, >+ char *fmt, ...) > {} >varargs2.res >diff = >--- tests/varargs2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-970613-varargs2.c >@@ -1,3 +1,4 @@ > static void f(char *fmt, ...) > { >+ return NULL; > } >varargs3.res >diff = >--- tests/varargs3.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1faa4a-varargs3.c >@@ -1,4 +1,3 @@ >-static int foo(char *fmt, ...) > { > return 0; > } >@@ -8,7 +7,6 @@ static int bar(int x, y) > return x+y; > } > >-static int baz(FILE *stream, ...) > { > return 1; > } >video1bis.res >diff = >--- tests/video1bis.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-202095-video1bis.c >@@ -3,7 +3,5 @@ void *arg) > { > if (cmd == VIDIOCGTUNER) { > struct video_tuner v; >- if (copy_from_user(v, arg, sizeof(v)) != 0) >- ret(-EFAULT); else {} > } > } >void.res >diff = >--- tests/void.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-0c5bf1-void.c >@@ -1,5 +1,13 @@ > int xbar(void) { return; } > >+int foo(void) { >+ return; >+} >+ > // this is some info about bar > > int bar(void) { return; } >+ >+int foo(void) { >+ return; >+} >vpos.res >diff = >--- tests/vpos.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-bf5970-vpos.c >@@ -1,9 +1,7 @@ > int main() { > f(2); > if (x) { >- g(1,1); > } > else { >- g(1,2); > } > } >whitespace.res >diff = >--- tests/whitespace.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-09759d-whitespace.c >@@ -1,3 +1,3 @@ > int main () { >- foo(sizeof (struct xxx)); >+ foo(sizeof(struct xxx), 12); > } >wierd_argument.res >diff = >--- tests/wierd_argument.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-ce375f-wierd_argument.c >@@ -1,7 +1,7 @@ > static void ewx_i2c_setlines(snd_i2c_bus_t *bus, int clk, int data) > { >- ice1712_t *ice = snd_magic_cast(ice1712_t, bus->private_data, return); >- ice1712_t *ice = snd_magic_cast(ice1712_t, bus->private_data, ); >+ ice1712_t *ice = bus->private_data; >+ ice1712_t *ice = bus->private_data; > unsigned char tmp = 0; > tmp++; > } >wierdinit.res >wrongcheck.res >diff = >--- tests/wrongcheck.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-26bf3f-wrongcheck.c >@@ -1,5 +1,3 @@ > int main () { >- err = si476x_core_i2c_xfer(core, SI476X_I2C_RECV, >- buffer, sizeof(buffer)); > if (err == sizeof(buffer)) return; > } >ws2.res >warning: rule starting on line 1: metavariable A not used in the + code >diff = >--- tests/ws2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-128143-ws2.c >@@ -1,6 +1,5 @@ > int main() { >- if (foo()) >- goto err; >+ goto err; > err: return; > } > >xfield.res >diff = >--- tests/xfield.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-1492d3-xfield.c >@@ -1,4 +1,4 @@ >-FOO(a2,b2,c2); >+int x; > > /* > int y; >y2.res >diff = >--- tests/y2.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-be447b-y2.c >@@ -1,10 +1,6 @@ > static void > asuscom_interrupt_ipac(int intno, void *dev_id, struct pt_regs *regs) > { >- if (!cs) { >- printk(KERN_WARNING "ISDNLink: Spurious interrupt!\n"); >- return; >- } > Start_IPAC: > debugl1(cs, "IPAC ISTA %02X", ista); > if ((ista & 0x3f) && icnt) { >zero.res >diff = >--- tests/zero.c >+++ /var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-86fce4-zero.c >@@ -1,6 +1,2 @@ > int main () { >- memset(command, 0, sizeof(struct sbp2_command_info)); >- memset(command, 0x00, sizeof(struct sbp2_command_info)); >- memset(command, 0x0, sizeof(struct sbp2_command_info)); >- memset(command, '\0', sizeof(struct sbp2_command_info)); > } >-------------------------------- >statistics >-------------------------------- >62.res : CORRECT >a.res : CORRECT >a3d.res : CORRECT >a_and_e.res : CORRECT >a_and_e_ver1.res : CORRECT >ab.res : CORRECT >addaft.res : CORRECT >addbefore.res : CORRECT >addbeforeafter.res : CORRECT >addelse.res : CORRECT >addfield.res : CORRECT >addif.res : CORRECT >addif1.res : CORRECT >addif2.res : CORRECT >addifdef.res : CORRECT >addifelse.res : CORRECT >addifelse2.res : CORRECT >addtoo.res : CORRECT >addtrace.res : CORRECT >after_if.res : CORRECT >allex.res : CORRECT >allex2.res : CORRECT >allex3.res : CORRECT >anon.res : CORRECT >ar.res : CORRECT >arg.res : CORRECT >argument.res : CORRECT >arparam.res : CORRECT >array_init.res : CORRECT >array_size.res : CORRECT >arraysz.res : CORRECT >as_stm.res : CORRECT >attradd.res : CORRECT >attrs2groups.res : CORRECT >b1.res : CORRECT >b2.res : CORRECT >bad_iso_example.res : INCORRECT:diff token: ( VS x >File "tests/bad_iso_example.c", line 2, column 6, charpos = 19 > around = '(', > whole content = if ((x = 3)) return; >File "tests/bad_iso_example.res", line 2, column 6, charpos = 19 > around = 'x', > whole content = if (x) return; > > diff (result(<) vs expected_result(>)) = > @@ -1,4 +1,4 @@ > int main() { > - if ((x = 3)) return; > + if (x) return; > } > >bad_kfree.res : CORRECT >bad_ptr_print.res : CORRECT >bad_typedef.res : CORRECT >badexp.res : CORRECT >badpos.res : PROBLEM > 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));") >badtypedef.res : CORRECT >badwhen.res : CORRECT >badzero.res : CORRECT >befS.res : CORRECT >before.res : CORRECT >ben.res : CORRECT >bigin.res : CORRECT >bigrepl.res : CORRECT >binop.res : CORRECT >bitfield.res : CORRECT >boolr.res : CORRECT >braces.res : CORRECT >branchparen.res : CORRECT >break.res : CORRECT >bug1.res : CORRECT >bugloop.res : CORRECT >bugon.res : CORRECT >bus.res : CORRECT >cards.res : CORRECT >caseprint.res : CORRECT >cast.res : CORRECT >cast_iso.res : CORRECT >castdecl.res : CORRECT >change.res : CORRECT >change_type.res : CORRECT >changei.res : INCORRECT:diff token: i VS xxx >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-058864-changei.c", line 1, column 15, charpos = 15 > around = 'i', > whole content = typedef struct i xxx; >File "tests/changei.res", line 1, column 15, charpos = 15 > around = 'xxx', > whole content = typedef struct xxx istruct; > > diff (result(<) vs expected_result(>)) = > @@ -1,4 +1,4 @@ > -typedef struct i xxx; > +typedef struct xxx istruct; > > int xxx (int xxx) { > char xxx; >com.res : CORRECT >comadd.res : CORRECT >comment_brace.res : CORRECT >comment_brace2.res : CORRECT >comments.res : CORRECT >compare.res : CORRECT >compare_const2.res : CORRECT >condexp.res : CORRECT >const.res : CORRECT >const1bis.res : CORRECT >const_adding.res : CORRECT >const_array.res : CORRECT >const_implicit_iso.res : CORRECT >constrem.res : CORRECT >constructor.res : CORRECT >constty.res : CORRECT >constx.res : CORRECT >cptr.res : CORRECT >cr.res : CORRECT >cr1a.res : CORRECT >cs_check.res : CORRECT >cst.res : CORRECT >cst_null.res : CORRECT >csw.res : CORRECT >dbg.res : INCORRECT:PB parsing only in generated-file > diff (result(<) vs expected_result(>)) = > @@ -4,6 +4,6 @@ > struct resource *pr, *r = &dev->resource[idx]; > > if (pr) > - DBG else > - pr = NULL;("PCI"); > + DBG("PCI"); > + else pr = NULL; > } >dbg1.res : INCORRECT:diff token: E VS ( >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-838fda-dbg1.c", line 5, column 2, charpos = 75 > around = 'E', > whole content = E = NULL;("PCI"); >File "tests/dbg1.res", line 4, column 5, charpos = 72 > around = '(', > whole content = DBG("PCI"); > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > > static inline void alloc_resource(struct pci_dev *dev, int idx) > { > - DBG > - E = NULL;("PCI"); > + DBG("PCI"); > + E = NULL; > } >dc_close.res : CORRECT >debug.res : CORRECT >dec.res : CORRECT >decl.res : CORRECT >decl2.res : CORRECT >decl_space.res : CORRECT >decl_split.res : INCORRECT:diff token: int VS } >File "tests/decl_split.c", line 2, column 8, charpos = 27 > around = 'int', > whole content = int x, y; >File "tests/decl_split.res", line 2, column 0, charpos = 19 > around = '}', > whole content = } > > diff (result(<) vs expected_result(>)) = > @@ -1,3 +1,2 @@ > int func(int i) { > - int x, y; > } >decl_star.res : CORRECT >defe.res : CORRECT >define_exp.res : CORRECT >define_param.res : CORRECT >deftodo.res : CORRECT >delete_function.res : CORRECT >delp.res : CORRECT >deref.res : CORRECT >destroy.res : CORRECT >devlink.res : CORRECT >disjexpr.res : CORRECT >disjexpr_ver1.res : CORRECT >disjexpr_ver2.res : CORRECT >disjid.res : CORRECT >distribute.res : CORRECT >double.res : CORRECT >double_assign.res : CORRECT >double_lines.res : CORRECT >double_switch.res : CORRECT >doublepos.res : CORRECT >doubleswitch.res : CORRECT >doundo.res : CORRECT >dowhile.res : CORRECT >dropbr.res : CORRECT >dropcom.res : CORRECT >dropenderr.res : CORRECT >dropf.res : CORRECT >dropparam.res : CORRECT >eb1.res : CORRECT >edots.res : CORRECT >edots_ver1.res : CORRECT >elsify.res : CORRECT >empty.res : CORRECT >end_commas.res : CORRECT >endif.res : CORRECT >endnl.res : CORRECT >endpos.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >enum.res : CORRECT >exitc.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >exitp.res : CORRECT >exp.res : CORRECT >expnest.res : CORRECT >expopt.res : CORRECT >expopt2.res : CORRECT >expopt3.res : CORRECT >expopt3_ver1.res : CORRECT >expopt3_ver2.res : CORRECT >extra.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >failing_andany.res : INCORRECT:diff token: request_irq VS } >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b5fa57-failing_andany.c", line 4, column 8, charpos = 111 > around = 'request_irq', > whole content = request_irq(irq_flags); >File "tests/failing_andany.res", line 4, column 0, charpos = 103 > around = '}', > whole content = } > > diff (result(<) vs expected_result(>)) = > @@ -1,8 +1,6 @@ > static int smc_probe1(struct net_device *dev, void __iomem *ioaddr, > unsigned long irq_flags) > { > - request_irq(irq_flags); > - register_netdev(dev); > } > > static int smc_probe2(struct net_device *dev, void __iomem *ioaddr, >fields.res : CORRECT >fieldsmin.res : CORRECT >find_long.res : CORRECT >fix_flow_need.res : CORRECT >fn_todo.res : CORRECT >fnptr.res : CORRECT >fnret.res : CORRECT >fnty.res : CORRECT >format.res : CORRECT >format2.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >formatlist.res : CORRECT >fortest.res : CORRECT >fortype.res : CORRECT >four.res : CORRECT >foura.res : CORRECT >fp.res : CORRECT >fsh.res : CORRECT >fun.res : CORRECT >func.res : CORRECT >gcc_min_max.res : CORRECT >getc.res : CORRECT >gilles-question.res : CORRECT >gotobreak.res : CORRECT >hd.res : CORRECT >headers.res : CORRECT >hex.res : CORRECT >hil1.res : CORRECT >idcon_ocaml.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >idcon_python.res : CORRECT >idstr.res : CORRECT >if.res : CORRECT >ifadd.res : CORRECT >ifbr.res : CORRECT >ifd.res : CORRECT >ifdef1.res : CORRECT >ifdef2.res : CORRECT >ifdef3.res : CORRECT >ifdef4.res : CORRECT >ifdef5.res : CORRECT >ifdef6.res : CORRECT >ifdef6a.res : CORRECT >ifdefmeta.res : CORRECT >ifdefmeta1.res : CORRECT >ifdefmeta2.res : CORRECT >ifdefmeta3.res : CORRECT >ifend.res : CORRECT >ifgoto.res : CORRECT >ifields.res : CORRECT >ifif.res : CORRECT >ifreturn.res : CORRECT >ifreturn3.res : CORRECT >ifreturn4.res : CORRECT >ifreturn6.res : CORRECT >ifzer.res : CORRECT >ifzz.res : CORRECT >inc.res : CORRECT >incdir.res : INCORRECT:diff token: x VS 12 >File "tests/incdir.c", line 4, column 6, charpos = 46 > around = 'x', > whole content = foo(x); >File "tests/incdir.res", line 4, column 6, charpos = 46 > around = '12', > whole content = foo(12); > > diff (result(<) vs expected_result(>)) = > @@ -1,5 +1,5 @@ > #include "sub/incdir2.c" > > int main () { > - foo(x); > + foo(12); > } >incl.res : CORRECT >incl2.res : CORRECT >inclifdef.res : CORRECT >include.res : CORRECT >incompatible_value.res : CORRECT >incpos.res : CORRECT >incpos1.res : CORRECT >inherited.res : CORRECT >inherited_ver1.res : CORRECT >inhmet.res : CORRECT >inhpos.res : CORRECT >initializer.res : CORRECT >initializer_many_fields.res : CORRECT >inline.res : CORRECT >insdef.res : CORRECT >int2bool-local.res : CORRECT >introbrace.res : CORRECT >invert.res : CORRECT >ip.res : CORRECT >ip2.res : CORRECT >isococci.res : CORRECT >isoif.res : CORRECT >isotest.res : CORRECT >isotest2.res : CORRECT >iteration.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >iterator.res : CORRECT >iterprint.res : CORRECT >jloop1.res : PROBLEM > exn = Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/jloop1.cocci\", line 10, column 3, charpos = 129\n around = '...>',\n whole content = ...>\n") >julia10.res : CORRECT >julia7.res : CORRECT >justremove.res : CORRECT >keep_comma.res : CORRECT >km.res : CORRECT >kmalloc.res : CORRECT >kmc.res : CORRECT >kr.res : CORRECT >ktype.res : CORRECT >ktype2.res : CORRECT >labels_metastatement.res : CORRECT >labels_metastatement_ver1.res : CORRECT >lid.res : CORRECT >line_before_last.res : CORRECT >list_test.res : CORRECT >local.res : CORRECT >localglobal.res : CORRECT >localid.res : CORRECT >log.res : CORRECT >long.res : CORRECT >longconst.res : CORRECT >longline2.res : CORRECT >longlong.res : CORRECT >longlongint.res : CORRECT >loop.res : CORRECT >lvalue.res : CORRECT >macro.res : CORRECT >macro_int16.res : CORRECT >match_init.res : CORRECT >match_no_meta.res : CORRECT >max.res : CORRECT >mdec.res : CORRECT >mdecl.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >mdeclp.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >mdeclp2.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >memory.res : CORRECT >metahex.res : INCORRECT:diff token: f VS } >File "tests/metahex.c", line 2, column 2, charpos = 15 > around = 'f', > whole content = f(3); >File "tests/metahex.res", line 2, column 0, charpos = 13 > around = '}', > whole content = } > > diff (result(<) vs expected_result(>)) = > @@ -1,4 +1,2 @@ > int main() { > - f(3); > - g(0x03); > } >metaline.res : CORRECT >metaops.res : CORRECT >metaops0.res : CORRECT >metaruleelem.res : CORRECT >metastatement2.res : CORRECT >metastatement_for.res : CORRECT >metastatement_if.res : CORRECT >mincom.res : CORRECT >minenum.res : CORRECT >minenum1.res : CORRECT >minfn.res : CORRECT >mini_null_ref.res : CORRECT >miniswap.res : CORRECT >minstruct.res : CORRECT >minusdots.res : CORRECT >minusdots_ver1.res : CORRECT >multi_func1.res : PROBLEM > exn = 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") >multichars.res : CORRECT >multidec.res : CORRECT >multidecl3.res : CORRECT >multipath.res : CORRECT >multiplus.res : CORRECT >multiremove.res : CORRECT >multistruct.res : CORRECT >multitype.res : CORRECT >multitypedef.res : CORRECT >multivars.res : CORRECT >na.res : CORRECT >nameless.res : CORRECT >nest.res : CORRECT >nestone.res : CORRECT >nestseq.res : CORRECT >neststruct.res : CORRECT >nl.res : CORRECT >noa.res : CORRECT >nocast.res : CORRECT >noret.res : CORRECT >not.res : CORRECT >notest.res : CORRECT >noty.res : CORRECT >noty2.res : CORRECT >null_bool.res : INCORRECT:diff token: ) VS != >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-af4995-null_bool.c", line 2, column 8, charpos = 22 > around = ')', > whole content = if (12) return; >File "tests/null_bool.res", line 2, column 9, charpos = 23 > around = '!=', > whole content = if (12 != NULL) return; > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > int main () { > - if (12) return; > - if (a && 12 && b) return; > + if (12 != NULL) return; > + if (a && 12 != NULL && b) return; > if (12) return; > if (a && 12 && b) return; > x = x + 20; >null_type.res : CORRECT >oddifdef.res : INCORRECT:diff token: #else VS x >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-64ec90-oddifdef.c", line 10, column 0, charpos = 114 > around = '#else', > whole content = #else >File "tests/oddifdef.res", line 10, column 2, charpos = 116 > around = 'x', > whole content = x = 0; > > diff (result(<) vs expected_result(>)) = > @@ -7,7 +7,9 @@ > a = 5; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -20,7 +22,9 @@ > a = 3; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -33,6 +37,8 @@ > #endif > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } >of.res : CORRECT >oneline.res : CORRECT >op.res : CORRECT >opt.res : CORRECT >optional_qualifier.res : CORRECT >optional_storage.res : CORRECT >orexp.res : CORRECT >output.res : CORRECT >output.stdout : CORRECT >output_init.res : CORRECT >overshoot.res : CORRECT >p9.res : INCORRECT:diff token: v0 VS v2 >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-facc76-p9.c", line 1, column 10, charpos = 10 > around = 'v0', > whole content = int f(int v0, int v1, int x) { >File "tests/p9.res", line 1, column 10, charpos = 10 > around = 'v2', > whole content = int f(int v2, int v3, int x) { > > diff (result(<) vs expected_result(>)) = > @@ -1,3 +1,3 @@ > -int f(int v0, int v1, int x) { > +int f(int v2, int v3, int x) { > return x; > } >pa.res : CORRECT >param.res : CORRECT >param_end.res : CORRECT >param_to_exp.res : CORRECT >param_ver1.res : CORRECT >parameters_dots.res : CORRECT >parenmac.res : CORRECT >partial.res : CORRECT >pb_distribute_type.res : INCORRECT:PB parsing only in generated-file > diff (result(<) vs expected_result(>)) = > @@ -10,6 +10,6 @@ > } > > int foo() { > - int[45] *x; > + int (*x)[45]; > return 0; > } >pb_distribute_type2.res : INCORRECT:PB parsing only in generated-file > diff (result(<) vs expected_result(>)) = > @@ -1,5 +1,5 @@ > int foo() { > - int * x; > + int *x; > return 0; > } > > @@ -10,6 +10,6 @@ > } > > int foo() { > - int x[45]*; > + int (*x)[45]; > return 0; > } >pb_distribute_type3.res : PROBLEM > exn = Failure("line 7: index 53 53 already used\n") >pb_distribute_type4.res : CORRECT >pb_params_iso.res : CORRECT >pb_parsing_macro.res : CORRECT >pb_tag_symbols.res : CORRECT >pcim.res : CORRECT >pcomma.res : CORRECT >pmac.res : CORRECT >poscon.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >posiso.res : CORRECT >positionc.res : CORRECT >post.res : CORRECT >pragmatest.res : CORRECT >pragmatest1.res : CORRECT >print_return.res : CORRECT >proto.res : CORRECT >proto2.res : CORRECT >proto_ver1.res : CORRECT >proto_ver2.res : CORRECT >protoassert.res : CORRECT >protox.res : CORRECT >ptrar.res : CORRECT >python_iteration.res : CORRECT >python_iteration.stdout : CORRECT >python_mdecl.res : CORRECT >python_mdeclp.res : CORRECT >python_poscon.res : CORRECT >rcu3.res : CORRECT >regexp.res : CORRECT >regexp2.res : CORRECT >regexp3.res : CORRECT >rem1.res : CORRECT >rem2.res : CORRECT >remaft.res : CORRECT >remove-code-in-branch1.res : CORRECT >remove_call.res : CORRECT >remparam.res : CORRECT >rems.res : CORRECT >rems1.res : CORRECT >remstruct.res : CORRECT >replace_typedef.res : CORRECT >reserved.res : CORRECT >retest.res : CORRECT >retmacro.res : CORRECT >rets.res : CORRECT >return.res : CORRECT >return_implicit.res : CORRECT >retval.res : CORRECT >retval2.res : CORRECT >rptr.res : CORRECT >same_expr.res : CORRECT >scope_problem.res : INCORRECT:diff token: } VS a >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-70d529-scope_problem.c", line 4, column 2, charpos = 42 > around = '}', > whole content = } >File "tests/scope_problem.res", line 4, column 4, charpos = 44 > around = 'a', > whole content = a = 2; > > diff (result(<) vs expected_result(>)) = > @@ -1,7 +1,6 @@ > void main(int i) { > if(1) { > int a; > + a = 2; > } > - > - > } >serio.res : INCORRECT:diff token: init_MUTEX VS mutex_init >File "tests/serio.c", line 7, column 1, charpos = 130 > around = 'init_MUTEX', > whole content = init_MUTEX(&serio->drv_sem); >File "tests/serio.res", line 7, column 1, charpos = 130 > around = 'mutex_init', > whole content = mutex_init(&serio->new_lock); > > diff (result(<) vs expected_result(>)) = > @@ -4,5 +4,5 @@ > > static void serio_init_port(struct serio *serio) > { > - init_MUTEX(&serio->drv_sem); > + mutex_init(&serio->new_lock); > } >shared_brace.res : CORRECT >signed.res : CORRECT >sis.res : CORRECT >sizeof.res : CORRECT >sizeof_julia.res : CORRECT >sizeptr.res : CORRECT >sizestar.res : CORRECT >skip.res : CORRECT >sl2.res : CORRECT >slen.res : PROBLEM > exn = Failure("OCaml scripting is unsupported.") >smallfn.res : CORRECT >sp.res : CORRECT >spaces.res : CORRECT >spacing.res : CORRECT >spl.res : CORRECT >starprint.res : CORRECT >static.res : CORRECT >stm1.res : CORRECT >stm10.res : CORRECT >stm10_ver1.res : CORRECT >stm2.res : CORRECT >stm3.res : CORRECT >stm4.res : CORRECT >stm5.res : CORRECT >stm6.res : CORRECT >stm7.res : CORRECT >stm8.res : CORRECT >stmt.res : CORRECT >str_init.res : CORRECT >strangeorder.res : CORRECT >strid.res : CORRECT >strid2.res : CORRECT >string.res : CORRECT >struct.res : CORRECT >struct_metavar.res : CORRECT >struct_typedef.res : CORRECT >structfoo.res : CORRECT >substruct.res : CORRECT >sw.res : CORRECT >swap3.res : CORRECT >switch.res : CORRECT >switchdecl.res : CORRECT >symbol.res : CORRECT >td.res : CORRECT >tdnl.res : CORRECT >tern.res : CORRECT >test0.res : CORRECT >test1.res : CORRECT >test10.res : CORRECT >test10_ver1.res : CORRECT >test11.res : CORRECT >test11_ver1.res : CORRECT >test12.res : CORRECT >test2.res : CORRECT >test3.res : CORRECT >test4.res : CORRECT >test5.res : CORRECT >test5_ver1.res : CORRECT >test6.res : CORRECT >test7.res : CORRECT >test8.res : CORRECT >test9.res : CORRECT >test_s.res : CORRECT >test_unsigned_meta.res : CORRECT >testand.res : CORRECT >testand2.res : CORRECT >three_types.res : CORRECT >threea.res : CORRECT >top.res : CORRECT >topdec.res : CORRECT >topdec_ver1.res : CORRECT >topdec_ver2.res : CORRECT >toplevel_macrostmt.res : CORRECT >toplevel_struct.res : CORRECT >tup.res : CORRECT >twomatch.res : CORRECT >twoproto.res : CORRECT >ty.res : CORRECT >ty1.res : CORRECT >ty_tyexp.res : CORRECT >tydisj.res : CORRECT >tyex.res : CORRECT >type.res : CORRECT >type1.res : CORRECT >type_annotated.res : CORRECT >type_ver1.res : CORRECT >type_ver2.res : INCORRECT:PB parsing only in generated-file > diff (result(<) vs expected_result(>)) = > @@ -1,5 +1,5 @@ > int foo() { > - int[10] *x; > + int *x[10]; > return 0; > } > >typedef.res : CORRECT >typedef3.res : INCORRECT:diff token: link VS p_dev >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-581191-typedef3.c", line 7, column 29, charpos = 137 > around = 'link', > whole content = unsigned int iobase = info->link.io.BasePort1; >File "tests/typedef3.res", line 7, column 29, charpos = 137 > around = 'p_dev', > whole content = unsigned int iobase = info->p_dev->io.BasePort1; > > diff (result(<) vs expected_result(>)) = > @@ -4,7 +4,7 @@ > > static void should_work(foo *info) > { > - unsigned int iobase = info->link.io.BasePort1; > + unsigned int iobase = info->p_dev->io.BasePort1; > } > > static void does_work(struct bluecard_info_t *info) >typedef_double.res : CORRECT >typeof.res : CORRECT >unelse.res : CORRECT >unfree.res : CORRECT >unl.res : CORRECT >useless_cast.res : CORRECT >varargs.res : CORRECT >varargs2.res : CORRECT >varargs3.res : CORRECT >video1bis.res : CORRECT >void.res : CORRECT >vpos.res : CORRECT >whitespace.res : CORRECT >wierd_argument.res : CORRECT >wierdinit.res : seems incorrect, but only because of code that was not parsablediff token: dev_link_t VS struct >File "tests/wierdinit.c", line 4, column 1, charpos = 27 > around = 'dev_link_t', > whole content = dev_link_t *link; >File "tests/wierdinit.res", line 4, column 1, charpos = 27 > around = 'struct', > whole content = struct pcmcia_device *link; >wrongcheck.res : CORRECT >ws2.res : CORRECT >xfield.res : CORRECT >y2.res : CORRECT >zero.res : CORRECT >-------------------------------- >regression testing information >-------------------------------- >regression file: tests/SCORE_expected.sexp >Semipb: still error but not same error : changei.res >Old error: INCORRECT:diff token: i VS xxx >File <COCCIOUTPUTFILE>, line 1, column 15, charpos = 15 > around = 'i', > whole content = typedef struct i xxx; >File "tests/changei.res", line 1, column 15, charpos = 15 > around = 'xxx', > whole content = typedef struct xxx istruct; > > diff (result(<) vs expected_result(>)) = > @@ -1,4 +1,4 @@ > -typedef struct i xxx; > +typedef struct xxx istruct; > > int xxx (int xxx) { > char xxx; >New error: INCORRECT:diff token: i VS xxx >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-058864-changei.c", line 1, column 15, charpos = 15 > around = 'i', > whole content = typedef struct i xxx; >File "tests/changei.res", line 1, column 15, charpos = 15 > around = 'xxx', > whole content = typedef struct xxx istruct; > > diff (result(<) vs expected_result(>)) = > @@ -1,4 +1,4 @@ > -typedef struct i xxx; > +typedef struct xxx istruct; > > int xxx (int xxx) { > char xxx; > >Semipb: still error but not same error : dbg1.res >Old error: INCORRECT:diff token: E VS ( >File <COCCIOUTPUTFILE>, line 5, column 2, charpos = 75 > around = 'E', > whole content = E = NULL;("PCI"); >File "tests/dbg1.res", line 4, column 5, charpos = 72 > around = '(', > whole content = DBG("PCI"); > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > > static inline void alloc_resource(struct pci_dev *dev, int idx) > { > - DBG > - E = NULL;("PCI"); > + DBG("PCI"); > + E = NULL; > } >New error: INCORRECT:diff token: E VS ( >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-838fda-dbg1.c", line 5, column 2, charpos = 75 > around = 'E', > whole content = E = NULL;("PCI"); >File "tests/dbg1.res", line 4, column 5, charpos = 72 > around = '(', > whole content = DBG("PCI"); > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > > static inline void alloc_resource(struct pci_dev *dev, int idx) > { > - DBG > - E = NULL;("PCI"); > + DBG("PCI"); > + E = NULL; > } > >Semipb: still error but not same error : endpos.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : exitc.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Great: a test file now works: exitp.res >Semipb: still error but not same error : extra.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : failing_andany.res >Old error: INCORRECT:diff token: request_irq VS } >File <COCCIOUTPUTFILE>, line 4, column 8, charpos = 111 > around = 'request_irq', > whole content = request_irq(irq_flags); >File "tests/failing_andany.res", line 4, column 0, charpos = 103 > around = '}', > whole content = } > > diff (result(<) vs expected_result(>)) = > @@ -1,8 +1,6 @@ > static int smc_probe1(struct net_device *dev, void __iomem *ioaddr, > unsigned long irq_flags) > { > - request_irq(irq_flags); > - register_netdev(dev); > } > > static int smc_probe2(struct net_device *dev, void __iomem *ioaddr, >New error: INCORRECT:diff token: request_irq VS } >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-b5fa57-failing_andany.c", line 4, column 8, charpos = 111 > around = 'request_irq', > whole content = request_irq(irq_flags); >File "tests/failing_andany.res", line 4, column 0, charpos = 103 > around = '}', > whole content = } > > diff (result(<) vs expected_result(>)) = > @@ -1,8 +1,6 @@ > static int smc_probe1(struct net_device *dev, void __iomem *ioaddr, > unsigned long irq_flags) > { > - request_irq(irq_flags); > - register_netdev(dev); > } > > static int smc_probe2(struct net_device *dev, void __iomem *ioaddr, > >Semipb: still error but not same error : format2.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : idcon_ocaml.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Great: a test file now works: idcon_python.res >Great: a test file now works: incpos.res >Great: a test file now works: incpos1.res >Semipb: still error but not same error : iteration.res >Old error: PROBLEM > exn = Failure("Semantic patch uses python, but Coccinelle has been compiled without Python support") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : mdecl.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : mdeclp.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : mdeclp2.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Semipb: still error but not same error : null_bool.res >Old error: INCORRECT:diff token: ) VS != >File <COCCIOUTPUTFILE>, line 2, column 8, charpos = 22 > around = ')', > whole content = if (12) return; >File "tests/null_bool.res", line 2, column 9, charpos = 23 > around = '!=', > whole content = if (12 != NULL) return; > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > int main () { > - if (12) return; > - if (a && 12 && b) return; > + if (12 != NULL) return; > + if (a && 12 != NULL && b) return; > if (12) return; > if (a && 12 && b) return; > x = x + 20; >New error: INCORRECT:diff token: ) VS != >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-af4995-null_bool.c", line 2, column 8, charpos = 22 > around = ')', > whole content = if (12) return; >File "tests/null_bool.res", line 2, column 9, charpos = 23 > around = '!=', > whole content = if (12 != NULL) return; > > diff (result(<) vs expected_result(>)) = > @@ -1,6 +1,6 @@ > int main () { > - if (12) return; > - if (a && 12 && b) return; > + if (12 != NULL) return; > + if (a && 12 != NULL && b) return; > if (12) return; > if (a && 12 && b) return; > x = x + 20; > >Semipb: still error but not same error : oddifdef.res >Old error: INCORRECT:diff token: #else VS x >File <COCCIOUTPUTFILE>, line 10, column 0, charpos = 114 > around = '#else', > whole content = #else >File "tests/oddifdef.res", line 10, column 2, charpos = 116 > around = 'x', > whole content = x = 0; > > diff (result(<) vs expected_result(>)) = > @@ -7,7 +7,9 @@ > a = 5; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -20,7 +22,9 @@ > a = 3; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -33,6 +37,8 @@ > #endif > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } >New error: INCORRECT:diff token: #else VS x >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-64ec90-oddifdef.c", line 10, column 0, charpos = 114 > around = '#else', > whole content = #else >File "tests/oddifdef.res", line 10, column 2, charpos = 116 > around = 'x', > whole content = x = 0; > > diff (result(<) vs expected_result(>)) = > @@ -7,7 +7,9 @@ > a = 5; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -20,7 +22,9 @@ > a = 3; > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > > @@ -33,6 +37,8 @@ > #endif > > #ifdef FOO > + x = 0; > #else > + x = 0; > #endif > } > >Great: a test file now works: output.res >new test file appeared: output.stdout >Great: a test file now works: output_init.res >Semipb: still error but not same error : p9.res >Old error: INCORRECT:diff token: v0 VS v2 >File <COCCIOUTPUTFILE>, line 1, column 10, charpos = 10 > around = 'v0', > whole content = int f(int v0, int v1, int x) { >File "tests/p9.res", line 1, column 10, charpos = 10 > around = 'v2', > whole content = int f(int v2, int v3, int x) { > > diff (result(<) vs expected_result(>)) = > @@ -1,3 +1,3 @@ > -int f(int v0, int v1, int x) { > +int f(int v2, int v3, int x) { > return x; > } >New error: INCORRECT:diff token: v0 VS v2 >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-facc76-p9.c", line 1, column 10, charpos = 10 > around = 'v0', > whole content = int f(int v0, int v1, int x) { >File "tests/p9.res", line 1, column 10, charpos = 10 > around = 'v2', > whole content = int f(int v2, int v3, int x) { > > diff (result(<) vs expected_result(>)) = > @@ -1,3 +1,3 @@ > -int f(int v0, int v1, int x) { > +int f(int v2, int v3, int x) { > return x; > } > >Semipb: still error but not same error : poscon.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Great: a test file now works: python_iteration.res >new test file appeared: python_iteration.stdout >Great: a test file now works: python_mdecl.res >Great: a test file now works: python_mdeclp.res >Great: a test file now works: python_poscon.res >Semipb: still error but not same error : scope_problem.res >Old error: INCORRECT:diff token: } VS a >File <COCCIOUTPUTFILE>, line 4, column 2, charpos = 42 > around = '}', > whole content = } >File "tests/scope_problem.res", line 4, column 4, charpos = 44 > around = 'a', > whole content = a = 2; > > diff (result(<) vs expected_result(>)) = > @@ -1,7 +1,6 @@ > void main(int i) { > if(1) { > int a; > + a = 2; > } > - > - > } >New error: INCORRECT:diff token: } VS a >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-70d529-scope_problem.c", line 4, column 2, charpos = 42 > around = '}', > whole content = } >File "tests/scope_problem.res", line 4, column 4, charpos = 44 > around = 'a', > whole content = a = 2; > > diff (result(<) vs expected_result(>)) = > @@ -1,7 +1,6 @@ > void main(int i) { > if(1) { > int a; > + a = 2; > } > - > - > } > >Semipb: still error but not same error : slen.res >Old error: PROBLEM > exn = Yes_prepare_ocamlcocci.CompileFailure("No coccilib.cmi in ${exec_prefix}/lib/coccinelle/ocaml/coccilib.cmi or ${exec_prefix}/lib/coccinelle/ocaml/coccilib/coccilib.cmi") >New error: PROBLEM > exn = Failure("OCaml scripting is unsupported.") > >Great: a test file now works: stm1.res >Great: a test file now works: stm7.res >Semipb: still error but not same error : typedef3.res >Old error: INCORRECT:diff token: link VS p_dev >File <COCCIOUTPUTFILE>, line 7, column 29, charpos = 137 > around = 'link', > whole content = unsigned int iobase = info->link.io.BasePort1; >File "tests/typedef3.res", line 7, column 29, charpos = 137 > around = 'p_dev', > whole content = unsigned int iobase = info->p_dev->io.BasePort1; > > diff (result(<) vs expected_result(>)) = > @@ -4,7 +4,7 @@ > > static void should_work(foo *info) > { > - unsigned int iobase = info->link.io.BasePort1; > + unsigned int iobase = info->p_dev->io.BasePort1; > } > > static void does_work(struct bluecard_info_t *info) >New error: INCORRECT:diff token: link VS p_dev >File "/var/tmp/portage/dev-util/coccinelle-1.0.6/temp/cocci-output-3368-581191-typedef3.c", line 7, column 29, charpos = 137 > around = 'link', > whole content = unsigned int iobase = info->link.io.BasePort1; >File "tests/typedef3.res", line 7, column 29, charpos = 137 > around = 'p_dev', > whole content = unsigned int iobase = info->p_dev->io.BasePort1; > > diff (result(<) vs expected_result(>)) = > @@ -4,7 +4,7 @@ > > static void should_work(foo *info) > { > - unsigned int iobase = info->link.io.BasePort1; > + unsigned int iobase = info->p_dev->io.BasePort1; > } > > static void does_work(struct bluecard_info_t *info) > >-------------------------------- >total score >-------------------------------- >good = 467/500 >Current score is greater than expected :) >(was expecting 453 but got 467) >make --jobs 5 --load-average 7.95 pycocci-check >COCCINELLE_HOME="$(pwd)" ./scripts/pycocci-check.sh >Path (tests/pycocci/code/0001-proto3) not part of a git tree, creating one for you... >Process Process-1: >Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "./tools/pycocci", line 468, in spatch_old > close_fds=True, universal_newlines=True) > File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ >Process Process-2: >Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "./tools/pycocci", line 468, in spatch_old > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child > raise child_exception >OSError: [Errno 2] No such file or directory > close_fds=True, universal_newlines=True) > File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child > raise child_exception >OSError: [Errno 2] No such file or directory >Process Process-3: >Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "./tools/pycocci", line 468, in spatch_old > close_fds=True, universal_newlines=True) > File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child > raise child_exception >OSError: [Errno 2] No such file or directory >Process Process-4: >Traceback (most recent call last): > File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap > self.run() > File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run > self._target(*self._args, **self._kwargs) > File "./tools/pycocci", line 468, in spatch_old > close_fds=True, universal_newlines=True) > File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ > errread, errwrite) > File "/usr/lib/python2.7/subprocess.py", line 1025, in _execute_child > raise child_exception >OSError: [Errno 2] No such file or directory >sandbox:stop caught signal 15 in pid 3318 >make: *** [Makefile:493: pycocci-check] Terminated >Terminated > * The ebuild phase 'test' has exited unexpectedly. This type of behavior > * is known to be triggered by things such as failed variable assignments > * (bug #190128) or bad substitution errors (bug #200313). Normally, before > * exiting, bash should have displayed an error message above. If bash did > * not produce an error message above, it's possible that the ebuild has > * called `exit` when it should have called `die` instead. This behavior > * may also be triggered by a corrupt bash binary or a hardware problem > * such as memory or cpu malfunction. If the problem is not reproducible or > * it appears to occur randomly, then it is likely to be triggered by a > * hardware problem. If you suspect a hardware problem then you should try > * some basic hardware diagnostics such as memtest. Please do not report > * this as a bug unless it is consistently reproducible and you are sure > * that your bash binary and hardware are functioning properly.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 647348
: 519146