I: pbuilder: network access will be disabled during build I: Current time: Thu Jan 23 00:20:15 +14 2025 I: pbuilder-time-stamp: 1737541215 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration W: --override-config is not set; not updating apt.conf Read the manpage for details. I: mounting /proc filesystem I: mounting /sys filesystem I: creating /{dev,run}/shm I: mounting /dev/pts filesystem I: redirecting /dev/ptmx to /dev/pts/ptmx I: policy-rc.d already exists I: Copying source file I: copying [coccinelle_1.3.0.deb-1.dsc] I: copying [./coccinelle_1.3.0.deb.orig.tar.gz] I: copying [./coccinelle_1.3.0.deb-1.debian.tar.xz] I: Extracting source dpkg-source: warning: cannot verify inline signature for ./coccinelle_1.3.0.deb-1.dsc: unsupported subcommand dpkg-source: info: extracting coccinelle in coccinelle-1.3.0.deb dpkg-source: info: unpacking coccinelle_1.3.0.deb.orig.tar.gz dpkg-source: info: unpacking coccinelle_1.3.0.deb-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying no-bundles.diff dpkg-source: info: applying manual-build-fix.diff dpkg-source: info: applying dont-update-test-score.diff dpkg-source: info: applying dont-expose-parmap.diff I: Not using root during the build. I: Installing the build-deps I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/D01_modify_environment starting debug: Running on codethink04-arm64. I: Changing host+domainname to test build reproducibility I: Adding a custom variable just for the fun of it... I: Changing /bin/sh to bash '/bin/sh' -> '/bin/bash' lrwxrwxrwx 1 root root 9 Jan 22 10:20 /bin/sh -> /bin/bash I: Setting pbuilder2's login shell to /bin/bash I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/D01_modify_environment finished I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/D02_print_environment starting I: set BASH=/bin/sh BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_LINENO=([0]="12" [1]="0") BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") BASH_VERSION='5.2.37(1)-release' BUILDDIR=/build/reproducible-path BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' BUILDUSERNAME=pbuilder2 BUILD_ARCH=arm64 DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' DIRSTACK=() DISTRIBUTION=trixie EUID=0 FUNCNAME=([0]="Echo" [1]="main") GROUPS=() HOME=/root HOSTNAME=i-capture-the-hostname HOSTTYPE=aarch64 HOST_ARCH=arm64 IFS=' ' INVOCATION_ID=bc9ecabc1c2d4c6a8840719717b66bff LANG=C LANGUAGE=nl_BE:nl LC_ALL=C MACHTYPE=aarch64-unknown-linux-gnu MAIL=/var/mail/root OPTERR=1 OPTIND=1 OSTYPE=linux-gnu PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path PBCURRENTCOMMANDLINEOPERATION=build PBUILDER_OPERATION=build PBUILDER_PKGDATADIR=/usr/share/pbuilder PBUILDER_PKGLIBDIR=/usr/lib/pbuilder PBUILDER_SYSCONFDIR=/etc PIPESTATUS=([0]="0") POSIXLY_CORRECT=y PPID=2168549 PS4='+ ' PWD=/ SHELL=/bin/bash SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix SHLVL=3 SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.6zyNyIGv/pbuilderrc_Hpxc --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.6zyNyIGv/b2 --logfile b2/build.log coccinelle_1.3.0.deb-1.dsc' SUDO_GID=109 SUDO_UID=104 SUDO_USER=jenkins TERM=unknown TZ=/usr/share/zoneinfo/Etc/GMT-14 UID=0 USER=root _='I: set' http_proxy=http://192.168.101.4:3128 I: uname -a Linux i-capture-the-hostname 6.1.0-30-cloud-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy Version: 0.invalid.0 Architecture: arm64 Maintainer: Debian Pbuilder Team Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder This package was created automatically by pbuilder to satisfy the build-dependencies of the package being currently built. Depends: debhelper-compat (= 13), dh-ocaml, dh-python, libmenhir-ocaml-dev, libparmap-ocaml-dev, libstdcompat-ocaml-dev, libpyml-ocaml-dev, menhir, ocaml-findlib, ocaml, pkgconf, python3 dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'. Selecting previously unselected package pbuilder-satisfydepends-dummy. (Reading database ... 19970 files and directories currently installed.) Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ... Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ... dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested: pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however: Package debhelper-compat is not installed. pbuilder-satisfydepends-dummy depends on dh-ocaml; however: Package dh-ocaml is not installed. pbuilder-satisfydepends-dummy depends on dh-python; however: Package dh-python is not installed. pbuilder-satisfydepends-dummy depends on libmenhir-ocaml-dev; however: Package libmenhir-ocaml-dev is not installed. pbuilder-satisfydepends-dummy depends on libparmap-ocaml-dev; however: Package libparmap-ocaml-dev is not installed. pbuilder-satisfydepends-dummy depends on libstdcompat-ocaml-dev; however: Package libstdcompat-ocaml-dev is not installed. pbuilder-satisfydepends-dummy depends on libpyml-ocaml-dev; however: Package libpyml-ocaml-dev is not installed. pbuilder-satisfydepends-dummy depends on menhir; however: Package menhir is not installed. pbuilder-satisfydepends-dummy depends on ocaml-findlib; however: Package ocaml-findlib is not installed. pbuilder-satisfydepends-dummy depends on ocaml; however: Package ocaml is not installed. pbuilder-satisfydepends-dummy depends on pkgconf; however: Package pkgconf is not installed. pbuilder-satisfydepends-dummy depends on python3; however: Package python3 is not installed. Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ... Reading package lists... Building dependency tree... Reading state information... Initializing package states... Writing extended state information... Building tag database... pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0) The following NEW packages will be installed: autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} debhelper{a} dh-autoreconf{a} dh-ocaml{a} dh-python{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libcom-err2{a} libcompiler-libs-ocaml-dev{a} libconfig-tiny-perl{a} libdebhelper-perl{a} libelf1t64{a} libexpat1{a} libffi8{a} libfile-stripnondeterminism-perl{a} libfindlib-ocaml{a} libgssapi-krb5-2{a} libicu72{a} libk5crypto3{a} libkeyutils1{a} libkrb5-3{a} libkrb5support0{a} libmagic-mgc{a} libmagic1t64{a} libmenhir-ocaml-dev{a} libncurses-dev{a} libncurses6{a} libnsl2{a} libparmap-ocaml{a} libparmap-ocaml-dev{a} libpipeline1{a} libpkgconf3{a} libpyml-ocaml{a} libpyml-ocaml-dev{a} libpython3-stdlib{a} libpython3.12-minimal{a} libpython3.12-stdlib{a} libreadline8t64{a} libstdcompat-ocaml{a} libstdcompat-ocaml-dev{a} libstdlib-ocaml{a} libstdlib-ocaml-dev{a} libtirpc-common{a} libtirpc3t64{a} libtool{a} libuchardet0{a} libunistring5{a} libxml2{a} libzstd-dev{a} m4{a} man-db{a} media-types{a} menhir{a} netbase{a} ocaml{a} ocaml-base{a} ocaml-findlib{a} ocaml-interp{a} pkgconf{a} pkgconf-bin{a} po-debconf{a} python3{a} python3-autocommand{a} python3-inflect{a} python3-jaraco.context{a} python3-jaraco.functools{a} python3-jaraco.text{a} python3-minimal{a} python3-more-itertools{a} python3-pkg-resources{a} python3-setuptools{a} python3-typeguard{a} python3-typing-extensions{a} python3-zipp{a} python3.12{a} python3.12-minimal{a} readline-common{a} sensible-utils{a} tzdata{a} The following packages are RECOMMENDED but will NOT be installed: ca-certificates curl krb5-locales ledit libarchive-cpio-perl libfindlib-ocaml-dev libgpm2 libltdl-dev libmail-sendmail-perl lynx ocaml-man python3-dev rlfe rlwrap wget 0 packages upgraded, 89 newly installed, 0 to remove and 0 not upgraded. Need to get 122 MB of archives. After unpacking 400 MB will be used. Writing extended state information... Get: 1 http://deb.debian.org/debian trixie/main arm64 libpython3.12-minimal arm64 3.12.8-5 [810 kB] Get: 2 http://deb.debian.org/debian trixie/main arm64 libexpat1 arm64 2.6.4-1 [90.7 kB] Get: 3 http://deb.debian.org/debian trixie/main arm64 python3.12-minimal arm64 3.12.8-5 [1934 kB] Get: 4 http://deb.debian.org/debian trixie/main arm64 python3-minimal arm64 3.12.8-1 [26.9 kB] Get: 5 http://deb.debian.org/debian trixie/main arm64 media-types all 10.1.0 [26.9 kB] Get: 6 http://deb.debian.org/debian trixie/main arm64 netbase all 6.4 [12.8 kB] Get: 7 http://deb.debian.org/debian trixie/main arm64 tzdata all 2024b-6 [257 kB] Get: 8 http://deb.debian.org/debian trixie/main arm64 libffi8 arm64 3.4.6-1 [20.9 kB] Get: 9 http://deb.debian.org/debian trixie/main arm64 libkrb5support0 arm64 1.21.3-3 [32.1 kB] Get: 10 http://deb.debian.org/debian trixie/main arm64 libcom-err2 arm64 1.47.2-1 [23.9 kB] Get: 11 http://deb.debian.org/debian trixie/main arm64 libk5crypto3 arm64 1.21.3-3 [80.8 kB] Get: 12 http://deb.debian.org/debian trixie/main arm64 libkeyutils1 arm64 1.6.3-4 [9352 B] Get: 13 http://deb.debian.org/debian trixie/main arm64 libkrb5-3 arm64 1.21.3-3 [310 kB] Get: 14 http://deb.debian.org/debian trixie/main arm64 libgssapi-krb5-2 arm64 1.21.3-3 [126 kB] Get: 15 http://deb.debian.org/debian trixie/main arm64 libtirpc-common all 1.3.4+ds-1.3 [10.9 kB] Get: 16 http://deb.debian.org/debian trixie/main arm64 libtirpc3t64 arm64 1.3.4+ds-1.3+b1 [78.7 kB] Get: 17 http://deb.debian.org/debian trixie/main arm64 libnsl2 arm64 1.3.0-3+b3 [37.9 kB] Get: 18 http://deb.debian.org/debian trixie/main arm64 readline-common all 8.2-6 [69.4 kB] Get: 19 http://deb.debian.org/debian trixie/main arm64 libreadline8t64 arm64 8.2-6 [159 kB] Get: 20 http://deb.debian.org/debian trixie/main arm64 libpython3.12-stdlib arm64 3.12.8-5 [1904 kB] Get: 21 http://deb.debian.org/debian trixie/main arm64 python3.12 arm64 3.12.8-5 [677 kB] Get: 22 http://deb.debian.org/debian trixie/main arm64 libpython3-stdlib arm64 3.12.8-1 [9788 B] Get: 23 http://deb.debian.org/debian trixie/main arm64 python3 arm64 3.12.8-1 [27.9 kB] Get: 24 http://deb.debian.org/debian trixie/main arm64 sensible-utils all 0.0.24 [24.8 kB] Get: 25 http://deb.debian.org/debian trixie/main arm64 libmagic-mgc arm64 1:5.45-3+b1 [314 kB] Get: 26 http://deb.debian.org/debian trixie/main arm64 libmagic1t64 arm64 1:5.45-3+b1 [102 kB] Get: 27 http://deb.debian.org/debian trixie/main arm64 file arm64 1:5.45-3+b1 [43.4 kB] Get: 28 http://deb.debian.org/debian trixie/main arm64 gettext-base arm64 0.22.5-4 [198 kB] Get: 29 http://deb.debian.org/debian trixie/main arm64 libuchardet0 arm64 0.0.8-1+b2 [69.2 kB] Get: 30 http://deb.debian.org/debian trixie/main arm64 groff-base arm64 1.23.0-7 [1129 kB] Get: 31 http://deb.debian.org/debian trixie/main arm64 bsdextrautils arm64 2.40.4-1 [91.6 kB] Get: 32 http://deb.debian.org/debian trixie/main arm64 libpipeline1 arm64 1.5.8-1 [40.2 kB] Get: 33 http://deb.debian.org/debian trixie/main arm64 man-db arm64 2.13.0-1 [1404 kB] Get: 34 http://deb.debian.org/debian trixie/main arm64 m4 arm64 1.4.19-5 [284 kB] Get: 35 http://deb.debian.org/debian trixie/main arm64 autoconf all 2.72-3 [493 kB] Get: 36 http://deb.debian.org/debian trixie/main arm64 autotools-dev all 20220109.1 [51.6 kB] Get: 37 http://deb.debian.org/debian trixie/main arm64 automake all 1:1.16.5-1.3 [823 kB] Get: 38 http://deb.debian.org/debian trixie/main arm64 autopoint all 0.22.5-4 [723 kB] Get: 39 http://deb.debian.org/debian trixie/main arm64 libdebhelper-perl all 13.23 [90.6 kB] Get: 40 http://deb.debian.org/debian trixie/main arm64 libtool all 2.5.4-2 [539 kB] Get: 41 http://deb.debian.org/debian trixie/main arm64 dh-autoreconf all 20 [17.1 kB] Get: 42 http://deb.debian.org/debian trixie/main arm64 libarchive-zip-perl all 1.68-1 [104 kB] Get: 43 http://deb.debian.org/debian trixie/main arm64 libfile-stripnondeterminism-perl all 1.14.0-1 [19.5 kB] Get: 44 http://deb.debian.org/debian trixie/main arm64 dh-strip-nondeterminism all 1.14.0-1 [8448 B] Get: 45 http://deb.debian.org/debian trixie/main arm64 libelf1t64 arm64 0.192-4 [189 kB] Get: 46 http://deb.debian.org/debian trixie/main arm64 dwz arm64 0.15-1+b1 [102 kB] Get: 47 http://deb.debian.org/debian trixie/main arm64 libunistring5 arm64 1.3-1 [449 kB] Get: 48 http://deb.debian.org/debian trixie/main arm64 libicu72 arm64 72.1-6 [9239 kB] Get: 49 http://deb.debian.org/debian trixie/main arm64 libxml2 arm64 2.12.7+dfsg+really2.9.14-0.2+b1 [630 kB] Get: 50 http://deb.debian.org/debian trixie/main arm64 gettext arm64 0.22.5-4 [1532 kB] Get: 51 http://deb.debian.org/debian trixie/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 52 http://deb.debian.org/debian trixie/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 53 http://deb.debian.org/debian trixie/main arm64 debhelper all 13.23 [919 kB] Get: 54 http://deb.debian.org/debian trixie/main arm64 libconfig-tiny-perl all 2.30-1 [18.9 kB] Get: 55 http://deb.debian.org/debian trixie/main arm64 dh-ocaml all 2.4 [62.9 kB] Get: 56 http://deb.debian.org/debian trixie/main arm64 python3-autocommand all 2.2.2-3 [13.6 kB] Get: 57 http://deb.debian.org/debian trixie/main arm64 python3-more-itertools all 10.6.0-1 [65.3 kB] Get: 58 http://deb.debian.org/debian trixie/main arm64 python3-typing-extensions all 4.12.2-2 [73.0 kB] Get: 59 http://deb.debian.org/debian trixie/main arm64 python3-typeguard all 4.4.1-1 [37.0 kB] Get: 60 http://deb.debian.org/debian trixie/main arm64 python3-inflect all 7.3.1-2 [32.4 kB] Get: 61 http://deb.debian.org/debian trixie/main arm64 python3-jaraco.context all 6.0.0-1 [7984 B] Get: 62 http://deb.debian.org/debian trixie/main arm64 python3-jaraco.functools all 4.1.0-1 [12.0 kB] Get: 63 http://deb.debian.org/debian trixie/main arm64 python3-pkg-resources all 75.6.0-1 [222 kB] Get: 64 http://deb.debian.org/debian trixie/main arm64 python3-jaraco.text all 4.0.0-1 [11.4 kB] Get: 65 http://deb.debian.org/debian trixie/main arm64 python3-zipp all 3.21.0-1 [10.6 kB] Get: 66 http://deb.debian.org/debian trixie/main arm64 python3-setuptools all 75.6.0-1 [720 kB] Get: 67 http://deb.debian.org/debian trixie/main arm64 dh-python all 6.20250108 [113 kB] Get: 68 http://deb.debian.org/debian trixie/main arm64 libstdlib-ocaml arm64 5.2.0-3 [571 kB] Get: 69 http://deb.debian.org/debian trixie/main arm64 libstdlib-ocaml-dev arm64 5.2.0-3 [11.0 MB] Get: 70 http://deb.debian.org/debian trixie/main arm64 libcompiler-libs-ocaml-dev arm64 5.2.0-3 [47.1 MB] Get: 71 http://deb.debian.org/debian trixie/main arm64 ocaml-base arm64 5.2.0-3 [443 kB] Get: 72 http://deb.debian.org/debian trixie/main arm64 libfindlib-ocaml arm64 1.9.6-3 [181 kB] Get: 73 http://deb.debian.org/debian trixie/main arm64 ocaml-interp arm64 5.2.0-3 [6851 kB] Get: 74 http://deb.debian.org/debian trixie/main arm64 libncurses6 arm64 6.5-2+b1 [96.1 kB] Get: 75 http://deb.debian.org/debian trixie/main arm64 libncurses-dev arm64 6.5-2+b1 [338 kB] Get: 76 http://deb.debian.org/debian trixie/main arm64 libzstd-dev arm64 1.5.6+dfsg-2 [329 kB] Get: 77 http://deb.debian.org/debian trixie/main arm64 ocaml arm64 5.2.0-3 [20.1 MB] Get: 78 http://deb.debian.org/debian trixie/main arm64 libmenhir-ocaml-dev arm64 20240715+ds-1 [908 kB] Get: 79 http://deb.debian.org/debian trixie/main arm64 libparmap-ocaml arm64 1.2.5-3+b2 [92.5 kB] Get: 80 http://deb.debian.org/debian trixie/main arm64 libparmap-ocaml-dev arm64 1.2.5-3+b2 [247 kB] Get: 81 http://deb.debian.org/debian trixie/main arm64 libpkgconf3 arm64 1.8.1-4 [35.3 kB] Get: 82 http://deb.debian.org/debian trixie/main arm64 libstdcompat-ocaml arm64 20~git20240529-2 [49.3 kB] Get: 83 http://deb.debian.org/debian trixie/main arm64 libpyml-ocaml arm64 20231101-1+b3 [513 kB] Get: 84 http://deb.debian.org/debian trixie/main arm64 libstdcompat-ocaml-dev arm64 20~git20240529-2 [1502 kB] Get: 85 http://deb.debian.org/debian trixie/main arm64 libpyml-ocaml-dev arm64 20231101-1+b3 [1329 kB] Get: 86 http://deb.debian.org/debian trixie/main arm64 menhir arm64 20240715+ds-1 [1569 kB] Get: 87 http://deb.debian.org/debian trixie/main arm64 ocaml-findlib arm64 1.9.6-3 [621 kB] Get: 88 http://deb.debian.org/debian trixie/main arm64 pkgconf-bin arm64 1.8.1-4 [29.6 kB] Get: 89 http://deb.debian.org/debian trixie/main arm64 pkgconf arm64 1.8.1-4 [26.1 kB] Fetched 122 MB in 1s (145 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-minimal:arm64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19970 files and directories currently installed.) Preparing to unpack .../libpython3.12-minimal_3.12.8-5_arm64.deb ... Unpacking libpython3.12-minimal:arm64 (3.12.8-5) ... Selecting previously unselected package libexpat1:arm64. Preparing to unpack .../libexpat1_2.6.4-1_arm64.deb ... Unpacking libexpat1:arm64 (2.6.4-1) ... Selecting previously unselected package python3.12-minimal. Preparing to unpack .../python3.12-minimal_3.12.8-5_arm64.deb ... Unpacking python3.12-minimal (3.12.8-5) ... Setting up libpython3.12-minimal:arm64 (3.12.8-5) ... Setting up libexpat1:arm64 (2.6.4-1) ... Setting up python3.12-minimal (3.12.8-5) ... Selecting previously unselected package python3-minimal. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20290 files and directories currently installed.) Preparing to unpack .../00-python3-minimal_3.12.8-1_arm64.deb ... Unpacking python3-minimal (3.12.8-1) ... Selecting previously unselected package media-types. Preparing to unpack .../01-media-types_10.1.0_all.deb ... Unpacking media-types (10.1.0) ... Selecting previously unselected package netbase. Preparing to unpack .../02-netbase_6.4_all.deb ... Unpacking netbase (6.4) ... Selecting previously unselected package tzdata. Preparing to unpack .../03-tzdata_2024b-6_all.deb ... Unpacking tzdata (2024b-6) ... Selecting previously unselected package libffi8:arm64. Preparing to unpack .../04-libffi8_3.4.6-1_arm64.deb ... Unpacking libffi8:arm64 (3.4.6-1) ... Selecting previously unselected package libkrb5support0:arm64. Preparing to unpack .../05-libkrb5support0_1.21.3-3_arm64.deb ... Unpacking libkrb5support0:arm64 (1.21.3-3) ... Selecting previously unselected package libcom-err2:arm64. Preparing to unpack .../06-libcom-err2_1.47.2-1_arm64.deb ... Unpacking libcom-err2:arm64 (1.47.2-1) ... Selecting previously unselected package libk5crypto3:arm64. Preparing to unpack .../07-libk5crypto3_1.21.3-3_arm64.deb ... Unpacking libk5crypto3:arm64 (1.21.3-3) ... Selecting previously unselected package libkeyutils1:arm64. Preparing to unpack .../08-libkeyutils1_1.6.3-4_arm64.deb ... Unpacking libkeyutils1:arm64 (1.6.3-4) ... Selecting previously unselected package libkrb5-3:arm64. Preparing to unpack .../09-libkrb5-3_1.21.3-3_arm64.deb ... Unpacking libkrb5-3:arm64 (1.21.3-3) ... Selecting previously unselected package libgssapi-krb5-2:arm64. Preparing to unpack .../10-libgssapi-krb5-2_1.21.3-3_arm64.deb ... Unpacking libgssapi-krb5-2:arm64 (1.21.3-3) ... Selecting previously unselected package libtirpc-common. Preparing to unpack .../11-libtirpc-common_1.3.4+ds-1.3_all.deb ... Unpacking libtirpc-common (1.3.4+ds-1.3) ... Selecting previously unselected package libtirpc3t64:arm64. Preparing to unpack .../12-libtirpc3t64_1.3.4+ds-1.3+b1_arm64.deb ... Adding 'diversion of /lib/aarch64-linux-gnu/libtirpc.so.3 to /lib/aarch64-linux-gnu/libtirpc.so.3.usr-is-merged by libtirpc3t64' Adding 'diversion of /lib/aarch64-linux-gnu/libtirpc.so.3.0.0 to /lib/aarch64-linux-gnu/libtirpc.so.3.0.0.usr-is-merged by libtirpc3t64' Unpacking libtirpc3t64:arm64 (1.3.4+ds-1.3+b1) ... Selecting previously unselected package libnsl2:arm64. Preparing to unpack .../13-libnsl2_1.3.0-3+b3_arm64.deb ... Unpacking libnsl2:arm64 (1.3.0-3+b3) ... Selecting previously unselected package readline-common. Preparing to unpack .../14-readline-common_8.2-6_all.deb ... Unpacking readline-common (8.2-6) ... Selecting previously unselected package libreadline8t64:arm64. Preparing to unpack .../15-libreadline8t64_8.2-6_arm64.deb ... Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8 to /lib/aarch64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8.2 to /lib/aarch64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8 to /lib/aarch64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8.2 to /lib/aarch64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' Unpacking libreadline8t64:arm64 (8.2-6) ... Selecting previously unselected package libpython3.12-stdlib:arm64. Preparing to unpack .../16-libpython3.12-stdlib_3.12.8-5_arm64.deb ... Unpacking libpython3.12-stdlib:arm64 (3.12.8-5) ... Selecting previously unselected package python3.12. Preparing to unpack .../17-python3.12_3.12.8-5_arm64.deb ... Unpacking python3.12 (3.12.8-5) ... Selecting previously unselected package libpython3-stdlib:arm64. Preparing to unpack .../18-libpython3-stdlib_3.12.8-1_arm64.deb ... Unpacking libpython3-stdlib:arm64 (3.12.8-1) ... Setting up python3-minimal (3.12.8-1) ... Selecting previously unselected package python3. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 21358 files and directories currently installed.) Preparing to unpack .../00-python3_3.12.8-1_arm64.deb ... Unpacking python3 (3.12.8-1) ... Selecting previously unselected package sensible-utils. Preparing to unpack .../01-sensible-utils_0.0.24_all.deb ... Unpacking sensible-utils (0.0.24) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../02-libmagic-mgc_1%3a5.45-3+b1_arm64.deb ... Unpacking libmagic-mgc (1:5.45-3+b1) ... Selecting previously unselected package libmagic1t64:arm64. Preparing to unpack .../03-libmagic1t64_1%3a5.45-3+b1_arm64.deb ... Unpacking libmagic1t64:arm64 (1:5.45-3+b1) ... Selecting previously unselected package file. Preparing to unpack .../04-file_1%3a5.45-3+b1_arm64.deb ... Unpacking file (1:5.45-3+b1) ... Selecting previously unselected package gettext-base. Preparing to unpack .../05-gettext-base_0.22.5-4_arm64.deb ... Unpacking gettext-base (0.22.5-4) ... Selecting previously unselected package libuchardet0:arm64. Preparing to unpack .../06-libuchardet0_0.0.8-1+b2_arm64.deb ... Unpacking libuchardet0:arm64 (0.0.8-1+b2) ... Selecting previously unselected package groff-base. Preparing to unpack .../07-groff-base_1.23.0-7_arm64.deb ... Unpacking groff-base (1.23.0-7) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../08-bsdextrautils_2.40.4-1_arm64.deb ... Unpacking bsdextrautils (2.40.4-1) ... Selecting previously unselected package libpipeline1:arm64. Preparing to unpack .../09-libpipeline1_1.5.8-1_arm64.deb ... Unpacking libpipeline1:arm64 (1.5.8-1) ... Selecting previously unselected package man-db. Preparing to unpack .../10-man-db_2.13.0-1_arm64.deb ... Unpacking man-db (2.13.0-1) ... Selecting previously unselected package m4. Preparing to unpack .../11-m4_1.4.19-5_arm64.deb ... Unpacking m4 (1.4.19-5) ... Selecting previously unselected package autoconf. Preparing to unpack .../12-autoconf_2.72-3_all.deb ... Unpacking autoconf (2.72-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../13-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../14-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../15-autopoint_0.22.5-4_all.deb ... Unpacking autopoint (0.22.5-4) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../16-libdebhelper-perl_13.23_all.deb ... Unpacking libdebhelper-perl (13.23) ... Selecting previously unselected package libtool. Preparing to unpack .../17-libtool_2.5.4-2_all.deb ... Unpacking libtool (2.5.4-2) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../18-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../19-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.14.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.14.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../21-dh-strip-nondeterminism_1.14.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.14.0-1) ... Selecting previously unselected package libelf1t64:arm64. Preparing to unpack .../22-libelf1t64_0.192-4_arm64.deb ... Unpacking libelf1t64:arm64 (0.192-4) ... Selecting previously unselected package dwz. Preparing to unpack .../23-dwz_0.15-1+b1_arm64.deb ... Unpacking dwz (0.15-1+b1) ... Selecting previously unselected package libunistring5:arm64. Preparing to unpack .../24-libunistring5_1.3-1_arm64.deb ... Unpacking libunistring5:arm64 (1.3-1) ... Selecting previously unselected package libicu72:arm64. Preparing to unpack .../25-libicu72_72.1-6_arm64.deb ... Unpacking libicu72:arm64 (72.1-6) ... Selecting previously unselected package libxml2:arm64. Preparing to unpack .../26-libxml2_2.12.7+dfsg+really2.9.14-0.2+b1_arm64.deb ... Unpacking libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.2+b1) ... Selecting previously unselected package gettext. Preparing to unpack .../27-gettext_0.22.5-4_arm64.deb ... Unpacking gettext (0.22.5-4) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../28-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../29-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../30-debhelper_13.23_all.deb ... Unpacking debhelper (13.23) ... Selecting previously unselected package libconfig-tiny-perl. Preparing to unpack .../31-libconfig-tiny-perl_2.30-1_all.deb ... Unpacking libconfig-tiny-perl (2.30-1) ... Selecting previously unselected package dh-ocaml. Preparing to unpack .../32-dh-ocaml_2.4_all.deb ... Unpacking dh-ocaml (2.4) ... Selecting previously unselected package python3-autocommand. Preparing to unpack .../33-python3-autocommand_2.2.2-3_all.deb ... Unpacking python3-autocommand (2.2.2-3) ... Selecting previously unselected package python3-more-itertools. Preparing to unpack .../34-python3-more-itertools_10.6.0-1_all.deb ... Unpacking python3-more-itertools (10.6.0-1) ... Selecting previously unselected package python3-typing-extensions. Preparing to unpack .../35-python3-typing-extensions_4.12.2-2_all.deb ... Unpacking python3-typing-extensions (4.12.2-2) ... Selecting previously unselected package python3-typeguard. Preparing to unpack .../36-python3-typeguard_4.4.1-1_all.deb ... Unpacking python3-typeguard (4.4.1-1) ... Selecting previously unselected package python3-inflect. Preparing to unpack .../37-python3-inflect_7.3.1-2_all.deb ... Unpacking python3-inflect (7.3.1-2) ... Selecting previously unselected package python3-jaraco.context. Preparing to unpack .../38-python3-jaraco.context_6.0.0-1_all.deb ... Unpacking python3-jaraco.context (6.0.0-1) ... Selecting previously unselected package python3-jaraco.functools. Preparing to unpack .../39-python3-jaraco.functools_4.1.0-1_all.deb ... Unpacking python3-jaraco.functools (4.1.0-1) ... Selecting previously unselected package python3-pkg-resources. Preparing to unpack .../40-python3-pkg-resources_75.6.0-1_all.deb ... Unpacking python3-pkg-resources (75.6.0-1) ... Selecting previously unselected package python3-jaraco.text. Preparing to unpack .../41-python3-jaraco.text_4.0.0-1_all.deb ... Unpacking python3-jaraco.text (4.0.0-1) ... Selecting previously unselected package python3-zipp. Preparing to unpack .../42-python3-zipp_3.21.0-1_all.deb ... Unpacking python3-zipp (3.21.0-1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../43-python3-setuptools_75.6.0-1_all.deb ... Unpacking python3-setuptools (75.6.0-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../44-dh-python_6.20250108_all.deb ... Unpacking dh-python (6.20250108) ... Selecting previously unselected package libstdlib-ocaml. Preparing to unpack .../45-libstdlib-ocaml_5.2.0-3_arm64.deb ... Unpacking libstdlib-ocaml (5.2.0-3) ... Selecting previously unselected package libstdlib-ocaml-dev. Preparing to unpack .../46-libstdlib-ocaml-dev_5.2.0-3_arm64.deb ... Unpacking libstdlib-ocaml-dev (5.2.0-3) ... Selecting previously unselected package libcompiler-libs-ocaml-dev. Preparing to unpack .../47-libcompiler-libs-ocaml-dev_5.2.0-3_arm64.deb ... Unpacking libcompiler-libs-ocaml-dev (5.2.0-3) ... Selecting previously unselected package ocaml-base. Preparing to unpack .../48-ocaml-base_5.2.0-3_arm64.deb ... Unpacking ocaml-base (5.2.0-3) ... Selecting previously unselected package libfindlib-ocaml. Preparing to unpack .../49-libfindlib-ocaml_1.9.6-3_arm64.deb ... Unpacking libfindlib-ocaml (1.9.6-3) ... Selecting previously unselected package ocaml-interp. Preparing to unpack .../50-ocaml-interp_5.2.0-3_arm64.deb ... Unpacking ocaml-interp (5.2.0-3) ... Selecting previously unselected package libncurses6:arm64. Preparing to unpack .../51-libncurses6_6.5-2+b1_arm64.deb ... Unpacking libncurses6:arm64 (6.5-2+b1) ... Selecting previously unselected package libncurses-dev:arm64. Preparing to unpack .../52-libncurses-dev_6.5-2+b1_arm64.deb ... Unpacking libncurses-dev:arm64 (6.5-2+b1) ... Selecting previously unselected package libzstd-dev:arm64. Preparing to unpack .../53-libzstd-dev_1.5.6+dfsg-2_arm64.deb ... Unpacking libzstd-dev:arm64 (1.5.6+dfsg-2) ... Selecting previously unselected package ocaml. Preparing to unpack .../54-ocaml_5.2.0-3_arm64.deb ... Unpacking ocaml (5.2.0-3) ... Selecting previously unselected package libmenhir-ocaml-dev. Preparing to unpack .../55-libmenhir-ocaml-dev_20240715+ds-1_arm64.deb ... Unpacking libmenhir-ocaml-dev (20240715+ds-1) ... Selecting previously unselected package libparmap-ocaml. Preparing to unpack .../56-libparmap-ocaml_1.2.5-3+b2_arm64.deb ... Unpacking libparmap-ocaml (1.2.5-3+b2) ... Selecting previously unselected package libparmap-ocaml-dev. Preparing to unpack .../57-libparmap-ocaml-dev_1.2.5-3+b2_arm64.deb ... Unpacking libparmap-ocaml-dev (1.2.5-3+b2) ... Selecting previously unselected package libpkgconf3:arm64. Preparing to unpack .../58-libpkgconf3_1.8.1-4_arm64.deb ... Unpacking libpkgconf3:arm64 (1.8.1-4) ... Selecting previously unselected package libstdcompat-ocaml. Preparing to unpack .../59-libstdcompat-ocaml_20~git20240529-2_arm64.deb ... Unpacking libstdcompat-ocaml (20~git20240529-2) ... Selecting previously unselected package libpyml-ocaml. Preparing to unpack .../60-libpyml-ocaml_20231101-1+b3_arm64.deb ... Unpacking libpyml-ocaml (20231101-1+b3) ... Selecting previously unselected package libstdcompat-ocaml-dev. Preparing to unpack .../61-libstdcompat-ocaml-dev_20~git20240529-2_arm64.deb ... Unpacking libstdcompat-ocaml-dev (20~git20240529-2) ... Selecting previously unselected package libpyml-ocaml-dev. Preparing to unpack .../62-libpyml-ocaml-dev_20231101-1+b3_arm64.deb ... Unpacking libpyml-ocaml-dev (20231101-1+b3) ... Selecting previously unselected package menhir. Preparing to unpack .../63-menhir_20240715+ds-1_arm64.deb ... Unpacking menhir (20240715+ds-1) ... Selecting previously unselected package ocaml-findlib. Preparing to unpack .../64-ocaml-findlib_1.9.6-3_arm64.deb ... Unpacking ocaml-findlib (1.9.6-3) ... Selecting previously unselected package pkgconf-bin. Preparing to unpack .../65-pkgconf-bin_1.8.1-4_arm64.deb ... Unpacking pkgconf-bin (1.8.1-4) ... Selecting previously unselected package pkgconf:arm64. Preparing to unpack .../66-pkgconf_1.8.1-4_arm64.deb ... Unpacking pkgconf:arm64 (1.8.1-4) ... Setting up media-types (10.1.0) ... Setting up libpipeline1:arm64 (1.5.8-1) ... Setting up libkeyutils1:arm64 (1.6.3-4) ... Setting up libicu72:arm64 (72.1-6) ... Setting up libzstd-dev:arm64 (1.5.6+dfsg-2) ... Setting up bsdextrautils (2.40.4-1) ... Setting up libmagic-mgc (1:5.45-3+b1) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libtirpc-common (1.3.4+ds-1.3) ... Setting up libdebhelper-perl (13.23) ... Setting up libmagic1t64:arm64 (1:5.45-3+b1) ... Setting up gettext-base (0.22.5-4) ... Setting up m4 (1.4.19-5) ... Setting up libcom-err2:arm64 (1.47.2-1) ... Setting up file (1:5.45-3+b1) ... Setting up libconfig-tiny-perl (2.30-1) ... Setting up libelf1t64:arm64 (0.192-4) ... Setting up libkrb5support0:arm64 (1.21.3-3) ... Setting up tzdata (2024b-6) ... Current default time zone: 'Etc/UTC' Local time is now: Wed Jan 22 10:20:38 UTC 2025. Universal Time is now: Wed Jan 22 10:20:38 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... Setting up libpkgconf3:arm64 (1.8.1-4) ... Setting up libncurses6:arm64 (6.5-2+b1) ... Setting up libstdlib-ocaml (5.2.0-3) ... Setting up libunistring5:arm64 (1.3-1) ... Setting up autopoint (0.22.5-4) ... Setting up ocaml-base (5.2.0-3) ... Setting up pkgconf-bin (1.8.1-4) ... Setting up libk5crypto3:arm64 (1.21.3-3) ... Setting up autoconf (2.72-3) ... Setting up libstdcompat-ocaml (20~git20240529-2) ... Setting up libffi8:arm64 (3.4.6-1) ... Setting up dwz (0.15-1+b1) ... Setting up sensible-utils (0.0.24) ... Setting up libuchardet0:arm64 (0.0.8-1+b2) ... Setting up netbase (6.4) ... Setting up libkrb5-3:arm64 (1.21.3-3) ... Setting up libparmap-ocaml (1.2.5-3+b2) ... Setting up readline-common (8.2-6) ... Setting up libxml2:arm64 (2.12.7+dfsg+really2.9.14-0.2+b1) ... Setting up menhir (20240715+ds-1) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.14.0-1) ... Setting up libncurses-dev:arm64 (6.5-2+b1) ... Setting up gettext (0.22.5-4) ... Setting up libtool (2.5.4-2) ... Setting up libstdlib-ocaml-dev (5.2.0-3) ... Setting up dh-ocaml (2.4) ... Setting up libfindlib-ocaml (1.9.6-3) ... Setting up pkgconf:arm64 (1.8.1-4) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up libcompiler-libs-ocaml-dev (5.2.0-3) ... Setting up libpyml-ocaml (20231101-1+b3) ... Setting up ocaml-interp (5.2.0-3) ... Setting up ocaml-findlib (1.9.6-3) ... Setting up libgssapi-krb5-2:arm64 (1.21.3-3) ... Setting up libreadline8t64:arm64 (8.2-6) ... Setting up dh-strip-nondeterminism (1.14.0-1) ... Setting up groff-base (1.23.0-7) ... Setting up libtirpc3t64:arm64 (1.3.4+ds-1.3+b1) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up ocaml (5.2.0-3) ... Setting up man-db (2.13.0-1) ... Not building database; man-db/auto-update is not 'true'. Setting up libmenhir-ocaml-dev (20240715+ds-1) ... Setting up libstdcompat-ocaml-dev (20~git20240529-2) ... Setting up libparmap-ocaml-dev (1.2.5-3+b2) ... Setting up libnsl2:arm64 (1.3.0-3+b3) ... Setting up libpython3.12-stdlib:arm64 (3.12.8-5) ... Setting up libpyml-ocaml-dev (20231101-1+b3) ... Setting up python3.12 (3.12.8-5) ... Setting up debhelper (13.23) ... Setting up libpython3-stdlib:arm64 (3.12.8-1) ... Setting up python3 (3.12.8-1) ... Setting up python3-zipp (3.21.0-1) ... Setting up python3-autocommand (2.2.2-3) ... Setting up python3-typing-extensions (4.12.2-2) ... Setting up python3-more-itertools (10.6.0-1) ... Setting up python3-jaraco.functools (4.1.0-1) ... Setting up python3-jaraco.context (6.0.0-1) ... Setting up python3-typeguard (4.4.1-1) ... Setting up python3-inflect (7.3.1-2) ... Setting up python3-jaraco.text (4.0.0-1) ... Setting up python3-pkg-resources (75.6.0-1) ... Setting up python3-setuptools (75.6.0-1) ... Setting up dh-python (6.20250108) ... Processing triggers for libc-bin (2.40-5) ... Reading package lists... Building dependency tree... Reading state information... Reading extended state information... Initializing package states... Writing extended state information... Building tag database... -> Finished parsing the build-deps I: Building the package I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/A99_set_merged_usr starting Not re-configuring usrmerge for trixie I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/A99_set_merged_usr finished hostname: Name or service not known I: Running cd /build/reproducible-path/coccinelle-1.3.0.deb/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../coccinelle_1.3.0.deb-1_source.changes dpkg-buildpackage: info: source package coccinelle dpkg-buildpackage: info: source version 1.3.0.deb-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Ralf Treinen dpkg-source --before-build . dpkg-buildpackage: info: host architecture arm64 debian/rules clean dh clean --with ocaml,python3,autoreconf dh_auto_clean make -j12 distclean make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' CLEAN commons CLEAN globals CLEAN parsing_cocci CLEAN parsing_c CLEAN ctl CLEAN ocaml CLEAN python CLEAN engine CLEAN popl09 CLEAN extra CLEAN spatch CLEAN spgen rm -f coccinelle.cma coccinelle.cmxa coccinelle.a \ coccinelle.cmo coccinelle.cmx coccinelle.o \ coccinelle_modules.cmi coccinelle_modules.cmo \ coccinelle_modules.o coccinelle_modules.cmx CLEAN exposed-module CLEAN .depend CLEAN configure make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' dh_ocamlclean dh_clean debian/rules binary dh binary --with ocaml,python3,autoreconf dh_update_autotools_config dh_autoreconf dh_ocamlinit debian/rules override_dh_auto_configure make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' ./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --enable-ocaml --enable-python --with-python=python3 --enable-opt configure: configuring coccinelle 1.3 in /build/reproducible-path/coccinelle-1.3.0.deb checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes configure: determining version suffix checking for date... /usr/bin/date configure: version suffix set to Thu, 23 Jan 2025 00:20:55 +1400 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 whether make supports the include directive... yes (GNU style) checking for gcc... 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for bash... /bin/sh checking for tar... /usr/bin/tar checking for patch... /usr/bin/patch checking for echo... /usr/bin/echo checking for hevea... no configure: WARNING: hevea not detected -- you will be able to rebuild the documentation checking for patchelf... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for ocamlc... /usr/bin/ocamlc OCaml version is 5.2.0 OCaml library path is /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 checking for ocamlopt... /usr/bin/ocamlopt checking for ocamlc.opt... /usr/bin/ocamlc.opt checking for ocamlopt.opt... /usr/bin/ocamlopt.opt checking for ocaml... /usr/bin/ocaml checking for ocamldep... /usr/bin/ocamldep checking for ocamlmktop... /usr/bin/ocamlmktop checking for ocamlmklib... /usr/bin/ocamlmklib 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 that the OCaml version is at least 4.03... yes checking that the OCaml version is at least 4.08... yes checking that the OCaml version is at least 5.0... yes checking for ocamllex... /usr/bin/ocamllex checking for ocamllex.opt... /usr/bin/ocamllex.opt checking for ocamlyacc... /usr/bin/ocamlyacc checking for ocamlfind... /usr/bin/ocamlfind checking for ocamlprof... /usr/bin/ocamlprof configure: verifying basic ocaml modules configure: coccinelle may use external ocaml libraries in /build/reproducible-path/coccinelle-1.3.0.deb/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 str... found checking for OCaml findlib package compiler-libs... found configure: configuring package dynlink checking for OCaml findlib package dynlink... found configure: configuring package parmap checking for OCaml findlib package parmap... found configure: configuring package stdcompat checking for OCaml findlib package stdcompat... found checking if installed stdcompat provides In_channel... yes configure: verifying optional features checking for menhir... /usr/bin/menhir configure: system menhir will be used checking if menhir supports -O 1... yes configure: configuring package pyml checking for OCaml findlib package pyml... found checking if installed pyml provides Class.init with list of parent classes... yes checking for libpcre... no checking for pdflatex... no configure: pdflatex not found. Trying substitute /build/reproducible-path/coccinelle-1.3.0.deb/setup/fake-pdflatex.sh pdflatex. checking for pdflatex... /build/reproducible-path/coccinelle-1.3.0.deb/setup/fake-pdflatex.sh 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/cocciconfig.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 --sysconfdir=/etc --libdir=/usr/lib --enable-ocaml --enable-python --with-python=python3 --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: yes (overridable with --enable-ocaml) python scripting: yes (overridable with --enable-python) pcre regexes: no (overridable with --enable-pcre-syntax) pcre module: (for local package use --disable-pcre) pcre library: no (requires the libpcre-ocaml-dev package) optimized spatch: yes (overridable with --disable-opt) bash-completion: ${prefix}/share/bash-completion/completions (overridable with --with-bash-completion) ------------------------------------------------------------------------------ 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=/build/reproducible-path/coccinelle-1.3.0.deb ${SHELL} ./scripts/spatch.sh -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 ------------------------------------------------------------------------------ make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' dh_auto_build make -j12 make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' OCAMLDEP commons/ocamlextra/dumper.ml OCAMLDEP commons/commands.ml OCAMLDEP commons/common.ml OCAMLDEP commons/ograph_simple.ml OCAMLDEP commons/ograph_extended.ml OCAMLDEP globals/cocciconfig.ml OCAMLDEP globals/flag.ml OCAMLDEP globals/iteration.ml OCAMLDEP globals/regexp_str.ml OCAMLDEP globals/regexp.ml OCAMLDEP parsing_cocci/flag_parsing_cocci.ml OCAMLDEP parsing_cocci/ast_cocci.ml OCAMLDEP parsing_cocci/ast0_cocci.ml OCAMLDEP parsing_cocci/pretty_print_cocci.ml OCAMLDEP parsing_cocci/visitor_ast0_types.ml OCAMLDEP parsing_cocci/visitor_ast.ml OCAMLDEP parsing_cocci/visitor_ast0.ml OCAMLDEP parsing_cocci/ast0toast.ml OCAMLDEP parsing_cocci/unparse_ast0.ml OCAMLDEP parsing_cocci/unify_ast.ml OCAMLDEP parsing_cocci/compute_lines.ml OCAMLDEP parsing_cocci/iso_pattern.ml OCAMLDEP parsing_cocci/comm_assoc.ml OCAMLDEP parsing_cocci/iso_compile.ml OCAMLDEP parsing_cocci/single_statement.ml OCAMLDEP parsing_cocci/simple_assignments.ml OCAMLDEP parsing_cocci/get_metas.ml OCAMLDEP parsing_cocci/stmtlist.ml OCAMLDEP parsing_cocci/top_level.ml OCAMLDEP parsing_cocci/type_infer.ml OCAMLDEP parsing_cocci/test_exps.ml OCAMLDEP parsing_cocci/unitary_ast0.ml OCAMLDEP parsing_cocci/arity.ml OCAMLDEP parsing_cocci/index.ml OCAMLDEP parsing_cocci/context_neg.ml OCAMLDEP parsing_cocci/adjust_pragmas.ml OCAMLDEP parsing_cocci/insert_plus.ml OCAMLDEP parsing_cocci/function_prototypes.ml OCAMLDEP parsing_cocci/semantic_cocci.ml OCAMLDEP parsing_cocci/data.ml OCAMLDEP parsing_cocci/free_vars.ml OCAMLDEP parsing_cocci/check_meta.ml OCAMLDEP parsing_cocci/safe_for_multi_decls.ml OCAMLDEP parsing_cocci/parse_printf.ml OCAMLDEP parsing_cocci/parse_aux.ml OCAMLDEP parsing_cocci/cleanup_rules.ml OCAMLDEP parsing_cocci/disjdistr.ml OCAMLDEP parsing_cocci/cocci_grep.ml OCAMLDEP parsing_cocci/dpll.ml OCAMLDEP parsing_cocci/get_constants2.ml OCAMLDEP parsing_cocci/id_utils.ml OCAMLDEP parsing_cocci/git_grep.ml OCAMLDEP parsing_cocci/patch_diff.ml OCAMLDEP parsing_cocci/adjacency.ml OCAMLDEP parsing_cocci/commas_on_lists.ml OCAMLDEP parsing_cocci/re_constraints.ml OCAMLDEP parsing_cocci/parse_cocci.ml OCAMLDEP parsing_cocci/command_line.ml OCAMLDEP parsing_cocci/cocci_args.ml OCAMLDEP parsing_c/token_annot.ml OCAMLDEP parsing_c/flag_parsing_c.ml OCAMLDEP parsing_c/parsing_stat.ml OCAMLDEP parsing_c/token_c.ml OCAMLDEP parsing_c/ast_c.ml OCAMLDEP parsing_c/includes.ml OCAMLDEP parsing_c/control_flow_c.ml OCAMLDEP parsing_c/visitor_c.ml OCAMLDEP parsing_c/lib_parsing_c.ml OCAMLDEP parsing_c/includes_cache.ml OCAMLDEP parsing_c/pretty_print_c.ml OCAMLDEP parsing_c/control_flow_c_build.ml OCAMLDEP parsing_c/semantic_c.ml OCAMLDEP parsing_c/lexer_parser.ml OCAMLDEP parsing_c/parse_string_c.ml OCAMLDEP parsing_c/token_helpers.ml OCAMLDEP parsing_c/token_views_c.ml OCAMLDEP parsing_c/cpp_token_c.ml OCAMLDEP parsing_c/parsing_hacks.ml OCAMLDEP parsing_c/cpp_analysis_c.ml OCAMLDEP parsing_c/unparse_cocci.ml OCAMLDEP parsing_c/parsing_recovery_c.ml OCAMLDEP parsing_c/parsing_consistency_c.ml OCAMLDEP parsing_c/danger.ml OCAMLDEP parsing_c/parse_c.ml OCAMLDEP parsing_c/unparse_c.ml OCAMLDEP parsing_c/unparse_hrule.ml OCAMLDEP parsing_c/type_c.ml OCAMLDEP parsing_c/cpp_ast_c.ml OCAMLDEP parsing_c/type_annoter_c.ml OCAMLDEP parsing_c/comment_annotater_c.ml OCAMLDEP parsing_c/compare_c.ml OCAMLDEP parsing_c/test_parsing_c.ml OCAMLDEP ctl/flag_ctl.ml OCAMLDEP ctl/ast_ctl.ml OCAMLDEP ctl/pretty_print_ctl.ml OCAMLDEP ctl/ctl_engine.ml OCAMLDEP ctl/wrapper_ctl.ml OCAMLDEP ocaml/externalanalysis.ml OCAMLDEP ocaml/exposed_modules.ml OCAMLDEP ocaml/coccilib.ml OCAMLDEP ocaml/ocamlcocci_aux.ml OCAMLDEP ocaml/yes_prepare_ocamlcocci.ml OCAMLDEP ocaml/prepare_ocamlcocci.ml OCAMLDEP ocaml/run_ocamlcocci.ml OCAMLDEP python/pycocci_aux.ml OCAMLDEP python/yes_pycocci.ml OCAMLDEP python/pycocci.ml OCAMLDEP engine/flag_matcher.ml OCAMLDEP engine/lib_engine.ml OCAMLDEP engine/pretty_print_engine.ml OCAMLDEP engine/check_exhaustive_pattern.ml OCAMLDEP engine/check_reachability.ml OCAMLDEP engine/c_vs_c.ml OCAMLDEP engine/isomorphisms_c_c.ml OCAMLDEP engine/cocci_vs_c.ml OCAMLDEP engine/pattern_c.ml OCAMLDEP engine/transformation_c.ml OCAMLDEP engine/asttomember.ml OCAMLDEP engine/asttoctl2.ml OCAMLDEP engine/ctltotex.ml OCAMLDEP engine/postprocess_transinfo.ml OCAMLDEP engine/ctlcocci_integration.ml OCAMLDEP popl09/ast_popl.ml OCAMLDEP popl09/asttopopl.ml OCAMLDEP popl09/insert_quantifiers.ml OCAMLDEP popl09/pretty_print_popl.ml OCAMLDEP popl09/flag_popl.ml OCAMLDEP popl09/popltoctl.ml OCAMLDEP popl09/popl.ml OCAMLDEP extra/classic_patch.ml OCAMLDEP extra/maintainers.ml OCAMLDEP extra/kbuild.ml OCAMLDEP flag_cocci.ml OCAMLDEP cocci.ml OCAMLDEP testing.ml OCAMLDEP read_options.ml OCAMLDEP enter.ml OCAMLDEP main.ml OCAMLDEP tools/spgen/source/globals.ml OCAMLDEP tools/spgen/source/ast_tostring.ml OCAMLDEP tools/spgen/source/detect_patch.ml OCAMLDEP tools/spgen/source/meta_variable.ml OCAMLDEP tools/spgen/source/snapshot.ml OCAMLDEP tools/spgen/source/user_input.ml OCAMLDEP tools/spgen/source/position_generator.ml OCAMLDEP tools/spgen/source/disj_generator.ml OCAMLDEP tools/spgen/source/rule_body.ml OCAMLDEP tools/spgen/source/rule_header.ml OCAMLDEP tools/spgen/source/context_rule.ml OCAMLDEP tools/spgen/source/script_rule.ml OCAMLDEP tools/spgen/source/file_transform.ml OCAMLDEP tools/spgen/source/spgen_interactive.ml OCAMLDEP tools/spgen/source/spgen_config.ml OCAMLDEP tools/spgen/source/spgen.ml OCAMLDEP tools/spgen/source/spgen_test.ml OCAMLDEP tools/spgen/source/main.ml OCAMLLEX parsing_cocci/lexer_cocci.mll OCAMLLEX parsing_cocci/lexer_cli.mll OCAMLLEX parsing_cocci/lexer_script.mll OCAMLLEX parsing_c/lexer_c.mll OCAMLLEX tools/spgen/source/spgen_lexer.mll OCAMLYACC parsing_c/parser_c.mly OCAMLDEP commons/ocamlextra/dumper.mli OCAMLDEP commons/commands.mli 14 states, 681 transitions, table size 2808 bytes 27 states, 322 transitions, table size 1450 bytes OCAMLDEP commons/common.mli OCAMLDEP commons/ograph_simple.mli OCAMLDEP commons/ograph_extended.mli OCAMLDEP globals/cocciconfig.mli OCAMLDEP globals/flag.mli OCAMLDEP globals/iteration.mli 143 states, 8123 transitions, table size 33350 bytes 23641 additional bytes used for bindings OCAMLDEP globals/regexp_str.mli OCAMLDEP globals/regexp.mli OCAMLDEP parsing_cocci/flag_parsing_cocci.mli OCAMLDEP parsing_cocci/ast_cocci.mli OCAMLDEP parsing_cocci/ast0_cocci.mli 404 states, 8859 transitions, table size 37860 bytes 4129 additional bytes used for bindings OCAMLDEP parsing_cocci/pretty_print_cocci.mli OCAMLDEP parsing_cocci/visitor_ast0_types.mli OCAMLDEP parsing_cocci/visitor_ast.mli OCAMLDEP parsing_cocci/visitor_ast0.mli OCAMLDEP parsing_cocci/ast0toast.mli OCAMLDEP parsing_cocci/unparse_ast0.mli OCAMLDEP parsing_cocci/unify_ast.mli OCAMLDEP parsing_cocci/compute_lines.mli OCAMLDEP parsing_cocci/iso_pattern.mli OCAMLDEP parsing_cocci/comm_assoc.mli 408 states, 16889 transitions, table size 70004 bytes 10655 additional bytes used for bindings OCAMLDEP parsing_cocci/iso_compile.mli OCAMLDEP parsing_cocci/single_statement.mli OCAMLDEP parsing_cocci/simple_assignments.mli OCAMLDEP parsing_cocci/get_metas.mli OCAMLDEP parsing_cocci/stmtlist.mli OCAMLDEP parsing_cocci/top_level.mli OCAMLDEP parsing_cocci/type_infer.mli OCAMLDEP parsing_cocci/test_exps.mli OCAMLDEP parsing_cocci/unitary_ast0.mli OCAMLDEP parsing_cocci/arity.mli OCAMLDEP parsing_cocci/index.mli OCAMLDEP parsing_cocci/context_neg.mli OCAMLDEP parsing_cocci/adjust_pragmas.mli OCAMLDEP parsing_cocci/insert_plus.mli OCAMLDEP parsing_cocci/function_prototypes.mli OCAMLDEP parsing_cocci/semantic_cocci.mli OCAMLDEP parsing_cocci/data.mli OCAMLDEP parsing_cocci/free_vars.mli OCAMLDEP parsing_cocci/check_meta.mli OCAMLDEP parsing_cocci/safe_for_multi_decls.mli OCAMLDEP parsing_cocci/parse_printf.mli OCAMLDEP parsing_cocci/parse_aux.mli OCAMLDEP parsing_cocci/cleanup_rules.mli OCAMLDEP parsing_cocci/disjdistr.mli OCAMLDEP parsing_cocci/cocci_grep.mli OCAMLDEP parsing_cocci/dpll.mli OCAMLDEP parsing_cocci/get_constants2.mli OCAMLDEP parsing_cocci/id_utils.mli OCAMLDEP parsing_cocci/git_grep.mli OCAMLDEP parsing_cocci/patch_diff.mli OCAMLDEP parsing_cocci/adjacency.mli OCAMLDEP parsing_cocci/commas_on_lists.mli OCAMLDEP parsing_cocci/re_constraints.mli OCAMLDEP parsing_cocci/parse_cocci.mli OCAMLDEP parsing_cocci/command_line.mli OCAMLDEP parsing_cocci/cocci_args.mli OCAMLDEP parsing_c/token_annot.mli OCAMLDEP parsing_c/flag_parsing_c.mli OCAMLDEP parsing_c/parsing_stat.mli OCAMLDEP parsing_c/token_c.mli OCAMLDEP parsing_c/ast_c.mli OCAMLDEP parsing_c/includes.mli OCAMLDEP parsing_c/control_flow_c.mli OCAMLDEP parsing_c/visitor_c.mli OCAMLDEP parsing_c/lib_parsing_c.mli OCAMLDEP parsing_c/includes_cache.mli OCAMLDEP parsing_c/pretty_print_c.mli OCAMLDEP parsing_c/control_flow_c_build.mli OCAMLDEP parsing_c/semantic_c.mli OCAMLDEP parsing_c/lexer_parser.mli OCAMLDEP parsing_c/parse_string_c.mli OCAMLDEP parsing_c/token_helpers.mli OCAMLDEP parsing_c/token_views_c.mli OCAMLDEP parsing_c/cpp_token_c.mli OCAMLDEP parsing_c/parsing_hacks.mli OCAMLDEP parsing_c/cpp_analysis_c.mli OCAMLDEP parsing_c/unparse_cocci.mli OCAMLDEP parsing_c/parsing_recovery_c.mli OCAMLDEP parsing_c/parsing_consistency_c.mli OCAMLDEP parsing_c/danger.mli OCAMLDEP parsing_c/parse_c.mli OCAMLDEP parsing_c/unparse_c.mli OCAMLDEP parsing_c/unparse_hrule.mli OCAMLDEP parsing_c/type_c.mli OCAMLDEP parsing_c/cpp_ast_c.mli OCAMLDEP parsing_c/type_annoter_c.mli OCAMLDEP parsing_c/comment_annotater_c.mli OCAMLDEP parsing_c/compare_c.mli OCAMLDEP parsing_c/test_parsing_c.mli OCAMLDEP ctl/flag_ctl.mli OCAMLDEP ctl/ast_ctl.mli OCAMLDEP ctl/pretty_print_ctl.mli OCAMLDEP ctl/ctl_engine.mli OCAMLDEP ctl/wrapper_ctl.mli OCAMLDEP ocaml/externalanalysis.mli OCAMLDEP ocaml/exposed_modules.mli OCAMLDEP ocaml/coccilib.mli OCAMLDEP ocaml/ocamlcocci_aux.mli OCAMLDEP ocaml/yes_prepare_ocamlcocci.mli OCAMLDEP ocaml/prepare_ocamlcocci.mli OCAMLDEP ocaml/run_ocamlcocci.mli OCAMLDEP python/pycocci_aux.mli OCAMLDEP python/yes_pycocci.mli OCAMLDEP python/pycocci.mli OCAMLDEP engine/flag_matcher.mli OCAMLDEP engine/lib_engine.mli OCAMLDEP engine/pretty_print_engine.mli OCAMLDEP engine/check_exhaustive_pattern.mli OCAMLDEP engine/check_reachability.mli OCAMLDEP engine/c_vs_c.mli OCAMLDEP engine/isomorphisms_c_c.mli OCAMLDEP engine/cocci_vs_c.mli OCAMLDEP engine/pattern_c.mli OCAMLDEP engine/transformation_c.mli OCAMLDEP engine/asttomember.mli OCAMLDEP engine/asttoctl2.mli OCAMLDEP engine/ctltotex.mli OCAMLDEP engine/postprocess_transinfo.mli OCAMLDEP engine/ctlcocci_integration.mli OCAMLDEP popl09/ast_popl.mli OCAMLDEP popl09/asttopopl.mli OCAMLDEP popl09/insert_quantifiers.mli OCAMLDEP popl09/pretty_print_popl.mli OCAMLDEP popl09/flag_popl.mli OCAMLDEP popl09/popltoctl.mli OCAMLDEP popl09/popl.mli OCAMLDEP extra/classic_patch.mli OCAMLDEP extra/kbuild.mli OCAMLDEP extra/maintainers.mli OCAMLDEP flag_cocci.mli OCAMLDEP cocci.mli OCAMLDEP testing.mli OCAMLDEP read_options.mli OCAMLDEP enter.mli OCAMLDEP main.mli OCAMLDEP tools/spgen/source/globals.mli OCAMLDEP tools/spgen/source/ast_tostring.mli OCAMLDEP tools/spgen/source/detect_patch.mli OCAMLDEP tools/spgen/source/meta_variable.mli OCAMLDEP tools/spgen/source/snapshot.mli OCAMLDEP tools/spgen/source/user_input.mli OCAMLDEP tools/spgen/source/position_generator.mli OCAMLDEP tools/spgen/source/disj_generator.mli OCAMLDEP tools/spgen/source/rule_body.mli OCAMLDEP tools/spgen/source/rule_header.mli OCAMLDEP tools/spgen/source/context_rule.mli OCAMLDEP tools/spgen/source/script_rule.mli OCAMLDEP tools/spgen/source/file_transform.mli OCAMLDEP tools/spgen/source/spgen_interactive.mli OCAMLDEP tools/spgen/source/spgen_config.mli OCAMLDEP tools/spgen/source/spgen.mli OCAMLDEP tools/spgen/source/spgen_test.mli OCAMLDEP tools/spgen/source/main.mli OCAMLDEP parsing_cocci/lexer_cocci.mli OCAMLDEP parsing_cocci/lexer_cli.mli OCAMLDEP parsing_cocci/lexer_script.mli OCAMLDEP parsing_c/lexer_c.mli OCAMLDEP tools/spgen/source/spgen_lexer.mli OCAMLDEP parsing_c/parser_c.mli /usr/bin/menhir --ocamldep "/usr/bin/ocamldep -I commons/ocamlextra -I commons -I globals -I parsing_cocci -I parsing_c -I ctl -I ocaml -I python -I engine -I popl09 -I extra -I tools/spgen/source/ -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0/pyml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0/parmap -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0/stdcompat -I +str -I +unix -I +dynlink -I +compiler-libs -ml-synonym .mll -ml-synonym .mly -mli-synonym .ml -mli-synonym .mll -mli-synonym .mly" --depend parsing_cocci/parser_cocci_menhir.mly >parsing_cocci/parser_cocci_menhir.mly.d || (rm parsing_cocci/parser_cocci_menhir.mly.d; false) OCAMLDEP parsing_cocci/lexer_cocci.ml OCAMLDEP parsing_cocci/lexer_script.ml OCAMLDEP parsing_cocci/lexer_cli.ml OCAMLDEP parsing_c/lexer_c.ml OCAMLDEP tools/spgen/source/spgen_lexer.ml OCAMLDEP parsing_c/parser_c.ml OCAMLC commons/ocamlextra/dumper.mli OCAMLC commons/commands.mli OCAMLC commons/common.mli OCAMLC globals/iteration.mli OCAMLC globals/cocciconfig.mli OCAMLC globals/flag.mli OCAMLC globals/regexp_str.mli OCAMLC globals/regexp.mli OCAMLC parsing_cocci/flag_parsing_cocci.mli OCAMLC parsing_cocci/semantic_cocci.mli OCAMLC parsing_cocci/parse_printf.mli OCAMLC parsing_cocci/lexer_cli.mli OCAMLC parsing_cocci/cocci_grep.mli OCAMLC parsing_cocci/dpll.mli OCAMLC parsing_cocci/git_grep.mli OCAMLC parsing_cocci/patch_diff.mli OCAMLC parsing_cocci/command_line.mli OCAMLC parsing_cocci/cocci_args.mli OCAMLC parsing_c/flag_parsing_c.mli OCAMLC parsing_c/token_annot.mli OCAMLC ctl/flag_ctl.mli OCAMLC ctl/ast_ctl.mli OCAMLC engine/flag_matcher.mli OCAMLC engine/check_exhaustive_pattern.mli OCAMLC popl09/flag_popl.mli OCAMLC flag_cocci.mli OCAMLC read_options.mli OCAMLC enter.mli OCAMLC main.mli OCAMLC tools/spgen/source/spgen.mli OCAMLC tools/spgen/source/spgen_lexer.mli OCAMLC tools/spgen/source/spgen_test.mli OCAMLC tools/spgen/source/main.mli cp globals/regexp.cmi ocaml/regexp.cmi cp globals/cocciconfig.cmi ocaml/cocciconfig.cmi cp globals/flag.cmi ocaml/flag.cmi cp parsing_c/flag_parsing_c.cmi ocaml/flag_parsing_c.cmi cp globals/iteration.cmi ocaml/iteration.cmi cp commons/commands.cmi ocaml/commands.cmi cp commons/common.cmi ocaml/common.cmi cp commons/ocamlextra/dumper.cmi ocaml/dumper.cmi OCAMLC globals/regexp.ml OCAMLC globals/cocciconfig.ml OCAMLC globals/flag.ml OCAMLC parsing_c/flag_parsing_c.ml OCAMLC commons/commands.ml OCAMLC globals/iteration.ml OCAMLC commons/common.ml OCAMLC commons/ocamlextra/dumper.ml OCAMLOPT commons/ocamlextra/dumper.ml OCAMLOPT commons/commands.ml OCAMLC commons/ograph_simple.mli OCAMLC commons/ograph_extended.mli OCAMLOPT globals/cocciconfig.ml OCAMLOPT globals/regexp_str.ml OCAMLOPT parsing_cocci/flag_parsing_cocci.ml OCAMLC parsing_cocci/ast_cocci.mli OCAMLOPT parsing_cocci/semantic_cocci.ml OCAMLOPT parsing_cocci/lexer_cli.ml OCAMLOPT parsing_cocci/cocci_args.ml OCAMLOPT parsing_c/token_annot.ml OCAMLOPT parsing_c/flag_parsing_c.ml OCAMLC parsing_c/parsing_stat.mli OCAMLC parsing_c/token_c.mli OCAMLC parsing_c/semantic_c.mli OCAMLC parsing_c/compare_c.mli OCAMLC parsing_c/test_parsing_c.mli OCAMLOPT ctl/flag_ctl.ml OCAMLOPT ctl/ast_ctl.ml OCAMLC ctl/pretty_print_ctl.mli OCAMLC ctl/ctl_engine.mli OCAMLOPT engine/flag_matcher.ml OCAMLOPT popl09/flag_popl.ml OCAMLC extra/classic_patch.mli OCAMLC extra/kbuild.mli OCAMLC extra/maintainers.mli OCAMLOPT flag_cocci.ml OCAMLC testing.mli OCAMLC tools/spgen/source/globals.mli OCAMLC tools/spgen/source/ast_tostring.mli OCAMLOPT tools/spgen/source/spgen_lexer.ml cp parsing_c/token_c.cmi ocaml/token_c.cmi cp parsing_cocci/ast_cocci.cmi ocaml/ast_cocci.cmi cp globals/regexp.cmo ocaml/regexp.cmo cp globals/cocciconfig.cmo ocaml/cocciconfig.cmo OCAMLC parsing_c/token_c.ml cp globals/flag.cmo ocaml/flag.cmo cp parsing_c/flag_parsing_c.cmo ocaml/flag_parsing_c.cmo cp globals/iteration.cmo ocaml/iteration.cmo cp commons/commands.cmo ocaml/commands.cmo cp commons/ocamlextra/dumper.cmo ocaml/dumper.cmo cp globals/cocciconfig.cmx ocaml/cocciconfig.cmx OCAMLC parsing_cocci/ast_cocci.ml cp parsing_c/flag_parsing_c.cmx ocaml/flag_parsing_c.cmx cp commons/commands.cmx ocaml/commands.cmx cp commons/ocamlextra/dumper.cmx ocaml/dumper.cmx OCAMLOPT commons/common.ml OCAMLOPT globals/flag.ml OCAMLOPT globals/regexp.ml OCAMLC parsing_cocci/ast0_cocci.mli OCAMLC parsing_cocci/pretty_print_cocci.mli OCAMLC parsing_cocci/visitor_ast.mli OCAMLC parsing_cocci/stmtlist.mli OCAMLC parsing_cocci/safe_for_multi_decls.mli OCAMLC parsing_cocci/cleanup_rules.mli OCAMLC parsing_cocci/disjdistr.mli OCAMLC parsing_cocci/get_constants2.mli OCAMLC parsing_cocci/re_constraints.mli OCAMLC parsing_c/ast_c.mli OCAMLC ctl/wrapper_ctl.mli OCAMLC ocaml/yes_prepare_ocamlcocci.mli OCAMLC ocaml/prepare_ocamlcocci.mli cp parsing_c/token_c.cmo ocaml/token_c.cmo OCAMLC popl09/ast_popl.mli cp globals/regexp.cmx ocaml/regexp.cmx cp globals/flag.cmx ocaml/flag.cmx OCAMLC parsing_cocci/free_vars.mli OCAMLOPT parsing_cocci/parse_printf.ml OCAMLC parsing_cocci/id_utils.mli OCAMLC parsing_cocci/visitor_ast0_types.mli OCAMLC parsing_cocci/ast0toast.mli OCAMLC parsing_cocci/unparse_ast0.mli OCAMLC parsing_cocci/unify_ast.mli OCAMLC parsing_cocci/compute_lines.mli OCAMLC parsing_cocci/comm_assoc.mli OCAMLC parsing_cocci/single_statement.mli OCAMLC parsing_cocci/simple_assignments.mli OCAMLC parsing_cocci/get_metas.mli OCAMLC parsing_cocci/top_level.mli OCAMLC parsing_cocci/type_infer.mli OCAMLC parsing_cocci/test_exps.mli OCAMLC parsing_cocci/unitary_ast0.mli OCAMLC parsing_cocci/arity.mli OCAMLC parsing_cocci/index.mli OCAMLC parsing_cocci/context_neg.mli OCAMLC parsing_cocci/adjust_pragmas.mli OCAMLC parsing_cocci/insert_plus.mli OCAMLC parsing_cocci/function_prototypes.mli OCAMLC parsing_cocci/data.mli OCAMLC parsing_cocci/check_meta.mli OCAMLC parsing_cocci/adjacency.mli OCAMLC parsing_cocci/commas_on_lists.mli OCAMLC parsing_cocci/parse_cocci.mli OCAMLC parsing_c/includes.mli OCAMLC parsing_c/control_flow_c.mli OCAMLC parsing_c/includes_cache.mli OCAMLC parsing_c/lexer_parser.mli OCAMLC parsing_c/parser_c.mli OCAMLC parsing_c/unparse_cocci.mli OCAMLC parsing_c/parsing_consistency_c.mli OCAMLC parsing_c/danger.mli OCAMLC parsing_c/unparse_hrule.mli OCAMLC parsing_c/type_c.mli OCAMLC parsing_c/type_annoter_c.mli OCAMLC ocaml/externalanalysis.mli OCAMLC ocaml/ocamlcocci_aux.mli OCAMLC ocaml/run_ocamlcocci.mli OCAMLC python/pycocci_aux.mli OCAMLC python/pycocci.mli OCAMLC engine/lib_engine.mli OCAMLC engine/check_reachability.mli OCAMLC engine/c_vs_c.mli OCAMLC engine/isomorphisms_c_c.mli OCAMLC engine/cocci_vs_c.mli OCAMLC popl09/asttopopl.mli OCAMLC popl09/insert_quantifiers.mli OCAMLC popl09/pretty_print_popl.mli OCAMLC tools/spgen/source/detect_patch.mli OCAMLC tools/spgen/source/meta_variable.mli OCAMLC tools/spgen/source/file_transform.mli cp parsing_c/ast_c.cmi ocaml/ast_c.cmi cp parsing_c/parser_c.cmi ocaml/parser_c.cmi cp parsing_cocci/ast0_cocci.cmi ocaml/ast0_cocci.cmi cp commons/common.cmo ocaml/common.cmo cp parsing_cocci/ast_cocci.cmo ocaml/ast_cocci.cmo OCAMLC parsing_c/ast_c.ml OCAMLC parsing_cocci/ast0_cocci.ml OCAMLC parsing_cocci/visitor_ast0.mli OCAMLC parsing_cocci/iso_pattern.mli OCAMLC parsing_cocci/parse_aux.mli OCAMLC parsing_c/visitor_c.mli OCAMLC parsing_c/pretty_print_c.mli OCAMLC parsing_c/control_flow_c_build.mli OCAMLC parsing_c/lexer_c.mli OCAMLC parsing_c/parse_string_c.mli OCAMLC parsing_c/token_helpers.mli OCAMLC parsing_c/token_views_c.mli OCAMLC parsing_c/parsing_recovery_c.mli OCAMLC parsing_c/comment_annotater_c.mli OCAMLC engine/pretty_print_engine.mli OCAMLC engine/pattern_c.mli OCAMLC engine/transformation_c.mli OCAMLC engine/asttomember.mli OCAMLC engine/asttoctl2.mli OCAMLC engine/ctltotex.mli OCAMLC engine/postprocess_transinfo.mli OCAMLC engine/ctlcocci_integration.mli OCAMLC tools/spgen/source/snapshot.mli OCAMLC tools/spgen/source/rule_body.mli OCAMLC tools/spgen/source/user_input.mli OCAMLC tools/spgen/source/rule_header.mli OCAMLC tools/spgen/source/context_rule.mli cp parsing_c/lexer_c.cmi ocaml/lexer_c.cmi cp parsing_c/pretty_print_c.cmi ocaml/pretty_print_c.cmi cp parsing_c/visitor_c.cmi ocaml/visitor_c.cmi OCAMLC parsing_c/lexer_c.ml OCAMLC parsing_c/visitor_c.ml OCAMLC parsing_cocci/iso_compile.mli MENHIR parsing_cocci/parser_cocci_menhir.mly OCAMLC parsing_c/lib_parsing_c.mli OCAMLC parsing_c/cpp_token_c.mli OCAMLC popl09/popltoctl.mli OCAMLC popl09/popl.mli OCAMLC tools/spgen/source/position_generator.mli OCAMLC tools/spgen/source/disj_generator.mli OCAMLC tools/spgen/source/script_rule.mli OCAMLC tools/spgen/source/spgen_interactive.mli OCAMLC tools/spgen/source/spgen_config.mli cp parsing_c/ast_c.cmo ocaml/ast_c.cmo cp parsing_cocci/ast0_cocci.cmo ocaml/ast0_cocci.cmo OCAMLC parsing_c/parsing_hacks.mli cp parsing_c/lib_parsing_c.cmi ocaml/lib_parsing_c.cmi OCAMLC parsing_c/cpp_analysis_c.mli OCAMLC parsing_c/parse_c.mli OCAMLC parsing_c/parser_c.ml OCAMLC parsing_c/pretty_print_c.ml OCAMLC parsing_c/lib_parsing_c.ml OCAMLC parsing_c/unparse_c.mli OCAMLC parsing_c/cpp_ast_c.mli OCAMLC ocaml/exposed_modules.mli OCAMLC ocaml/coccilib.mli OCAMLC cocci.mli cp parsing_c/parse_c.cmi ocaml/parse_c.cmi OCAMLC parsing_c/parse_c.ml cp parsing_c/lexer_c.cmo ocaml/lexer_c.cmo cp parsing_c/lib_parsing_c.cmo ocaml/lib_parsing_c.cmo cp parsing_c/visitor_c.cmo ocaml/visitor_c.cmo OCAMLOPT commons/ograph_simple.ml OCAMLOPT commons/ograph_extended.ml OCAMLOPT globals/iteration.ml OCAMLOPT parsing_cocci/ast_cocci.ml OCAMLOPT parsing_cocci/cocci_grep.ml OCAMLOPT parsing_cocci/dpll.ml OCAMLOPT parsing_cocci/git_grep.ml OCAMLOPT parsing_cocci/patch_diff.ml OCAMLOPT parsing_cocci/command_line.ml OCAMLOPT parsing_c/parsing_stat.ml OCAMLOPT parsing_c/token_c.ml OCAMLOPT parsing_c/semantic_c.ml OCAMLOPT ctl/pretty_print_ctl.ml OCAMLOPT extra/classic_patch.ml OCAMLOPT extra/kbuild.ml OCAMLOPT extra/maintainers.ml OCAMLOPT read_options.ml cp parsing_c/parse_c.cmo ocaml/parse_c.cmo cp parsing_c/pretty_print_c.cmo ocaml/pretty_print_c.cmo cp parsing_c/token_c.cmx ocaml/token_c.cmx cp globals/iteration.cmx ocaml/iteration.cmx cp commons/common.cmx ocaml/common.cmx OCAMLOPT -o commons/commons.cmxa OCAMLOPT -o globals/globals.cmxa OCAMLOPT ctl/ctl_engine.ml OCAMLOPT -o extra/extra.cmxa cp parsing_c/parser_c.cmo ocaml/parser_c.cmo OCAMLOPT parsing_cocci/ast0_cocci.ml OCAMLOPT parsing_cocci/pretty_print_cocci.ml OCAMLOPT parsing_c/ast_c.ml OCAMLOPT popl09/ast_popl.ml cp parsing_cocci/ast_cocci.cmx ocaml/ast_cocci.cmx OCAMLOPT tools/spgen/source/globals.ml OCAMLOPT tools/spgen/source/ast_tostring.ml OCAMLOPT popl09/insert_quantifiers.ml OCAMLC python/yes_pycocci.mli OCAMLOPT parsing_c/control_flow_c.ml OCAMLOPT parsing_c/includes.ml OCAMLOPT parsing_c/type_c.ml OCAMLOPT parsing_c/lexer_parser.ml OCAMLOPT ocaml/externalanalysis.ml OCAMLOPT engine/isomorphisms_c_c.ml cp parsing_c/ast_c.cmx ocaml/ast_c.cmx cp parsing_cocci/ast0_cocci.cmx ocaml/ast0_cocci.cmx OCAMLOPT parsing_cocci/visitor_ast0_types.ml OCAMLOPT parsing_cocci/visitor_ast.ml OCAMLOPT parsing_cocci/compute_lines.ml OCAMLOPT parsing_cocci/top_level.ml OCAMLOPT parsing_cocci/arity.ml OCAMLOPT parsing_cocci/index.ml OCAMLOPT parsing_cocci/data.ml OCAMLOPT parsing_c/visitor_c.ml OCAMLOPT engine/check_exhaustive_pattern.ml OCAMLOPT parsing_cocci/visitor_ast0.ml OCAMLOPT popl09/asttopopl.ml OCAMLOPT popl09/pretty_print_popl.ml OCAMLOPT ctl/wrapper_ctl.ml OCAMLOPT -o ctl/ctl.cmxa OCAMLOPT engine/lib_engine.ml OCAMLOPT engine/check_reachability.ml OCAMLOPT engine/ctltotex.ml OCAMLOPT parsing_c/lib_parsing_c.ml cp parsing_c/visitor_c.cmx ocaml/visitor_c.cmx OCAMLOPT parsing_c/parsing_consistency_c.ml OCAMLOPT parsing_c/includes_cache.ml cp parsing_c/lib_parsing_c.cmx ocaml/lib_parsing_c.cmx OCAMLOPT parsing_c/pretty_print_c.ml OCAMLOPT parsing_c/danger.ml OCAMLOPT engine/c_vs_c.ml OCAMLOPT parsing_cocci/stmtlist.ml OCAMLOPT parsing_cocci/free_vars.ml OCAMLOPT parsing_cocci/safe_for_multi_decls.ml OCAMLOPT parsing_cocci/cleanup_rules.ml OCAMLOPT parsing_cocci/disjdistr.ml OCAMLOPT parsing_cocci/get_constants2.ml OCAMLOPT parsing_cocci/re_constraints.ml OCAMLOPT engine/asttomember.ml OCAMLOPT parsing_cocci/id_utils.ml OCAMLOPT parsing_c/control_flow_c_build.ml OCAMLOPT parsing_c/parser_c.ml OCAMLOPT parsing_c/unparse_cocci.ml OCAMLOPT ocaml/ocamlcocci_aux.ml OCAMLOPT python/pycocci_aux.ml OCAMLOPT engine/pretty_print_engine.ml cp parsing_c/pretty_print_c.cmx ocaml/pretty_print_c.cmx OCAMLOPT parsing_cocci/ast0toast.ml OCAMLOPT parsing_cocci/iso_compile.ml OCAMLOPT parsing_cocci/simple_assignments.ml OCAMLOPT parsing_cocci/get_metas.ml OCAMLOPT parsing_cocci/test_exps.ml OCAMLOPT parsing_cocci/unitary_ast0.ml OCAMLOPT parsing_cocci/adjust_pragmas.ml OCAMLOPT parsing_cocci/adjacency.ml OCAMLOPT parsing_cocci/commas_on_lists.ml OCAMLOPT engine/asttoctl2.ml OCAMLOPT tools/spgen/source/detect_patch.ml OCAMLOPT parsing_cocci/check_meta.ml OCAMLOPT tools/spgen/source/snapshot.ml OCAMLOPT tools/spgen/source/position_generator.ml OCAMLOPT parsing_c/unparse_hrule.ml OCAMLOPT parsing_cocci/unparse_ast0.ml OCAMLOPT parsing_cocci/unify_ast.ml OCAMLOPT parsing_cocci/type_infer.ml OCAMLOPT tools/spgen/source/meta_variable.ml OCAMLOPT tools/spgen/source/disj_generator.ml OCAMLOPT tools/spgen/source/rule_body.ml OCAMLOPT parsing_c/lexer_c.ml OCAMLOPT parsing_c/parse_string_c.ml OCAMLOPT parsing_c/token_helpers.ml cp parsing_c/parser_c.cmx ocaml/parser_c.cmx OCAMLOPT tools/spgen/source/user_input.ml OCAMLOPT tools/spgen/source/rule_header.ml OCAMLOPT parsing_cocci/context_neg.ml OCAMLOPT parsing_cocci/comm_assoc.ml OCAMLOPT tools/spgen/source/context_rule.ml OCAMLOPT tools/spgen/source/file_transform.ml OCAMLOPT tools/spgen/source/script_rule.ml OCAMLOPT tools/spgen/source/spgen_interactive.ml OCAMLOPT tools/spgen/source/spgen_config.ml OCAMLOPT parsing_cocci/iso_pattern.ml OCAMLOPT parsing_cocci/parse_aux.ml OCAMLOPT parsing_c/token_views_c.ml OCAMLOPT parsing_c/parsing_recovery_c.ml OCAMLOPT parsing_c/unparse_c.ml OCAMLOPT parsing_c/comment_annotater_c.ml cp parsing_c/lexer_c.cmx ocaml/lexer_c.cmx OCAMLOPT parsing_c/cpp_token_c.ml OCAMLOPT popl09/popltoctl.ml OCAMLOPT parsing_c/parsing_hacks.ml OCAMLOPT popl09/popl.ml OCAMLOPT -o popl09/popl09.cmxa OCAMLOPT parsing_cocci/insert_plus.ml OCAMLOPT parsing_c/cpp_analysis_c.ml OCAMLOPT parsing_c/parse_c.ml OCAMLOPT parsing_cocci/single_statement.ml OCAMLOPT parsing_cocci/function_prototypes.ml OCAMLOPT parsing_c/cpp_ast_c.ml cp parsing_c/parse_c.cmx ocaml/parse_c.cmx OCAMLOPT parsing_c/type_annoter_c.ml OCAMLOPT parsing_c/compare_c.ml OCAMLOPT ocaml/exposed_modules.ml OCAMLDEP parsing_cocci/parser_cocci_menhir.ml OCAMLDEP parsing_cocci/parser_cocci_menhir.mli OCAMLC parsing_cocci/parser_cocci_menhir.mli OCAMLC parsing_cocci/lexer_cocci.mli OCAMLC parsing_cocci/lexer_script.mli OCAMLOPT parsing_c/test_parsing_c.ml OCAMLOPT ocaml/coccilib.ml OCAMLOPT -o parsing_c/parsing_c.cmxa OCAMLOPT ocaml/yes_prepare_ocamlcocci.ml OCAMLOPT ocaml/run_ocamlcocci.ml OCAMLOPT python/yes_pycocci.ml OCAMLOPT python/pycocci.ml OCAMLOPT ocaml/prepare_ocamlcocci.ml OCAMLOPT -o python/python.cmxa OCAMLOPT engine/cocci_vs_c.ml OCAMLOPT engine/postprocess_transinfo.ml OCAMLOPT -o ocaml/ocaml.cmxa OCAMLOPT parsing_cocci/parser_cocci_menhir.ml OCAMLOPT engine/transformation_c.ml OCAMLOPT engine/pattern_c.ml OCAMLOPT engine/ctlcocci_integration.ml OCAMLOPT -o engine/engine.cmxa OCAMLOPT parsing_cocci/lexer_cocci.ml OCAMLOPT parsing_cocci/lexer_script.ml OCAMLOPT parsing_cocci/parse_cocci.ml OCAMLOPT -o parsing_cocci/parsing_cocci.cmxa OCAMLOPT cocci.ml OCAMLOPT tools/spgen/source/spgen.ml OCAMLOPT tools/spgen/source/spgen_test.ml OCAMLOPT tools/spgen/source/main.ml OCAMLOPT -o tools/spgen/source/spgen.opt OCAMLOPT testing.ml OCAMLOPT enter.ml OCAMLOPT main.ml OCAMLOPT -o spatch.opt make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' debian/rules override_dh_auto_test-arch make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' /usr/bin/make check || echo "IGNORING FAILED TESTS" make[2]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' ./spatch.opt --testall --no-update-score-file init_defs_builtins: /build/reproducible-path/coccinelle-1.3.0.deb/standard.h 62.res diff = --- tests/62.c +++ /tmp/cocci-output-2180007-2cc1af-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 a3.res diff = --- tests/a3.c +++ /tmp/cocci-output-2180007-5f32de-a3.c @@ -1,5 +1,5 @@ static void a3d_connect() { - a3d->idbus = BUS_GAMEPORT; + a3d->id.bustype = BUS_GAMEPORT; } a3d.res diff = --- tests/a3d.c +++ /tmp/cocci-output-2180007-4b29c3-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 +++ /tmp/cocci-output-2180007-982dc1-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 diff = --- tests/ab.c +++ /tmp/cocci-output-2180007-db3b6f-ab.c @@ -1,5 +1,5 @@ int main () { foo = 5; - a = 12; + b = 12; xxx = 12; } action.res diff = --- tests/action.c +++ /tmp/cocci-output-2180007-3fcbd1-action.c @@ -1,10 +1,8 @@ void work() { if (x) - { - action(el, 1); - return; - } + goto last_action; code(); + last_action: action(el, 1); } add1.res SPECIAL NAMES: adding list_for_each_entry as a iterator diff = --- tests/add1.c +++ /tmp/cocci-output-2180007-2962d0-add1.c @@ -7,6 +7,9 @@ static int create_scheduling_groups(void ret = build_groups(sd, i); } + if (!sd) + return 0; + list_for_each_entry(sd, cfs_ipa_topology, siblings) { ret = build_lower_groups(sd); } addaft.res diff = warning: rule starting on line 1, node 32: c(...)[1,2,10,11,15] in main may be inconsistently modified warning: rule starting on line 1, node 28: [fallthrough][1,2,10,11,13] in main may be inconsistently modified warning: rule starting on line 1, node 25: a(...)[1,2,10,11,12] in main may be inconsistently modified warning: rule starting on line 1, node 30: [after][1,2,10,11,13] in main may be inconsistently modified warning: rule starting on line 1, node 24: {3[1,2,10,11] in main may be inconsistently modified warning: rule starting on line 1, node 21: [whiletrue][1,2,10] in main may be inconsistently modified warning: rule starting on line 1, node 33: }3[1,2,10,11] in main may be inconsistently modified warning: rule starting on line 1, node 27: [then][1,2,10,11,13] in main may be inconsistently modified warning: rule starting on line 1, node 26: if[1,2,10,11,13] in main may be inconsistently modified warning: rule starting on line 1, node 31: statement[1,2,10,11,13,14] in main may be inconsistently modified warning: rule starting on line 1, node 34: [after][1,2,10,11] in main may be inconsistently modified warning: rule starting on line 1, node 29: [endif][1,2,10,11,13] in main may be inconsistently modified warning: rule starting on line 1, node 20: while[1,2,10]* in main may be inconsistently modified --- tests/addaft.c +++ /tmp/cocci-output-2180007-b6797d-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(); } addafterdecl.res diff = --- tests/addafterdecl.c +++ /tmp/cocci-output-2180007-cc40bd-addafterdecl.c @@ -1,4 +1,5 @@ int main () { int x; + f(1, 2, 3); return x; } addbefore.res diff = --- tests/addbefore.c +++ /tmp/cocci-output-2180007-62fbce-addbefore.c @@ -1,5 +1,6 @@ int main () { if (x) { + foo(); goto out; } after(); addbeforeafter.res diff = --- tests/addbeforeafter.c +++ /tmp/cocci-output-2180007-c442d1-addbeforeafter.c @@ -1,6 +1,8 @@ int main () { if (x) { + foo(); goto out; + bar(); } after(); out: addcomm.res diff = --- tests/addcomm.c +++ /tmp/cocci-output-2180007-ac2746-addcomm.c @@ -1,5 +1,9 @@ int main() { - foo(); + foo() + // something + ; bar(); - xxx(); + // something + xxx() + /* something */; } addelse.res diff = --- tests/addelse.c +++ /tmp/cocci-output-2180007-ba1d4f-addelse.c @@ -1,3 +1,2 @@ int main () { - if (x == 12) return 6; } addes.res diff = --- tests/addes.c +++ /tmp/cocci-output-2180007-dc980b-addes.c @@ -1 +1,3 @@ int i; +struct foo { +}; addfield.res diff = --- tests/addfield.c +++ /tmp/cocci-output-2180007-58b1a8-addfield.c @@ -1,4 +1,6 @@ struct i2c_client I = { - .name = E, .foo = 16, + .dev = { + .name = E, + }, }; addfield2.res diff = --- tests/addfield2.c +++ /tmp/cocci-output-2180007-0d9ac2-addfield2.c @@ -1,17 +1,21 @@ struct foo { + int roto; int titi; }; foo() { + roto(); start(); } struct bar { int titi; + int roto; }; bar() { start(); + roto(); } addif.res diff = --- tests/addif.c +++ /tmp/cocci-output-2180007-4830e9-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 +++ /tmp/cocci-output-2180007-129130-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 +++ /tmp/cocci-output-2180007-c456f0-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 +++ /tmp/cocci-output-2180007-241005-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 +++ /tmp/cocci-output-2180007-a44134-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 +++ /tmp/cocci-output-2180007-7812ce-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) { addinc.res diff = --- tests/addinc.c +++ /tmp/cocci-output-2180007-3b998e-addinc.c @@ -1,4 +1,5 @@ #ifndef FOO #define FOO #include +#include #endif addnl.res diff = --- tests/addnl.c +++ /tmp/cocci-output-2180007-1f2d2c-addnl.c @@ -1,5 +1,6 @@ int main () { xxx(); - foo(); + FOO(); + yyy(); } addtoo.res diff = --- tests/addtoo.c +++ /tmp/cocci-output-2180007-2603ce-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 +++ /tmp/cocci-output-2180007-ca7947-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 +++ /tmp/cocci-output-2180007-3fa8d9-after_if.c @@ -1,4 +1,4 @@ #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 +++ /tmp/cocci-output-2180007-0c1578-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 +++ /tmp/cocci-output-2180007-7be948-allex2.c @@ -8,5 +8,5 @@ int main () { } return 15; out: - return 0; + return 100; } allex3.res diff = --- tests/allex3.c +++ /tmp/cocci-output-2180007-e67675-allex3.c @@ -9,5 +9,4 @@ int main () { } return 15; out: - return 0; } andid.res diff = --- tests/andid.c +++ /tmp/cocci-output-2180007-927545-andid.c @@ -1,5 +1,5 @@ int main () { - int frontandback = 12; + int test = 12; int front = 12; int back = 12; } anon.res diff = --- tests/anon.c +++ /tmp/cocci-output-2180007-9989d8-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); } anonfield.res diff = --- tests/anonfield.c +++ /tmp/cocci-output-2180007-8b7b5c-anonfield.c @@ -1,3 +1,3 @@ struct { - int; + bool; }; ar.res diff = --- tests/ar.c +++ /tmp/cocci-output-2180007-034e39-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 +++ /tmp/cocci-output-2180007-12ca6a-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 +++ /tmp/cocci-output-2180007-f805d0-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 +++ /tmp/cocci-output-2180007-bd048e-arparam.c @@ -1,3 +1,8 @@ +int g(int q[1024]) +{ + return 12; +} + int main(int q[1024]) { return 12; } array_init.res SPECIAL NAMES: adding MODULE_PARM as a declarer diff = --- tests/array_init.c +++ /tmp/cocci-output-2180007-74d9e4-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 +++ /tmp/cocci-output-2180007-8bd13c-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 +++ /tmp/cocci-output-2180007-4ba65f-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 +++ /tmp/cocci-output-2180007-40f456-as_stm.c @@ -1,3 +1,5 @@ int main () { +#ifdef BEFORE if (f()) return 15; +#endif } assign_deref_funcall_in_macro_it.res SPECIAL NAMES: adding for_one as a iterator attr_with_arguments.res SPECIAL NAMES: adding aarg as a attribute SPECIAL NAMES: adding aarg2 as a attribute SPECIAL NAMES: adding aarg3 as a attribute warning: line 36: should id be a metavariable? SPECIAL NAMES: adding aarg4 as a attribute diff = --- tests/attr_with_arguments.c +++ /tmp/cocci-output-2180007-d8e0d3-attr_with_arguments.c @@ -1,9 +1,9 @@ -aarg(1,2) int func() { - int id aarg3(1,2); +aarg(1,2) char func() { + long id aarg3(1,2); return 42; } -aarg("not (1,2)") int func() { +aarg("not (1,2)") long func() { return 42; } @@ -11,13 +11,13 @@ int func() { return 42; } -aarg2(arguments) int func() { +aarg2(arguments) short func() { return 42; } -aarg2(1,"2") int func() { +aarg2(1,"2") short func() { return 42; } -void func() aarg4(1,2) { +long func() aarg4(1,2) { } attradd.res diff = --- tests/attradd.c +++ /tmp/cocci-output-2180007-d47446-attradd.c @@ -1,3 +1,5 @@ int main () { - char f; + char __attribute__((aligned(1))) f; } +// some comment +// some other comment attribute_order.res SPECIAL NAMES: adding __att1 as a attribute SPECIAL NAMES: adding __att2 as a attribute SPECIAL NAMES: adding __att3 as a attribute diff = --- tests/attribute_order.c +++ /tmp/cocci-output-2180007-0e8c76-attribute_order.c @@ -1,3 +1,3 @@ -int __att1 * __att2 * __att3 foo() { return 0; } + int __att1 * __att3 * __att2 nochange1() { return 0; } int __att3 * __att1 * __att2 nochange2() { return 0; } attributeb.res warning: line 5: should variable be a metavariable? diff = --- tests/attributeb.c +++ /tmp/cocci-output-2180007-b97ea5-attributeb.c @@ -1,3 +1,3 @@ int main(){ - [[lucky]] int variable; + [[fortunate]] int variable; } attrreplace.res SPECIAL NAMES: adding __att1 as a attribute SPECIAL NAMES: adding __att2 as a attribute SPECIAL NAMES: adding __att3 as a attribute diff = --- tests/attrreplace.c +++ /tmp/cocci-output-2180007-43358d-attrreplace.c @@ -1,4 +1,7 @@ -int __att1 * __att2 * __att3 foo() { aaa(0); } -int __att1 * __att2 * __att3 bar() { return 0; } -int ** xyzbefore() { return 0; } -int ** xyzafter() { return 0; } +int __att3 * __att2 * __att1 reversed() +{ + bbb(0); +} +int * * bar() { return 0; } +__att1 int *__att2*__att3 xyzbefore() { return 0; } +int __att1 *__att2*__att3 xyzafter() { return 0; } attrs2groups.res SPECIAL NAMES: adding NOBUG as a declarer SPECIAL NAMES: adding BUG as a declarer diff = --- tests/attrs2groups.c +++ /tmp/cocci-output-2180007-9d8b0a-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 +++ /tmp/cocci-output-2180007-7dcb30-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 = warning: rule starting on line 1, node 36: foo(...)[1,2,10,11,12,13] in main may be inconsistently modified --- tests/b2.c +++ /tmp/cocci-output-2180007-fd961c-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 diff = --- tests/bad_iso_example.c +++ /tmp/cocci-output-2180007-06352e-bad_iso_example.c @@ -1,4 +1,5 @@ int main() { - if ((x = 3)) return; + x = 3; + if (x) return; } bad_kfree.res diff = --- tests/bad_kfree.c +++ /tmp/cocci-output-2180007-1b672a-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 +++ /tmp/cocci-output-2180007-6646a6-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 +++ /tmp/cocci-output-2180007-8f66fa-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); } badcfg.res diff = --- tests/badcfg.c +++ /tmp/cocci-output-2180007-b47b8d-badcfg.c @@ -3,7 +3,7 @@ const char *netdev_cmd_to_name(enum netd #define N(val) \ case NETDEV_##val: \ return "NETDEV_" __stringify(val); - switch (cmd) { + switch (replacement) { N(UP) N(DOWN) N(PRE_CHANGEADDR) } badexp.res diff = --- tests/badexp.c +++ /tmp/cocci-output-2180007-33181b-badexp.c @@ -1,4 +1,4 @@ int main() { foo(a); - b = a; + b = 3 +a * 27; } badpos.res diff = --- tests/badpos.c +++ /tmp/cocci-output-2180007-183c33-badpos.c @@ -1,7 +1,7 @@ static irqreturn_t elmc_interrupt(int irq, void *dev_id, struct sger_tp *orig_reg_ptr) { - struct pt_regs *reg_ptr = (struct pt_regs *) orig_reg_ptr; + struct pt_regs *reg_ptr = xxx; printk(KERN_ERR "foo", - (int) -(reg_ptr->orig_eax + 2)); + (int) -(xxx->orig_eax + 2)); } badtypedef.res diff = --- tests/badtypedef.c +++ /tmp/cocci-output-2180007-55143b-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 +++ /tmp/cocci-output-2180007-10ac70-badwhen.c @@ -4,7 +4,5 @@ int main () { g(); } int second() { - f(); if (xfoo()) return; - g(); } badzero.res diff = --- tests/badzero.c +++ /tmp/cocci-output-2180007-56a161-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; } bc_1.res warning: f: metavariable i not used in the - or context code exn while in timeout_function befS.res diff = --- tests/befS.c +++ /tmp/cocci-output-2180007-9e01fc-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 +++ /tmp/cocci-output-2180007-03a8b4-before.c @@ -1,4 +1,6 @@ int main () { + blah(); one(); + blah(); foo(); } befored.res diff = --- tests/befored.c +++ /tmp/cocci-output-2180007-4378d3-befored.c @@ -1,4 +1,8 @@ int main() { + foo(); int x; + int zzz; + foo(); int y; + int zzz; } ben.res SPECIAL NAMES: adding GType as a type SPECIAL NAMES: adding GTypeInfo as a type diff = --- tests/ben.c +++ /tmp/cocci-output-2180007-54bfe7-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 +++ /tmp/cocci-output-2180007-b3e140-bigin.c @@ -9,5 +9,6 @@ int main() { if (x) if (x) blah(); + bar(); foo(); } bigrepl.res diff = --- tests/bigrepl.c +++ /tmp/cocci-output-2180007-33f944-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 +++ /tmp/cocci-output-2180007-7f56db-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 SPECIAL NAMES: adding u8 as a type warning: rule starting on line 11: metavariable v not used in the - or context code diff = --- tests/bitfield.c +++ /tmp/cocci-output-2180007-5cf7c9-bitfield.c @@ -1,15 +1,15 @@ struct dvb_frontend { - struct dvb_frontend_ops* ops; + struct dvb_frontend_ops ops; }; typedef struct { - u8 RESET :1; - u8 IDLE :1; - u8 STOP :1; - u8 HIRQ0 :1; - u8 HIRQ1 :1; - u8 na0 :1; - u8 HABAV :1; - u8 na1 :1; + u8 RESET:2; + u8 IDLE:2; + u8 STOP:2; + u8 HIRQ0:2; + u8 HIRQ1:2; + u8 na0:2; + u8 HABAV:2; + u8 na1:2; } bcm3510_register_value; bitfield_matching.res exn while in timeout_function boolr.res SPECIAL NAMES: adding bool as a type (ONCE) already tagged but only removed, so safe diff = --- tests/boolr.c +++ /tmp/cocci-output-2180007-c88408-boolr.c @@ -1,4 +1,3 @@ int main() { - bool i3, i4, i5; int b; } bracebraceline.res diff = --- tests/bracebraceline.c +++ /tmp/cocci-output-2180007-8f01bb-bracebraceline.c @@ -1,6 +1,5 @@ int main () { if (x) { - one(); - two(); + three(); } } braceline.res diff = --- tests/braceline.c +++ /tmp/cocci-output-2180007-9a3f9a-braceline.c @@ -1,6 +1,3 @@ int main () { - if (x) { - one(); - two(); - } + if (x) three(); } braces.res diff = --- tests/braces.c +++ /tmp/cocci-output-2180007-a439d1-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 +++ /tmp/cocci-output-2180007-4ad8dd-branchparen.c @@ -1,6 +1,10 @@ int main () { - if (x) + if (x) { + foo(); xxx(); - else + } + else { + foo(); xxx(); + } } break.res diff = --- tests/break.c +++ /tmp/cocci-output-2180007-2b4154-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; } } } btf.res SPECIAL NAMES: adding BTF as a declarer bug1.res diff = --- tests/bug1.c +++ /tmp/cocci-output-2180007-8a48ff-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 exn while in timeout_function bugon.res diff = --- tests/bugon.c +++ /tmp/cocci-output-2180007-724aad-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 +++ /tmp/cocci-output-2180007-c2a9d2-bus.c @@ -1,5 +1,5 @@ int main () { struct foo *dev; - dev->probe(); - foo(); + c1(); + c2(); } cards.res SPECIAL NAMES: adding MODULE_PARM as a declarer diff = --- tests/cards.c +++ /tmp/cocci-output-2180007-5d2583-cards.c @@ -1,3 +1,3 @@ -MODULE_PARM(io, "1-" __MODULE_STRING(MAX_CARDS) "i"); + int x; caseprint.res diff = --- tests/caseprint.c +++ /tmp/cocci-output-2180007-e2328e-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 +++ /tmp/cocci-output-2180007-70f4c7-cast.c @@ -1,3 +1,2 @@ int main () { - ((struct xxx *)E)->foo = 12; } cast_iso.res diff = --- tests/cast_iso.c +++ /tmp/cocci-output-2180007-c55c85-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 +++ /tmp/cocci-output-2180007-0d9aae-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; cex_snip_field_ok.res diff = --- tests/cex_snip_field_ok.c +++ /tmp/cocci-output-2180007-320301-cex_snip_field_ok.c @@ -1,2 +1,7 @@ -struct str_t { int f1; int f2; int a; int b; }; +struct str_t { int a; }; +struct l_t { + int f1; + int f2; + int b; +}; int main() { } cex_wishlist_complex1.res diff = --- tests/cex_wishlist_complex1.c +++ /tmp/cocci-output-2180007-70b253-cex_wishlist_complex1.c @@ -1,6 +1,6 @@ #include int main() { - double d; + float d; float f; double complex dc; float complex fc; cex_wishlist_complex2.res diff = --- tests/cex_wishlist_complex2.c +++ /tmp/cocci-output-2180007-d092da-cex_wishlist_complex2.c @@ -2,7 +2,7 @@ int main() { double d; float f; - long double complex ldc; + float ldc; double complex dc; float complex fc; return 0; cex_wishlist_complex3.res diff = --- tests/cex_wishlist_complex3.c +++ /tmp/cocci-output-2180007-93c5ef-cex_wishlist_complex3.c @@ -2,7 +2,7 @@ int main() { double d; float f; - double complex dc; - float complex fc; + int dc; + double complex fc; return 0; } change.res diff = --- tests/change.c +++ /tmp/cocci-output-2180007-60426c-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_pragma.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_d109ea.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_d109ea.ml Compilation OK! Loading ML code of the SP... exn while in timeout_function change_type.res diff = --- tests/change_type.c +++ /tmp/cocci-output-2180007-efd33e-change_type.c @@ -1,4 +1,4 @@ int main () { struct foo *x; - return (struct blah *)x; + return 42; } changei.res exn while in timeout_function cocci_args.res diff = --- tests/cocci_args.c +++ /tmp/cocci-output-2180007-965d1f-cocci_args.c @@ -1,3 +1,3 @@ int main () { - f(); + g(a); } com.res diff = --- tests/com.c +++ /tmp/cocci-output-2180007-27fdfb-com.c @@ -1,8 +1,3 @@ int main() { - foo(); - /* a comment */ - foo(); - /* a comment */ - foo(); bar(); } comadd.res diff = --- tests/comadd.c +++ /tmp/cocci-output-2180007-7bd54b-comadd.c @@ -1,3 +1,5 @@ +// some comment +// some other comment int main () { return 12; } comj.res diff = --- tests/comj.c +++ /tmp/cocci-output-2180007-ff449a-comj.c @@ -2,6 +2,8 @@ int foo(int bar) { int i, j; for (i = 5; --i>=0; ) { + /* comments are overrated */ + j -= 3; j+=54; } return j; comma.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_4a56b9.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_4a56b9.ml Compilation OK! Loading ML code of the SP... diff = --- tests/comma.c +++ /tmp/cocci-output-2180007-12a7c4-comma.c @@ -3,9 +3,9 @@ show_cpuinfo (struct seq_file *m, void * { for (i = 0; i < ARRAY_SIZE(feature_bits) && size > 1; ++i) { cp += snprintf(cp, size, "%s%s", sep, - feature_bits[i].feature_name), + feature_bits[i].feature_name); cp += snprintf(cp, size, "%s%s", sep, - feature_bits[i].feature_name), + feature_bits[i].feature_name); sep = ", "; } } comma_call.res diff = --- tests/comma_call.c +++ /tmp/cocci-output-2180007-32e21d-comma_call.c @@ -1,10 +1,13 @@ int main() { - if (x) - fprintf(), exit(1); + if (x) { + fprintf(); + exit(1); + } } int main() { - if (x) - fprintf(), + if (x) { + fprintf(); exit(1); + } } comma_if.res diff = --- tests/comma_if.c +++ /tmp/cocci-output-2180007-fd94b1-comma_if.c @@ -1,13 +1,19 @@ int main() { - if (uffdio_zeropage.zeropage == -EEXIST) - fprintf(stderr, "UFFDIO_ZEROPAGE -EEXIST\n"), exit(1); - else - fprintf(stderr, "UFFDIO_ZEROPAGE error %Ld\n"), exit(1); + if (uffdio_zeropage.zeropage == -EEXIST) { + fprintf(stderr, "UFFDIO_ZEROPAGE -EEXIST\n"); + exit(1); + } + else { + fprintf(stderr, "UFFDIO_ZEROPAGE error %Ld\n"); + exit(1); + } } int main() { if (uffdio_zeropage.zeropage == -EEXIST) fprintf(stderr, "UFFDIO_ZEROPAGE -EEXIST\n"); - else - fprintf(stderr, "UFFDIO_ZEROPAGE error %Ld\n"), exit(1); + else { + fprintf(stderr, "UFFDIO_ZEROPAGE error %Ld\n"); + exit(1); + } } comment_brace.res diff = --- tests/comment_brace.c +++ /tmp/cocci-output-2180007-87c7d0-comment_brace.c @@ -1,7 +1,10 @@ int main () { while ((inw(base) & 0xad00) != 0) /* data status */ + { + release_region(); continue; + } return 0; } comment_brace2.res diff = --- tests/comment_brace2.c +++ /tmp/cocci-output-2180007-b412ae-comment_brace2.c @@ -1,7 +1,10 @@ int main () { while ((inw(base) & 0xad00) != 0) /* data status */ + { + release_region(); continue; + } return 0; } comment_line.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_61a16b.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_61a16b.ml File "/tmp/ocaml_cocci_61a16b.ml", line 31, characters 4-5: 31 | let p = match List.nth __args__ 1 with Coccilib.Pos x -> x | _ -> failwith "bad value" in ^ Warning 26 [unused-var]: unused variable p. Compilation OK! Loading ML code of the SP... 1 1 diff = --- tests/comment_line.c +++ /tmp/cocci-output-2180007-5b9281-comment_line.c @@ -1,11 +1,9 @@ int main() { before(); - foo(); /*test*/ after(); - foo(); /*test*/ after(); } comment_middle.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_0f50e9.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_0f50e9.ml File "/tmp/ocaml_cocci_0f50e9.ml", line 30, characters 5-6: 30 | let f = match List.nth __args__ 0 with Coccilib.Str x -> x | _ -> failwith "bad value" in ^ Warning 26 [unused-var]: unused variable f. Compilation OK! Loading ML code of the SP... diff = --- tests/comment_middle.c +++ /tmp/cocci-output-2180007-848e3a-comment_middle.c @@ -5,5 +5,4 @@ struct i { }; int main() { - foo(); } commentbefore.res commentbefore2.res commentend.res diff = --- tests/commentend.c +++ /tmp/cocci-output-2180007-12edf4-commentend.c @@ -1,5 +1,4 @@ int main () { foo(); - bar(); /* this is bar */ xxx(); } comments.res diff = --- tests/comments.c +++ /tmp/cocci-output-2180007-378aec-comments.c @@ -1,5 +1,16 @@ int main() { + // Calls foo() + foo(); return 0; } +/** + Some info about @foo() + @return void +*/ +void foo() +{ + /* Do nothing */ +} + compare.res SPECIAL NAMES: adding Scsi_Cmnd as a type diff = --- tests/compare.c +++ /tmp/cocci-output-2180007-9dd5d4-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_const.res diff = --- tests/compare_const.c +++ /tmp/cocci-output-2180007-4a3e2f-compare_const.c @@ -1,3 +1,3 @@ int main () { - return 0 == x; + return x == 0; } compare_const2.res diff = --- tests/compare_const2.c +++ /tmp/cocci-output-2180007-6a74f2-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; } comreturn.res diff = --- tests/comreturn.c +++ /tmp/cocci-output-2180007-08e89a-comreturn.c @@ -1,10 +1,14 @@ int main() { a(); xx(); + // end + end(); return; } int main2() { a(); xx(); + // end + end(); } condexp.res diff = --- tests/condexp.c +++ /tmp/cocci-output-2180007-8272f8-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 diff = --- tests/const.c +++ /tmp/cocci-output-2180007-d7620a-const.c @@ -1,3 +1,3 @@ void foo(const char *text) { - strcat(buf->data, text); + strcat_safe(buf->data, buf->len, text); } const1bis.res diff = --- tests/const1bis.c +++ /tmp/cocci-output-2180007-1c39ba-const1bis.c @@ -1,25 +1,25 @@ void foo(int j) { - const int i; + float i; int i; i++; - const char *i; + double *i; char *i; *i++; } void bar(int j) { - int const i; + float i; int i; i++; - char const *i; + double *i; char *i; *i++; } void con_vol(int j) { - const volatile int i; + const volatile long i; } void vol_con(int j) { - volatile const int i; + volatile const long i; } const_adding.res diff = --- tests/const_adding.c +++ /tmp/cocci-output-2180007-b9e28d-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 +++ /tmp/cocci-output-2180007-0e9f88-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 +++ /tmp/cocci-output-2180007-831fb5-const_implicit_iso.c @@ -1,4 +1,4 @@ void main(double y) { - const int x; + const float x; } constptr.res diff = --- tests/constptr.c +++ /tmp/cocci-output-2180007-de5612-constptr.c @@ -1,7 +1,7 @@ int main() { - const char * const *id; - const char ** const *id; - const char * const **id; - const char * const id; + const char * const *id1; + const char ** const *id2; + const char * const **id3; + const char * const id4; } constraints.res diff = --- tests/constraints.c +++ /tmp/cocci-output-2180007-c17f39-constraints.c @@ -1,23 +1,23 @@ void f() { - int k; + int *k; bool b; - bool *p; - bool **x[]; - char *y[]; + bool **p; + bool *x[]; + char y[]; f(1 == 2); f(1 & 3); g(1 & 2); g(1 != 2); g(1 <= 3); - h(1 == 2); + h(2 == 1); h(1 & 2); h(1 != 2); h(1 <= 2); } void -g(int a, int b, int c) +h(int a, int b, int c) { } constrem.res diff = --- tests/constrem.c +++ /tmp/cocci-output-2180007-a73adf-constrem.c @@ -1,3 +1 @@ -static const int a; -static const int (*f)(const int); constructor.res diff = --- tests/constructor.c +++ /tmp/cocci-output-2180007-bd01ab-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 +++ /tmp/cocci-output-2180007-48a2a3-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 +++ /tmp/cocci-output-2180007-b915d0-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); } countcalls.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_d3d6ed.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_d3d6ed.ml Compilation OK! Loading ML code of the SP... countcalls_python.res exn while in timeout_function cptr.res diff = --- tests/cptr.c +++ /tmp/cocci-output-2180007-9bfcff-cptr.c @@ -1 +1 @@ -static const char *str = "..."; +static const char * const str = "..."; cr.res diff = --- tests/cr.c +++ /tmp/cocci-output-2180007-73c866-cr.c @@ -1,7 +1,6 @@ int main(void) { #if ! HAVE_XYZ - f1(); - f2(); + f3(); #endif } cr1a.res diff = warning: rule starting on line 1, node 38: continue; [1,2,7][1,2,7,8,13,14] in probe_base_port may be inconsistently modified warning: rule starting on line 1, node 39: }2[1,2,7,8] in probe_base_port may be inconsistently modified warning: rule starting on line 1, node 20: if[1,2,7,8,9] in probe_base_port may be inconsistently modified --- tests/cr1a.c +++ /tmp/cocci-output-2180007-a8c167-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 +++ /tmp/cocci-output-2180007-d617df-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 +++ /tmp/cocci-output-2180007-f5828a-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 +++ /tmp/cocci-output-2180007-5e741f-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; cstr.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_afed98.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_afed98.ml Compilation OK! Loading ML code of the SP... diff = --- tests/cstr.c +++ /tmp/cocci-output-2180007-06ea87-cstr.c @@ -1,4 +1,8 @@ int main() { f(1,2,1,2,3); g(0,2,1,11,22,11,22,1,1,2,3); + h(1, 1); + h(1, 1); + h(1, 1); + h(2, 2); } cststr.res warning: line 4: should foo be a metavariable? diff = --- tests/cststr.c +++ /tmp/cocci-output-2180007-3a0fe0-cststr.c @@ -1,3 +1,3 @@ int main () { - foo((ptr_t)"blah"); + xxx((ptr_t)"blah"); } csw.res warning: line 4: should x be a metavariable? diff = --- tests/csw.c +++ /tmp/cocci-output-2180007-5bf9e4-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 +++ /tmp/cocci-output-2180007-c8a58a-dbg.c @@ -5,4 +5,6 @@ static inline void alloc_resource(struct if (pr) DBG("PCI"); + else + pr = NULL; } dbg1.res diff = --- tests/dbg1.c +++ /tmp/cocci-output-2180007-624ee2-dbg1.c @@ -2,4 +2,5 @@ static inline void alloc_resource(struct pci_dev *dev, int idx) { DBG("PCI"); + E = NULL; } dc_close.res diff = --- tests/dc_close.c +++ /tmp/cocci-output-2180007-66f2de-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 +++ /tmp/cocci-output-2180007-1a684b-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 +++ /tmp/cocci-output-2180007-f5ec56-dec.c @@ -1,4 +1,5 @@ int f(int x) { + int z; static int y; return x; } decadd.res SPECIAL NAMES: adding DECL as a declarer SPECIAL NAMES: adding __cb as a attribute diff = --- tests/decadd.c +++ /tmp/cocci-output-2180007-bc8edd-decadd.c @@ -1,3 +1,3 @@ struct x { - DECL(x); + DECL(x) __cb(y); }; decdup.res decdup2.res diff = --- tests/decdup2.c +++ /tmp/cocci-output-2180007-9f4b79-decdup2.c @@ -1,2 +1,3 @@ +int www; BTF_ID_LIST_SINGLE(bpf_ima_inode_hash_btf_ids, struct, inode) decdup3.res decdup4.res decl.res diff = --- tests/decl.c +++ /tmp/cocci-output-2180007-3c9e2c-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 +++ /tmp/cocci-output-2180007-879439-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 +++ /tmp/cocci-output-2180007-b85e0d-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 +++ /tmp/cocci-output-2180007-d170dc-decl_star.c @@ -1,5 +1,5 @@ int main () { - int *x; - int x; + int *y; + int y; return x; } declend.res diff = --- tests/declend.c +++ /tmp/cocci-output-2180007-d85073-declend.c @@ -1,6 +1,5 @@ int x; int main() { - int x; return 0; } declmeta.res diff = --- tests/declmeta.c +++ /tmp/cocci-output-2180007-cf9a0c-declmeta.c @@ -1,7 +1,7 @@ -int b,c; +int c; -int b,c; +int c; int main() { - int b,c; + int c; } defe.res diff = --- tests/defe.c +++ /tmp/cocci-output-2180007-257826-defe.c @@ -1 +1,0 @@ -#define x 3 define_exp.res diff = --- tests/define_exp.c +++ /tmp/cocci-output-2180007-1d0787-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 +++ /tmp/cocci-output-2180007-7ae1cc-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; definedots.res diff = --- tests/definedots.c +++ /tmp/cocci-output-2180007-98c309-definedots.c @@ -1,3 +1,3 @@ -#define a(x,y...) 3 -#define a(x,...) 3 -#define a(x) 33 +#define b(xx,yy...) 4 +#define b(xx,...) 4 +#define b(xx) 44 defineinit.res diff = --- tests/defineinit.c +++ /tmp/cocci-output-2180007-d108c4-defineinit.c @@ -1,3 +1,3 @@ #define MYMACRO(adsf) { \ - .foo = (asdf),\ + .foo = (asdf) * 1000,\ } deftodo.res del2.res diff = --- tests/del2.c +++ /tmp/cocci-output-2180007-cccab9-del2.c @@ -4,8 +4,5 @@ int my_test_allocate_components(void) if (result != X_SUCCESS) return result; // placeholder - if (result != X_SUCCESS) - return result; -// placeholder return X_SUCCESS; } delete_function.res diff = --- tests/delete_function.c +++ /tmp/cocci-output-2180007-484f6c-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 +++ /tmp/cocci-output-2180007-3e3538-delp.c @@ -1,4 +1,4 @@ int main () { return - (foo); + foo; } depfail.res diff = --- tests/depfail.c +++ /tmp/cocci-output-2180007-57e553-depfail.c @@ -1,5 +1,4 @@ int main(void) { foo(); - bar(); } deref.res diff = --- tests/deref.c +++ /tmp/cocci-output-2180007-8f3e91-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 +++ /tmp/cocci-output-2180007-9db9b0-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); detect_cast_attr.res SPECIAL NAMES: adding __cast_attr as a attribute diff = --- tests/detect_cast_attr.c +++ /tmp/cocci-output-2180007-18aa51-detect_cast_attr.c @@ -2,9 +2,9 @@ int func() { - char *a = (int __cast_attr) x; - char *a = (__cast_attr int) x; + char *a = (char *__cast_attr) x; + char *a = (__cast_attr char *) x; char *a = (int __cast_attr *) x; - char *a = (int *__cast_attr) x; + char *a = (char *__cast_attr) x; char *a = (int) x; } detect_macrodecl_attr.res SPECIAL NAMES: adding DECLARER as a declarer SPECIAL NAMES: adding __macro_attr as a attribute warning: line 8: should a be a metavariable? SPECIAL NAMES: adding DECLARER2 as a declarer SPECIAL NAMES: adding __macro_attr2 as a attribute SPECIAL NAMES: adding check_attr as a type Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_1d49cb.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_1d49cb.ml File "_none_", line 1: Alert ocaml_deprecated_auto_include: OCaml's lib directory layout changed in 5.0. The str subdirectory has been automatically added to the search path, but you should add -I +str to the command-line to silence this alert (e.g. by adding str to the list of libraries in your dune file, or adding use_str to your _tags file for ocamlbuild, or using -package str for ocamlfind). File "tests/detect_macrodecl_attr.cocci", line 18, characters 6-57: Warning 10 [non-unit-statement]: this expression should have type unit. Compilation OK! Loading ML code of the SP... diff = --- tests/detect_macrodecl_attr.c +++ /tmp/cocci-output-2180007-6f514b-detect_macrodecl_attr.c @@ -1,7 +1,5 @@ #define __macro_attr MACROANNOTATION -DECLARER(a, b) __macro_attr; +DECLARER(c, b) __macro_attr; DECLARER(a, b); - -DECLARER2(a, b) __macro_attr2; detect_param_attr.res SPECIAL NAMES: adding __nocast as a attribute SPECIAL NAMES: adding __attr as a attribute diff = --- tests/detect_param_attr.c +++ /tmp/cocci-output-2180007-9e6529-detect_param_attr.c @@ -1,11 +1,12 @@ -int func1(int __nocast *u, __nocast int z, int q __nocast, int w) { +int func1(char __nocast *u, __nocast int z, char q __nocast, int w) { return 0; } -int func1(int __attribute__((nocast)) *u, __attribute__((nocast)) int z, int q __attribute__((nocast)), int w) { +int func1(long __attribute__((nocast)) *u, __attribute__((nocast)) int z, + char q __attribute__((nocast)), int w) { return 0; } -int fp(int __attr (*fp) (int)) { +int fp(short __attr (*fp) (int)) { return 0; } detect_struct_endattr.res SPECIAL NAMES: adding __struct_endattr as a attribute diff = --- tests/detect_struct_endattr.c +++ /tmp/cocci-output-2180007-cddc70-detect_struct_endattr.c @@ -2,7 +2,6 @@ struct abcd { int a; - int b; int c; } __struct_endattr; detect_struct_gccattr.res diff = --- tests/detect_struct_gccattr.c +++ /tmp/cocci-output-2180007-3f7450-detect_struct_gccattr.c @@ -1,18 +1,15 @@ struct abcd { int a; - int b; int c; } __attribute__((pack,aligned(16))); struct abcd { int a; - int b; int c; } __attribute__ ( ( pack , aligned(16) ) ); struct abcd { int a; - int b; int c; } __attribute__((aligned (16))); @@ -24,19 +21,16 @@ struct abcd { struct abcd { int a; - int b; int c; } __attribute__((pack)) var1; struct abcd { int a; - int b; int c; } __attribute__ ( ( pack ) ) var2; struct abcd { int a; - int b; int c; } __attribute__((aligned (16))) var3; devlink.res SPECIAL NAMES: adding dev_link_t as a type diff = --- tests/devlink.c +++ /tmp/cocci-output-2180007-7afd91-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)); } disj.res SPECIAL NAMES: adding bool as a type SPECIAL NAMES: adding DISJ_DECLARER1 as a declarer SPECIAL NAMES: adding DISJ_DECLARER2 as a declarer SPECIAL NAMES: adding DISJ_DECLARER3 as a declarer SPECIAL NAMES: adding DISJ_DECLARER0 as a declarer diff = --- tests/disj.c +++ /tmp/cocci-output-2180007-23a225-disj.c @@ -1,31 +1,31 @@ void f() { int disj_id0; - int disj_id1; - int disj_id2; + int disj_id3; + int disj_id3; int disj_id0 = 0; - int disj_id1 = 0; - int disj_id2 = 0; + int disj_id3 = 0; + int disj_id3 = 0; disj_expr(0); - disj_expr(1); - disj_expr(2); + disj_expr(3); + disj_expr(3); float disj_type; - int disj_type; - char disj_type; + bool disj_type; + bool disj_type; DISJ_DECLARER0(0); - DISJ_DECLARER1(0); - DISJ_DECLARER2(0); - return; + DISJ_DECLARER3(0); + DISJ_DECLARER3(0); + break; } void g() { - return; + continue; } void disj_id0(); -void disj_id1(); -void disj_id2(); +void disj_id3(); +void disj_id3(); void disj_id0() { foo(); } -void disj_id1() { foo(); } -void disj_id2() { foo(); } +void disj_id3() { foo(); } +void disj_id3() { foo(); } disjexpr.res diff = --- tests/disjexpr.c +++ /tmp/cocci-output-2180007-7df520-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 +++ /tmp/cocci-output-2180007-85195c-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 +++ /tmp/cocci-output-2180007-7d1a06-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 +++ /tmp/cocci-output-2180007-b06086-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 +++ /tmp/cocci-output-2180007-65cfea-distribute.c @@ -1,4 +1,4 @@ int main(int i) { - f(1+1); + f(g(1) * 0 * g(2)); } dotcall.res diff = --- tests/dotcall.c +++ /tmp/cocci-output-2180007-1f891d-dotcall.c @@ -1,3 +1,2 @@ int main() { - xxx.foobar(); } dots_comma.res diff = --- tests/dots_comma.c +++ /tmp/cocci-output-2180007-26e070-dots_comma.c @@ -1,4 +1,4 @@ int main(void) { - f(3); + f(2, 3); } dots_in_block_remove.res diff = --- tests/dots_in_block_remove.c +++ /tmp/cocci-output-2180007-74af00-dots_in_block_remove.c @@ -1,10 +1,3 @@ int main() { - for(;;) - { - xxx(); -#pragma bee - return 0; - } - return 0; } double.res diff = --- tests/double.c +++ /tmp/cocci-output-2180007-bbf7da-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 +++ /tmp/cocci-output-2180007-d00e4a-double_assign.c @@ -4,6 +4,5 @@ int main() { } int badmain() { - x = 12; x = 1; } double_lines.res diff = --- tests/double_lines.c +++ /tmp/cocci-output-2180007-eca4b8-double_lines.c @@ -1,7 +1,4 @@ int main () { test(); - foo(); - foo(); - foo(); endtest(); } double_switch.res doubleconst.res diff = --- tests/doubleconst.c +++ /tmp/cocci-output-2180007-9e2660-doubleconst.c @@ -1,3 +1,3 @@ int main () { - const char* const ccpc = &const_obj; + char* const ccpc = &const_obj; } doubleconst2.res diff = --- tests/doubleconst2.c +++ /tmp/cocci-output-2180007-7f1bfa-doubleconst2.c @@ -1,3 +1,3 @@ int main () { - const char* const ccpc = &const_obj; + const char* ccpc = &const_obj; } doubleconst4.res diff = --- tests/doubleconst4.c +++ /tmp/cocci-output-2180007-2bf10a-doubleconst4.c @@ -1,3 +1,3 @@ int main () { - char const* const ccpc = &const_obj; + char * const ccpc = &const_obj; } doublepos.res diff = --- tests/doublepos.c +++ /tmp/cocci-output-2180007-75d845-doublepos.c @@ -1,5 +1,4 @@ int main() { - f(1,2); f(1,5); f(6,5); } doubleswitch.res diff = --- tests/doubleswitch.c +++ /tmp/cocci-output-2180007-668792-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 +++ /tmp/cocci-output-2180007-3b8d55-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 +++ /tmp/cocci-output-2180007-60eebd-dowhile.c @@ -1,7 +1,5 @@ int main() { do { - f(); } while (0); - g(); } dowhile_4.res diff = --- tests/dowhile_4.c +++ /tmp/cocci-output-2180007-0f59ac-dowhile_4.c @@ -2,5 +2,4 @@ int fun() { do { printf("dummy message"); } while (0); - printf("done printing"); } dowhile_for_complex.res diff = warning: nested, node 22: }3[1,2,4,5,7,8] in fun may be inconsistently modified warning: nested, node 23: [after][1,2,4,5,7,8] in fun may be inconsistently modified warning: nested, node 16: for[1,2,4,5,7]* in fun may be inconsistently modified warning: nested, node 21: statement[1,2,4,5,7,8,9] in fun may be inconsistently modified warning: nested, node 20: {3[1,2,4,5,7,8] in fun may be inconsistently modified --- tests/dowhile_for_complex.c +++ /tmp/cocci-output-2180007-7721c0-dowhile_for_complex.c @@ -2,9 +2,6 @@ int fun() { int i = 1, j = 1; do { i++; - for (j = 1; j < 100; j++) { - ++j; - } } while (i < 100); return 0; } dowhile_nested.res diff = warning: nested, node 22: {3[1,2,4,5,7,8] in fun may be inconsistently modified warning: nested, node 17: whiletail[1,2,4,5,7] in fun may be inconsistently modified warning: nested, node 23: statement[1,2,4,5,7,8,9] in fun may be inconsistently modified warning: nested, node 16: do[1,2,4,5,7]* in fun may be inconsistently modified warning: nested, node 24: }3[1,2,4,5,7,8] in fun may be inconsistently modified --- tests/dowhile_nested.c +++ /tmp/cocci-output-2180007-7c3831-dowhile_nested.c @@ -2,9 +2,6 @@ int fun() { int i = 1, j = 1; do { i++; - do { - j++; - } while (j < 100); printf(“end of innner dowhile”); } while (i < 100); return 0; dropbr.res diff = --- tests/dropbr.c +++ /tmp/cocci-output-2180007-90ed68-dropbr.c @@ -1,5 +1,4 @@ int main () { - if (a) { - bar(); - } + if (a) + foo(); } dropcom.res diff = --- tests/dropcom.c +++ /tmp/cocci-output-2180007-fcf902-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 +++ /tmp/cocci-output-2180007-10a7e6-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 +++ /tmp/cocci-output-2180007-4f60ca-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 +++ /tmp/cocci-output-2180007-9499f2-dropparam.c @@ -2,11 +2,11 @@ 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"); } dtest.res diff = --- tests/dtest.c +++ /tmp/cocci-output-2180007-25f429-dtest.c @@ -1,5 +1,5 @@ int main() { struct sk_buff *e; struct other *e1; - return e->a + e1->b; + return e->a + 12; } eb1.res SPECIAL NAMES: adding Packet as a type diff = --- tests/eb1.c +++ /tmp/cocci-output-2180007-7e696b-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 +++ /tmp/cocci-output-2180007-096bf8-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 +++ /tmp/cocci-output-2180007-fd739b-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); } efi3.res diff = --- tests/efi3.c +++ /tmp/cocci-output-2180007-2d0d94-efi3.c @@ -6,6 +6,6 @@ static efi_status_t virt_efi_get_time(ef goto exit; exit: - efi_rts_work.efi_rts_id = EFI_NONE; + efi_rts_work.efi_rts_id = 12; }); } elsify.res diff = --- tests/elsify.c +++ /tmp/cocci-output-2180007-bdba46-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 +++ /tmp/cocci-output-2180007-ca8c96-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_attr.res SPECIAL NAMES: adding autofree as a attribute diff = --- tests/end_attr.c +++ /tmp/cocci-output-2180007-193084-end_attr.c @@ -1,10 +1,12 @@ int main() { - struct foo x autofree; + struct foo x; + free(x); return; } int main() { - struct foo x autofree = NULL; + struct foo x = NULL; + free(x); return; } end_commas.res diff = --- tests/end_commas.c +++ /tmp/cocci-output-2180007-39f834-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", + } }; endcomma.res SPECIAL NAMES: adding DEFINE_CLK_STUB as a initializer ending in a comma endif.res warning: line 5: should x be a metavariable? diff = --- tests/endif.c +++ /tmp/cocci-output-2180007-84773b-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; endmodif.res diff = --- tests/endmodif.c +++ /tmp/cocci-output-2180007-692872-endmodif.c @@ -1,11 +1,12 @@ -void f(void) + +replace_g(void) { - return x; + return 12; } -void g(void) +before_h(void) { - return x; + return 12; } void h(void) @@ -13,8 +14,22 @@ void h(void) return x; } +after_h(void) +{ + return 12; +} + void i(void) { return x; } +after_i1(void) +{ + return 12; +} +after_i2(void) +{ + return 12; +} + endnl.res diff = --- tests/endnl.c +++ /tmp/cocci-output-2180007-c376a9-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 Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_97cd95.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_97cd95.ml Compilation OK! Loading ML code of the SP... diff = --- tests/endpos.c +++ /tmp/cocci-output-2180007-409e72-endpos.c @@ -1,4 +1,5 @@ int main () { + main(); if (x) { foo(); return -1; @@ -13,3 +14,8 @@ out: print(); return -1; } + +int main() +{ + return 0; +} enum.res diff = --- tests/enum.c +++ /tmp/cocci-output-2180007-ebeb6c-enum.c @@ -5,5 +5,5 @@ typedef enum static reg_errcode_t regex_compile () { - unsigned char *pending_exact = 0; + unsigned char *pending_exact = NULL; } enum_assign.res diff = --- tests/enum_assign.c +++ /tmp/cocci-output-2180007-bdc0a4-enum_assign.c @@ -1,6 +1,7 @@ enum h { - a = 0, + q = 0, c, x, - b + b, + z }; enumcast.res diff = --- tests/enumcast.c +++ /tmp/cocci-output-2180007-959e58-enumcast.c @@ -1 +1,2 @@ +enum{x = (int)1, }; int main() { return 12; } enumdots.res diff = --- tests/enumdots.c +++ /tmp/cocci-output-2180007-c58bcf-enumdots.c @@ -1,3 +1,2 @@ enum binder_work_type { - BINDER_WORK_TRANSACTION = 12, } t; exitc.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_f53fc5.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_f53fc5.ml Compilation OK! Loading ML code of the SP... Failure in rule starting on line 8 diff = --- tests/exitc.c +++ /tmp/cocci-output-2180007-81355b-exitc.c @@ -1,6 +1,6 @@ int main () { - f(a1); - f(a2); - f(done); - f(a4); + g(a1); + g(a2); + g(done); + g(a4); } exitp.res exn while in timeout_function exp.res diff = --- tests/exp.c +++ /tmp/cocci-output-2180007-e488b7-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 +++ /tmp/cocci-output-2180007-0d7748-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 +++ /tmp/cocci-output-2180007-e0bd5d-expopt.c @@ -1,5 +1,5 @@ int main() { int *x; f(x); - *x = 7; + x = 7; } expopt2.res diff = --- tests/expopt2.c +++ /tmp/cocci-output-2180007-b461e1-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 +++ /tmp/cocci-output-2180007-e25ac0-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 +++ /tmp/cocci-output-2180007-980fb3-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 +++ /tmp/cocci-output-2180007-60cbde-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); } exprlist_comma.res diff = --- tests/exprlist_comma.c +++ /tmp/cocci-output-2180007-5af816-exprlist_comma.c @@ -1,4 +1,4 @@ int main(void) { - f(3); + f(2, 3); } exprun.res diff = --- tests/exprun.c +++ /tmp/cocci-output-2180007-62704a-exprun.c @@ -8,37 +8,50 @@ static void ice_dump_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, char const *prefix) { - ice_info(hw, "%s: switching_mode = %d\n", prefix, caps->switching_mode); - ice_info(hw, "%s: mgmt_mode = %d\n", prefix, caps->mgmt_mode); - ice_info(hw, "%s: mgmt_protocols_mctp = %d\n", prefix, + dev_info(ice_hw_to_dev(hw), "%s: switching_mode = %d\n", prefix, + caps->switching_mode); + dev_info(ice_hw_to_dev(hw), "%s: mgmt_mode = %d\n", prefix, + caps->mgmt_mode); + dev_info(ice_hw_to_dev(hw), "%s: mgmt_protocols_mctp = %d\n", prefix, caps->mgmt_protocols_mctp); - ice_info(hw, "%s: os2bmc = %d\n", prefix, caps->os2bmc); - ice_info(hw, "%s: valid_functions (bitmap) = %d\n", prefix, - caps->valid_functions); - ice_info(hw, "%s: sr_iov_1_1 = %d\n", prefix, caps->sr_iov_1_1); - ice_info(hw, "%s: vmdq = %d\n", prefix, caps->vmdq); - ice_info(hw, "%s: evb_802_1_qbg = %d\n", prefix, caps->evb_802_1_qbg); - ice_info(hw, "%s: evb_802_1_qbh = %d\n", prefix, caps->evb_802_1_qbh); - ice_info(hw, "%s: dcb = %d\n", prefix, caps->dcb); - ice_info(hw, "%s: active_tc_bitmap = %d\n", prefix, + dev_info(ice_hw_to_dev(hw), "%s: os2bmc = %d\n", prefix, caps->os2bmc); + dev_info(ice_hw_to_dev(hw), "%s: valid_functions (bitmap) = %d\n", + prefix, caps->valid_functions); + dev_info(ice_hw_to_dev(hw), "%s: sr_iov_1_1 = %d\n", prefix, + caps->sr_iov_1_1); + dev_info(ice_hw_to_dev(hw), "%s: vmdq = %d\n", prefix, caps->vmdq); + dev_info(ice_hw_to_dev(hw), "%s: evb_802_1_qbg = %d\n", prefix, + caps->evb_802_1_qbg); + dev_info(ice_hw_to_dev(hw), "%s: evb_802_1_qbh = %d\n", prefix, + caps->evb_802_1_qbh); + dev_info(ice_hw_to_dev(hw), "%s: dcb = %d\n", prefix, caps->dcb); + dev_info(ice_hw_to_dev(hw), "%s: active_tc_bitmap = %d\n", prefix, caps->active_tc_bitmap); - ice_info(hw, "%s: maxtc = %d\n", prefix, caps->maxtc); - ice_info(hw, "%s: iscsi = %d\n", prefix, caps->iscsi); - ice_info(hw, "%s: rss_table_size = %d\n", prefix, caps->rss_table_size); - ice_info(hw, "%s: rss_table_entry_width = %d\n", prefix, - caps->rss_table_entry_width); - ice_info(hw, "%s: num_rxq = %d\n", prefix, caps->num_rxq); - ice_info(hw, "%s: rxq_first_id = %d\n", prefix, caps->rxq_first_id); - ice_info(hw, "%s: num_txq = %d\n", prefix, caps->num_txq); - ice_info(hw, "%s: txq_first_id = %d\n", prefix, caps->txq_first_id); - ice_info(hw, "%s: num_msix_vectors = %d\n", prefix, + dev_info(ice_hw_to_dev(hw), "%s: maxtc = %d\n", prefix, caps->maxtc); + dev_info(ice_hw_to_dev(hw), "%s: iscsi = %d\n", prefix, caps->iscsi); + dev_info(ice_hw_to_dev(hw), "%s: rss_table_size = %d\n", prefix, + caps->rss_table_size); + dev_info(ice_hw_to_dev(hw), "%s: rss_table_entry_width = %d\n", + prefix, caps->rss_table_entry_width); + dev_info(ice_hw_to_dev(hw), "%s: num_rxq = %d\n", prefix, + caps->num_rxq); + dev_info(ice_hw_to_dev(hw), "%s: rxq_first_id = %d\n", prefix, + caps->rxq_first_id); + dev_info(ice_hw_to_dev(hw), "%s: num_txq = %d\n", prefix, + caps->num_txq); + dev_info(ice_hw_to_dev(hw), "%s: txq_first_id = %d\n", prefix, + caps->txq_first_id); + dev_info(ice_hw_to_dev(hw), "%s: num_msix_vectors = %d\n", prefix, caps->num_msix_vectors); - ice_info(hw, "%s: msix_vector_first_id = %d\n", prefix, + dev_info(ice_hw_to_dev(hw), "%s: msix_vector_first_id = %d\n", prefix, caps->msix_vector_first_id); - ice_info(hw, "%s: ieee_1588 = %d\n", prefix, caps->ieee_1588); - ice_info(hw, "%s: mgmt_cem = %d\n", prefix, caps->mgmt_cem); - ice_info(hw, "%s: iwarp = %d\n", prefix, caps->iwarp); - ice_info(hw, "%s: roce_lag = %d\n", prefix, caps->roce_lag); + dev_info(ice_hw_to_dev(hw), "%s: ieee_1588 = %d\n", prefix, + caps->ieee_1588); + dev_info(ice_hw_to_dev(hw), "%s: mgmt_cem = %d\n", prefix, + caps->mgmt_cem); + dev_info(ice_hw_to_dev(hw), "%s: iwarp = %d\n", prefix, caps->iwarp); + dev_info(ice_hw_to_dev(hw), "%s: roce_lag = %d\n", prefix, + caps->roce_lag); } /* This takes 27 seconds as of now, doubles with each ice_info() call added ice_info(hw, "%s: wr_csr_prot = 0x%llX\n", prefix, extra.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_6fa2ac.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_6fa2ac.ml Compilation OK! Loading ML code of the SP... diff = --- tests/extra.c +++ /tmp/cocci-output-2180007-d8981a-extra.c @@ -1,12 +1,25 @@ #ifdef FIRST -int main (int a, struct foo *b, struct bar *c) { +int _called_function_0 (int a, struct foo *b, struct bar *c) { a = b->x; return c->d; } + +int main(int a, struct foo *b, struct bar *c) +{ + assert(c != NULL); + assert(b != NULL); + return _called_function_0(a, b, c); +} #else -int main (int a, struct foo *xyz) { +int _called_function_1 (int a, struct foo *xyz) { a = xyz->x; return xyz->d; } + +int main(int a, struct foo *xyz) +{ + assert(xyz != NULL); + return _called_function_1(a, xyz); +} #endif failing_andany.res diff = --- tests/failing_andany.c +++ /tmp/cocci-output-2180007-5cbe1c-failing_andany.c @@ -1,13 +1,9 @@ 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, unsigned long irq_flags) { - request_irq(dev); - register_netdev(dev); } far.res diff = --- tests/far.c +++ /tmp/cocci-output-2180007-c9fc22-far.c @@ -1,7 +1,7 @@ int main(void) { int far = 0; - int x; - x = 10; - return x; + int y; + y = 10; + return y; } far2.res SPECIAL NAMES: adding __counted_by as a attribute diff = --- tests/far2.c +++ /tmp/cocci-output-2180007-964263-far2.c @@ -1,4 +1,4 @@ struct foo { size_t element_count; - int element_array[]; + int element_array[] __counted_by(element_count); }; fields.res diff = --- tests/fields.c +++ /tmp/cocci-output-2180007-d03e4a-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 +++ /tmp/cocci-output-2180007-9dbcdf-fieldsmin.c @@ -1,5 +1,3 @@ struct foo x = { - .a = 1, - .b = 2, .c = 3, }; finalize_only.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_57aef9.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_57aef9.ml Compilation OK! Loading ML code of the SP... find_long.res diff = --- tests/find_long.c +++ /tmp/cocci-output-2180007-838aed-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; } finish.res diff = --- tests/finish.c +++ /tmp/cocci-output-2180007-dd347b-finish.c @@ -1,14 +1,7 @@ void ieee80211_color_change_finish(struct ieee80211_vif *vif, u8 link_id) { - if (WARN_ON(!link)) { - return; - } - foo(); } void ieee80211_color_change_finish(struct ieee80211_vif *vif, u8 link_id) { - if (WARN_ON(!link)) { - return; - } } firstdecl.res fix_flow_need.res diff = --- tests/fix_flow_need.c +++ /tmp/cocci-output-2180007-dd744f-fix_flow_need.c @@ -5,7 +5,6 @@ void main(int i) { if(1) { foo(); } - bar(); foobar(); } flex.res diff = --- tests/flex.c +++ /tmp/cocci-output-2180007-dba5d8-flex.c @@ -3,5 +3,5 @@ struct scmi_msg_resp_sensor_description struct { #define SENSOR_UPDATE_BASE(x) 3 u8 name[SCMI_MAX_STR_SIZE]; - } desc[0]; + } desc[]; }; fltst.res diff = --- tests/fltst.c +++ /tmp/cocci-output-2180007-ba00f4-fltst.c @@ -1,3 +1,3 @@ double aaa() { - return one + two; + return 1.0f + 2.3L; } fn_todo.res diff = --- tests/fn_todo.c +++ /tmp/cocci-output-2180007-7c4fb5-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 +++ /tmp/cocci-output-2180007-5fd3e3-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 +++ /tmp/cocci-output-2180007-5a9bc5-fnret.c @@ -1 +1 @@ -static void foo(int x) { return; } + fnty.res diff = --- tests/fnty.c +++ /tmp/cocci-output-2180007-b7de1d-fnty.c @@ -1,4 +1,4 @@ -struct allfns { +struct newname { int (*x) (int); int (*y) (int); }; fntypedef.res diff = --- tests/fntypedef.c +++ /tmp/cocci-output-2180007-8b682c-fntypedef.c @@ -1 +1 @@ -typedef void (*toto_t)(int a, int b); +typedef void(*toto_t)(int a, int b, int c); for3.res diff = --- tests/for3.c +++ /tmp/cocci-output-2180007-62dd8c-for3.c @@ -1,4 +1,4 @@ int main () { - for(i=0; i!=10; i++) + for(int i=0; i!=10; i++) return 0; } fordots.res diff = --- tests/fordots.c +++ /tmp/cocci-output-2180007-012dd2-fordots.c @@ -1,4 +1,2 @@ int main () { - for(int i = 0; i != 12; i++) a = 2; - for(i = 0; i != 12; i++) a = 2; } format.res diff = --- tests/format.c +++ /tmp/cocci-output-2180007-28516c-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 Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_cc9d31.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_cc9d31.ml Compilation OK! Loading ML code of the SP... diff = format string is 1x format string is 2x --- tests/format2.c +++ /tmp/cocci-output-2180007-a162c6-format2.c @@ -1,4 +1,3 @@ int main () { foo("blah %x blah"); - foo("blah %1x blah %2x blah"); } formatlist.res diff = --- tests/formatlist.c +++ /tmp/cocci-output-2180007-7e83be-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 +++ /tmp/cocci-output-2180007-2fda95-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 +++ /tmp/cocci-output-2180007-422621-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 +++ /tmp/cocci-output-2180007-996661-four.c @@ -1,5 +1,3 @@ int main () { f(1); - h(2); - i(2); } foura.res diff = --- tests/foura.c +++ /tmp/cocci-output-2180007-fc47ef-foura.c @@ -1,5 +1,4 @@ int main () { f(1); h(2); - i(2); } fp.res diff = --- tests/fp.c +++ /tmp/cocci-output-2180007-9de5b0-fp.c @@ -1,3 +1,2 @@ int main(int (*x)(int,int)) { - x(); } fptr.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_8b9a12.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_8b9a12.ml Compilation OK! Loading ML code of the SP... diff = --- tests/fptr.c +++ /tmp/cocci-output-2180007-f4f275-fptr.c @@ -1,6 +1,6 @@ int foo(int c, int d) { return 0; } int main() { - call(foo); + success; } fptr2.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_09f66f.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_09f66f.ml Compilation OK! Loading ML code of the SP... diff = --- tests/fptr2.c +++ /tmp/cocci-output-2180007-69aab6-fptr2.c @@ -1,7 +1,7 @@ int foo(int c, int d) { return 0; } int main() { - call(foo); - addrcall(&foo); + success; + success; } fptr3.res diff = --- tests/fptr3.c +++ /tmp/cocci-output-2180007-b0b3fb-fptr3.c @@ -1,6 +1,6 @@ int foo(int c, int d) { return 0; } int main() { - call(foo); + 12; } fresh_id_script.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_857da9.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_857da9.ml File "tests/fresh_id_script.cocci", line 37, characters 4-5: Warning 26 [unused-var]: unused variable i. Compilation OK! Loading ML code of the SP... exn while in timeout_function fsh.res diff = --- tests/fsh.c +++ /tmp/cocci-output-2180007-c69b32-fsh.c @@ -1,4 +1,4 @@ int main () { f(c); - g(); + g(foo-c); } fun.res warning: line 5: should x be a metavariable? diff = --- tests/fun.c +++ /tmp/cocci-output-2180007-53c7a5-fun.c @@ -1 +1,4 @@ +struct a { + int a; +}; int f(int x) { return x; } func.res diff = --- tests/func.c +++ /tmp/cocci-output-2180007-32f8fd-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); } funptr_array.res diff = --- tests/funptr_array.c +++ /tmp/cocci-output-2180007-9f5a03-funptr_array.c @@ -1 +1 @@ -int (*x[2])(int x); +int (*x[2])(char x); gadget_allocate.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyBigFloat as a type SPECIAL NAMES: adding MyFloat3 as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyDoublePos3 as a type warning: soa_init: inherited metavariable id1 not used in the -, +, or context code warning: soa_free: inherited metavariable id1 not used in the -, +, or context code warning: soa_alloc: inherited metavariable id1 not used in the -, +, or context code exn while in timeout_function gadget_gather_scatter.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyBigFloat as a type SPECIAL NAMES: adding MyFloat3 as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyDoublePos3 as a type warning: line 230: P, previously declared as a metavariable, is used as an identifier warning: line 230: p, previously declared as a metavariable, is used as an identifier exn while in timeout_function gadget_invalidate.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyBigFloat as a type SPECIAL NAMES: adding MyFloat3 as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyDoublePos3 as a type exn while in timeout_function gadget_mark_used_fields.res exn while in timeout_function gadget_misc.res diff = --- tests/gadget_misc.c +++ /tmp/cocci-output-2180007-f28faa-gadget_misc.c @@ -2,6 +2,5 @@ int main() { if(0) { - *((int *) (0x0)) = 1; } } gadget_ninelets_typedef.res SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyFloat3x3 as a type SPECIAL NAMES: adding double3x3 as a type diff = --- tests/gadget_ninelets_typedef.c +++ /tmp/cocci-output-2180007-ac92f6-gadget_ninelets_typedef.c @@ -1,21 +1,23 @@ typedef double MyFloat; +typedef double double3x3[3][3]; +typedef MyFloat MyFloat3x3[3][3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget struct particle_data { - MyFloat I[3][3]; + MyFloat3x3 I; MyFloat i[3]; - MyFloat J[3][3]; + MyFloat3x3 J; MyFloat j[3]; }; struct sph_particle_data { - double I[3][3]; + double3x3 I; double i[3]; - double J[3][3]; + double3x3 J; double j[3]; }; gadget_patch.res exn while in timeout_function gadget_remove_mpi_function_calls.res diff = --- tests/gadget_remove_mpi_function_calls.c +++ /tmp/cocci-output-2180007-0c967b-gadget_remove_mpi_function_calls.c @@ -2,6 +2,5 @@ int main(int argc, char **argv) { MPI_Comm comm; - MPI_Init(&argc, &argv); comm = MPI_COMM_WORLD; } gadget_remove_used_fields.res diff = --- tests/gadget_remove_used_fields.c +++ /tmp/cocci-output-2180007-c5303b-gadget_remove_used_fields.c @@ -1,8 +1,8 @@ -struct particle_data { int i; int j; int k; } * P ; +struct particle_data { int k; } * P ; struct particle_data_soa_t { int i; int j; } * P_soa ; -struct sph_particle_data { int i; int j; int k; } * SphP ; +struct sph_particle_data { int k; } * SphP ; struct sph_particle_data_soa_t { int i; int j; } * SphP_soa ; int main() gadget_sentinel.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyBigFloat as a type SPECIAL NAMES: adding MyFloat3 as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyDoublePos3 as a type warning: line 111: should first be a metavariable? warning: line 142: should first be a metavariable? exn while in timeout_function gadget_soa_defs.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyBigFloat as a type SPECIAL NAMES: adding MyFloat3 as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyDoublePos3 as a type exn while in timeout_function gadget_soa_select.res SPECIAL NAMES: adding MyDoublePos3 as a type diff = --- tests/gadget_soa_select.c +++ /tmp/cocci-output-2180007-2602be-gadget_soa_select.c @@ -1,5 +1,5 @@ struct sph_particle_data_soa_t { - int *Entropy; + int *Entropy;/* See coccinelle/gadget_soa_select.cocci on how to select SoA fields on a name basis */ }; int main() { gadget_sorting_hook.res diff = --- tests/gadget_sorting_hook.c +++ /tmp/cocci-output-2180007-3f2fa8-gadget_sorting_hook.c @@ -18,10 +18,24 @@ void soa_invalidate_aos__particle_data() int main() { + /* FIXME: this is a transitory gather-sort-scatter hook solution */ + soa_gather__particle_data_soa_t(P, P_soa, 0, NumPart); + soa_invalidate_soa__particle_data_soa_t(&P_soa, 0, NumPart); any_sort_func(P); + soa_scatter__particle_data_soa_t(P_soa, P, 0, NumPart); + soa_invalidate_aos__particle_data(P, 0, NumPart); + /* FIXME: this is a transitory gather-sort-scatter hook solution */ + soa_gather__sph_particle_data_soa_t(SphP, SphP_soa, 0, N_gas); + soa_gather__particle_data_soa_t(P, P_soa, 0, NumPart); + soa_invalidate_soa__sph_particle_data_soa_t(&SphP_soa, 0, N_gas); + soa_invalidate_soa__particle_data_soa_t(&P_soa, 0, NumPart); rearrange_particle_sequence(); + soa_scatter__particle_data_soa_t(P_soa, P, 0, NumPart); + soa_scatter__sph_particle_data_soa_t(SphP_soa, SphP, 0, N_gas); + soa_invalidate_aos__sph_particle_data(SphP, 0, N_gas); + soa_invalidate_aos__particle_data(P, 0, NumPart); return 0; } gadget_triplets_typedef.res SPECIAL NAMES: adding MyLongDouble as a type SPECIAL NAMES: adding MyFloat as a type SPECIAL NAMES: adding MyLongDouble3 as a type SPECIAL NAMES: adding MyFloat3 as a type diff = --- tests/gadget_triplets_typedef.c +++ /tmp/cocci-output-2180007-2df95d-gadget_triplets_typedef.c @@ -3,6 +3,8 @@ typedef double MyFloat; typedef long double MyLongDouble; typedef long double MyDoublePos; +typedef MyLongDouble MyLongDouble3[3]; +typedef MyFloat MyFloat3[3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget @@ -11,11 +13,11 @@ struct particle_data { //MyFloat I[3][3]; //MyFloat I[3][3]; //MyFloat i[3]; - MyFloat j[3]; + MyFloat3 j; //MyFloat J[3][3]; //MyFloat i[3]; //MyDoublePos K[3][3]; - MyLongDouble d[3]; + MyLongDouble3 d; MyDoublePos k[3]; }; gadget_triplets_typedef_ipcc.res SPECIAL NAMES: adding MyDoublePos as a type SPECIAL NAMES: adding MyDoublePos3 as a type diff = --- tests/gadget_triplets_typedef_ipcc.c +++ /tmp/cocci-output-2180007-5e9fdb-gadget_triplets_typedef_ipcc.c @@ -3,6 +3,7 @@ typedef double MyFloat; typedef long double MyLongDouble; typedef long double MyDoublePos; +typedef MyDoublePos MyDoublePos3[3]; enum cpufields { ENUM_SOMETHING }; // ok for OpenGadget3, IPCC-Gadget @@ -16,7 +17,7 @@ struct particle_data { //MyFloat i[3]; //MyDoublePos K[3][3]; MyLongDouble d[3]; - MyDoublePos k[3]; + MyDoublePos3 k; }; struct sph_particle_data { gcc_attr_with_func.res diff = --- tests/gcc_attr_with_func.c +++ /tmp/cocci-output-2180007-8fdf8d-gcc_attr_with_func.c @@ -1,8 +1,8 @@ -int __attribute__((always_inline)) func (int a); +int __attribute__((always_inline)) func (); -int func(int a); +int func(long a); -int __attribute__((always_inline)) func (int a) { +int __attribute__((always_inline)) func () { return 42; } @@ -10,16 +10,16 @@ int func (int a) { return 42; } -int __attribute__((always_inline)) *func (int a) { +int __attribute__((always_inline)) *func (long a) { return 42; } -int func (int a) __attribute__((attr)) { +int func (long a) __attribute__((attr)) { return 42; } -void __attribute__((mult,"1",2)) func (int a) { +void __attribute__((mult,"1",2)) func (long a) { } -void __attribute__((mult,1,"2")) func (int a) { +void __attribute__((mult,1,"2")) func (long a) { } gcc_attr_with_var.res diff = --- tests/gcc_attr_with_var.c +++ /tmp/cocci-output-2180007-f24fe1-gcc_attr_with_var.c @@ -1,39 +1,39 @@ -int var1_end __attribute__((myattr1_end)); +int var1_end __attribute__((section(".shared"))); -int __attribute__((myattr1_mid)) var1_mid; +int __attribute__((section(".shared"))) var1_mid; -int var2_end __attribute__((myattr2_end)); +int var2_end __attribute__((section(".shared"))); -int __attribute__((myattr2_mid)) var2_mid; +int __attribute__((section(".shared"))) var2_mid; -int var3_end __attribute__((myattr3_end)); +__attribute__((section(".shared"))) int var3_end; -int __attribute__((myattr3_mid)) var3_mid; +__attribute__((section(".shared"))) int var3_mid; -int var4_end __attribute__((myattr4_end)); +int var4_end; -int __attribute__((myattr4_mid)) var4_mid; +int var4_mid; -int var5_end __attribute__((myattr5_end)); +int __attribute__((section(".shared"))) var5_end; -int __attribute__((myattr5_mid)) var5_mid; +int var5_mid __attribute__((section(".shared"))); -char array1_end[2] __attribute__((myattr1_end)); +char array1_end[2] __attribute__((section(".shared"))); char __attribute__((myattr1_mid)) array1_mid[2]; -char array2_end[2] __attribute__((myattr2_end)); +char array2_end[2] __attribute__((section(".shared"))); char __attribute__((myattr2_mid)) array2_mid[2]; -char array3_end[2] __attribute__((myattr3_end)); +__attribute__((section(".shared"))) char[2] array3_end; char __attribute__((myattr3_mid)) array3_mid[2]; -char array4_end[2] __attribute__((myattr4_end)); +char array4_end[2]; char __attribute__((myattr4_mid)) array4_mid[2]; -char array5_end[2] __attribute__((myattr5_end)); +char[2] __attribute__((section(".shared"))) array5_end; char __attribute__((myattr5_mid)) array5_mid[2]; gcc_min_max.res diff = --- tests/gcc_min_max.c +++ /tmp/cocci-output-2180007-1316ef-gcc_min_max.c @@ -1,8 +1,8 @@ int main() { int a, b; - a ? b; - a >?= b; + min(a, b); + a = min(a, b); + max(a, b); + a = max(a, b); } getc.res SPECIAL NAMES: adding VOID as a type SPECIAL NAMES: adding LPVOID as a type SPECIAL NAMES: adding PVOID as a type diff = --- tests/getc.c +++ /tmp/cocci-output-2180007-7c41df-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 +++ /tmp/cocci-output-2180007-c27aef-gilles-question.c @@ -2,8 +2,6 @@ void main(int i) { f(0); if(1) { - g(0); } - g(0); } globali.res gotobreak.res diff = --- tests/gotobreak.c +++ /tmp/cocci-output-2180007-63caf4-gotobreak.c @@ -11,5 +11,5 @@ static void sedlbauer_config(struct pcmc CS_CHECK(GetNextTuple, pcmcia_get_next_tuple(link, &tuple)); } - return; + return 0; } hashhash.res diff = --- tests/hashhash.c +++ /tmp/cocci-output-2180007-8e2289-hashhash.c @@ -1,5 +1,5 @@ #define FOO(x) foo ## x int FOO(float)(int a, int b) { - return 12; + return 10; } hd.res warning: line 4: should x be a metavariable? warning: line 4: should y be a metavariable? diff = --- tests/hd.c +++ /tmp/cocci-output-2180007-a70687-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 +++ /tmp/cocci-output-2180007-b61def-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 +++ /tmp/cocci-output-2180007-9135c8-hex.c @@ -1,3 +1,2 @@ int main() { - f(0x00); } hil1.res SPECIAL NAMES: adding FUNC as a initializer ending in a comma diff = --- tests/hil1.c +++ /tmp/cocci-output-2180007-0bd60c-hil1.c @@ -2,5 +2,5 @@ { HILSE_FUNC, { func: &funct }, funct_arg, zero_rc }, int main () { - return 12; + return 5; } icomma.res exn while in timeout_function id3.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_d88884.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_d88884.ml Compilation OK! Loading ML code of the SP... diff = --- tests/id3.c +++ /tmp/cocci-output-2180007-de9835-id3.c @@ -1,3 +1,3 @@ int foo () { - bar (6); + bar3(6, fresh1, fresh1); } id4.res exn while in timeout_function idcon_ocaml.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_b5ada6.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_b5ada6.ml Compilation OK! Loading ML code of the SP... diff = --- tests/idcon_ocaml.c +++ /tmp/cocci-output-2180007-d7b7bd-idcon_ocaml.c @@ -1,5 +1,5 @@ void f(void) { - g(a); + g(18); g(b); - g(c); + g(18); } idcon_python.res exn while in timeout_function identcall.res diff = --- tests/identcall.c +++ /tmp/cocci-output-2180007-3cf71b-identcall.c @@ -1,3 +1,2 @@ int main () { - target += x(); } idstr.res diff = --- tests/idstr.c +++ /tmp/cocci-output-2180007-ec6a4c-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 = warning: rule starting on line 11, node 19: g(...)[1,2,4,5,6,7,8] in main1 may be inconsistently modified --- tests/if.c +++ /tmp/cocci-output-2180007-afd025-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 +++ /tmp/cocci-output-2180007-500744-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 +++ /tmp/cocci-output-2180007-32ca65-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 +++ /tmp/cocci-output-2180007-a4fcf9-ifdef1.c @@ -1,5 +1,8 @@ #include #include +#ifdef CONFIG_NKERNEL +#include +#endif #include #include ifdef2.res diff = --- tests/ifdef2.c +++ /tmp/cocci-output-2180007-ab9ec8-ifdef2.c @@ -1,6 +1,11 @@ #include #include #include +#ifdef CONFIG_NKERNEL +#include +#include +unsigned long maxsize = 0; +#endif #include ifdef3.res diff = --- tests/ifdef3.c +++ /tmp/cocci-output-2180007-545963-ifdef3.c @@ -2,6 +2,15 @@ #include #include #include +#ifdef CONFIG_NKERNEL +#include +#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 = warning: Exemple4, node 12: statement[1,2,3,4,5] in init_IRQ may be inconsistently modified --- tests/ifdef4.c +++ /tmp/cocci-output-2180007-a20d29-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 +++ /tmp/cocci-output-2180007-859ff5-ifdef5.c @@ -11,3 +11,11 @@ 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 +++ /tmp/cocci-output-2180007-2169d2-ifdef6.c @@ -1,5 +1,8 @@ #include #include +#ifdef CONFIG_NKERNEL +#define foo(x) f(x) +#endif #include #include ifdef6a.res diff = --- tests/ifdef6a.c +++ /tmp/cocci-output-2180007-9dd093-ifdef6a.c @@ -1,4 +1,7 @@ #include +#ifdef CONFIG_NKERNEL +#define foo(x) f(x) +#endif #include #include #include ifdefmeta.res diff = --- tests/ifdefmeta.c +++ /tmp/cocci-output-2180007-47f219-ifdefmeta.c @@ -1,26 +1,22 @@ int main() { - buf = alloca(3 + buf = malloc(3 + + 5 + 50 + + 2 + ) #ifdef PLATFORM_A -// platform a stuff - +5 - +50 #endif #ifdef PLATFORM_B -/* platform b stuff */ - +2 #endif - ); - buf = alloca(3 + ; + buf = malloc(3 + + 5 + 50 + + 2 + ) #ifdef PLATFORM_A -// platform a stuff - +5 - +50 #endif #ifdef PLATFORM_B -/* platform b stuff */ - +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 +++ /tmp/cocci-output-2180007-419e04-ifdefmeta1.c @@ -1,17 +1,9 @@ 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 +++ /tmp/cocci-output-2180007-43193d-ifdefmeta2.c @@ -1,12 +1,2 @@ int main() { - buf = alloca(3 - - - +5 - - - - - +2 - ); } ifdefmeta3.res diff = --- tests/ifdefmeta3.c +++ /tmp/cocci-output-2180007-e30f4e-ifdefmeta3.c @@ -1,11 +1,5 @@ int main () { f(); - if (foo) { - one(); -#ifdef ONE - two(); -#endif - three(); - } + xxx(); g(); } ifdefmeta4.res diff = --- tests/ifdefmeta4.c +++ /tmp/cocci-output-2180007-b2093d-ifdefmeta4.c @@ -1,14 +1,12 @@ int main() { - buf = alloca(3 + buf = malloc(3 + + 5 + 50 + + 2 + ) #ifdef PLATFORM_A -// platform a stuff - +5 - +50 #endif #ifdef PLATFORM_B -/* platform b stuff */ - +2 #endif - ); + ; } ifend.res diff = --- tests/ifend.c +++ /tmp/cocci-output-2180007-137c59-ifend.c @@ -3,5 +3,3 @@ static int vortex_debug = VORTEX_DEBUG; #else static int vortex_debug = 1; #endif - -#include ifgoto.res diff = --- tests/ifgoto.c +++ /tmp/cocci-output-2180007-abea42-ifgoto.c @@ -1,5 +1,7 @@ int main () { - if (x) - GOTO(l,a = 3); + if (x) { + a = 3; + goto l; + } l: return; } ifields.res SPECIAL NAMES: adding IFace as a type SPECIAL NAMES: adding IFaceVtbl as a type diff = --- tests/ifields.c +++ /tmp/cocci-output-2180007-f2334c-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 +++ /tmp/cocci-output-2180007-608ead-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 +++ /tmp/cocci-output-2180007-24e657-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 +++ /tmp/cocci-output-2180007-76f638-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 +++ /tmp/cocci-output-2180007-6de728-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 +++ /tmp/cocci-output-2180007-00b7b7-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 +++ /tmp/cocci-output-2180007-0e2d4a-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 +++ /tmp/cocci-output-2180007-b427de-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 +++ /tmp/cocci-output-2180007-04a1ec-inc.c @@ -1,2 +1 @@ -#define foo 3 -#define xxx 4 +#define foobar 3 incdir.res incl.res diff = --- tests/incl.c +++ /tmp/cocci-output-2180007-2b9373-incl.c @@ -1,6 +1,8 @@ +#include "before.h" #include #include #include +#include "after.h" #ifdef FOO #include #endif FOO incl2.res diff = --- tests/incl2.c +++ /tmp/cocci-output-2180007-9b4f49-incl2.c @@ -1,3 +1,4 @@ +#include "beginning.h" #include #include #include "linux/foo.h" inclifdef.res diff = --- tests/inclifdef.c +++ /tmp/cocci-output-2180007-32c51a-inclifdef.c @@ -1,4 +1,5 @@ #include +#include #ifdef CONFIG #include #endif include.res diff = --- tests/include.c +++ /tmp/cocci-output-2180007-0a7754-include.c @@ -1,8 +1,6 @@ #include #include -#include -#include void main(int i) { incompatible_value.res diff = --- tests/incompatible_value.c +++ /tmp/cocci-output-2180007-f9cd18-incompatible_value.c @@ -4,6 +4,6 @@ int main() { } int main() { - g(1); - g(2); + h(1); + h(2); } incpos.res exn while in timeout_function incpos1.res exn while in timeout_function inherited.res diff = --- tests/inherited.c +++ /tmp/cocci-output-2180007-8e7098-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 +++ /tmp/cocci-output-2180007-def5c2-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 +++ /tmp/cocci-output-2180007-4cf21b-inhmet.c @@ -1,3 +1,3 @@ int main () { - x->s = 12; + foo(); } inhpos.res diff = --- tests/inhpos.c +++ /tmp/cocci-output-2180007-843b1b-inhpos.c @@ -1,3 +1,2 @@ int main () { - g(3); } initializer.res warning: line 5: should var be a metavariable? diff = --- tests/initializer.c +++ /tmp/cocci-output-2180007-3e8e8f-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? initpython.res exn while in timeout_function inline.res diff = --- tests/inline.c +++ /tmp/cocci-output-2180007-b6ce25-inline.c @@ -1 +1 @@ -inline void foo(int x) { return; } + insdef.res diff = --- tests/insdef.c +++ /tmp/cocci-output-2180007-8d5224-insdef.c @@ -1 +1,2 @@ #define TABINFOGEN +#include int2bool-local.res SPECIAL NAMES: adding bool as a type SPECIAL NAMES: adding u1 as a type SPECIAL NAMES: adding u2 as a type SPECIAL NAMES: adding u4 as a type SPECIAL NAMES: adding u8 as a type SPECIAL NAMES: adding u16 as a type SPECIAL NAMES: adding u32 as a type diff = --- tests/int2bool-local.c +++ /tmp/cocci-output-2180007-d30258-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,8 @@ int nxny3() { } int px4() { - int x; - x = 0; + bool x; + x = false; return 4; } @@ -49,11 +50,11 @@ 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 +++ /tmp/cocci-output-2180007-ee6727-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 +++ /tmp/cocci-output-2180007-450623-invert.c @@ -1,3 +1,3 @@ int main () { - x = y + z; + x = z + y; } ip.res diff = --- tests/ip.c +++ /tmp/cocci-output-2180007-f0dbd2-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 +++ /tmp/cocci-output-2180007-3fdf35-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 +++ /tmp/cocci-output-2180007-fd939d-isococci.c @@ -1,6 +1,3 @@ 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 +++ /tmp/cocci-output-2180007-90ba4c-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 +++ /tmp/cocci-output-2180007-e384c4-isotest.c @@ -1,7 +1,6 @@ void main(int i) { char j; - int i; // = 1; j++; isotest2.res diff = --- tests/isotest2.c +++ /tmp/cocci-output-2180007-21f0e9-isotest2.c @@ -1,7 +1,6 @@ void main(int i) { char j; - int i = 1; j++; iteration.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_10727e.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_10727e.ml Compilation OK! Loading ML code of the SP... 1 pending new file instances 0 pending original file instances exn while in timeout_function iteration_after_merge.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_c4e0fe.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_c4e0fe.ml Compilation OK! Loading ML code of the SP... 2 pending new file instances 0 pending original file instances exn while in timeout_function iterator.res SPECIAL NAMES: adding list_for_each as a iterator diff = --- tests/iterator.c +++ /tmp/cocci-output-2180007-e92b54-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 SPECIAL NAMES: adding for_each_set_bit as a iterator diff = --- tests/iterprint.c +++ /tmp/cocci-output-2180007-cf486f-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 +++ /tmp/cocci-output-2180007-b8facc-julia10.c @@ -1,7 +1,5 @@ int main(int x) { f(); - h(); g(); - h(); } julia7.res diff = --- tests/julia7.c +++ /tmp/cocci-output-2180007-2cb35e-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 +++ /tmp/cocci-output-2180007-472340-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 +++ /tmp/cocci-output-2180007-03e36a-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 +++ /tmp/cocci-output-2180007-5599a7-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 +++ /tmp/cocci-output-2180007-e2291f-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 +++ /tmp/cocci-output-2180007-31734a-kmc.c @@ -10,5 +10,4 @@ dmabounce_register_dev(struct device *de err_destroy: kfreea(device_info); - return 1; } kmtest4.res diff = --- tests/kmtest4.c +++ /tmp/cocci-output-2180007-491aa9-kmtest4.c @@ -1,4 +1,4 @@ int main () { x = kzalloc(3); - x->y = 12; + x->q = 12; } kr.res 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 +++ /tmp/cocci-output-2180007-a92f21-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 +++ /tmp/cocci-output-2180007-df9eee-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 +++ /tmp/cocci-output-2180007-87509a-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 +++ /tmp/cocci-output-2180007-c9a99e-labels_metastatement_ver1.c @@ -1,5 +1,9 @@ int foo(int i) { - if(1) x = 3; + if(1) { + x = 3; + foo(); + } + foo(); } lessone.res diff = --- tests/lessone.c +++ /tmp/cocci-output-2180007-f62e70-lessone.c @@ -1,4 +1,4 @@ int min() { - return 2.56 < 1; + return 2.56 < 0; } lfe.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_60d500.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_60d500.ml Compilation OK! Loading ML code of the SP... SPECIAL NAMES: adding list_for_each_entry as a iterator diff = --- tests/lfe.c +++ /tmp/cocci-output-2180007-99edac-lfe.c @@ -11,13 +11,21 @@ static bool tipc_service_insert_publ(str u32 key = p->key; /* Return if the publication already exists */ - list_for_each_entry(_p, &sr->all_publ, all_publ) { - if (_p->key == key && (!_p->sk.node || _p->sk.node == node)) { - pr_debug("Failed to bind duplicate %u,%u,%u/%u:%u/%u\n", - p->sr.type, p->sr.lower, p->sr.upper, - node, p->sk.ref, key); - goto exit; + { + int __a__1 = 0; + list_for_each_entry(_p, &sr->all_publ, all_publ) { + __a__1++; + { + if (_p->key == key && (!_p->sk.node || _p->sk.node == node)) { + pr_debug("Failed to bind duplicate %u,%u,%u/%u:%u/%u\n", + p->sr.type, p->sr.lower, + p->sr.upper, + node, p->sk.ref, key); + goto exit; + } + } } + trace_printk("%s:%d, count: %d\n", __FILE__, __LINE__, __a__1); } exit: return res; lid.res diff = --- tests/lid.c +++ /tmp/cocci-output-2180007-2067f5-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 +++ /tmp/cocci-output-2180007-4aaf32-line_before_last.c @@ -1,17 +1,13 @@ int main () { - foo(); xxx(); } int main () { xxx(); - foo(); } int main () { xxx(); - - foo(); } lineseq.res diff = --- tests/lineseq.c +++ /tmp/cocci-output-2180007-025252-lineseq.c @@ -1,6 +1,4 @@ int main () { - one(); - two(); - one(); - two(); + three(); + three(); } 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 +++ /tmp/cocci-output-2180007-c4e346-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 +++ /tmp/cocci-output-2180007-2f71cd-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 +++ /tmp/cocci-output-2180007-21abca-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 +++ /tmp/cocci-output-2180007-4670d9-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); } localmacroparams.res diff = --- tests/localmacroparams.c +++ /tmp/cocci-output-2180007-45bc27-localmacroparams.c @@ -1,2 +1,2 @@ -#define fn1(x) f(x) -#define fn2(x) f(y) +#define fn1(x) islocal +#define fn2(x) isglobal log.res diff = --- tests/log.c +++ /tmp/cocci-output-2180007-62e1eb-log.c @@ -8,5 +8,4 @@ static struct var_t vars[] = { int main () { - f("foo"); } long.res diff = --- tests/long.c +++ /tmp/cocci-output-2180007-88dd0b-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 +++ /tmp/cocci-output-2180007-40edd1-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 +++ /tmp/cocci-output-2180007-f4fb1e-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 +++ /tmp/cocci-output-2180007-3a11f5-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 +++ /tmp/cocci-output-2180007-aac714-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 +++ /tmp/cocci-output-2180007-d382d2-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 +++ /tmp/cocci-output-2180007-2fec57-lvalue.c @@ -1,4 +1,4 @@ int main() { - x = x + 1; - *x = 12; + f(x) = f(x) + 1; + *f(x) = 12; } macro.res SPECIAL NAMES: adding Scsi_Cmnd as a type diff = --- tests/macro.c +++ /tmp/cocci-output-2180007-37b555-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_before_bool.res diff = --- tests/macro_before_bool.c +++ /tmp/cocci-output-2180007-c39859-macro_before_bool.c @@ -1,4 +1,5 @@ static nokprobe_inline bool trace_kprobe_is_return(struct trace_kprobe *tk) { + bool ret; return false; } macro_int16.res diff = --- tests/macro_int16.c +++ /tmp/cocci-output-2180007-ad79b5-macro_int16.c @@ -4,6 +4,6 @@ void main(void) { INT16 a, b, c; - c = a + b; + c = a - b; } macro_params.res diff = --- tests/macro_params.c +++ /tmp/cocci-output-2180007-be51ad-macro_params.c @@ -5,9 +5,9 @@ int main(int argc, char **argv) { - MACRO(1, i, j); + MACRO_2(argc, i, j); /* comment */ - MACRO(2, k, l); + MACRO_2(argc, k, l); return 0; } match_init.res diff = --- tests/match_init.c +++ /tmp/cocci-output-2180007-807ff4-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 +++ /tmp/cocci-output-2180007-0d33ab-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 +++ /tmp/cocci-output-2180007-4f0f40-max.c @@ -1,3 +1,3 @@ int main () { - if (x < 25) return i; + if (x < 25) return 3; } md1.res (ONCE) already tagged but only removed, so safe diff = --- tests/md1.c +++ /tmp/cocci-output-2180007-de9522-md1.c @@ -1,9 +1,11 @@ struct main { - int a; - int b; - int a,b,c; + int y; + int y; + int y; + int y; + int y; - char a; - char b; + char y; + char y; char a,b,c; }; md2.res diff = --- tests/md2.c +++ /tmp/cocci-output-2180007-3970cc-md2.c @@ -1,11 +1,11 @@ int main() { - int a; - static int b; - int a,b,c; + int y; + static int y; + int y;int y;int y; static int a,b,c; - char a; - static char b; + char y; + static char y; char a,b,c; static char a,b,c; } md3.res diff = --- tests/md3.c +++ /tmp/cocci-output-2180007-b22e4a-md3.c @@ -1,5 +1,5 @@ struct s_t { - double one[3]; + double3 one; int x; }*A,*B,*C,a,b,c; mdadd.res diff = --- tests/mdadd.c +++ /tmp/cocci-output-2180007-4bc994-mdadd.c @@ -1,3 +1,3 @@ int main () { - int a,b,c; + char a;char b;char c; } mdec.res diff = --- tests/mdec.c +++ /tmp/cocci-output-2180007-c23cbd-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 Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_36691c.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_36691c.ml File "/tmp/ocaml_cocci_36691c.ml", line 24, characters 4-11: 24 | let unbound = List.nth __script_args__ 4 in ^^^^^^^ Warning 26 [unused-var]: unused variable unbound. Compilation OK! Loading ML code of the SP... diff = --- tests/mdecl.c +++ /tmp/cocci-output-2180007-e0edef-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; } mdeclp.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_f0a9a8.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_f0a9a8.ml Compilation OK! Loading ML code of the SP... diff = --- tests/mdeclp.c +++ /tmp/cocci-output-2180007-7bd751-mdeclp.c @@ -1,2 +1,2 @@ -int one() { return 1; } + int two() { return 1; } mdeclp2.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_47b075.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_47b075.ml File "_none_", line 1: Alert ocaml_deprecated_auto_include: OCaml's lib directory layout changed in 5.0. The str subdirectory has been automatically added to the search path, but you should add -I +str to the command-line to silence this alert (e.g. by adding str to the list of libraries in your dune file, or adding use_str to your _tags file for ocamlbuild, or using -package str for ocamlfind). Compilation OK! Loading ML code of the SP... exn while in timeout_function mdeclrep.res diff = --- tests/mdeclrep.c +++ /tmp/cocci-output-2180007-88574e-mdeclrep.c @@ -1,19 +1,22 @@ int main () { - int a,x,c; + int y; + int a,c; return 0; } int main () { - int x,c; + int y; + int c; return 0; } int main () { - int a,x; + int y; + int a; return 0; } int main () { - int x; + int y; return 0; } mdindex.res diff = --- tests/mdindex.c +++ /tmp/cocci-output-2180007-fcddbf-mdindex.c @@ -1,5 +1,5 @@ int main() { - a[i][j][k]++; - b[i][j][k]++; + a[i, j, k]++; + b[0][j][k]++; } memory.res diff = --- tests/memory.c +++ /tmp/cocci-output-2180007-1d3bf2-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)); } merge_after_iteration.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_7f900a.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_7f900a.ml Compilation OK! Loading ML code of the SP... 1 pending new file instances 0 pending original file instances metaattr.res SPECIAL NAMES: adding __attr__ as a attribute diff = --- tests/metaattr.c +++ /tmp/cocci-output-2180007-58ccaa-metaattr.c @@ -1,5 +1,5 @@ int main() { - int b __attr__ = 1; + char b __attr__ = 1; int b = 1; return 0; } metahex.res metaline.res warning: line 43: x, previously declared as a metavariable, is used as an identifier diff = --- tests/metaline.c +++ /tmp/cocci-output-2180007-c32152-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 +++ /tmp/cocci-output-2180007-1e78fd-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 (ONCE) already tagged but only removed, so safe diff = --- tests/metaops0.c +++ /tmp/cocci-output-2180007-8fef4a-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 +++ /tmp/cocci-output-2180007-6a7004-metaruleelem.c @@ -1,6 +1,7 @@ int main(int x) { f(); - if(1) { + foo(); + if (1) { replace(); } g(); metastatement2.res diff = --- tests/metastatement2.c +++ /tmp/cocci-output-2180007-4d6c27-metastatement2.c @@ -1,6 +1,5 @@ void main(int i) { f(); - { replace(); replace(); } g(); } metastatement_for.res diff = --- tests/metastatement_for.c +++ /tmp/cocci-output-2180007-c793ab-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 +++ /tmp/cocci-output-2180007-2c201f-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 +++ /tmp/cocci-output-2180007-3d7b25-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 +++ /tmp/cocci-output-2180007-fd5fb5-minenum.c @@ -1 +1 @@ -enum h { x, a, z, q, b }; +enum h { x, qq, q, b }; minenum1.res diff = --- tests/minenum1.c +++ /tmp/cocci-output-2180007-b8433c-minenum1.c @@ -1,2 +1,2 @@ -enum h { x, a, z, +enum h { x, qq, q, b }; minfn.res diff = --- tests/minfn.c +++ /tmp/cocci-output-2180007-397795-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 +++ /tmp/cocci-output-2180007-7f99ea-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 +++ /tmp/cocci-output-2180007-844482-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 +++ /tmp/cocci-output-2180007-13d7a0-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 +++ /tmp/cocci-output-2180007-f87f7d-minusdots.c @@ -1,9 +1,2 @@ void main(int i) { - - if (!hostptr) { - if (hostptr) { - return -ESRCH; - } - } - } minusdots_ver1.res diff = --- tests/minusdots_ver1.c +++ /tmp/cocci-output-2180007-e725ac-minusdots_ver1.c @@ -1,6 +1,2 @@ void main(int i) { - - if (!hostptr) { - i++; - } } move_type.res diff = --- tests/move_type.c +++ /tmp/cocci-output-2180007-06c95d-move_type.c @@ -1,6 +1,6 @@ int main() { - int x; int foo[12]; + int x; return 0; } multi.res diff = --- tests/multi.c +++ /tmp/cocci-output-2180007-75b00d-multi.c @@ -3,4 +3,5 @@ int main() { g(1); g(1); } + h(1); } multi_initialize_finalize.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_b3dfe8.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_b3dfe8.ml Compilation OK! Loading ML code of the SP... exn while in timeout_function multichars.res warning: line 4: should ab be a metavariable? diff = --- tests/multichars.c +++ /tmp/cocci-output-2180007-b06a0b-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 +++ /tmp/cocci-output-2180007-2ded78-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 +++ /tmp/cocci-output-2180007-611e6c-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 +++ /tmp/cocci-output-2180007-859007-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 +++ /tmp/cocci-output-2180007-6078f0-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 +++ /tmp/cocci-output-2180007-f820d1-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 +++ /tmp/cocci-output-2180007-03cc13-multistruct.c @@ -1,5 +1,3 @@ -struct one x; -struct two y; struct three z; multitype.res diff = --- tests/multitype.c +++ /tmp/cocci-output-2180007-2d75d8-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 +++ /tmp/cocci-output-2180007-b25436-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 +++ /tmp/cocci-output-2180007-6ff7f0-multivars.c @@ -1,5 +1,5 @@ void main(int i) { - f(1+2+v.field1,1+2+v.field1); + h(1 + 2 + v.field1); } mv.res SPECIAL NAMES: adding __free as a attribute SPECIAL NAMES: adding u8 as a type warning: line 4: should xxx be a metavariable? warning: line 4: should kfree be a metavariable? diff = --- tests/mv.c +++ /tmp/cocci-output-2180007-d10a4b-mv.c @@ -1,4 +1,4 @@ int main() { - u8 *xxx __free(kfree); foo(); + u8 *tx_frame __free(kfree); } na.res diff = --- tests/na.c +++ /tmp/cocci-output-2180007-36866e-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 +++ /tmp/cocci-output-2180007-d1a38b-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 = warning: rule starting on line 1, node 14: statement[1,2,4,5,7] in info_func may be inconsistently modified warning: rule starting on line 1, node 13: statement[1,2,4,5,6] in info_func may be inconsistently modified warning: rule starting on line 12, node 14: statement[1,2,4,5,7] in info_func may be inconsistently modified warning: rule starting on line 12, node 13: statement[1,2,4,5,6] in info_func may be inconsistently modified --- tests/nest.c +++ /tmp/cocci-output-2180007-c93b29-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; } } nestadd.res diff = --- tests/nestadd.c +++ /tmp/cocci-output-2180007-3fc10f-nestadd.c @@ -1,3 +1,12 @@ int main() { foo(); + if (x) { + return 12; + } + if (y) { + return 27; + } + if (z) { + return 42; + } } nestone.res warning: one: metavariable S not used in the - or context code diff = --- tests/nestone.c +++ /tmp/cocci-output-2180007-1b92b0-nestone.c @@ -1,4 +1,3 @@ int foo() { if (x) { xxx(); return;} - yyy(); } nestseq.res diff = --- tests/nestseq.c +++ /tmp/cocci-output-2180007-ef290e-nestseq.c @@ -2,4 +2,5 @@ int main () { f(); g(12); h(); + xxx(12); } neststruct.res diff = --- tests/neststruct.c +++ /tmp/cocci-output-2180007-246385-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 +++ /tmp/cocci-output-2180007-7eeeaf-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 +++ /tmp/cocci-output-2180007-3a7db2-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 SPECIAL NAMES: adding gfp_t as a type diff = --- tests/nocast.c +++ /tmp/cocci-output-2180007-c20f37-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 +++ /tmp/cocci-output-2180007-09fa3f-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 +++ /tmp/cocci-output-2180007-00895a-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 +++ /tmp/cocci-output-2180007-9a5e00-notest.c @@ -1,6 +1,6 @@ int main() { struct foo *x; x = FN(); - if (!x) return; + if (12) return; return; } notnot.res warning: line 6: should true be a metavariable? warning: line 6: should false be a metavariable? diff = --- tests/notnot.c +++ /tmp/cocci-output-2180007-4fae5f-notnot.c @@ -1,4 +1,4 @@ bool foo(int bar) { - return bar ? true : false; + return !!bar; } noty.res diff = --- tests/noty.c +++ /tmp/cocci-output-2180007-786593-noty.c @@ -1,3 +1,4 @@ int main(int *x) { if (NULL == x) { return; } + g(); } noty2.res diff = --- tests/noty2.c +++ /tmp/cocci-output-2180007-165a33-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 +++ /tmp/cocci-output-2180007-af2d33-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 +++ /tmp/cocci-output-2180007-1cfbc9-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? diff = --- tests/oddifdef.c +++ /tmp/cocci-output-2180007-245e6c-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 +++ /tmp/cocci-output-2180007-a7a7d8-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; + } } } omp.res SPECIAL NAMES: adding ok as a type Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_9eeb16.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_9eeb16.ml Compilation OK! Loading ML code of the SP... exn while in timeout_function oneline.res diff = --- tests/oneline.c +++ /tmp/cocci-output-2180007-ea9ad3-oneline.c @@ -1,4 +1,4 @@ int main () { - f(); - f(); + g(); + g(); } op.res diff = --- tests/op.c +++ /tmp/cocci-output-2180007-7d5220-op.c @@ -1,5 +1,4 @@ int main () { - return 3; } int main () { opt.res diff = --- tests/opt.c +++ /tmp/cocci-output-2180007-ba97b1-opt.c @@ -1,3 +1,2 @@ int main () { - yyy(); } optional_qualifier.res diff = --- tests/optional_qualifier.c +++ /tmp/cocci-output-2180007-c73273-optional_qualifier.c @@ -1,2 +1,2 @@ -int a; +const int a; const int b; optional_storage.res diff = --- tests/optional_storage.c +++ /tmp/cocci-output-2180007-2e86e0-optional_storage.c @@ -1,4 +1,4 @@ -int foo1(void) +static int foo1(void) { } orexp.res diff = --- tests/orexp.c +++ /tmp/cocci-output-2180007-85fb88-orexp.c @@ -1,3 +1,3 @@ int main() { - bar(12+12); + 4; } output.res exn while in timeout_function output_init.res exn while in timeout_function 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 +++ /tmp/cocci-output-2180007-82065d-overshoot.c @@ -1,9 +1,8 @@ int main () { a(); - s(); - d(); - f(); - b(); + g(); + g(); + g(); b(); q(); } p1p2.res SPECIAL NAMES: adding Error as a type warning: line 9: should errp be a metavariable? warning: line 20: should errp be a metavariable? diff = --- tests/p1p2.c +++ /tmp/cocci-output-2180007-6617d7-p1p2.c @@ -1,3 +1,3 @@ -int main(int x, Error **errp); +int __attribute__((nonnull(1))) main(int x, Error **errp); -int main(int x, int y, Error **errp); +int __attribute__((nonnull(2))) main(int x, int y, Error **errp); p9.res diff = --- tests/p9.c +++ /tmp/cocci-output-2180007-14889d-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 +++ /tmp/cocci-output-2180007-f02e8f-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; } packed.res param.res diff = --- tests/param.c +++ /tmp/cocci-output-2180007-e52a32-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 +++ /tmp/cocci-output-2180007-22b7c8-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 +++ /tmp/cocci-output-2180007-39c894-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 +++ /tmp/cocci-output-2180007-3df5c0-param_ver1.c @@ -1 +1 @@ -void foo(int x) { return; } + parameters_dots.res diff = --- tests/parameters_dots.c +++ /tmp/cocci-output-2180007-c1b57e-parameters_dots.c @@ -1,7 +1,3 @@ void main(int i) { - - f(1); g(3); - f(1,2); - f(); } parenmac.res diff = --- tests/parenmac.c +++ /tmp/cocci-output-2180007-00c820-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 +++ /tmp/cocci-output-2180007-840bb6-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; } partialmd.res diff = --- tests/partialmd.c +++ /tmp/cocci-output-2180007-23b02c-partialmd.c @@ -1,3 +1,4 @@ int main () { - int a,b,c; + int b,c; + int q; } partialmd2.res diff = --- tests/partialmd2.c +++ /tmp/cocci-output-2180007-13cff9-partialmd2.c @@ -1,3 +1,4 @@ int main () { - int a,b,c; + int a,c; + int q; } partialmd3.res diff = --- tests/partialmd3.c +++ /tmp/cocci-output-2180007-1f613a-partialmd3.c @@ -1,3 +1,4 @@ int main () { - int a,b,c; + int a,b; + int q; } pb_distribute_type.res warning: line 6: should x be a metavariable? diff = --- tests/pb_distribute_type.c +++ /tmp/cocci-output-2180007-32b115-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 +++ /tmp/cocci-output-2180007-7161d1-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 +++ /tmp/cocci-output-2180007-829026-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 +++ /tmp/cocci-output-2180007-185211-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 +++ /tmp/cocci-output-2180007-cf5ea2-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 +++ /tmp/cocci-output-2180007-81ade0-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 +++ /tmp/cocci-output-2180007-44e484-pcim.c @@ -1,5 +1,6 @@ int main () { - ctx->sensePA = pci_map_single(adapter->dev, cmd->sense_buffer, + ctx->sensePA = dma_map_single(&adapter->dev->dev, + cmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, - PCI_DMA_FROMDEVICE); + DMA_FROM_DEVICE); } pcomma.res diff = --- tests/pcomma.c +++ /tmp/cocci-output-2180007-e7c4f2-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); } pif.res diff = --- tests/pif.c +++ /tmp/cocci-output-2180007-2dc598-pif.c @@ -1,5 +1 @@ -void f(void) -{ -/* hello */ -#pragma omp very very critical -} + plus33.res diff = --- tests/plus33.c +++ /tmp/cocci-output-2180007-6c9f56-plus33.c @@ -1 +1,2 @@ +typedef double double3x3[3][3]; int x; pmac.res diff = --- tests/pmac.c +++ /tmp/cocci-output-2180007-7adf52-pmac.c @@ -4,7 +4,5 @@ #include #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 Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_abfb6c.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_abfb6c.ml Compilation OK! Loading ML code of the SP... diff = --- tests/poscon.c +++ /tmp/cocci-output-2180007-00417c-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); } posiso.res diff = --- tests/posiso.c +++ /tmp/cocci-output-2180007-901a55-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 +++ /tmp/cocci-output-2180007-26ee98-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 +++ /tmp/cocci-output-2180007-60145c-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); } pragma2.res diff = --- tests/pragma2.c +++ /tmp/cocci-output-2180007-5f02e8-pragma2.c @@ -4,7 +4,7 @@ int main() int n = 3; // FIXME: problem: uncommenting this breaks matching #pragma omp target map(tofrom: u[0:n*n], u_tmp[0:n*n]) -#pragma omp teams distribute parallel for simd +#pragma omp loop for(int i=0;ievent |= 1 << event; - schedule_work(&bcs->work); -} proto2.res diff = --- tests/proto2.c +++ /tmp/cocci-output-2180007-49adbe-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 +++ /tmp/cocci-output-2180007-b91a23-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 +++ /tmp/cocci-output-2180007-b92ea4-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 +++ /tmp/cocci-output-2180007-cad59e-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? ptrar.res diff = --- tests/ptrar.c +++ /tmp/cocci-output-2180007-892fe1-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; } ptrconstptr.res diff = --- tests/ptrconstptr.c +++ /tmp/cocci-output-2180007-3724ef-ptrconstptr.c @@ -1,3 +1,3 @@ void main() { - const char * const * x; + const char * const * y; } putloop.res SPECIAL NAMES: adding for_each_child_of_node as a iterator SPECIAL NAMES: adding for_each_child_of_node_scoped as a iterator warning: rule starting on line 12: metavariable S not used in the - or context code diff = --- tests/putloop.c +++ /tmp/cocci-output-2180007-1a7794-putloop.c @@ -4,13 +4,11 @@ static int atmel_pctl_dt_node_to_map(str unsigned int *num_maps) { if (ret) { - for_each_child_of_node(np_config, np) { + for_each_child_of_node_scoped(np_config, np) { ret = atmel_pctl_dt_subnode_to_map(pctldev, np, map, &reserved_maps, num_maps); - if (ret < 0) { - of_node_put(np); + if (ret < 0) break; - } } } python_iteration.res exn while in timeout_function python_mdecl.res warning: rule starting on line 14: inherited metavariable unbound not used in the -, +, or context code exn while in timeout_function python_mdeclp.res exn while in timeout_function python_poscon.res exn while in timeout_function qcom.res qualifier.res SPECIAL NAMES: adding survived_r1 as a type diff = --- tests/qualifier.c +++ /tmp/cocci-output-2180007-ecf81f-qualifier.c @@ -1,11 +1,11 @@ int *foo(const int *i) { - return (int *)i; + return (survived_r1) i; } int *foo2(int *i) { - return (int *)i; + return i; } struct bar { @@ -16,15 +16,15 @@ struct bar { int *baz(const struct bar *b) { if (b->i) - return (int *)&b->i; + return (survived_r1)&b->i; else - return (int *)&b->j[0]; + return (survived_r1)&b->j[0]; } int *baz2(struct bar *b) { if (b->i) - return (int *)&b->i; + return &b->i; else - return (int *)&b->j[0]; + return &b->j[0]; } range.res diff = --- tests/range.c +++ /tmp/cocci-output-2180007-e04a6e-range.c @@ -1,17 +1,8 @@ int main() { - f(1); - f(1,2); - f(1,2,3); f(1,2,3,4); f(1,2,3,4,5); - g(1); - g(1,2); - g(1,2,3); g(1,2,3,4); g(1,2,3,4,5); - h(1); - h(1,2); - h(1,2,3); h(1,2,3,4); h(1,2,3,4,5); } rb.res SPECIAL NAMES: adding RB_DECLARE_CALLBACKS_MAX as a declarer diff = --- tests/rb.c +++ /tmp/cocci-output-2180007-a06446-rb.c @@ -1,2 +1 @@ -RB_DECLARE_CALLBACKS_MAX(static, augment_callbacks, struct drbd_interval, -rb, sector_t, end, NODE_END); + rcu3.res diff = --- tests/rcu3.c +++ /tmp/cocci-output-2180007-836e49-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); } refl.res diff = --- tests/refl.c +++ /tmp/cocci-output-2180007-2c68c9-refl.c @@ -1,5 +1,3 @@ int main () { int x; - one(&x); - two(&x); } regesc.res diff = --- tests/regesc.c +++ /tmp/cocci-output-2180007-6812b5-regesc.c @@ -1,5 +1,5 @@ int main () { - f(".foo"); - f("\.foo"); + 22; + 23; } regexp.res diff = --- tests/regexp.c +++ /tmp/cocci-output-2180007-df8855-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 +++ /tmp/cocci-output-2180007-6b7d0d-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 +++ /tmp/cocci-output-2180007-5c538d-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; } relevant_position.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_ffb9f2.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_ffb9f2.ml Compilation OK! Loading ML code of the SP... diff = --- tests/relevant_position.c +++ /tmp/cocci-output-2180007-d7254e-relevant_position.c @@ -1,4 +1,4 @@ -struct blah { struct list_head xxx; }; + struct sk_buff { int x; rem1.res diff = --- tests/rem1.c +++ /tmp/cocci-output-2180007-9eda2d-rem1.c @@ -1,5 +1,4 @@ int main () { xxx(); - if (x) { foo(); } yyy(); } rem2.res diff = --- tests/rem2.c +++ /tmp/cocci-output-2180007-997581-rem2.c @@ -1,5 +1,4 @@ int main () { xxx(); - if (x) foo(); yyy(); } remaft.res diff = --- tests/remaft.c +++ /tmp/cocci-output-2180007-9dc0e4-remaft.c @@ -1,8 +1,6 @@ int main() { #ifdef BLAH - a(); #endif - b(); c() #ifdef BLAH ; remcom.res diff = --- tests/remcom.c +++ /tmp/cocci-output-2180007-d4d004-remcom.c @@ -3,20 +3,12 @@ asyncmeta_retry( Operation *op ) { if ( LogTest( LDAP_DEBUG_ANY ) ) { - char buf[ SLAP_TEXT_BUFLEN ]; - /* this lock is required; however, * it's invoked only when logging is on */ ldap_pvt_thread_mutex_lock( &mt->mt_uri_mutex ); - snprintf( buf, sizeof( buf ), - "retrying URI=\"%s\" DN=\"%s\"", - mt->mt_uri, - BER_BVISNULL( &msc->msc_bound_ndn ) ? - "" : msc->msc_bound_ndn.bv_val ); + Debug(LDAP_DEBUG_ANY, merged, op->o_log_prefix, candidate, + mt->mt_uri, + BER_BVISNULL(&msc->msc_bound_ndn) ? "" : msc->msc_bound_ndn.bv_val); ldap_pvt_thread_mutex_unlock( &mt->mt_uri_mutex ); - - Debug( LDAP_DEBUG_ANY, - "%s asyncmeta_retry[%d]: %s.\n", - op->o_log_prefix, candidate, buf ); } } remcom2.res diff = --- tests/remcom2.c +++ /tmp/cocci-output-2180007-0e0276-remcom2.c @@ -2,7 +2,5 @@ int fn() { if (y) { x(); - - Debug(); } } remodif.res diff = --- tests/remodif.c +++ /tmp/cocci-output-2180007-01e9cd-remodif.c @@ -5,7 +5,7 @@ static int hexium_attach(struct saa7146_ DEB_EE("\n"); - hexium = kzalloc(sizeof(struct hexium), GFP_KERNEL); + hexium = kzalloc(sizeof(*hexium), GFP_KERNEL); hexium->i2c_adapter = (struct i2c_adapter) { .name = "hexium gemini", }; remove-code-in-branch1.res diff = --- tests/remove-code-in-branch1.c +++ /tmp/cocci-output-2180007-20a34f-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 +++ /tmp/cocci-output-2180007-8eb1ce-remove_call.c @@ -1,6 +1,2 @@ int main () { - int x = 3 + FN() + FN(); - x = 3 + FN() + FN(); - FN(); - return 3 + FN() + FN(); } remove_cast_attr.res SPECIAL NAMES: adding __cast_attr as a attribute diff = --- tests/remove_cast_attr.c +++ /tmp/cocci-output-2180007-666314-remove_cast_attr.c @@ -2,9 +2,9 @@ int func() { - int *a = (int __cast_attr) x; - int *a = (__cast_attr int) x; + int *a = (int) x; + int *a = (int) x; int *a = (int __cast_attr *) x; - int *a = (int *__cast_attr) x; + int *a = (int *) x; int *a = (int) x; } remove_cast_attr_allminus.res diff = --- tests/remove_cast_attr_allminus.c +++ /tmp/cocci-output-2180007-fa0c9c-remove_cast_attr_allminus.c @@ -2,9 +2,9 @@ int func() { - int *a = (int __cast_attr) x; - int *a = (__cast_attr int) x; - int *a = (int __cast_attr *) x; - int *a = (int *__cast_attr) x; - int *a = (int) x; + int *a = (int *) x; + int *a = (int *) x; + int *a = (int *) x; + int *a = (int *) x; + int *a = (int *) x; } remove_macrodecl_attr.res SPECIAL NAMES: adding DECLARER as a declarer SPECIAL NAMES: adding __macro_attr as a attribute diff = --- tests/remove_macrodecl_attr.c +++ /tmp/cocci-output-2180007-fcdd08-remove_macrodecl_attr.c @@ -1,3 +1,3 @@ #define __macro_attr MACROANNOTATION -DECLARER(a, b) __macro_attr; +DECLARER(a, b); remove_metaattr.res SPECIAL NAMES: adding __attr__ as a attribute diff = --- tests/remove_metaattr.c +++ /tmp/cocci-output-2180007-addf10-remove_metaattr.c @@ -1,5 +1,5 @@ int main() { - int b __attr__ = 1; + int b = 1; int b = 1; return 0; } remove_param_attrs.res SPECIAL NAMES: adding __nocast as a attribute diff = --- tests/remove_param_attrs.c +++ /tmp/cocci-output-2180007-35d644-remove_param_attrs.c @@ -6,15 +6,15 @@ int func2(int x, int __nocast y) { return 0; } -int func3(int x, int y __nocast) { +int func3(int x, int y) { return 0; } -int func1(int x, __attribute__((nocast)) int y) { +int func1(int x, int y) { return 0; } -int func2(int x, int __attribute__((nocast)) y) { +int func2(int x, int y) { return 0; } remove_struct_endattr.res SPECIAL NAMES: adding __struct_endattr as a attribute diff = --- tests/remove_struct_endattr.c +++ /tmp/cocci-output-2180007-363e30-remove_struct_endattr.c @@ -4,4 +4,4 @@ struct abcd { int a; int b; int c; -} __struct_endattr; +}; remove_struct_endattr_allminus.res SPECIAL NAMES: adding __struct_endattr as a attribute diff = --- tests/remove_struct_endattr_allminus.c +++ /tmp/cocci-output-2180007-74b34c-remove_struct_endattr_allminus.c @@ -1,13 +1 @@ #define __struct_endattr MACROANNOTATION - -struct abcd { - int a; - int b; - int c; -} __struct_endattr; - -struct defg { - int a; - int b; - int c; -}; remparam.res diff = --- tests/remparam.c +++ /tmp/cocci-output-2180007-182d90-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 +++ /tmp/cocci-output-2180007-44c209-rems.c @@ -1,5 +1,4 @@ int main () { x(); - if (x) a(); y(); } rems1.res diff = --- tests/rems1.c +++ /tmp/cocci-output-2180007-835a96-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 +++ /tmp/cocci-output-2180007-1386ad-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 ) { remu.res diff = --- tests/remu.c +++ /tmp/cocci-output-2180007-aae88e-remu.c @@ -1,5 +1,4 @@ struct anon_vma { int x; - unsigned degree; int y; }; replace_typedef.res diff = --- tests/replace_typedef.c +++ /tmp/cocci-output-2180007-397399-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; } replacement3.res diff = --- tests/replacement3.c +++ /tmp/cocci-output-2180007-963d92-replacement3.c @@ -1,6 +1,5 @@ int main() { - int *i; { - i = e(el); + int *i = e(el); } } reserved.res diff = --- tests/reserved.c +++ /tmp/cocci-output-2180007-d9b83e-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 +++ /tmp/cocci-output-2180007-6d9b38-retest.c @@ -1,6 +1,6 @@ int main () { foo(); - if (x) + if (f(x)) return 3; bar(); } retmacro.res diff = --- tests/retmacro.c +++ /tmp/cocci-output-2180007-ec5f21-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 +++ /tmp/cocci-output-2180007-7ad23e-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 +++ /tmp/cocci-output-2180007-2925c3-return_implicit.c @@ -1,4 +1,5 @@ void main(void) { foo(); + return -ENODEV; } retval.res diff = --- tests/retval.c +++ /tmp/cocci-output-2180007-b0af97-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 +++ /tmp/cocci-output-2180007-cccc74-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) { reusevar.res warning: rule starting on line 8: metavariable p1 not used in the - or context code diff = --- tests/reusevar.c +++ /tmp/cocci-output-2180007-d81e00-reusevar.c @@ -1,8 +1,5 @@ int main () { - f(x); - f(q); - f(x); - f(q); - f(x); - f(q); + g(x); + g(x); + g(x); } ringbuf.res roa.res SPECIAL NAMES: adding __ro_after_init as a attribute diff = --- tests/roa.c +++ /tmp/cocci-output-2180007-fd5178-roa.c @@ -1,10 +1,10 @@ -struct arm_delay_ops arm_delay_ops __ro_after_init = { +struct found used __ro_after_init = { .delay = __loop_delay, .const_udelay = __loop_const_udelay, .udelay = __loop_udelay, }; -struct arm_delay_ops2 arm_delay_ops2 = { +union arm_delay_ops2 not_used = { .delay = __loop_delay, .const_udelay = __loop_const_udelay, .udelay = __loop_udelay, roinit.res rptr.res diff = --- tests/rptr.c +++ /tmp/cocci-output-2180007-7c5eae-rptr.c @@ -1,6 +1,4 @@ int foo(struct resource *r) { - if (r == NULL) - return 0; return 1; } saft.res saft2.res same_expr.res diff = --- tests/same_expr.c +++ /tmp/cocci-output-2180007-59de49-same_expr.c @@ -1,6 +1,5 @@ void main(int i) { - f(1,1); f(1,2); } sbef.res diff = --- tests/sbef.c +++ /tmp/cocci-output-2180007-1d5075-sbef.c @@ -2,6 +2,5 @@ int main () { { a(); b(); - a(); } } sbef2.res diff = --- tests/sbef2.c +++ /tmp/cocci-output-2180007-69cfed-sbef2.c @@ -1,5 +1,4 @@ int main() { f(12); f(20); - a(); } scope_problem.res diff = --- tests/scope_problem.c +++ /tmp/cocci-output-2180007-f30280-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; - } sd_2.res SPECIAL NAMES: adding MyDouble as a type SPECIAL NAMES: adding MyFloat as a type diff = --- tests/sd_2.c +++ /tmp/cocci-output-2180007-7d981d-sd_2.c @@ -1 +1 @@ - struct particle_data_extra { MyFloat Mass; }; + struct particle_data_extra { MyFloat *Mass; }; serio.res diff = --- tests/serio.c +++ /tmp/cocci-output-2180007-ff37fc-serio.c @@ -1,8 +1,8 @@ struct serio { - struct semaphore drv_sem; + struct mutex new_lock; }; static void serio_init_port(struct serio *serio) { - init_MUTEX(&serio->drv_sem); + mutex_init(&serio->new_lock); } 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 +++ /tmp/cocci-output-2180007-815cf9-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? warning: line 16: should m be a metavariable? warning: line 23: should p be a metavariable? diff = --- tests/signed.c +++ /tmp/cocci-output-2180007-3a55ba-signed.c @@ -1,5 +1,5 @@ -int main(signed *m, unsigned *p) { - signed x; - unsigned a; +int main(signed *n, unsigned *q) { + signed y; + unsigned b; return x; } sis.res SPECIAL NAMES: adding DECLARE_MUTEX as a declarer SPECIAL NAMES: adding DEFINE_MUTEX as a declarer diff = --- tests/sis.c +++ /tmp/cocci-output-2180007-1e09a9-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 +++ /tmp/cocci-output-2180007-2fbd06-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 +++ /tmp/cocci-output-2180007-cdd6c4-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 +++ /tmp/cocci-output-2180007-c32e88-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 +++ /tmp/cocci-output-2180007-39870f-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; sizet1.res diff = --- tests/sizet1.c +++ /tmp/cocci-output-2180007-e740d6-sizet1.c @@ -1,3 +1,2 @@ int main() { - size_t x; } skip.res diff = --- tests/skip.c +++ /tmp/cocci-output-2180007-944641-skip.c @@ -1,5 +1,3 @@ int main () { - f(1); - f(2); - g(); + h(); } sl2.res diff = --- tests/sl2.c +++ /tmp/cocci-output-2180007-74eb0f-sl2.c @@ -1,11 +1,14 @@ int main () { + something(); + others(); + more(); +} + +int other () { one(); two(); one(); two(); -} - -int other () { one(); two(); one(); slen.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_fe3f92.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_fe3f92.ml Compilation OK! Loading ML code of the SP... diff = --- tests/slen.c +++ /tmp/cocci-output-2180007-425afc-slen.c @@ -3,16 +3,10 @@ int main() { one(); } if (x) { - one(); - two(); - three(); + was3(); } if (x) { - one(); - two(); - three(); - four(); - five(); + was5(); } end(); } smallfn.res diff = --- tests/smallfn.c +++ /tmp/cocci-output-2180007-b6924c-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(); } snprintf.res diff = --- tests/snprintf.c +++ /tmp/cocci-output-2180007-6000b2-snprintf.c @@ -1,4 +1,4 @@ static ssize_t idletimer_tg_show(char *buf) { - return snprintf(buf, PAGE_SIZE, "0\n"); + return sprintf(buf, PAGE_SIZE, "0\n"); } sp.res diff = --- tests/sp.c +++ /tmp/cocci-output-2180007-f804e3-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 +++ /tmp/cocci-output-2180007-60c1b5-spacing.c @@ -1,8 +1,21 @@ 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 +++ /tmp/cocci-output-2180007-a2bc56-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; } } split_funcall1.res diff = --- tests/split_funcall1.c +++ /tmp/cocci-output-2180007-3fe81c-split_funcall1.c @@ -1,4 +1,4 @@ int main(void) { - f(0, 1, 2); + g(0, 1, 2); } split_funcall2.res diff = --- tests/split_funcall2.c +++ /tmp/cocci-output-2180007-ee5926-split_funcall2.c @@ -1,4 +1,4 @@ int main(void) { - f(0, 1, 2); + g(0, 1, 2); } square.res diff = --- tests/square.c +++ /tmp/cocci-output-2180007-d60cf7-square.c @@ -2,7 +2,7 @@ int two() { return 2; } int main() { int a[3]; int b[3]; - a[0]=1; - a[b[0]]=0; - a[two()]=2; + a[0 + 0]=1; + a[0 + 0]=0; + a[0 + 0]=2; } starprint.res SPECIAL NAMES: adding LPINT as a type diff = --- tests/starprint.c +++ /tmp/cocci-output-2180007-c3dc78-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 +++ /tmp/cocci-output-2180007-62d516-static.c @@ -1,4 +1,3 @@ static inline int i8042_read_data(void) { - return jazz_kh->data; } stm1.res exn while in timeout_function stm10.res diff = --- tests/stm10.c +++ /tmp/cocci-output-2180007-de7629-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 +++ /tmp/cocci-output-2180007-aae590-stm10_ver1.c @@ -1,5 +1,6 @@ int main(int x) { f(); { replace(); replace();} + h(); g(); } stm2.res diff = --- tests/stm2.c +++ /tmp/cocci-output-2180007-16c95d-stm2.c @@ -1,5 +1,4 @@ int main(int x) { f(); - replace(); g(); } stm3.res diff = --- tests/stm3.c +++ /tmp/cocci-output-2180007-258b8a-stm3.c @@ -1,5 +1,5 @@ int main(int x) { f(); - replace(); + g(); g(); } stm4.res diff = --- tests/stm4.c +++ /tmp/cocci-output-2180007-cd2e66-stm4.c @@ -2,4 +2,5 @@ int main(int x) { f(); replace(); g(); + g(); } stm5.res diff = --- tests/stm5.c +++ /tmp/cocci-output-2180007-18d770-stm5.c @@ -1,5 +1,7 @@ int main(int x) { f(); + h(); replace(); g(); + g(); } stm6.res diff = --- tests/stm6.c +++ /tmp/cocci-output-2180007-cc1765-stm6.c @@ -1,5 +1,6 @@ int main(int x) { f(); + h(); replace(); g(); } stm7.res exn while in timeout_function stm8.res diff = --- tests/stm8.c +++ /tmp/cocci-output-2180007-ee6893-stm8.c @@ -1,5 +1,6 @@ int main(int x) { f(); + g(); replace(); g(); } stm_exp.res diff = --- tests/stm_exp.c +++ /tmp/cocci-output-2180007-99c228-stm_exp.c @@ -1,7 +1,5 @@ int main() { - abs(); foo(bar,x); - abs(); foo(h(a),0); abs(); foo(0,0); stmt.res diff = --- tests/stmt.c +++ /tmp/cocci-output-2180007-a8000f-stmt.c @@ -1,4 +1,5 @@ int f() { int x; + foo(); xxx(); } stmt_removed_and_added.res diff = --- tests/stmt_removed_and_added.c +++ /tmp/cocci-output-2180007-aefe5f-stmt_removed_and_added.c @@ -1,6 +1,6 @@ void main() { - for(i; j; k) { + while (1) { if (1) continue; c++; str_init.res warning: line 4: should x be a metavariable? diff = --- tests/str_init.c +++ /tmp/cocci-output-2180007-db5f10-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 +++ /tmp/cocci-output-2180007-e1627f-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 +++ /tmp/cocci-output-2180007-97fd4d-strid.c @@ -1,4 +1,4 @@ int main () { struct foo *a; - print(a); + print(f(a, 12)); } strid2.res diff = --- tests/strid2.c +++ /tmp/cocci-output-2180007-ec104b-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 strtest.res diff = --- tests/strtest.c +++ /tmp/cocci-output-2180007-a5b339-strtest.c @@ -1,3 +1,3 @@ int main() { - printf("hello\n"); + puts("hello\n"); } struct.res diff = --- tests/struct.c +++ /tmp/cocci-output-2180007-0dad6f-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 +++ /tmp/cocci-output-2180007-d15bec-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 +++ /tmp/cocci-output-2180007-7f3796-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 SPECIAL NAMES: adding FOO as a declarer warning: line 5: should my_foo be a metavariable? diff = --- tests/structfoo.c +++ /tmp/cocci-output-2180007-070dfc-structfoo.c @@ -1,4 +1 @@ -struct foo my_foo[] = { -.a = 1, -.u.b = 42, -}; +FOO(1, 42); structptr_func.res diff = --- tests/structptr_func.c +++ /tmp/cocci-output-2180007-52f5ea-structptr_func.c @@ -1,5 +1,6 @@ void func(struct socket *sock, struct sockaddr *uaddr, int peer) { - sock->ops->getname(sock, uaddr, peer); + int ___addr_len; + sock->ops->getname(sock, uaddr, &___addr_len, peer); return; } substruct.res diff = --- tests/substruct.c +++ /tmp/cocci-output-2180007-4dc84e-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 +++ /tmp/cocci-output-2180007-1cf336-sw.c @@ -1 +1 @@ -int f() { switch (x) { case FOO: return; } } + swap3.res diff = --- tests/swap3.c +++ /tmp/cocci-output-2180007-825329-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 +++ /tmp/cocci-output-2180007-0a9c72-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 +++ /tmp/cocci-output-2180007-e34292-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 +++ /tmp/cocci-output-2180007-38f1ab-symbol.c @@ -1,7 +1,5 @@ int main() { int f = 0; - f = 3; - return f; } td.res diff = --- tests/td.c +++ /tmp/cocci-output-2180007-f5ab32-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 +++ /tmp/cocci-output-2180007-7297a2-tdnl.c @@ -4,5 +4,4 @@ void main() { td2.attr; - foo(); } tdplus.res diff = --- tests/tdplus.c +++ /tmp/cocci-output-2180007-8f03cf-tdplus.c @@ -1 +1 @@ -typedef int (*filler_t)(int, int); +typedef int (*filler_t)(int, struct address_space *, int); tern.res diff = --- tests/tern.c +++ /tmp/cocci-output-2180007-38ce74-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 +++ /tmp/cocci-output-2180007-0a1b01-test0.c @@ -1,5 +1,3 @@ int main(int i) { - f(1); f(2); - f(1); } test1.res diff = --- tests/test1.c +++ /tmp/cocci-output-2180007-772aca-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 +++ /tmp/cocci-output-2180007-f8e3c5-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 +++ /tmp/cocci-output-2180007-0f2595-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 +++ /tmp/cocci-output-2180007-f7f4bf-test12.c @@ -1,6 +1,6 @@ void main(int foo) { - f(1); + f(1, 2); foo(); g(2); test2.res diff = --- tests/test2.c +++ /tmp/cocci-output-2180007-3c99e6-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 +++ /tmp/cocci-output-2180007-6fdc05-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 +++ /tmp/cocci-output-2180007-786014-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 +++ /tmp/cocci-output-2180007-070aba-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 +++ /tmp/cocci-output-2180007-87291c-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 +++ /tmp/cocci-output-2180007-ae18dd-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 +++ /tmp/cocci-output-2180007-c5fde8-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 +++ /tmp/cocci-output-2180007-b14897-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 +++ /tmp/cocci-output-2180007-a1ad9e-test9.c @@ -4,9 +4,9 @@ void main(int foo) { // f(1); // if uncomment 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 +++ /tmp/cocci-output-2180007-95bbce-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 +++ /tmp/cocci-output-2180007-7550f8-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 +++ /tmp/cocci-output-2180007-19d0eb-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 +++ /tmp/cocci-output-2180007-cfd43a-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 +++ /tmp/cocci-output-2180007-847386-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 +++ /tmp/cocci-output-2180007-98bbd6-threea.c @@ -1,4 +1,3 @@ int main() { f(12); - q(12); } tloop.res diff = --- tests/tloop.c +++ /tmp/cocci-output-2180007-ac114b-tloop.c @@ -1,6 +1,5 @@ int foo(void) { for (i = 0; ender(i); i--) { - x = 12; } } top.res SPECIAL NAMES: adding MODULE_PARM as a declarer SPECIAL NAMES: adding module_param as a declarer diff = --- tests/top.c +++ /tmp/cocci-output-2180007-9b4951-top.c @@ -1 +1 @@ -MODULE_PARM(suppress_pollack, "i"); +module_param(I, int, 0); topdec.res SPECIAL NAMES: adding LIST_HEAD as a declarer diff = --- tests/topdec.c +++ /tmp/cocci-output-2180007-3d02a4-topdec.c @@ -5,4 +5,4 @@ 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 +++ /tmp/cocci-output-2180007-004f32-topdec_ver1.c @@ -4,4 +4,4 @@ static int debug; /* Network device part of the driver */ -static struct ethtool_ops tun_ethtool_ops; +static const struct ethtool_ops tun_ethtool_ops; topdec_ver2.res diff = --- tests/topdec_ver2.c +++ /tmp/cocci-output-2180007-1fb53a-topdec_ver2.c @@ -5,4 +5,4 @@ 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; topdecl.res diff = --- tests/topdecl.c +++ /tmp/cocci-output-2180007-ce92e4-topdecl.c @@ -1,3 +1,3 @@ int main () { - int x = foo(); + int x = xxx(); } toplevel_macrostmt.res SPECIAL NAMES: adding MODULE_PARM as a declarer SPECIAL NAMES: adding module_param as a declarer diff = --- tests/toplevel_macrostmt.c +++ /tmp/cocci-output-2180007-592559-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 +++ /tmp/cocci-output-2180007-4a2649-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); } triplet.res diff = --- tests/triplet.c +++ /tmp/cocci-output-2180007-648b88-triplet.c @@ -1,5 +1,6 @@ typedef double dtriplet_t[3] ; // FIXME: such code would not be parsed on cocci side +typedef int itriplet_t[3]; int main() { return 0; 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 +++ /tmp/cocci-output-2180007-7d7095-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 +++ /tmp/cocci-output-2180007-6635bc-twomatch.c @@ -1,5 +1,5 @@ int main() { bar(12,1); - xxx(12,1); + yyy(); } twoproto.res SPECIAL NAMES: adding dev_link_t as a type diff = --- tests/twoproto.c +++ /tmp/cocci-output-2180007-f6c19b-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 +++ /tmp/cocci-output-2180007-1785df-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 +++ /tmp/cocci-output-2180007-dbb1fc-ty1.c @@ -1,4 +1,3 @@ int fn(int y) { char x; - foo(int,char); } ty_tyexp.res diff = --- tests/ty_tyexp.c +++ /tmp/cocci-output-2180007-d6fe16-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 SPECIAL NAMES: adding int64_t as a type SPECIAL NAMES: adding uint64_t as a type diff = --- tests/tydisj.c +++ /tmp/cocci-output-2180007-f4206d-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 SPECIAL NAMES: adding Point as a type SPECIAL NAMES: adding Location as a type diff = --- tests/tyex.c +++ /tmp/cocci-output-2180007-fb477c-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 diff = --- tests/type.c +++ /tmp/cocci-output-2180007-165388-type.c @@ -1,5 +1,5 @@ int foo() { - int x; + int *x; return 0; } type1.res diff = --- tests/type1.c +++ /tmp/cocci-output-2180007-3ce3a3-type1.c @@ -1,5 +1,5 @@ int foo() { - int x; + int * x; return 0; } type_and_var.res diff = --- tests/type_and_var.c +++ /tmp/cocci-output-2180007-f07ea2-type_and_var.c @@ -1,22 +1,28 @@ int main1() { - size_t a, b; + size_t b; + int A; f(a,A); } int main2() { - size_t a, b; + size_t a; + int B; f(b,B); } int main3() { - size_t a, b, c; + int A; + int B; + int C; f(a,A); f(b,B); f(c,C); } int main4() { - size_t a, b, c; + size_t a; + int B; + int C; f(b,B); f(c,C); } type_and_var2.res diff = --- tests/type_and_var2.c +++ /tmp/cocci-output-2180007-c35e36-type_and_var2.c @@ -1,22 +1,28 @@ int main1() { - size_t a, b; + size_t b; + int A; f(a,A); } int main2() { - size_t a, b; + size_t a; + int B; f(b,B); } int main3() { - size_t a, b, c; + int A; f(a,A); + int B; f(b,B); + int C; f(c,C); } int main4() { - size_t a, b, c; + size_t a; + int B; f(b,B); + int C; f(c,C); } type_annotated.res diff = --- tests/type_annotated.c +++ /tmp/cocci-output-2180007-7cc3d6-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_constraints.res diff = --- tests/type_constraints.c +++ /tmp/cocci-output-2180007-a9cc89-type_constraints.c @@ -1,9 +1,9 @@ void f(void) { int i; char c; - float f; - int *foo = xyz; - char *foo = xyz; + float *f; + int *foo = abc; + char *foo = abc; float *foo = xyz; } type_ver1.res diff = --- tests/type_ver1.c +++ /tmp/cocci-output-2180007-fa7b83-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 +++ /tmp/cocci-output-2180007-34fb13-type_ver2.c @@ -1,5 +1,5 @@ int foo() { - int x[10]; + int[10] *x; return 0; } typedef.res SPECIAL NAMES: adding dev_link_t as a type diff = --- tests/typedef.c +++ /tmp/cocci-output-2180007-407ac4-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 SPECIAL NAMES: adding dev_link_t as a type diff = --- tests/typedef3.c +++ /tmp/cocci-output-2180007-771b94-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 +++ /tmp/cocci-output-2180007-bdc301-typeof.c @@ -1,6 +1,4 @@ int main() { int x; - f(x); f(sizeof(struct foo)); - f(sizeof(int)); } typeof_expr.res diff = --- tests/typeof_expr.c +++ /tmp/cocci-output-2180007-c3d194-typeof_expr.c @@ -1,4 +1,4 @@ int main () { int x = 0; - f(typeof(x)); + f(x); } typeofconst_i32l64.res diff = --- tests/typeofconst_i32l64.c +++ /tmp/cocci-output-2180007-e05134-typeofconst_i32l64.c @@ -1,49 +1,49 @@ void f() { -0; -1; -2; -3; -4; -5; -6; -7; -8; -9; -10; -11; -12; -13; -14; -15; -16; -17; -18; -19; -20; -21; -22; -23; -24; -25; -26; -27; -28; -29; -30; -31; -32; +INT(0); +INT(1); +INT(2); +INT(3); +INT(4); +INT(5); +INT(6); +INT(7); +INT(8); +INT(9); +INT(10); +INT(11); +INT(12); +INT(13); +INT(14); +INT(15); +INT(16); +INT(17); +INT(18); +INT(19); +INT(20); +INT(21); +INT(22); +INT(23); +INT(24); +INT(25); +INT(26); +INT(27); +INT(28); +INT(29); +INT(30); +INT(31); +INT(32); -2147483647; // 2**31 - 1 -2147483648; // 2**31 -2147483649; // 2**31 + 1 +INT(2147483647); // 2**31 - 1 +LONG(2147483648); // 2**31 +LONG(2147483649); // 2**31 + 1 -4294967295; // 2**32 - 1 -4294967296; // 2**32 -4294967297; // 2**32 + 1 +LONG(4294967295); // 2**32 - 1 +LONG(4294967296); // 2**32 +LONG(4294967297); // 2**32 + 1 -9223372036854775807; // 2**63 - 1 -9223372036854775808; // 2**63 -9223372036854775809; // 2**63 +1 +LONG(9223372036854775807); // 2**63 - 1 +ULONG(9223372036854775808); // 2**63 +ULONG(9223372036854775809); // 2**63 +1 -18446744073709551615; // 2**64 - 1 +ULONG(18446744073709551615); // 2**64 - 1 } typeofconst_il32.res diff = --- tests/typeofconst_il32.c +++ /tmp/cocci-output-2180007-adb5b3-typeofconst_il32.c @@ -1,49 +1,49 @@ void f() { -0; -1; -2; -3; -4; -5; -6; -7; -8; -9; -10; -11; -12; -13; -14; -15; -16; -17; -18; -19; -20; -21; -22; -23; -24; -25; -26; -27; -28; -29; -30; -31; -32; +INT(0); +INT(1); +INT(2); +INT(3); +INT(4); +INT(5); +INT(6); +INT(7); +INT(8); +INT(9); +INT(10); +INT(11); +INT(12); +INT(13); +INT(14); +INT(15); +INT(16); +INT(17); +INT(18); +INT(19); +INT(20); +INT(21); +INT(22); +INT(23); +INT(24); +INT(25); +INT(26); +INT(27); +INT(28); +INT(29); +INT(30); +INT(31); +INT(32); -2147483647; // 2**31 - 1 -2147483648; // 2**31 -2147483649; // 2**31 + 1 +INT(2147483647); // 2**31 - 1 +ULONG(2147483648); // 2**31 +ULONG(2147483649); // 2**31 + 1 -4294967295; // 2**32 - 1 -4294967296; // 2**32 -4294967297; // 2**32 + 1 +ULONG(4294967295); // 2**32 - 1 +LONGLONG(4294967296); // 2**32 +LONGLONG(4294967297); // 2**32 + 1 -9223372036854775807; // 2**63 - 1 -9223372036854775808; // 2**63 -9223372036854775809; // 2**63 +1 +LONGLONG(9223372036854775807); // 2**63 - 1 +LONGLONG(9223372036854775808); // 2**63 +LONGLONG(9223372036854775809); // 2**63 +1 -18446744073709551615; // 2**64 - 1 +LONGLONG(18446744073709551615); // 2**64 - 1 } typin.res diff = --- tests/typin.c +++ /tmp/cocci-output-2180007-279524-typin.c @@ -2,7 +2,7 @@ int x; char y; int main() { - m(f(x), 5); + m(f(20), 20); r(gg(y), '5'); - s(h(x,y), "5"); + s(h(20,y), "5"); } uc.res unbrace.res SPECIAL NAMES: adding list_for_each_entry as a iterator warning: line 13: should list be a metavariable? diff = warning: rule starting on line 1, node 30: {2[1,2,12,13] in mlxsw_sp_flower_parse_actions may be inconsistently modified warning: rule starting on line 1, node 41: }2[1,2,12,13] in mlxsw_sp_flower_parse_actions may be inconsistently modified warning: rule starting on line 1, node 26: foreach[1,2,12]* in mlxsw_sp_flower_parse_actions may be inconsistently modified warning: rule starting on line 1, node 30: {2[1,2,12,13] in mlxsw_sp_flower_parse_actions may be inconsistently modified warning: rule starting on line 1, node 26: foreach[1,2,12]* in mlxsw_sp_flower_parse_actions may be inconsistently modified warning: rule starting on line 1, node 320: }2[1,2,12,13] in mlxsw_sp_flower_parse_actions may be inconsistently modified --- tests/unbrace.c +++ /tmp/cocci-output-2180007-193bf0-unbrace.c @@ -5,8 +5,6 @@ static int mlxsw_sp_flower_parse_actions struct netlink_ext_ack *extack) { const struct tc_action *a; - LIST_HEAD(actions); - int err; if (!tcf_exts_has_actions(exts)) return 0; @@ -15,13 +13,9 @@ static int mlxsw_sp_flower_parse_actions err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); if (err) return err; - - tcf_exts_to_list(exts, &actions); - list_for_each_entry(a, &actions, list) { - one(); - if (two()) - return 1; - } + one(); + if (two()) + return 1; return 0; } @@ -33,8 +27,6 @@ static int mlxsw_sp_flower_parse_actions struct netlink_ext_ack *extack) { const struct tc_action *a; - LIST_HEAD(actions); - int err; if (!tcf_exts_has_actions(exts)) return 0; @@ -43,83 +35,79 @@ static int mlxsw_sp_flower_parse_actions err = mlxsw_sp_acl_rulei_act_count(mlxsw_sp, rulei, extack); if (err) return err; - - tcf_exts_to_list(exts, &actions); - list_for_each_entry(a, &actions, list) { - if (is_tcf_gact_ok(a)) { - err = mlxsw_sp_acl_rulei_act_terminate(rulei); - if (err) { - NL_SET_ERR_MSG_MOD(extack, "Cannot append terminate action"); - return err; - } - } else if (is_tcf_gact_shot(a)) { - err = mlxsw_sp_acl_rulei_act_drop(rulei); - if (err) { - NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action"); - return err; - } - } else if (is_tcf_gact_trap(a)) { - err = mlxsw_sp_acl_rulei_act_trap(rulei); - if (err) { - NL_SET_ERR_MSG_MOD(extack, "Cannot append trap action"); - return err; - } - } else if (is_tcf_gact_goto_chain(a)) { - u32 chain_index = tcf_gact_goto_chain_index(a); - struct mlxsw_sp_acl_ruleset *ruleset; - u16 group_id; - - ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block, - chain_index, - MLXSW_SP_ACL_PROFILE_FLOWER); - if (IS_ERR(ruleset)) - return PTR_ERR(ruleset); - - group_id = mlxsw_sp_acl_ruleset_group_id(ruleset); - err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); - if (err) { - NL_SET_ERR_MSG_MOD(extack, "Cannot append jump action"); - return err; - } - } else if (is_tcf_mirred_egress_redirect(a)) { - struct net_device *out_dev; - struct mlxsw_sp_fid *fid; - u16 fid_index; - - fid = mlxsw_sp_acl_dummy_fid(mlxsw_sp); - fid_index = mlxsw_sp_fid_index(fid); - err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei, - fid_index, extack); - if (err) - return err; - - out_dev = tcf_mirred_dev(a); - err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei, - out_dev, extack); - if (err) - return err; - } else if (is_tcf_mirred_egress_mirror(a)) { - struct net_device *out_dev = tcf_mirred_dev(a); - - err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei, - block, out_dev, - extack); - if (err) - return err; - } else if (is_tcf_vlan(a)) { - u16 proto = be16_to_cpu(tcf_vlan_push_proto(a)); - u32 action = tcf_vlan_action(a); - u8 prio = tcf_vlan_push_prio(a); - u16 vid = tcf_vlan_push_vid(a); - - return mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei, - action, vid, - proto, prio, extack); - } else { - NL_SET_ERR_MSG_MOD(extack, "Unsupported action"); - dev_err(mlxsw_sp->bus_info->dev, "Unsupported action\n"); - return -EOPNOTSUPP; + if (is_tcf_gact_ok(a)) { + err = mlxsw_sp_acl_rulei_act_terminate(rulei); + if (err) { + NL_SET_ERR_MSG_MOD(extack, "Cannot append terminate action"); + return err; + } + } else if (is_tcf_gact_shot(a)) { + err = mlxsw_sp_acl_rulei_act_drop(rulei); + if (err) { + NL_SET_ERR_MSG_MOD(extack, "Cannot append drop action"); + return err; + } + } else if (is_tcf_gact_trap(a)) { + err = mlxsw_sp_acl_rulei_act_trap(rulei); + if (err) { + NL_SET_ERR_MSG_MOD(extack, "Cannot append trap action"); + return err; + } + } else if (is_tcf_gact_goto_chain(a)) { + u32 chain_index = tcf_gact_goto_chain_index(a); + struct mlxsw_sp_acl_ruleset *ruleset; + u16 group_id; + + ruleset = mlxsw_sp_acl_ruleset_lookup(mlxsw_sp, block, + chain_index, + MLXSW_SP_ACL_PROFILE_FLOWER); + if (IS_ERR(ruleset)) + return PTR_ERR(ruleset); + + group_id = mlxsw_sp_acl_ruleset_group_id(ruleset); + err = mlxsw_sp_acl_rulei_act_jump(rulei, group_id); + if (err) { + NL_SET_ERR_MSG_MOD(extack, "Cannot append jump action"); + return err; } + } else if (is_tcf_mirred_egress_redirect(a)) { + struct net_device *out_dev; + struct mlxsw_sp_fid *fid; + u16 fid_index; + + fid = mlxsw_sp_acl_dummy_fid(mlxsw_sp); + fid_index = mlxsw_sp_fid_index(fid); + err = mlxsw_sp_acl_rulei_act_fid_set(mlxsw_sp, rulei, + fid_index, extack); + if (err) + return err; + + out_dev = tcf_mirred_dev(a); + err = mlxsw_sp_acl_rulei_act_fwd(mlxsw_sp, rulei, + out_dev, extack); + if (err) + return err; +} else if (is_tcf_mirred_egress_mirror(a)) { + struct net_device *out_dev = tcf_mirred_dev(a); + + err = mlxsw_sp_acl_rulei_act_mirror(mlxsw_sp, rulei, + block, out_dev, + extack); + if (err) + return err; +} else if (is_tcf_vlan(a)) { + u16 proto = be16_to_cpu(tcf_vlan_push_proto(a)); + u32 action = tcf_vlan_action(a); + u8 prio = tcf_vlan_push_prio(a); + u16 vid = tcf_vlan_push_vid(a); + + return mlxsw_sp_acl_rulei_act_vlan(mlxsw_sp, rulei, + action, vid, + proto, prio, extack); + } else { + NL_SET_ERR_MSG_MOD(extack, "Unsupported action"); + dev_err(mlxsw_sp->bus_info->dev, "Unsupported action\n"); + return -EOPNOTSUPP; } return 0; } undref.res diff = --- tests/undref.c +++ /tmp/cocci-output-2180007-5eed2c-undref.c @@ -1,3 +1,3 @@ int main () { - bar(); + 42; } undref2.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_86c06c.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_86c06c.ml Compilation OK! Loading ML code of the SP... diff = the value of f: unknown --- tests/undref2.c +++ /tmp/cocci-output-2180007-46bb62-undref2.c @@ -1,3 +1,3 @@ int main () { - bar(); + 42; } undref3.res Using native version of ocamlc/ocamlopt/ocamldep ocamlopt.opt -shared -o /tmp/ocaml_cocci_e3fdaa.cmxs -g -I /build/reproducible-path/coccinelle-1.3.0.deb/ocaml -I /usr/lib/aarch64-linux-gnu/ocaml/5.2.0 -for-pack Coccinelle_modules /tmp/ocaml_cocci_e3fdaa.ml Compilation OK! Loading ML code of the SP... diff = the value of f: unknown --- tests/undref3.c +++ /tmp/cocci-output-2180007-b5d980-undref3.c @@ -1,3 +1,3 @@ int main () { - bar(); + 42; } unelse.res diff = --- tests/unelse.c +++ /tmp/cocci-output-2180007-ddd51e-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 +++ /tmp/cocci-output-2180007-563049-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 +++ /tmp/cocci-output-2180007-0dc08e-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; } unstruct.res diff = --- tests/unstruct.c +++ /tmp/cocci-output-2180007-6fdcfa-unstruct.c @@ -1,4 +1,4 @@ -struct foo x __read_mostly = { .a = 12, }; -foo_t bar_t x(int y) { return 0; } + +foo_t unused.res diff = --- tests/unused.c +++ /tmp/cocci-output-2180007-8df1f6-unused.c @@ -2,5 +2,5 @@ static int synth_field_string_size(char { char *start; - start = strstr(type, "char["); + start = 12; } updassign.res diff = --- tests/updassign.c +++ /tmp/cocci-output-2180007-04fa2a-updassign.c @@ -1,3 +1,3 @@ int main () { - int r = 1 + 2; + int r = 12; } useless_cast.res diff = --- tests/useless_cast.c +++ /tmp/cocci-output-2180007-9ffe81-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 SPECIAL NAMES: adding Scsi_Cmnd as a type SPECIAL NAMES: adding ty_id as a type SPECIAL NAMES: adding ty_id2 as a type warning: line 13: should ty_id be a metavariable? diff = --- tests/varargs.c +++ /tmp/cocci-output-2180007-d1f635-varargs.c @@ -1,6 +1,7 @@ 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, ...) { - ty_id ty_id; + ty_id2 ty_id; } varargs2.res diff = --- tests/varargs2.c +++ /tmp/cocci-output-2180007-2ba676-varargs2.c @@ -1,3 +1,4 @@ static void f(char *fmt, ...) { + return NULL; } varargs3.res diff = --- tests/varargs3.c +++ /tmp/cocci-output-2180007-be0b6b-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 +++ /tmp/cocci-output-2180007-82c44c-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 +++ /tmp/cocci-output-2180007-3b0291-void.c @@ -2,4 +2,14 @@ int xbar(void) { return; } // this is some info about bar +int foo(void) +{ + return; +} + int bar(void) { return; } + +int foo(void) +{ + return; +} vpos.res diff = --- tests/vpos.c +++ /tmp/cocci-output-2180007-7e2d8c-vpos.c @@ -1,9 +1,7 @@ int main() { f(2); if (x) { - g(1,1); } else { - g(1,2); } } wchar.res SPECIAL NAMES: adding char16_t as a type SPECIAL NAMES: adding char32_t as a type SPECIAL NAMES: adding wchar_t as a type diff = --- tests/wchar.c +++ /tmp/cocci-output-2180007-7da1b9-wchar.c @@ -1,13 +1,4 @@ #include #include int main () { - char zero = '\0'; - char16_t zero_utf16 = u'\0'; - char32_t zero_utf32 = U'\0'; - wchar_t zeroL = L'\0'; - char empty[] = ""; - char empty_utf8[] = u8""; - char16_t empty_utf16[] = u""; - char32_t empty_utf32[] = U""; - wchar_t emptyL[] = L""; } weird_argument.res diff = --- tests/weird_argument.c +++ /tmp/cocci-output-2180007-834c15-weird_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++; } weirdinit.res SPECIAL NAMES: adding dev_link_t as a type whitespace.res diff = --- tests/whitespace.c +++ /tmp/cocci-output-2180007-c1e992-whitespace.c @@ -1,3 +1,3 @@ int main () { - foo(sizeof (struct xxx)); + foo(sizeof(struct xxx), 12); } wrongcheck.res diff = --- tests/wrongcheck.c +++ /tmp/cocci-output-2180007-8031dd-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 +++ /tmp/cocci-output-2180007-4e3925-ws2.c @@ -1,6 +1,5 @@ int main() { - if (foo()) - goto err; + goto err; err: return; } xfield.res SPECIAL NAMES: adding FOO as a declarer diff = --- tests/xfield.c +++ /tmp/cocci-output-2180007-4b71fd-xfield.c @@ -1,4 +1,4 @@ -FOO(a2,b2,c2); +int x; /* int y; y2.res diff = --- tests/y2.c +++ /tmp/cocci-output-2180007-fb1a2c-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 +++ /tmp/cocci-output-2180007-45c563-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)); } zeroline.res diff = --- tests/zeroline.c +++ /tmp/cocci-output-2180007-6ffa44-zeroline.c @@ -1,6 +1,7 @@ int main () { - int x; - int y; - memset(&x,0,4); - memset(&y,0,4); + int x = { 0 }; + int y = { + 0, + 4 + }; } -------------------------------- statistics -------------------------------- 62.res : CORRECT a.res : CORRECT a3.res : CORRECT a3d.res : CORRECT a_and_e.res : CORRECT a_and_e_ver1.res : CORRECT ab.res : CORRECT action.res : CORRECT add1.res : CORRECT addaft.res : CORRECT addafterdecl.res : CORRECT addbefore.res : CORRECT addbeforeafter.res : CORRECT addcomm.res : CORRECT addelse.res : CORRECT addes.res : CORRECT addfield.res : CORRECT addfield2.res : CORRECT addif.res : CORRECT addif1.res : CORRECT addif2.res : CORRECT addifdef.res : CORRECT addifelse.res : CORRECT addifelse2.res : CORRECT addinc.res : CORRECT addnl.res : CORRECT addtoo.res : CORRECT addtrace.res : CORRECT after_if.res : CORRECT allex.res : CORRECT allex2.res : CORRECT allex3.res : CORRECT andid.res : CORRECT anon.res : CORRECT anonfield.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 assign_deref_funcall_in_macro_it.res: CORRECT attr_with_arguments.res : CORRECT attradd.res : CORRECT attribute_order.res : CORRECT attributeb.res : CORRECT attrreplace.res : CORRECT attrs2groups.res : CORRECT b1.res : CORRECT b2.res : CORRECT bad_iso_example.res : CORRECT bad_kfree.res : CORRECT bad_ptr_print.res : CORRECT bad_typedef.res : CORRECT badcfg.res : CORRECT badexp.res : CORRECT badpos.res : CORRECT badtypedef.res : CORRECT badwhen.res : CORRECT badzero.res : CORRECT bc_1.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") befS.res : CORRECT before.res : CORRECT befored.res : CORRECT ben.res : CORRECT bigin.res : CORRECT bigrepl.res : CORRECT binop.res : CORRECT bitfield.res : CORRECT bitfield_matching.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") boolr.res : CORRECT bracebraceline.res : CORRECT braceline.res : CORRECT braces.res : CORRECT branchparen.res : CORRECT break.res : CORRECT btf.res : CORRECT bug1.res : CORRECT bugloop.res : PROBLEM exn = Failure("6: opt only allowed for the elements of a statement list") bugon.res : CORRECT bus.res : CORRECT cards.res : CORRECT caseprint.res : CORRECT cast.res : CORRECT cast_iso.res : CORRECT castdecl.res : CORRECT cex_snip_field_ok.res : CORRECT cex_wishlist_complex1.res : CORRECT cex_wishlist_complex2.res : CORRECT cex_wishlist_complex3.res : CORRECT change.res : CORRECT change_pragma.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") change_type.res : CORRECT changei.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.SMPLParseError("lexical error: unrecognised symbol, in token rule: `\n File \"tests/changei.cocci\", line 5, column 0, charpos = 100\n around = '`',\n whole content = `typedef struct a b` syntax\n") cocci_args.res : CORRECT com.res : CORRECT comadd.res : CORRECT comj.res : CORRECT comma.res : CORRECT comma_call.res : CORRECT comma_if.res : CORRECT comment_brace.res : CORRECT comment_brace2.res : CORRECT comment_line.res : CORRECT comment_middle.res : CORRECT commentbefore.res : CORRECT commentbefore2.res : CORRECT commentend.res : CORRECT comments.res : CORRECT compare.res : CORRECT compare_const.res : CORRECT compare_const2.res : CORRECT comreturn.res : CORRECT condexp.res : CORRECT const.res : CORRECT const1bis.res : CORRECT const_adding.res : CORRECT const_array.res : CORRECT const_implicit_iso.res : CORRECT constptr.res : CORRECT constraints.res : CORRECT constrem.res : CORRECT constructor.res : CORRECT constty.res : CORRECT constx.res : CORRECT countcalls.res : CORRECT countcalls.stdout : CORRECT countcalls_python.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") cptr.res : CORRECT cr.res : CORRECT cr1a.res : CORRECT cs_check.res : CORRECT cst.res : CORRECT cst_null.res : CORRECT cstr.res : CORRECT cststr.res : CORRECT csw.res : CORRECT dbg.res : CORRECT dbg1.res : CORRECT dc_close.res : CORRECT debug.res : CORRECT dec.res : CORRECT decadd.res : CORRECT decdup.res : CORRECT decdup2.res : CORRECT decdup3.res : CORRECT decdup4.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 declend.res : CORRECT declmeta.res : CORRECT defe.res : CORRECT define_exp.res : CORRECT define_param.res : CORRECT definedots.res : CORRECT defineinit.res : CORRECT deftodo.res : CORRECT del2.res : CORRECT delete_function.res : CORRECT delp.res : CORRECT depfail.res : CORRECT deref.res : CORRECT destroy.res : CORRECT detect_cast_attr.res : CORRECT detect_macrodecl_attr.res : CORRECT detect_param_attr.res : CORRECT detect_struct_endattr.res : CORRECT detect_struct_gccattr.res : CORRECT devlink.res : CORRECT disj.res : CORRECT disjexpr.res : CORRECT disjexpr_ver1.res : CORRECT disjexpr_ver2.res : CORRECT disjid.res : CORRECT distribute.res : CORRECT dotcall.res : CORRECT dots_comma.res : CORRECT dots_in_block_remove.res : INCORRECT:diff token: } VS for File , line 3, column 0, charpos = 13 around = '}', whole content = } File "tests/dots_in_block_remove.res", line 3, column 1, charpos = 14 around = 'for', whole content = for(;;) diff (result(<) vs expected_result(>)) = @@ -1,3 +1,8 @@ int main() { + for(;;) + { + } + return 0; } + double.res : CORRECT double_assign.res : CORRECT double_lines.res : CORRECT double_switch.res : CORRECT doubleconst.res : CORRECT doubleconst2.res : CORRECT doubleconst4.res : CORRECT doublepos.res : CORRECT doubleswitch.res : CORRECT doundo.res : CORRECT dowhile.res : CORRECT dowhile_4.res : CORRECT dowhile_for_complex.res : CORRECT dowhile_nested.res : CORRECT dropbr.res : CORRECT dropcom.res : CORRECT dropenderr.res : CORRECT dropf.res : CORRECT dropparam.res : CORRECT dtest.res : CORRECT eb1.res : CORRECT edots.res : CORRECT edots_ver1.res : CORRECT efi3.res : CORRECT elsify.res : CORRECT empty.res : CORRECT end_attr.res : CORRECT end_commas.res : CORRECT endcomma.res : CORRECT endif.res : CORRECT endmodif.res : CORRECT endnl.res : CORRECT endpos.res : CORRECT enum.res : CORRECT enum_assign.res : CORRECT enumcast.res : CORRECT enumdots.res : CORRECT exitc.res : CORRECT exitp.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") exp.res : CORRECT expnest.res : CORRECT expopt.res : CORRECT expopt2.res : CORRECT expopt3.res : CORRECT expopt3_ver1.res : CORRECT expopt3_ver2.res : CORRECT exprlist_comma.res : CORRECT exprun.res : CORRECT extra.res : CORRECT failing_andany.res : CORRECT far.res : CORRECT far2.res : CORRECT fields.res : CORRECT fieldsmin.res : CORRECT finalize_only.res : CORRECT finalize_only.stdout : CORRECT find_long.res : CORRECT finish.res : CORRECT firstdecl.res : CORRECT fix_flow_need.res : CORRECT flex.res : CORRECT fltst.res : CORRECT fn_todo.res : CORRECT fnptr.res : CORRECT fnret.res : CORRECT fnty.res : CORRECT fntypedef.res : CORRECT for3.res : CORRECT fordots.res : CORRECT format.res : CORRECT format2.res : CORRECT formatlist.res : CORRECT fortest.res : CORRECT fortype.res : CORRECT four.res : CORRECT foura.res : CORRECT fp.res : CORRECT fptr.res : CORRECT fptr2.res : CORRECT fptr3.res : CORRECT fresh_id_script.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") fsh.res : CORRECT fun.res : CORRECT func.res : CORRECT funptr_array.res : CORRECT gadget_allocate.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_gather_scatter.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_invalidate.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_mark_used_fields.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_misc.res : CORRECT gadget_ninelets_typedef.res : CORRECT gadget_patch.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_remove_mpi_function_calls.res: CORRECT gadget_remove_used_fields.res : CORRECT gadget_sentinel.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_soa_defs.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") gadget_soa_select.res : CORRECT gadget_sorting_hook.res : CORRECT gadget_triplets_typedef.res : CORRECT gadget_triplets_typedef_ipcc.res: CORRECT gcc_attr_with_func.res : CORRECT gcc_attr_with_var.res : INCORRECT:diff token: myattr1_mid VS section File , line 23, column 20, charpos = 515 around = 'myattr1_mid', whole content = char __attribute__((myattr1_mid)) array1_mid[2]; File "tests/gcc_attr_with_var.res", line 25, column 20, charpos = 515 around = 'section', whole content = char __attribute__((section(".shared"))) array1_mid[2]; diff (result(<) vs expected_result(>)) = @@ -6,9 +6,11 @@ int __attribute__((section(".shared"))) var2_mid; -__attribute__((section(".shared"))) int var3_end; +__attribute__((section(".shared"))) +int var3_end; -__attribute__((section(".shared"))) int var3_mid; +__attribute__((section(".shared"))) +int var3_mid; int var4_end; @@ -20,20 +22,22 @@ char array1_end[2] __attribute__((section(".shared"))); -char __attribute__((myattr1_mid)) array1_mid[2]; +char __attribute__((section(".shared"))) array1_mid[2]; char array2_end[2] __attribute__((section(".shared"))); -char __attribute__((myattr2_mid)) array2_mid[2]; +char __attribute__((section(".shared"))) array2_mid[2]; -__attribute__((section(".shared"))) char[2] array3_end; +__attribute__((section(".shared"))) +char array3_end[2]; -char __attribute__((myattr3_mid)) array3_mid[2]; +__attribute__((section(".shared"))) +char array3_mid[2]; char array4_end[2]; -char __attribute__((myattr4_mid)) array4_mid[2]; +char array4_mid[2]; -char[2] __attribute__((section(".shared"))) array5_end; +char __attribute__((section(".shared"))) array5_end[2]; -char __attribute__((myattr5_mid)) array5_mid[2]; +char array5_mid[2] __attribute__((section(".shared"))); gcc_min_max.res : CORRECT getc.res : CORRECT gilles-question.res : CORRECT globali.res : CORRECT gotobreak.res : CORRECT hashhash.res : CORRECT hd.res : CORRECT headers.res : CORRECT hex.res : CORRECT hil1.res : CORRECT icomma.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") id3.res : CORRECT id4.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") idcon_ocaml.res : CORRECT idcon_python.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") identcall.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 : INCORRECT:diff token: + VS #ifdef PLATFORM_A File , line 3, column 17, charpos = 49 around = '+', whole content = + 5 + 50 File "tests/ifdefmeta.res", line 3, column 0, charpos = 32 around = '#ifdef PLATFORM_A', whole content = #ifdef PLATFORM_A diff (result(<) vs expected_result(>)) = @@ -1,22 +1,22 @@ int main() { buf = malloc(3 +#ifdef PLATFORM_A + 5 + 50 +#endif + +#ifdef PLATFORM_B + 2 - ) - #ifdef PLATFORM_A - #endif - #ifdef PLATFORM_B - #endif - ; +#endif +); buf = malloc(3 +#ifdef PLATFORM_A + 5 + 50 +#endif + +#ifdef PLATFORM_B + 2 - ) - #ifdef PLATFORM_A - #endif - #ifdef PLATFORM_B - #endif - ; +#endif +); } int other() { ifdefmeta1.res : INCORRECT:diff token: #ifdef PLATFORM_A VS } File , line 2, column 4, charpos = 17 around = '#ifdef PLATFORM_A', whole content = #ifdef PLATFORM_A File "tests/ifdefmeta1.res", line 2, column 0, charpos = 13 around = '}', whole content = } diff (result(<) vs expected_result(>)) = @@ -1,9 +1,2 @@ int main() { - #ifdef PLATFORM_A - - - - #endif - #ifdef PLATFORM_B - #endif } ifdefmeta2.res : CORRECT ifdefmeta3.res : CORRECT ifdefmeta4.res : INCORRECT:diff token: + VS #ifdef PLATFORM_A File , line 3, column 20, charpos = 52 around = '+', whole content = + 5 + 50 File "tests/ifdefmeta4.res", line 3, column 0, charpos = 32 around = '#ifdef PLATFORM_A', whole content = #ifdef PLATFORM_A diff (result(<) vs expected_result(>)) = @@ -1,12 +1,13 @@ int main() { buf = malloc(3 - + 5 + 50 - + 2 - ) #ifdef PLATFORM_A + // platform a stuff + + 5 + 50 #endif #ifdef PLATFORM_B + /* platform b stuff */ + + 2 #endif - ; + ); } 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 : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") incpos1.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") inherited.res : CORRECT inherited_ver1.res : CORRECT inhmet.res : CORRECT inhpos.res : CORRECT initializer.res : CORRECT initializer_many_fields.res : CORRECT initpython.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") 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("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") iteration_after_merge.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") iterator.res : CORRECT iterprint.res : CORRECT jloop1.res : PROBLEM exn = Coccinelle_modules.Parse_cocci.SMPLParseError("minus: parse error: \n File \"tests/jloop1.cocci\", line 10, column 3, charpos = 129\n around = '...>',\n whole content = ...>\n") julia10.res : CORRECT julia7.res : CORRECT justremove.res : CORRECT keep_comma.res : CORRECT km.res : CORRECT kmalloc.res : CORRECT kmc.res : CORRECT kmtest4.res : CORRECT kr.res : seems incorrect, but only because of code that was not parsablediff token: foo VS } File "tests/kr.c", line 6, column 2, charpos = 37 around = 'foo', whole content = foo(); File "tests/kr.res", line 6, column 0, charpos = 35 around = '}', whole content = } ktype.res : CORRECT ktype2.res : CORRECT labels_metastatement.res : CORRECT labels_metastatement_ver1.res : CORRECT lessone.res : CORRECT lfe.res : CORRECT lid.res : CORRECT line_before_last.res : CORRECT lineseq.res : CORRECT list_test.res : CORRECT local.res : CORRECT localglobal.res : CORRECT localid.res : CORRECT localmacroparams.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_before_bool.res : CORRECT macro_int16.res : CORRECT macro_params.res : CORRECT match_init.res : CORRECT match_no_meta.res : CORRECT max.res : CORRECT md1.res : CORRECT md2.res : CORRECT md3.res : CORRECT mdadd.res : CORRECT mdec.res : CORRECT mdecl.res : CORRECT mdeclp.res : CORRECT mdeclp2.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") mdeclrep.res : CORRECT mdindex.res : CORRECT memory.res : CORRECT merge_after_iteration.res : CORRECT merge_after_iteration.stdout : CORRECT metaattr.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 move_type.res : CORRECT multi.res : CORRECT multi_initialize_finalize.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") 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 mv.res : CORRECT na.res : CORRECT nameless.res : CORRECT nest.res : CORRECT nestadd.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 notnot.res : CORRECT noty.res : CORRECT noty2.res : CORRECT null_bool.res : CORRECT null_type.res : CORRECT oddifdef.res : CORRECT of.res : CORRECT omp.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") oneline.res : CORRECT op.res : CORRECT opt.res : CORRECT optional_qualifier.res : CORRECT optional_storage.res : CORRECT orexp.res : CORRECT output.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") output_init.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") overshoot.res : CORRECT p1p2.res : CORRECT p9.res : CORRECT pa.res : CORRECT packed.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 partialmd.res : CORRECT partialmd2.res : CORRECT partialmd3.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 pif.res : CORRECT plus33.res : CORRECT pmac.res : CORRECT poscon.res : CORRECT posiso.res : CORRECT positionc.res : CORRECT post.res : CORRECT pragma2.res : CORRECT pragma2a.res : CORRECT pragma3.res : CORRECT pragma_and_block_a.res : INCORRECT:PB parsing only in generated-file diff (result(<) vs expected_result(>)) = @@ -1,7 +1,5 @@ int main() { -#pragma xxx a for ( ; ; ) -#pragma xxx b ; } pragma_and_block_b.res : CORRECT pragmainfo_multiline.res : CORRECT pragmatest1.res : CORRECT pragmatest2.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 ptrconstptr.res : CORRECT putloop.res : CORRECT python_iteration.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") python_mdecl.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") python_mdeclp.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") python_poscon.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") qcom.res : CORRECT qualifier.res : CORRECT range.res : CORRECT rb.res : CORRECT rcu3.res : CORRECT refl.res : CORRECT regesc.res : CORRECT regexp.res : CORRECT regexp2.res : CORRECT regexp3.res : CORRECT relevant_position.res : CORRECT rem1.res : CORRECT rem2.res : CORRECT remaft.res : CORRECT remcom.res : CORRECT remcom2.res : CORRECT remodif.res : CORRECT remove-code-in-branch1.res : CORRECT remove_call.res : CORRECT remove_cast_attr.res : CORRECT remove_cast_attr_allminus.res : CORRECT remove_macrodecl_attr.res : CORRECT remove_metaattr.res : CORRECT remove_param_attrs.res : CORRECT remove_struct_endattr.res : CORRECT remove_struct_endattr_allminus.res: CORRECT remparam.res : CORRECT rems.res : CORRECT rems1.res : CORRECT remstruct.res : CORRECT remu.res : CORRECT replace_typedef.res : CORRECT replacement3.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 reusevar.res : CORRECT ringbuf.res : CORRECT roa.res : CORRECT roinit.res : CORRECT rptr.res : CORRECT saft.res : CORRECT saft2.res : CORRECT same_expr.res : CORRECT sbef.res : CORRECT sbef2.res : CORRECT scope_problem.res : CORRECT sd_2.res : CORRECT serio.res : CORRECT shared_brace.res : CORRECT signed.res : CORRECT sis.res : CORRECT sizeof.res : CORRECT sizeof_julia.res : CORRECT sizeptr.res : CORRECT sizestar.res : CORRECT sizet1.res : CORRECT skip.res : CORRECT sl2.res : CORRECT slen.res : CORRECT smallfn.res : CORRECT snprintf.res : CORRECT sp.res : CORRECT spaces.res : CORRECT spacing.res : CORRECT spl.res : CORRECT split_funcall1.res : CORRECT split_funcall2.res : CORRECT square.res : CORRECT starprint.res : CORRECT static.res : CORRECT stm1.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") stm10.res : CORRECT stm10_ver1.res : CORRECT stm2.res : CORRECT stm3.res : CORRECT stm4.res : CORRECT stm5.res : CORRECT stm6.res : CORRECT stm7.res : PROBLEM exn = Failure("Py.find_library: unable to find the Python library [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12m.so returned /usr/bin/../lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/bin/../lib/libpython3.12.so returned /usr/bin/../lib/libpython3.12.so: cannot open shared object file: No such file or directory] [libpython3.12m.so returned libpython3.12m.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12m.so returned /usr/lib/libpython3.12m.so: cannot open shared object file: No such file or directory] [libpython3.12.so returned libpython3.12.so: cannot open shared object file: No such file or directory] [/usr/lib/libpython3.12.so returned /usr/lib/libpython3.12.so: cannot open shared object file: No such file or directory]") stm8.res : CORRECT stm_exp.res : CORRECT stmt.res : CORRECT stmt_removed_and_added.res : CORRECT str_init.res : CORRECT strangeorder.res : CORRECT strid.res : CORRECT strid2.res : CORRECT string.res : CORRECT strtest.res : CORRECT struct.res : CORRECT struct_metavar.res : CORRECT struct_typedef.res : CORRECT structfoo.res : CORRECT structptr_func.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 tdplus.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 tloop.res : CORRECT top.res : CORRECT topdec.res : CORRECT topdec_ver1.res : CORRECT topdec_ver2.res : CORRECT topdecl.res : CORRECT toplevel_macrostmt.res : CORRECT toplevel_struct.res : CORRECT triplet.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_and_var.res : CORRECT type_and_var2.res : CORRECT type_annotated.res : CORRECT type_constraints.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 , 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 typeof_expr.res : CORRECT typeofconst_i32l64.res : CORRECT typeofconst_il32.res : CORRECT typin.res : CORRECT uc.res : CORRECT unbrace.res : CORRECT undref.res : CORRECT undref2.res : CORRECT undref3.res : CORRECT unelse.res : CORRECT unfree.res : CORRECT unl.res : CORRECT unstruct.res : INCORRECT:not same number of entities (func, decl, ...) diff (result(<) vs expected_result(>)) = @@ -1,4 +1,2 @@ -foo_t - unused.res : CORRECT updassign.res : CORRECT useless_cast.res : CORRECT varargs.res : CORRECT varargs2.res : CORRECT varargs3.res : CORRECT video1bis.res : CORRECT void.res : CORRECT vpos.res : CORRECT wchar.res : CORRECT weird_argument.res : CORRECT weirdinit.res : seems incorrect, but only because of code that was not parsablediff token: dev_link_t VS struct File "tests/weirdinit.c", line 4, column 1, charpos = 27 around = 'dev_link_t', whole content = dev_link_t *link; File "tests/weirdinit.res", line 4, column 1, charpos = 27 around = 'struct', whole content = struct pcmcia_device *link; whitespace.res : CORRECT wrongcheck.res : CORRECT ws2.res : CORRECT xfield.res : CORRECT y2.res : CORRECT zero.res : CORRECT zeroline.res : CORRECT -------------------------------- regression testing information -------------------------------- regression file: tests/SCORE_expected.sexp new test file appeared: 62.res new test file appeared: a.res new test file appeared: a3.res new test file appeared: a3d.res new test file appeared: a_and_e.res new test file appeared: a_and_e_ver1.res new test file appeared: ab.res new test file appeared: action.res new test file appeared: add1.res new test file appeared: addaft.res new test file appeared: addafterdecl.res new test file appeared: addbefore.res new test file appeared: addbeforeafter.res new test file appeared: addcomm.res new test file appeared: addelse.res new test file appeared: addes.res new test file appeared: addfield.res new test file appeared: addfield2.res new test file appeared: addif.res new test file appeared: addif1.res new test file appeared: addif2.res new test file appeared: addifdef.res new test file appeared: addifelse.res new test file appeared: addifelse2.res new test file appeared: addinc.res new test file appeared: addnl.res new test file appeared: addtoo.res new test file appeared: addtrace.res new test file appeared: after_if.res new test file appeared: allex.res new test file appeared: allex2.res new test file appeared: allex3.res new test file appeared: andid.res new test file appeared: anon.res new test file appeared: anonfield.res new test file appeared: ar.res new test file appeared: arg.res new test file appeared: argument.res new test file appeared: arparam.res new test file appeared: array_init.res new test file appeared: array_size.res new test file appeared: arraysz.res new test file appeared: as_stm.res new test file appeared: assign_deref_funcall_in_macro_it.res new test file appeared: attr_with_arguments.res new test file appeared: attradd.res new test file appeared: attribute_order.res new test file appeared: attributeb.res new test file appeared: attrreplace.res new test file appeared: attrs2groups.res new test file appeared: b1.res new test file appeared: b2.res new test file appeared: bad_iso_example.res new test file appeared: bad_kfree.res new test file appeared: bad_ptr_print.res new test file appeared: bad_typedef.res new test file appeared: badcfg.res new test file appeared: badexp.res new test file appeared: badpos.res new test file appeared: badtypedef.res new test file appeared: badwhen.res new test file appeared: badzero.res new test file appeared: bc_1.res new test file appeared: befS.res new test file appeared: before.res new test file appeared: befored.res new test file appeared: ben.res new test file appeared: bigin.res new test file appeared: bigrepl.res new test file appeared: binop.res new test file appeared: bitfield.res new test file appeared: bitfield_matching.res new test file appeared: boolr.res new test file appeared: bracebraceline.res new test file appeared: braceline.res new test file appeared: braces.res new test file appeared: branchparen.res new test file appeared: break.res new test file appeared: btf.res new test file appeared: bug1.res new test file appeared: bugloop.res new test file appeared: bugon.res new test file appeared: bus.res new test file appeared: cards.res new test file appeared: caseprint.res new test file appeared: cast.res new test file appeared: cast_iso.res new test file appeared: castdecl.res new test file appeared: cex_snip_field_ok.res new test file appeared: cex_wishlist_complex1.res new test file appeared: cex_wishlist_complex2.res new test file appeared: cex_wishlist_complex3.res new test file appeared: change.res new test file appeared: change_pragma.res new test file appeared: change_type.res new test file appeared: changei.res new test file appeared: cocci_args.res new test file appeared: com.res new test file appeared: comadd.res new test file appeared: comj.res new test file appeared: comma.res new test file appeared: comma_call.res new test file appeared: comma_if.res new test file appeared: comment_brace.res new test file appeared: comment_brace2.res new test file appeared: comment_line.res new test file appeared: comment_middle.res new test file appeared: commentbefore.res new test file appeared: commentbefore2.res new test file appeared: commentend.res new test file appeared: comments.res new test file appeared: compare.res new test file appeared: compare_const.res new test file appeared: compare_const2.res new test file appeared: comreturn.res new test file appeared: condexp.res new test file appeared: const.res new test file appeared: const1bis.res new test file appeared: const_adding.res new test file appeared: const_array.res new test file appeared: const_implicit_iso.res new test file appeared: constptr.res new test file appeared: constraints.res new test file appeared: constrem.res new test file appeared: constructor.res new test file appeared: constty.res new test file appeared: constx.res new test file appeared: countcalls.res new test file appeared: countcalls.stdout new test file appeared: countcalls_python.res new test file appeared: cptr.res new test file appeared: cr.res new test file appeared: cr1a.res new test file appeared: cs_check.res new test file appeared: cst.res new test file appeared: cst_null.res new test file appeared: cstr.res new test file appeared: cststr.res new test file appeared: csw.res new test file appeared: dbg.res new test file appeared: dbg1.res new test file appeared: dc_close.res new test file appeared: debug.res new test file appeared: dec.res new test file appeared: decadd.res new test file appeared: decdup.res new test file appeared: decdup2.res new test file appeared: decdup3.res new test file appeared: decdup4.res new test file appeared: decl.res new test file appeared: decl2.res new test file appeared: decl_space.res new test file appeared: decl_split.res new test file appeared: decl_star.res new test file appeared: declend.res new test file appeared: declmeta.res new test file appeared: defe.res new test file appeared: define_exp.res new test file appeared: define_param.res new test file appeared: definedots.res new test file appeared: defineinit.res new test file appeared: deftodo.res new test file appeared: del2.res new test file appeared: delete_function.res new test file appeared: delp.res new test file appeared: depfail.res new test file appeared: deref.res new test file appeared: destroy.res new test file appeared: detect_cast_attr.res new test file appeared: detect_macrodecl_attr.res new test file appeared: detect_param_attr.res new test file appeared: detect_struct_endattr.res new test file appeared: detect_struct_gccattr.res new test file appeared: devlink.res new test file appeared: disj.res new test file appeared: disjexpr.res new test file appeared: disjexpr_ver1.res new test file appeared: disjexpr_ver2.res new test file appeared: disjid.res new test file appeared: distribute.res new test file appeared: dotcall.res new test file appeared: dots_comma.res new test file appeared: dots_in_block_remove.res new test file appeared: double.res new test file appeared: double_assign.res new test file appeared: double_lines.res new test file appeared: double_switch.res new test file appeared: doubleconst.res new test file appeared: doubleconst2.res new test file appeared: doubleconst4.res new test file appeared: doublepos.res new test file appeared: doubleswitch.res new test file appeared: doundo.res new test file appeared: dowhile.res new test file appeared: dowhile_4.res new test file appeared: dowhile_for_complex.res new test file appeared: dowhile_nested.res new test file appeared: dropbr.res new test file appeared: dropcom.res new test file appeared: dropenderr.res new test file appeared: dropf.res new test file appeared: dropparam.res new test file appeared: dtest.res new test file appeared: eb1.res new test file appeared: edots.res new test file appeared: edots_ver1.res new test file appeared: efi3.res new test file appeared: elsify.res new test file appeared: empty.res new test file appeared: end_attr.res new test file appeared: end_commas.res new test file appeared: endcomma.res new test file appeared: endif.res new test file appeared: endmodif.res new test file appeared: endnl.res new test file appeared: endpos.res new test file appeared: enum.res new test file appeared: enum_assign.res new test file appeared: enumcast.res new test file appeared: enumdots.res new test file appeared: exitc.res new test file appeared: exitp.res new test file appeared: exp.res new test file appeared: expnest.res new test file appeared: expopt.res new test file appeared: expopt2.res new test file appeared: expopt3.res new test file appeared: expopt3_ver1.res new test file appeared: expopt3_ver2.res new test file appeared: exprlist_comma.res new test file appeared: exprun.res new test file appeared: extra.res new test file appeared: failing_andany.res new test file appeared: far.res new test file appeared: far2.res new test file appeared: fields.res new test file appeared: fieldsmin.res new test file appeared: finalize_only.res new test file appeared: finalize_only.stdout new test file appeared: find_long.res new test file appeared: finish.res new test file appeared: firstdecl.res new test file appeared: fix_flow_need.res new test file appeared: flex.res new test file appeared: fltst.res new test file appeared: fn_todo.res new test file appeared: fnptr.res new test file appeared: fnret.res new test file appeared: fnty.res new test file appeared: fntypedef.res new test file appeared: for3.res new test file appeared: fordots.res new test file appeared: format.res new test file appeared: format2.res new test file appeared: formatlist.res new test file appeared: fortest.res new test file appeared: fortype.res new test file appeared: four.res new test file appeared: foura.res new test file appeared: fp.res new test file appeared: fptr.res new test file appeared: fptr2.res new test file appeared: fptr3.res new test file appeared: fresh_id_script.res new test file appeared: fsh.res new test file appeared: fun.res new test file appeared: func.res new test file appeared: funptr_array.res new test file appeared: gadget_allocate.res new test file appeared: gadget_gather_scatter.res new test file appeared: gadget_invalidate.res new test file appeared: gadget_mark_used_fields.res new test file appeared: gadget_misc.res new test file appeared: gadget_ninelets_typedef.res new test file appeared: gadget_patch.res new test file appeared: gadget_remove_mpi_function_calls.res new test file appeared: gadget_remove_used_fields.res new test file appeared: gadget_sentinel.res new test file appeared: gadget_soa_defs.res new test file appeared: gadget_soa_select.res new test file appeared: gadget_sorting_hook.res new test file appeared: gadget_triplets_typedef.res new test file appeared: gadget_triplets_typedef_ipcc.res new test file appeared: gcc_attr_with_func.res new test file appeared: gcc_attr_with_var.res new test file appeared: gcc_min_max.res new test file appeared: getc.res new test file appeared: gilles-question.res new test file appeared: globali.res new test file appeared: gotobreak.res new test file appeared: hashhash.res new test file appeared: hd.res new test file appeared: headers.res new test file appeared: hex.res new test file appeared: hil1.res new test file appeared: icomma.res new test file appeared: id3.res new test file appeared: id4.res new test file appeared: idcon_ocaml.res new test file appeared: idcon_python.res new test file appeared: identcall.res new test file appeared: idstr.res new test file appeared: if.res new test file appeared: ifadd.res new test file appeared: ifbr.res new test file appeared: ifd.res new test file appeared: ifdef1.res new test file appeared: ifdef2.res new test file appeared: ifdef3.res new test file appeared: ifdef4.res new test file appeared: ifdef5.res new test file appeared: ifdef6.res new test file appeared: ifdef6a.res new test file appeared: ifdefmeta.res new test file appeared: ifdefmeta1.res new test file appeared: ifdefmeta2.res new test file appeared: ifdefmeta3.res new test file appeared: ifdefmeta4.res new test file appeared: ifend.res new test file appeared: ifgoto.res new test file appeared: ifields.res new test file appeared: ifif.res new test file appeared: ifreturn.res new test file appeared: ifreturn3.res new test file appeared: ifreturn4.res new test file appeared: ifreturn6.res new test file appeared: ifzer.res new test file appeared: ifzz.res new test file appeared: inc.res new test file appeared: incdir.res new test file appeared: incl.res new test file appeared: incl2.res new test file appeared: inclifdef.res new test file appeared: include.res new test file appeared: incompatible_value.res new test file appeared: incpos.res new test file appeared: incpos1.res new test file appeared: inherited.res new test file appeared: inherited_ver1.res new test file appeared: inhmet.res new test file appeared: inhpos.res new test file appeared: initializer.res new test file appeared: initializer_many_fields.res new test file appeared: initpython.res new test file appeared: inline.res new test file appeared: insdef.res new test file appeared: int2bool-local.res new test file appeared: introbrace.res new test file appeared: invert.res new test file appeared: ip.res new test file appeared: ip2.res new test file appeared: isococci.res new test file appeared: isoif.res new test file appeared: isotest.res new test file appeared: isotest2.res new test file appeared: iteration.res new test file appeared: iteration_after_merge.res new test file appeared: iterator.res new test file appeared: iterprint.res new test file appeared: jloop1.res new test file appeared: julia10.res new test file appeared: julia7.res new test file appeared: justremove.res new test file appeared: keep_comma.res new test file appeared: km.res new test file appeared: kmalloc.res new test file appeared: kmc.res new test file appeared: kmtest4.res new test file appeared: kr.res new test file appeared: ktype.res new test file appeared: ktype2.res new test file appeared: labels_metastatement.res new test file appeared: labels_metastatement_ver1.res new test file appeared: lessone.res new test file appeared: lfe.res new test file appeared: lid.res new test file appeared: line_before_last.res new test file appeared: lineseq.res new test file appeared: list_test.res new test file appeared: local.res new test file appeared: localglobal.res new test file appeared: localid.res new test file appeared: localmacroparams.res new test file appeared: log.res new test file appeared: long.res new test file appeared: longconst.res new test file appeared: longline2.res new test file appeared: longlong.res new test file appeared: longlongint.res new test file appeared: loop.res new test file appeared: lvalue.res new test file appeared: macro.res new test file appeared: macro_before_bool.res new test file appeared: macro_int16.res new test file appeared: macro_params.res new test file appeared: match_init.res new test file appeared: match_no_meta.res new test file appeared: max.res new test file appeared: md1.res new test file appeared: md2.res new test file appeared: md3.res new test file appeared: mdadd.res new test file appeared: mdec.res new test file appeared: mdecl.res new test file appeared: mdeclp.res new test file appeared: mdeclp2.res new test file appeared: mdeclrep.res new test file appeared: mdindex.res new test file appeared: memory.res new test file appeared: merge_after_iteration.res new test file appeared: merge_after_iteration.stdout new test file appeared: metaattr.res new test file appeared: metahex.res new test file appeared: metaline.res new test file appeared: metaops.res new test file appeared: metaops0.res new test file appeared: metaruleelem.res new test file appeared: metastatement2.res new test file appeared: metastatement_for.res new test file appeared: metastatement_if.res new test file appeared: mincom.res new test file appeared: minenum.res new test file appeared: minenum1.res new test file appeared: minfn.res new test file appeared: mini_null_ref.res new test file appeared: miniswap.res new test file appeared: minstruct.res new test file appeared: minusdots.res new test file appeared: minusdots_ver1.res new test file appeared: move_type.res new test file appeared: multi.res new test file appeared: multi_initialize_finalize.res new test file appeared: multichars.res new test file appeared: multidec.res new test file appeared: multidecl3.res new test file appeared: multipath.res new test file appeared: multiplus.res new test file appeared: multiremove.res new test file appeared: multistruct.res new test file appeared: multitype.res new test file appeared: multitypedef.res new test file appeared: multivars.res new test file appeared: mv.res new test file appeared: na.res new test file appeared: nameless.res new test file appeared: nest.res new test file appeared: nestadd.res new test file appeared: nestone.res new test file appeared: nestseq.res new test file appeared: neststruct.res new test file appeared: nl.res new test file appeared: noa.res new test file appeared: nocast.res new test file appeared: noret.res new test file appeared: not.res new test file appeared: notest.res new test file appeared: notnot.res new test file appeared: noty.res new test file appeared: noty2.res new test file appeared: null_bool.res new test file appeared: null_type.res new test file appeared: oddifdef.res new test file appeared: of.res new test file appeared: omp.res new test file appeared: oneline.res new test file appeared: op.res new test file appeared: opt.res new test file appeared: optional_qualifier.res new test file appeared: optional_storage.res new test file appeared: orexp.res new test file appeared: output.res new test file appeared: output_init.res new test file appeared: overshoot.res new test file appeared: p1p2.res new test file appeared: p9.res new test file appeared: pa.res new test file appeared: packed.res new test file appeared: param.res new test file appeared: param_end.res new test file appeared: param_to_exp.res new test file appeared: param_ver1.res new test file appeared: parameters_dots.res new test file appeared: parenmac.res new test file appeared: partial.res new test file appeared: partialmd.res new test file appeared: partialmd2.res new test file appeared: partialmd3.res new test file appeared: pb_distribute_type.res new test file appeared: pb_distribute_type2.res new test file appeared: pb_distribute_type3.res new test file appeared: pb_distribute_type4.res new test file appeared: pb_params_iso.res new test file appeared: pb_parsing_macro.res new test file appeared: pb_tag_symbols.res new test file appeared: pcim.res new test file appeared: pcomma.res new test file appeared: pif.res new test file appeared: plus33.res new test file appeared: pmac.res new test file appeared: poscon.res new test file appeared: posiso.res new test file appeared: positionc.res new test file appeared: post.res new test file appeared: pragma2.res new test file appeared: pragma2a.res new test file appeared: pragma3.res new test file appeared: pragma_and_block_a.res new test file appeared: pragma_and_block_b.res new test file appeared: pragmainfo_multiline.res new test file appeared: pragmatest1.res new test file appeared: pragmatest2.res new test file appeared: print_return.res new test file appeared: proto.res new test file appeared: proto2.res new test file appeared: proto_ver1.res new test file appeared: proto_ver2.res new test file appeared: protoassert.res new test file appeared: protox.res new test file appeared: ptrar.res new test file appeared: ptrconstptr.res new test file appeared: putloop.res new test file appeared: python_iteration.res new test file appeared: python_mdecl.res new test file appeared: python_mdeclp.res new test file appeared: python_poscon.res new test file appeared: qcom.res new test file appeared: qualifier.res new test file appeared: range.res new test file appeared: rb.res new test file appeared: rcu3.res new test file appeared: refl.res new test file appeared: regesc.res new test file appeared: regexp.res new test file appeared: regexp2.res new test file appeared: regexp3.res new test file appeared: relevant_position.res new test file appeared: rem1.res new test file appeared: rem2.res new test file appeared: remaft.res new test file appeared: remcom.res new test file appeared: remcom2.res new test file appeared: remodif.res new test file appeared: remove-code-in-branch1.res new test file appeared: remove_call.res new test file appeared: remove_cast_attr.res new test file appeared: remove_cast_attr_allminus.res new test file appeared: remove_macrodecl_attr.res new test file appeared: remove_metaattr.res new test file appeared: remove_param_attrs.res new test file appeared: remove_struct_endattr.res new test file appeared: remove_struct_endattr_allminus.res new test file appeared: remparam.res new test file appeared: rems.res new test file appeared: rems1.res new test file appeared: remstruct.res new test file appeared: remu.res new test file appeared: replace_typedef.res new test file appeared: replacement3.res new test file appeared: reserved.res new test file appeared: retest.res new test file appeared: retmacro.res new test file appeared: rets.res new test file appeared: return.res new test file appeared: return_implicit.res new test file appeared: retval.res new test file appeared: retval2.res new test file appeared: reusevar.res new test file appeared: ringbuf.res new test file appeared: roa.res new test file appeared: roinit.res new test file appeared: rptr.res new test file appeared: saft.res new test file appeared: saft2.res new test file appeared: same_expr.res new test file appeared: sbef.res new test file appeared: sbef2.res new test file appeared: scope_problem.res new test file appeared: sd_2.res new test file appeared: serio.res new test file appeared: shared_brace.res new test file appeared: signed.res new test file appeared: sis.res new test file appeared: sizeof.res new test file appeared: sizeof_julia.res new test file appeared: sizeptr.res new test file appeared: sizestar.res new test file appeared: sizet1.res new test file appeared: skip.res new test file appeared: sl2.res new test file appeared: slen.res new test file appeared: smallfn.res new test file appeared: snprintf.res new test file appeared: sp.res new test file appeared: spaces.res new test file appeared: spacing.res new test file appeared: spl.res new test file appeared: split_funcall1.res new test file appeared: split_funcall2.res new test file appeared: square.res new test file appeared: starprint.res new test file appeared: static.res new test file appeared: stm1.res new test file appeared: stm10.res new test file appeared: stm10_ver1.res new test file appeared: stm2.res new test file appeared: stm3.res new test file appeared: stm4.res new test file appeared: stm5.res new test file appeared: stm6.res new test file appeared: stm7.res new test file appeared: stm8.res new test file appeared: stm_exp.res new test file appeared: stmt.res new test file appeared: stmt_removed_and_added.res new test file appeared: str_init.res new test file appeared: strangeorder.res new test file appeared: strid.res new test file appeared: strid2.res new test file appeared: string.res new test file appeared: strtest.res new test file appeared: struct.res new test file appeared: struct_metavar.res new test file appeared: struct_typedef.res new test file appeared: structfoo.res new test file appeared: structptr_func.res new test file appeared: substruct.res new test file appeared: sw.res new test file appeared: swap3.res new test file appeared: switch.res new test file appeared: switchdecl.res new test file appeared: symbol.res new test file appeared: td.res new test file appeared: tdnl.res new test file appeared: tdplus.res new test file appeared: tern.res new test file appeared: test0.res new test file appeared: test1.res new test file appeared: test10.res new test file appeared: test10_ver1.res new test file appeared: test11.res new test file appeared: test11_ver1.res new test file appeared: test12.res new test file appeared: test2.res new test file appeared: test3.res new test file appeared: test4.res new test file appeared: test5.res new test file appeared: test5_ver1.res new test file appeared: test6.res new test file appeared: test7.res new test file appeared: test8.res new test file appeared: test9.res new test file appeared: test_s.res new test file appeared: test_unsigned_meta.res new test file appeared: testand.res new test file appeared: testand2.res new test file appeared: three_types.res new test file appeared: threea.res new test file appeared: tloop.res new test file appeared: top.res new test file appeared: topdec.res new test file appeared: topdec_ver1.res new test file appeared: topdec_ver2.res new test file appeared: topdecl.res new test file appeared: toplevel_macrostmt.res new test file appeared: toplevel_struct.res new test file appeared: triplet.res new test file appeared: tup.res new test file appeared: twomatch.res new test file appeared: twoproto.res new test file appeared: ty.res new test file appeared: ty1.res new test file appeared: ty_tyexp.res new test file appeared: tydisj.res new test file appeared: tyex.res new test file appeared: type.res new test file appeared: type1.res new test file appeared: type_and_var.res new test file appeared: type_and_var2.res new test file appeared: type_annotated.res new test file appeared: type_constraints.res new test file appeared: type_ver1.res new test file appeared: type_ver2.res new test file appeared: typedef.res new test file appeared: typedef3.res new test file appeared: typedef_double.res new test file appeared: typeof.res new test file appeared: typeof_expr.res new test file appeared: typeofconst_i32l64.res new test file appeared: typeofconst_il32.res new test file appeared: typin.res new test file appeared: uc.res new test file appeared: unbrace.res new test file appeared: undref.res new test file appeared: undref2.res new test file appeared: undref3.res new test file appeared: unelse.res new test file appeared: unfree.res new test file appeared: unl.res new test file appeared: unstruct.res new test file appeared: unused.res new test file appeared: updassign.res new test file appeared: useless_cast.res new test file appeared: varargs.res new test file appeared: varargs2.res new test file appeared: varargs3.res new test file appeared: video1bis.res new test file appeared: void.res new test file appeared: vpos.res new test file appeared: wchar.res new test file appeared: weird_argument.res new test file appeared: weirdinit.res new test file appeared: whitespace.res new test file appeared: wrongcheck.res new test file appeared: ws2.res new test file appeared: xfield.res new test file appeared: y2.res new test file appeared: zero.res new test file appeared: zeroline.res -------------------------------- total score -------------------------------- good = 666/718 Current score is greater than expected :) (was expecting 0 but got 666) make[2]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' create-stamp debian/debhelper-build-stamp dh_prep dh_installdirs debian/rules override_dh_auto_install-arch make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' /usr/bin/make DESTDIR=/build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle install install-bash make[2]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/bin /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml if test -f bundles/pyml/dllpyml_stubs.so; then \ /usr/bin/install -c -m 755 bundles/pyml/dllpyml_stubs.so \ /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle; \ fi if test -f bundles/pcre/dllpcre_stubs.so; then \ /usr/bin/install -c -m 755 bundles/pcre/dllpcre_stubs.so \ /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle; \ fi /usr/bin/install -c -m 755 spatch.opt /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/bin/spatch /usr/bin/install -c -m 644 standard.h /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle /usr/bin/install -c -m 644 standard.iso /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle /usr/bin/install -c -m 644 ocaml/*.cmi /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml/ if test -f ocaml/coccilib.cmx; then \ /usr/bin/install -c -m 644 ocaml/*.cmx /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle/ocaml/; \ fi /usr/bin/install -c -m 755 tools/spgen/source/spgen.opt \ /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/bin/spgen mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle/python/coccilib /usr/bin/install -c -m 644 python/coccilib/*.py \ /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/lib/coccinelle/python/coccilib if test "x/usr/share/bash-completion/completions" != "xno"; then \ mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/bash-completion/completions; \ /usr/bin/install -c -m 644 scripts/spatch.bash_completion \ /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/bash-completion/completions/spatch; \ fi mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man1 mkdir -p /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man3 /usr/bin/install -c -m 644 docs/spatch.1 /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/pycocci.1 /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/spgen.1 /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man1/ /usr/bin/install -c -m 644 docs/Coccilib.3cocci /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/man/man3/ make[2]: Nothing to be done for 'install-bash'. make[2]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' # Vim files install -d /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/addons/ftdetect /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/addons/syntax cp /build/reproducible-path/coccinelle-1.3.0.deb/editors/vim/ftdetect/cocci.vim /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/addons/ftdetect/ cp /build/reproducible-path/coccinelle-1.3.0.deb/editors/vim/syntax/cocci.vim /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/addons/syntax/ install -d /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/registry cp /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle.yaml /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/vim/registry/ # Emacs files cp /build/reproducible-path/coccinelle-1.3.0.deb/editors/emacs/cocci.el /build/reproducible-path/coccinelle-1.3.0.deb/debian/coccinelle/usr/share/emacs/site-lisp/ make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' dh_ocamldoc dh_installdocs dh_installchangelogs dh_installman dh_installemacsen dh_python3 dh_perl dh_link dh_strip_nondeterminism debian/rules override_dh_compress make[1]: Entering directory '/build/reproducible-path/coccinelle-1.3.0.deb' dh_compress -X.pdf -X.cocci -X.c make[1]: Leaving directory '/build/reproducible-path/coccinelle-1.3.0.deb' dh_fixperms dh_missing dh_dwz -a dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dpkg-shlibdeps: warning: diversions involved - output may be incorrect diversion by libc6 from: /lib/ld-linux-aarch64.so.1 dpkg-shlibdeps: warning: diversions involved - output may be incorrect diversion by libc6 to: /lib/ld-linux-aarch64.so.1.usr-is-merged dh_installdeb dh_ocaml W: coccinelle doesn't resolve dependency on unit Flag_parsing_cocci W: coccinelle doesn't resolve dependency on unit Regexp_str W: coccinelle doesn't resolve dependency on unit Includes_cache W: coccinelle doesn't resolve dependency on unit Danger W: coccinelle doesn't resolve dependency on unit Token_views_c W: coccinelle doesn't resolve dependency on unit Token_annot W: coccinelle doesn't resolve dependency on unit Danger W: coccinelle doesn't resolve dependency on unit Control_flow_c W: coccinelle doesn't resolve dependency on unit Cpp_token_c W: coccinelle doesn't resolve dependency on unit Parsing_recovery_c W: coccinelle doesn't resolve dependency on unit Parsing_hacks W: coccinelle doesn't resolve dependency on unit Token_helpers W: coccinelle doesn't resolve dependency on unit Parsing_recovery_c W: coccinelle doesn't resolve dependency on unit Parsing_consistency_c W: coccinelle doesn't resolve dependency on unit Parsing_hacks W: coccinelle doesn't resolve dependency on unit Includes W: coccinelle doesn't resolve dependency on unit Includes W: coccinelle doesn't resolve dependency on unit Cpp_token_c W: coccinelle doesn't resolve dependency on unit Parsing_consistency_c W: coccinelle doesn't resolve dependency on unit Lexer_parser W: coccinelle doesn't resolve dependency on unit Lexer_parser W: coccinelle doesn't resolve dependency on unit Ograph_extended W: coccinelle doesn't resolve dependency on unit Parsing_stat W: coccinelle doesn't resolve dependency on unit Type_annoter_c W: coccinelle doesn't resolve dependency on unit Flag_parsing_cocci W: coccinelle doesn't resolve dependency on unit Data W: coccinelle doesn't resolve dependency on unit Token_helpers W: coccinelle doesn't resolve dependency on unit Type_annoter_c W: coccinelle doesn't resolve dependency on unit Data W: coccinelle doesn't resolve dependency on unit Regexp_str W: coccinelle doesn't resolve dependency on unit Token_annot W: coccinelle doesn't resolve dependency on unit Semantic_c W: coccinelle doesn't resolve dependency on unit Parsing_stat W: coccinelle doesn't resolve dependency on unit Control_flow_c W: coccinelle doesn't resolve dependency on unit Semantic_c W: coccinelle doesn't resolve dependency on unit Includes_cache dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'coccinelle' in '../coccinelle_1.3.0.deb-1_arm64.deb'. dpkg-deb: building package 'coccinelle-dbgsym' in '../coccinelle-dbgsym_1.3.0.deb-1_arm64.deb'. dpkg-genbuildinfo --build=binary -O../coccinelle_1.3.0.deb-1_arm64.buildinfo dpkg-genchanges --build=binary -O../coccinelle_1.3.0.deb-1_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/B01_cleanup starting I: user script /srv/workspace/pbuilder/2168549/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env I: removing directory /srv/workspace/pbuilder/2168549 and its subdirectories I: Current time: Thu Jan 23 00:22:42 +14 2025 I: pbuilder-time-stamp: 1737541362