+ export BPO_JOB_ID=582082 + BPO_JOB_ID=582082 + pmbootstrap -m http://dl-4.alpinelinux.org/alpine/ -mp http://build.postmarketos.org/wip/ -mp http://mirror.postmarketos.org/postmarketos/ --aports=/home/build/pmaports --no-ccache --timeout 900 --details-to-stdout build --no-depends --strict --arch armv7 --force linux-samsung-j3xnlte (002297) [15:13:38] % cd /home/build/pmaports; git remote -v origin https://gitlab.com/postmarketOS/pmaports.git/ (fetch) origin https://gitlab.com/postmarketOS/pmaports.git/ (push) (002297) [15:13:38] % cd /home/build/pmaports; git show origin/master:channels.cfg # Reference: https://postmarketos.org/channels.cfg [channels.cfg] recommended=edge [edge] description=Rolling release / Most devices / Occasional breakage: https://postmarketos.org/edge branch_pmaports=master branch_aports=master mirrordir_alpine=edge [v21.06] description=Latest release / Recommended for best stability branch_pmaports=v21.06 branch_aports=3.14-stable mirrordir_alpine=v3.14 [v21.03] description=Old release (unsupported) branch_pmaports=v21.03 branch_aports=3.13-stable mirrordir_alpine=v3.13 [v20.05] description=Old release (unsupported) branch_pmaports=v20.05 branch_aports=3.12-stable mirrordir_alpine=v3.12 (002297) [15:13:38] Shutdown complete (002297) [15:13:38] Calculate work folder size (002297) [15:13:38] % sudo du -ks /home/build/.local/var/pmbootstrap 20 /home/build/.local/var/pmbootstrap (002297) [15:13:38] Shutdown complete (002297) [15:13:38] % sudo du -ks /home/build/.local/var/pmbootstrap 20 /home/build/.local/var/pmbootstrap (002297) [15:13:38] Cleared up ~0 MB of space (002297) [15:13:38] APKINDEX outdated (file does not exist yet): http://build.postmarketos.org/wip/master/armv7/APKINDEX.tar.gz (002297) [15:13:38] APKINDEX outdated (file does not exist yet): http://mirror.postmarketos.org/postmarketos/master/armv7/APKINDEX.tar.gz (002297) [15:13:38] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz (002297) [15:13:38] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz (002297) [15:13:38] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz (002297) [15:13:38] Update package index for armv7 (5 file(s)) (002297) [15:13:38] % mkdir -p /home/build/.local/var/pmbootstrap/cache_http (002297) [15:13:38] Download http://build.postmarketos.org/wip/master/armv7/APKINDEX.tar.gz (002297) [15:13:38] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_apk_armv7 (002297) [15:13:38] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_998f7344438a1788b147ed513f6089174b226690ae3d66156cb5ad15c0b72094 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.af6ab7cc.tar.gz (002297) [15:13:38] Download http://mirror.postmarketos.org/postmarketos/master/armv7/APKINDEX.tar.gz (002297) [15:13:39] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_1ac903ac063665387c34164a0e83a5c312b7e081baa5ffa9d72b7c3c8a7e0d02 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.bdd0d494.tar.gz (002297) [15:13:39] Download http://dl-4.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz (002297) [15:13:44] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b894cc111f87d781ddff66d11108cb154a7ec03d2ff6ede85d1981e0686cb930 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.ed54c246.tar.gz (002297) [15:13:44] Download http://dl-4.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz (002297) [15:13:55] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_2711711070325f8796558accbc5c494a4477cd3aae3d87e2b77ac2088bf47f40 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.e76b60f6.tar.gz (002297) [15:13:55] Download http://dl-4.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz (002297) [15:14:01] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_a9dc322bd1623cfa5460d475f77fc452b38a9a192c6d6bf87ea68fd01b1c06b9 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.24c95890.tar.gz (002297) [15:14:01] APKINDEX outdated (file does not exist yet): http://build.postmarketos.org/wip/master/x86_64/APKINDEX.tar.gz (002297) [15:14:01] APKINDEX outdated (file does not exist yet): http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz (002297) [15:14:01] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz (002297) [15:14:01] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz (002297) [15:14:01] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz (002297) [15:14:01] Update package index for x86_64 (5 file(s)) (002297) [15:14:01] Download http://build.postmarketos.org/wip/master/x86_64/APKINDEX.tar.gz (002297) [15:14:02] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_apk_x86_64 (002297) [15:14:02] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b5c42e3975be0fe9e47c9d10368cdb12b769d34497838f599f197797ceee4130 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.af6ab7cc.tar.gz (002297) [15:14:02] Download http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz (002297) [15:14:03] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_fbf6a6bb13f455234f8410708d660d6939b023713fb7426b3335eb2673669e92 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.bdd0d494.tar.gz (002297) [15:14:03] Download http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz (002297) [15:14:11] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_aa67e23cbb4d0d6bd4a068d4c1ffaddafc17982b20d0b66bba28fd70e9dcca18 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.ed54c246.tar.gz (002297) [15:14:11] Download http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz (002297) [15:14:25] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_98c2384a26483d9f5a647c0da3addb5180f319fb8359ed26c35bd8d941d5a68d /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.e76b60f6.tar.gz (002297) [15:14:25] Download http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz (002297) [15:14:38] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b44671428b2a6d432bdd2a5fc8cee55ea633c42c3fc24145ccf43677cb953bb9 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.24c95890.tar.gz (002297) [15:14:45] Build is necessary for package 'linux-samsung-j3xnlte': Binary package out of date (binary: 3.10.100-r4, aport: 3.10.100-r5) (002297) [15:14:45] NOTE: Skipped apk version check for chroot 'native', because it is not installed yet! (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/dev (002297) [15:14:45] % sudo mount -t tmpfs -o size=1M,noexec,dev tmpfs /home/build/.local/var/pmbootstrap/chroot_native/dev (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/dev/pts /home/build/.local/var/pmbootstrap/chroot_native/dev/shm (002297) [15:14:45] % sudo mount -t tmpfs -o nodev,nosuid,noexec tmpfs /home/build/.local/var/pmbootstrap/chroot_native/dev/shm (002297) [15:14:45] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/null c 1 3 (002297) [15:14:45] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/zero c 1 5 (002297) [15:14:45] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/full c 1 7 (002297) [15:14:45] % sudo mknod -m 644 /home/build/.local/var/pmbootstrap/chroot_native/dev/random c 1 8 (002297) [15:14:45] % sudo mknod -m 644 /home/build/.local/var/pmbootstrap/chroot_native/dev/urandom c 1 9 (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/proc (002297) [15:14:45] % sudo mount --bind /proc /home/build/.local/var/pmbootstrap/chroot_native/proc (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/var/cache/apk (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_apk_x86_64 /home/build/.local/var/pmbootstrap/chroot_native/var/cache/apk (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_ccache_x86_64 (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-ccache (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_ccache_x86_64 /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-ccache (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_distfiles (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/var/cache/distfiles (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_distfiles /home/build/.local/var/pmbootstrap/chroot_native/var/cache/distfiles (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-git (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_git /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-git (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_rust (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-rust (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_rust /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-rust (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/config_abuild (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-abuild-config (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/config_abuild /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-abuild-config (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/config_apk_keys (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/keys (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/config_apk_keys /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/keys (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/packages/edge (002297) [15:14:45] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-packages (002297) [15:14:45] % sudo mount --bind /home/build/.local/var/pmbootstrap/packages/edge /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-packages (002297) [15:14:45] % sudo touch /home/build/.local/var/pmbootstrap/chroot_native/in-pmbootstrap (002297) [15:14:45] Download http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.12.7-r0.apk (002297) [15:15:13] sigfilename: sbin/apk.static.SIGN.RSA.alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002297) [15:15:13] sigkey: alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002297) [15:15:13] extracted: /tmp/pmbootstrapayebwi_uapk (002297) [15:15:13] extracted: /tmp/pmbootstrapidfqij41sig (002297) [15:15:13] Verify apk.static signature with /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002297) [15:15:13] % openssl dgst -sha1 -verify /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub -signature /tmp/pmbootstrapidfqij41sig /tmp/pmbootstrapayebwi_uapk Verified OK (002297) [15:15:13] Verify the version reported by the apk.static binary (must match the package version 2.12.7-r0) (002297) [15:15:13] % /tmp/pmbootstrapayebwi_uapk --version apk-tools 2.12.7, compiled for x86_64. (002297) [15:15:13] (native) install alpine-base (002297) [15:15:13] % sudo ln -s -f /var/cache/apk /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/cache (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/build.postmarketos.org.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/wip.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002297) [15:15:13] % sudo cp /etc/resolv.conf /home/build/.local/var/pmbootstrap/chroot_native/etc/resolv.conf (002297) [15:15:13] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/etc/apk (002297) [15:15:13] (native) update /etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo /mnt/pmbootstrap-packages >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo http://build.postmarketos.org/wip/master >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo http://mirror.postmarketos.org/postmarketos/master >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/main >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/community >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002297) [15:15:13] % sudo mkdir -p /home/build/.local/var/pmbootstrap/tmp (002297) [15:15:13] % sudo mkfifo /home/build/.local/var/pmbootstrap/tmp/apk_progress_fifo (002297) [15:15:13] % sudo cat /home/build/.local/var/pmbootstrap/tmp/apk_progress_fifo (002297) [15:15:13] % sudo sh -c exec 3>/home/build/.local/var/pmbootstrap/tmp/apk_progress_fifo; /home/build/.local/var/pmbootstrap/apk.static --no-progress --progress-fd 3 --root /home/build/.local/var/pmbootstrap/chroot_native --cache-dir /home/build/.local/var/pmbootstrap/cache_apk_x86_64 --initdb --arch x86_64 add alpine-base (002297) [15:15:13] New background process: pid=2373, output=background WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/20) Installing musl (1.2.2-r5) (2/20) Installing busybox (1.34.0-r2) Executing busybox-1.34.0-r2.post-install (3/20) Installing alpine-baselayout (3.2.0-r17) Executing alpine-baselayout-3.2.0-r17.pre-install Executing alpine-baselayout-3.2.0-r17.post-install (4/20) Installing ifupdown-ng (0.11.3-r0) (5/20) Installing openrc (0.43.5-r0) Executing openrc-0.43.5-r0.post-install (6/20) Installing alpine-conf (3.12.0-r0) (7/20) Installing libcrypto1.1 (1.1.1l-r0) (8/20) Installing libssl1.1 (1.1.1l-r0) (9/20) Installing ca-certificates-bundle (20191127-r5) (10/20) Installing libretls (3.3.4-r0) (11/20) Installing ssl_client (1.34.0-r2) (12/20) Installing zlib (1.2.11-r3) (13/20) Installing apk-tools (2.12.7-r0) (14/20) Installing busybox-suid (1.34.0-r2) (15/20) Installing busybox-initscripts (3.3-r1) Executing busybox-initscripts-3.3-r1.post-install (16/20) Installing scanelf (1.3.3-r0) (17/20) Installing musl-utils (1.2.2-r5) (18/20) Installing libc-utils (0.7.2-r3) (19/20) Installing alpine-keys (2.3-r1) (20/20) Installing alpine-base (3.15.0_alpha20210804-r0) Executing busybox-1.34.0-r2.trigger OK: 9 MiB in 20 packages (002297) [15:16:02] (native) % adduser -D pmos -u 12345 (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-abuild-config /home/pmos/.abuild (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-abuild-config (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-ccache /home/pmos/.ccache (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-ccache (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/packages (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-packages /home/pmos/packages/pmos (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-packages (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/registry (002297) [15:16:02] (native) % mkdir -p /mnt/pmbootstrap-rust/registry/index (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/registry/index /home/pmos/.cargo/registry/index (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/registry/index (002297) [15:16:02] (native) % mkdir -p /mnt/pmbootstrap-rust/registry/cache (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/registry/cache /home/pmos/.cargo/registry/cache (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/registry/cache (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/git (002297) [15:16:02] (native) % mkdir -p /mnt/pmbootstrap-rust/git/db (002297) [15:16:02] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/git/db /home/pmos/.cargo/git/db (002297) [15:16:02] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/git/db (002297) [15:16:02] (native) calculate depends of abuild, build-base, ccache, git (pmbootstrap -v for details) (002297) [15:16:02] (native) install abuild build-base ccache git (002297) [15:16:02] % sudo mkfifo /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002297) [15:16:02] (native) % cat /tmp/apk_progress_fifo (002297) [15:16:02] (native) % sh -c exec 3>/tmp/apk_progress_fifo; apk --no-progress --progress-fd 3 add -u --virtual .pmbootstrap abuild build-base ccache git fakeroot openssl attr tar pkgconf patch lzip curl binutils file gcc g++ make libc-dev fortify-headers libgcc libstdc++ zstd-libs libcurl expat pcre2 libattr libacl ca-certificates libmagic libgomp libatomic libgphobos gmp isl22 mpc1 mpfr4 musl-dev brotli-libs nghttp2-libs (002297) [15:16:02] New background process: pid=2411, output=background WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/40) Installing fakeroot (1.25.3-r3) (2/40) Installing openssl (1.1.1l-r0) (3/40) Installing libattr (2.5.1-r0) (4/40) Installing attr (2.5.1-r0) (5/40) Installing libacl (2.2.53-r0) (6/40) Installing tar (1.34-r0) (7/40) Installing pkgconf (1.8.0-r0) (8/40) Installing patch (2.7.6-r7) (9/40) Installing libgcc (10.3.1_git20210625-r1) (10/40) Installing libstdc++ (10.3.1_git20210625-r1) (11/40) Installing lzip (1.22-r1) (12/40) Installing ca-certificates (20191127-r5) (13/40) Installing brotli-libs (1.0.9-r5) (14/40) Installing nghttp2-libs (1.44.0-r0) (15/40) Installing libcurl (7.78.0-r0) (16/40) Installing curl (7.78.0-r0) (17/40) Installing abuild (3.8.0_rc4-r0) Executing abuild-3.8.0_rc4-r0.pre-install (18/40) Installing binutils (2.35.2-r2) (19/40) Installing libmagic (5.40-r1) (20/40) Installing file (5.40-r1) (21/40) Installing libgomp (10.3.1_git20210625-r1) (22/40) Installing libatomic (10.3.1_git20210625-r1) (23/40) Installing libgphobos (10.3.1_git20210625-r1) (24/40) Installing gmp (6.2.1-r0) (25/40) Installing isl22 (0.22-r0) (26/40) Installing mpfr4 (4.1.0-r0) (27/40) Installing mpc1 (1.2.1-r0) (28/40) Installing gcc (10.3.1_git20210625-r1) (29/40) Installing musl-dev (1.2.2-r5) (30/40) Installing libc-dev (0.7.2-r3) (31/40) Installing g++ (10.3.1_git20210625-r1) (32/40) Installing make (4.3-r0) (33/40) Installing fortify-headers (1.1-r1) (34/40) Installing build-base (0.5-r2) (35/40) Installing zstd-libs (1.5.0-r0) (36/40) Installing ccache (4.3-r0) (37/40) Installing expat (2.4.1-r0) (38/40) Installing pcre2 (10.37-r0) (39/40) Installing git (2.33.0-r0) (40/40) Installing .pmbootstrap (20210906.151603) Executing busybox-1.34.0-r2.trigger Executing ca-certificates-20191127-r5.trigger OK: 216 MiB in 60 packages (002297) [15:24:09] (native) % apk --no-progress add abuild build-base ccache git WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory OK: 216 MiB in 60 packages (002297) [15:24:10] (native) % apk --no-progress del .pmbootstrap WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/1) Purging .pmbootstrap (20210906.151603) OK: 216 MiB in 59 packages (002297) [15:24:10] (native) % chown root:abuild /var/cache/distfiles (002297) [15:24:10] (native) % chmod g+w /var/cache/distfiles (002297) [15:24:10] (native) generate abuild keys (002297) [15:24:10] (native) % busybox su pmos -c PACKAGER='pmos ' HOME=/home/pmos abuild-keygen -n -q -a Generating RSA private key, 2048 bit long modulus (2 primes) .....................................................................................+++++ ...............................................+++++ e is 65537 (0x010001) writing RSA key (002297) [15:24:10] (native) % cp /mnt/pmbootstrap-abuild-config/pmos@local-6136329a.rsa.pub /etc/apk/keys/ (002297) [15:24:10] (native) % cp /tmp/gzip_wrapper.sh /usr/local/bin/gzip (002297) [15:24:10] (native) % chmod +x /usr/local/bin/gzip (002297) [15:24:10] (native) % adduser pmos abuild (002297) [15:24:10] (native) % sed -i -e s/^CLEANUP=.*/CLEANUP=''/ /etc/abuild.conf (002297) [15:24:10] (native) % sed -i -e s/^ERROR_CLEANUP=.*/ERROR_CLEANUP=''/ /etc/abuild.conf (002297) [15:24:10] (native) % touch /var/local/pmbootstrap_chroot_build_init_done (002297) [15:24:11] (native) % sed -i -e s/^export JOBS=.*/export JOBS=3/ /etc/abuild.conf (002297) [15:24:11] (native) % busybox su pmos -c HOME=/home/pmos ccache --max-size 5G Set cache size limit to 5.0 GB (002297) [15:24:11] (native) calculate depends of ccache-cross-symlinks, gcc-armv7, g++-armv7 (pmbootstrap -v for details) (002297) [15:24:11] (native) install ccache-cross-symlinks gcc-armv7 g++-armv7 (002297) [15:24:11] % sudo rm -f /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002297) [15:24:11] % sudo mkfifo /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002297) [15:24:11] (native) % cat /tmp/apk_progress_fifo (002297) [15:24:11] (native) % sh -c exec 3>/tmp/apk_progress_fifo; apk --no-progress --progress-fd 3 add -u --virtual .pmbootstrap ccache-cross-symlinks gcc-armv7 g++-armv7 isl binutils-armv7 (002297) [15:24:11] New background process: pid=2458, output=background WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/6) Installing ccache-cross-symlinks (3-r0) (2/6) Installing isl (0.18-r1) (3/6) Installing binutils-armv7 (2.35.2-r2) (4/6) Installing gcc-armv7 (10.3.1_git20210625-r1) (5/6) Installing g++-armv7 (10.3.1_git20210625-r1) (6/6) Installing .pmbootstrap (20210906.152411) Executing busybox-1.34.0-r2.trigger OK: 379 MiB in 65 packages (002297) [15:24:38] (native) % apk --no-progress add ccache-cross-symlinks gcc-armv7 g++-armv7 WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory OK: 379 MiB in 65 packages (002297) [15:24:38] (native) % apk --no-progress del .pmbootstrap WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/1) Purging .pmbootstrap (20210906.152411) OK: 379 MiB in 64 packages (002297) [15:24:39] (native) build armv7/linux-samsung-j3xnlte-3.10.100-r5.apk (002297) [15:24:39] % sudo cp -rL /home/build/pmaports/device/testing/linux-samsung-j3xnlte/ /home/build/.local/var/pmbootstrap/chroot_native/home/pmos/build (002297) [15:24:39] (native) % chown -R pmos:pmos /home/pmos/build (002297) [15:24:39] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmaports (002297) [15:24:39] % sudo mount --bind /home/build/pmaports /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmaports (002297) [15:24:39] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/build (002297) [15:24:39] (native) % busybox su pmos -c HOME=/home/pmos ln -sf /mnt/pmaports/.git /home/pmos/build/.git (002297) [15:24:39] (native) % cd /home/pmos/build; busybox su pmos -c CARCH=armv7 SUDO_APK='abuild-apk --no-progress' CROSS_COMPILE=armv7-alpine-linux-musleabihf- CC=armv7-alpine-linux-musleabihf-gcc CCACHE_DISABLE=1 HOME=/home/pmos abuild -D postmarketOS -r -f ]0;abuild-armv7: linux-samsung-j3xnlte>>> linux-samsung-j3xnlte: Building pmos/linux-samsung-j3xnlte 3.10.100-r5 (using abuild 3.8.0_rc4-r0) started Mon, 06 Sep 2021 15:24:39 +0000 >>> linux-samsung-j3xnlte: Checking sanity of /home/pmos/build/APKBUILD... >>> WARNING: linux-samsung-j3xnlte: No maintainer >>> linux-samsung-j3xnlte: Analyzing dependencies... >>> linux-samsung-j3xnlte: Installing for build: build-base mkbootimg perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev devicepkg-dev dtbtool-sprd WARNING: Ignoring /home/pmos/packages//pmos: No such file or directory WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/53) Installing mkbootimg-osm0sis (2021.04.27-r0) (2/53) Installing libbz2 (1.0.8-r1) (3/53) Installing perl (5.34.0-r1) (4/53) Installing sed (4.8-r0) (5/53) Installing installkernel (3.5-r1) (6/53) Installing ncurses-terminfo-base (6.2_p20210905-r0) (7/53) Installing ncurses-libs (6.2_p20210905-r0) (8/53) Installing readline (8.1.1-r0) (9/53) Installing bash (5.1.8-r0) Executing bash-5.1.8-r0.post-install (10/53) Installing libgmpxx (6.2.1-r0) (11/53) Installing gmp-dev (6.2.1-r0) (12/53) Installing bc (1.07.1-r1) (13/53) Installing linux-headers (5.10.41-r0) (14/53) Installing fts (1.2.7-r1) (15/53) Installing xz-libs (5.2.5-r0) (16/53) Installing libelf (0.185-r0) (17/53) Installing xz-dev (5.2.5-r0) (18/53) Installing zlib-dev (1.2.11-r3) (19/53) Installing elfutils-dev (0.185-r0) (20/53) Installing libpng (1.6.37-r1) (21/53) Installing freetype (2.11.0-r0) (22/53) Installing libuuid (2.37.2-r1) (23/53) Installing fontconfig (2.13.1-r4) (24/53) Installing encodings (1.0.5-r0) (25/53) Installing libfontenc (1.1.4-r0) (26/53) Installing mkfontscale (1.2.1-r1) (27/53) Installing ttf-dejavu (2.37-r1) (28/53) Installing ttf-droid (20200215-r1) (29/53) Installing py3-olefile (0.46-r5) (30/53) Installing libimagequant (2.15.1-r0) (31/53) Installing libjpeg-turbo (2.1.1-r0) (32/53) Installing lcms2 (2.12-r1) (33/53) Installing openjpeg (2.4.0-r2) (34/53) Installing libwebp (1.2.1-r0) (35/53) Installing tiff (4.2.0-r1) (36/53) Installing libxau (1.0.9-r0) (37/53) Installing libmd (1.0.3-r0) (38/53) Installing libbsd (0.11.3-r0) (39/53) Installing libxdmcp (1.1.3-r0) (40/53) Installing libxcb (1.14-r2) (41/53) Installing py3-pillow (8.1.2-r1) (42/53) Installing libffi (3.3-r2) (43/53) Installing gdbm (1.20-r2) (44/53) Installing mpdecimal (2.5.1-r1) (45/53) Installing sqlite-libs (9999-r0) (46/53) Installing python3 (3.9.6-r0) (47/53) Installing postmarketos-splash (1.0.0-r1) (48/53) Installing devicepkg-dev (0.13.0-r0) (49/53) Installing dtbtool-sprd (1.1.2-r0) (50/53) Installing .makedepends-linux-samsung-j3xnlte (20210906.152440) (51/53) Installing perl-error (0.17029-r1) (52/53) Installing perl-git (2.33.0-r0) (53/53) Installing git-perl (2.33.0-r0) Executing busybox-1.34.0-r2.trigger Executing fontconfig-2.13.1-r4.trigger Executing mkfontscale-1.2.1-r1.trigger OK: 505 MiB in 117 packages ]0;>>> linux-samsung-j3xnlte: Cleaning up srcdir ]0;>>> linux-samsung-j3xnlte: Cleaning up pkgdir >>> linux-samsung-j3xnlte: Fetching linux-samsung-j3xnlte-e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz::https://github.com/djeman/android_kernel_samsung_sharkls/archive/e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 179 100 179 0 0 1185 0 --:--:-- --:--:-- --:--:-- 1185 100 866k 0 866k 0 0 851k 0 --:--:-- 0:00:01 --:--:-- 851k 100 7314k 0 7314k 0 0 3634k 0 --:--:-- 0:00:02 --:--:-- 6473k 100 13.6M 0 13.6M 0 0 4645k 0 --:--:-- 0:00:03 --:--:-- 6575k 100 20.1M 0 20.1M 0 0 5141k 0 --:--:-- 0:00:04 --:--:-- 6596k 100 26.3M 0 26.3M 0 0 5376k 0 --:--:-- 0:00:05 --:--:-- 6527k 100 32.5M 0 32.5M 0 0 5548k 0 --:--:-- 0:00:06 --:--:-- 6504k 100 38.3M 0 38.3M 0 0 5604k 0 --:--:-- 0:00:07 --:--:-- 6397k 100 44.5M 0 44.5M 0 0 5688k 0 --:--:-- 0:00:08 --:--:-- 6317k 100 50.3M 0 50.3M 0 0 5726k 0 --:--:-- 0:00:09 --:--:-- 6195k 100 56.4M 0 56.4M 0 0 5770k 0 --:--:-- 0:00:10 --:--:-- 6166k 100 62.6M 0 62.6M 0 0 5823k 0 --:--:-- 0:00:11 --:--:-- 6153k 100 68.7M 0 68.7M 0 0 5862k 0 --:--:-- 0:00:12 --:--:-- 6224k 100 75.4M 0 75.4M 0 0 5934k 0 --:--:-- 0:00:13 --:--:-- 6327k 100 81.4M 0 81.4M 0 0 5948k 0 --:--:-- 0:00:14 --:--:-- 6349k 100 87.2M 0 87.2M 0 0 5949k 0 --:--:-- 0:00:15 --:--:-- 6306k 100 92.8M 0 92.8M 0 0 5935k 0 --:--:-- 0:00:16 --:--:-- 6182k 100 99.3M 0 99.3M 0 0 5981k 0 --:--:-- 0:00:17 --:--:-- 6268k 100 104M 0 104M 0 0 5962k 0 --:--:-- 0:00:18 --:--:-- 6037k 100 108M 0 108M 0 0 5860k 0 --:--:-- 0:00:19 --:--:-- 5612k 100 113M 0 113M 0 0 5796k 0 --:--:-- 0:00:20 --:--:-- 5338k >>> linux-samsung-j3xnlte: Fetching linux-samsung-j3xnlte-e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz::https://github.com/djeman/android_kernel_samsung_sharkls/archive/e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz >>> linux-samsung-j3xnlte: Checking sha512sums... linux-samsung-j3xnlte-e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz: OK config-samsung-j3xnlte.armv7: OK gcc7-give-up-on-ilog2-const-optimizations.patch: OK gcc8-fix-put-user.patch: OK gcc10-extern_YYLOC_global_declaration.patch: OK fix_recordmcount.patch: OK fix_touchscreen.patch: OK sprdfb-check-for-buffering.patch: OK sprdfb-fix-swapped-colors.patch: OK >>> linux-samsung-j3xnlte: Unpacking /var/cache/distfiles/linux-samsung-j3xnlte-e3381e42b00e1ff977815b365cea53f18afff7a8.tar.gz... >>> linux-samsung-j3xnlte: gcc7-give-up-on-ilog2-const-optimizations.patch patching file include/linux/log2.h >>> linux-samsung-j3xnlte: gcc8-fix-put-user.patch patching file arch/arm/include/asm/uaccess.h Hunk #1 succeeded at 168 (offset 6 lines). >>> linux-samsung-j3xnlte: gcc10-extern_YYLOC_global_declaration.patch patching file scripts/dtc/dtc-lexer.l patching file scripts/dtc/dtc-lexer.lex.c_shipped >>> linux-samsung-j3xnlte: fix_recordmcount.patch patching file scripts/recordmcount.c >>> linux-samsung-j3xnlte: fix_touchscreen.patch patching file drivers/input/touchscreen/ist30xxc/ist30xxc.c >>> linux-samsung-j3xnlte: sprdfb-check-for-buffering.patch patching file drivers/video/sprdfb/sprdfb_main.c Hunk #1 succeeded at 536 (offset 5 lines). >>> linux-samsung-j3xnlte: sprdfb-fix-swapped-colors.patch patching file drivers/video/sprdfb/sprdfb_main.c Hunk #1 succeeded at 64 (offset 13 lines). NOTE: replacing /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/include/linux/compiler-gcc.h! If your build breaks with 'Please don't include directly' or a similar compiler-gcc.h related error, then set REPLACE_GCCH=0 in your kernel APKBUILD at the start of the downstreamkernel_prepare.sh line. '/usr/share/devicepkg-dev/compiler-gcc.h' -> '/home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/include/linux/compiler-gcc.h' make: Entering directory '/home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/zconf.lex.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # make: Leaving directory '/home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf --silentoldconfig Kconfig WRAP arch/arm/include/generated/asm/auxvec.h WRAP arch/arm/include/generated/asm/bitsperlong.h WRAP arch/arm/include/generated/asm/cputime.h WRAP arch/arm/include/generated/asm/current.h WRAP arch/arm/include/generated/asm/emergency-restart.h CHK include/generated/uapi/linux/version.h WRAP arch/arm/include/generated/asm/errno.h WRAP arch/arm/include/generated/asm/exec.h UPD include/generated/uapi/linux/version.h WRAP arch/arm/include/generated/asm/ioctl.h WRAP arch/arm/include/generated/asm/ipcbuf.h WRAP arch/arm/include/generated/asm/irq_regs.h WRAP arch/arm/include/generated/asm/kdebug.h WRAP arch/arm/include/generated/asm/local.h WRAP arch/arm/include/generated/asm/local64.h WRAP arch/arm/include/generated/asm/msgbuf.h WRAP arch/arm/include/generated/asm/param.h WRAP arch/arm/include/generated/asm/parport.h WRAP arch/arm/include/generated/asm/poll.h WRAP arch/arm/include/generated/asm/resource.h WRAP arch/arm/include/generated/asm/sections.h WRAP arch/arm/include/generated/asm/segment.h WRAP arch/arm/include/generated/asm/sembuf.h WRAP arch/arm/include/generated/asm/serial.h WRAP arch/arm/include/generated/asm/shmbuf.h WRAP arch/arm/include/generated/asm/siginfo.h WRAP arch/arm/include/generated/asm/sizes.h WRAP arch/arm/include/generated/asm/socket.h WRAP arch/arm/include/generated/asm/sockios.h WRAP arch/arm/include/generated/asm/termbits.h WRAP arch/arm/include/generated/asm/termios.h WRAP arch/arm/include/generated/asm/timex.h WRAP arch/arm/include/generated/asm/trace_clock.h WRAP arch/arm/include/generated/asm/types.h WRAP arch/arm/include/generated/asm/unaligned.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/data.o Generating include/generated/mach-types.h CC kernel/bounds.s GEN include/generated/bounds.h CC arch/arm/kernel/asm-offsets.s SHIPPED scripts/dtc/dtc-lexer.lex.c SHIPPED scripts/dtc/dtc-parser.tab.h SHIPPED scripts/dtc/dtc-parser.tab.c HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o GEN include/generated/asm-offsets.h CALL scripts/checksyscalls.sh HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/dtc/util.o HOSTCC scripts/dtc/dtc-lexer.lex.o SHIPPED scripts/genksyms/lex.lex.c SHIPPED scripts/genksyms/keywords.hash.c SHIPPED scripts/genksyms/parse.tab.h SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTCC scripts/genksyms/parse.tab.o HOSTLD scripts/dtc/dtc CC scripts/mod/empty.o HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/mod/mk_elfconfig HOSTCC scripts/selinux/mdp/mdp CC scripts/mod/devicetable-offsets.s HOSTLD scripts/genksyms/genksyms MKELF scripts/mod/elfconfig.h HOSTCC scripts/kallsyms GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTCC scripts/conmakehash HOSTCC scripts/recordmcount HOSTCC scripts/sortextable scripts/sortextable.c:68:1: warning: 'succeed_file' defined but not used [-Wunused-function] 68 | succeed_file(void) | ^~~~~~~~~~~~ HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CC init/main.o HOSTCC usr/gen_init_cpio CC arch/arm/vfp/vfpmodule.o GEN usr/initramfs_data.cpio AS arch/arm/vfp/entry.o AS usr/initramfs_data.o AS arch/arm/vfp/vfphw.o LD usr/built-in.o CHK include/generated/compile.h CC arch/arm/vfp/vfpsingle.o UPD include/generated/compile.h CC arch/arm/vfp/vfpdouble.o CC init/do_mounts.o CC init/do_mounts_initrd.o LD arch/arm/vfp/vfp.o LD arch/arm/vfp/built-in.o CC init/initramfs.o CC arch/arm/kernel/elf.o AS arch/arm/kernel/entry-armv.o AS arch/arm/kernel/entry-common.o CC arch/arm/kernel/irq.o CC init/calibrate.o CC arch/arm/kernel/opcodes.o CC init/init_task.o CC arch/arm/kernel/process.o CC init/version.o CC arch/arm/kernel/ptrace.o LD init/mounts.o LD init/built-in.o CC arch/arm/kernel/return_address.o arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp] 63 | #warning "TODO: return_address should use unwind tables" | ^~~~~~~ CC arch/arm/mm/dma-mapping.o arch/arm/kernel/return_address.c:63:2: warning: #warning "TODO: return_address should use unwind tables" [-Wcpp] 63 | #warning "TODO: return_address should use unwind tables" | ^~~~~~~ CC arch/arm/common/firmware.o CC arch/arm/kernel/sched_clock.o AS arch/arm/common/fiq_glue.o CC arch/arm/common/fiq_glue_setup.o arch/arm/mm/dma-mapping.c: In function 'dma_contiguous_early_fixup': arch/arm/mm/dma-mapping.c:402:15: warning: array subscript is outside array bounds of 'struct dma_contig_early_reserve[0]' [-Warray-bounds] 402 | dma_mmu_remap[dma_mmu_remap_num].base = base; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arch/arm/mm/dma-mapping.c:396:40: note: while referencing 'dma_mmu_remap' 396 | static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata; | ^~~~~~~~~~~~~ arch/arm/mm/dma-mapping.c:403:15: warning: array subscript is outside array bounds of 'struct dma_contig_early_reserve[0]' [-Warray-bounds] 403 | dma_mmu_remap[dma_mmu_remap_num].size = size; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arch/arm/mm/dma-mapping.c:396:40: note: while referencing 'dma_mmu_remap' 396 | static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata; | ^~~~~~~~~~~~~ arch/arm/mm/dma-mapping.c: In function 'dma_contiguous_remap': CC arch/arm/kernel/setup.o arch/arm/mm/dma-mapping.c:411:36: warning: array subscript i is outside array bounds of 'struct dma_contig_early_reserve[0]' [-Warray-bounds] 411 | phys_addr_t start = dma_mmu_remap[i].base; | ~~~~~~~~~~~~~^~~ arch/arm/mm/dma-mapping.c:396:40: note: while referencing 'dma_mmu_remap' 396 | static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata; | ^~~~~~~~~~~~~ arch/arm/mm/dma-mapping.c:412:42: warning: array subscript i is outside array bounds of 'struct dma_contig_early_reserve[0]' [-Warray-bounds] 412 | phys_addr_t end = start + dma_mmu_remap[i].size; | ~~~~~~~~~~~~~^~~ arch/arm/mm/dma-mapping.c:396:40: note: while referencing 'dma_mmu_remap' 396 | static struct dma_contig_early_reserve dma_mmu_remap[MAX_CMA_AREAS] __initdata; | ^~~~~~~~~~~~~ LD arch/arm/common/built-in.o CC arch/arm/kernel/signal.o CC arch/arm/mm/extable.o CC arch/arm/mm/fault.o LD arch/arm/net/built-in.o AS arch/arm/crypto/aes-armv4.o AS arch/arm/kernel/sigreturn_codes.o CC arch/arm/kernel/stacktrace.o CC arch/arm/crypto/aes_glue.o CC arch/arm/mm/init.o LD arch/arm/crypto/aes-arm.o LD arch/arm/crypto/built-in.o CC arch/arm/kernel/sys_arm.o CC arch/arm/mm/iomap.o CC arch/arm/mach-sc/board-j3xnlte.o CC arch/arm/kernel/time.o In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: arch/arm/mach-sc/board-j3xnlte.c: In function '__sci_get_chip_id': include/soc/sprd/__hardware-sc9630.h:149:41: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 149 | #define CHIP_ID_LOW_REG (SPRD_AHB_BASE + 0xfc) | ~~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int arch/arm/mach-sc/board-j3xnlte.c:174:21: note: in expansion of macro 'CHIP_ID_LOW_REG' 174 | return __raw_readl(CHIP_ID_LOW_REG); | ^~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ arch/arm/mach-sc/board-j3xnlte.c: At top level: arch/arm/mach-sc/board-j3xnlte.c:206:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] 206 | int iotable_build() | ^~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c: In function 'iotable_build': arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:244:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 244 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:244:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 244 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:244:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 244 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:244:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 244 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:245:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 245 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:245:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 245 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:245:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 245 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:245:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 245 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:246:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 246 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:246:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 246 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:246:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 246 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:246:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 246 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:247:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 247 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:247:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 247 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:247:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 247 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:247:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 247 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:248:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 248 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:248:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 248 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:248:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 248 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:248:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 248 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:249:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 249 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:249:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 249 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:249:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 249 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:249:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 249 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:250:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 250 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:250:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 250 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:250:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 250 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:250:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 250 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:251:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 251 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:251:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 251 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:251:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 251 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:251:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 251 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:252:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 252 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:252:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 252 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:252:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 252 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:252:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 252 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:253:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 253 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:253:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 253 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:253:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 253 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:253:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 253 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:254:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 254 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:254:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 254 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:254:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 254 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:254:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 254 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:255:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 255 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:255:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 255 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:255:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 255 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:255:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 255 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:256:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 256 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:256:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 256 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:256:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 256 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:256:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 256 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:257:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 257 | ADD_SPRD_DEVICE("sprd,ca7wdg", CA7WDG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:257:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 257 | ADD_SPRD_DEVICE("sprd,ca7wdg", CA7WDG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:257:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 257 | ADD_SPRD_DEVICE("sprd,ca7wdg", CA7WDG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:257:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 257 | ADD_SPRD_DEVICE("sprd,ca7wdg", CA7WDG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:258:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 258 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:258:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 258 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:258:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 258 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:258:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 258 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:259:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 259 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:259:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 259 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:259:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 259 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:259:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 259 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:260:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 260 | ADD_SPRD_DEVICE("sprd,wdg", WDG); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:260:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 260 | ADD_SPRD_DEVICE("sprd,wdg", WDG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:260:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 260 | ADD_SPRD_DEVICE("sprd,wdg", WDG); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:260:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 260 | ADD_SPRD_DEVICE("sprd,wdg", WDG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:261:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 261 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:261:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 261 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:261:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 261 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:261:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 261 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:262:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 262 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:262:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 262 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:262:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 262 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:262:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 262 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:263:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 263 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:263:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 263 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:263:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 263 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:263:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 263 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:264:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 264 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:264:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 264 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:264:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 264 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:264:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 264 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:265:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 265 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:265:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 265 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:265:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 265 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:265:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 265 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:266:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 266 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:266:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 266 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:266:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 266 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:266:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 266 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:267:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 267 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:267:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 267 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:267:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 267 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:267:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 267 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:219:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 219 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:269:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 269 | ADD_SPRD_DEVICE("sprd,codecahb", CODECAHB); | ^~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from arch/arm/mach-sc/board-j3xnlte.c:14: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:269:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 269 | ADD_SPRD_DEVICE("sprd,codecahb", CODECAHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:269:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 269 | ADD_SPRD_DEVICE("sprd,codecahb", CODECAHB); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:221:3: note: in expansion of macro 'pr_debug' 221 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:269:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 269 | ADD_SPRD_DEVICE("sprd,codecahb", CODECAHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:233:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 233 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:271:2: note: in expansion of macro 'ADD_SPRD_DEVICE_BY_NAME' 271 | ADD_SPRD_DEVICE_BY_NAME("hwspinlock0", HWSPINLOCK0); | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:233:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 233 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-j3xnlte.c:272:2: note: in expansion of macro 'ADD_SPRD_DEVICE_BY_NAME' 272 | ADD_SPRD_DEVICE_BY_NAME("hwspinlock1", HWSPINLOCK1); | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c: In function 'sc8830_init_machine': arch/arm/mach-sc/board-j3xnlte.c:294:10: warning: 'return' with a value, in function returning void [-Wreturn-type] 294 | return PTR_ERR(sec_class); | ^~~~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:277:20: note: declared here 277 | static void __init sc8830_init_machine(void) | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: arch/arm/mach-sc/board-j3xnlte.c: In function 'sc8830_pmu_init': include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:36:56: note: in expansion of macro 'SCI_ADDR' 36 | #define REG_PMU_APB_PD_MM_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x001C) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:326:27: note: in expansion of macro 'REG_PMU_APB_PD_MM_TOP_CFG' 326 | __raw_writel(__raw_readl(REG_PMU_APB_PD_MM_TOP_CFG) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:36:56: note: in expansion of macro 'SCI_ADDR' 36 | #define REG_PMU_APB_PD_MM_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x001C) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:328:3: note: in expansion of macro 'REG_PMU_APB_PD_MM_TOP_CFG' 328 | REG_PMU_APB_PD_MM_TOP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:69:56: note: in expansion of macro 'SCI_ADDR' 69 | #define REG_PMU_APB_PWR_STATUS0_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00BC) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:330:21: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS0_DBG' 330 | while (__raw_readl(REG_PMU_APB_PWR_STATUS0_DBG) & 0xf0000000) {}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:37:56: note: in expansion of macro 'SCI_ADDR' 37 | #define REG_PMU_APB_PD_GPU_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0020) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:332:27: note: in expansion of macro 'REG_PMU_APB_PD_GPU_TOP_CFG' 332 | __raw_writel(__raw_readl(REG_PMU_APB_PD_GPU_TOP_CFG) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:37:56: note: in expansion of macro 'SCI_ADDR' 37 | #define REG_PMU_APB_PD_GPU_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0020) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:334:3: note: in expansion of macro 'REG_PMU_APB_PD_GPU_TOP_CFG' 334 | REG_PMU_APB_PD_GPU_TOP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:69:56: note: in expansion of macro 'SCI_ADDR' 69 | #define REG_PMU_APB_PWR_STATUS0_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00BC) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:336:21: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS0_DBG' 336 | while (__raw_readl(REG_PMU_APB_PWR_STATUS0_DBG) & 0x0f000000) {}; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:30:56: note: in expansion of macro 'SCI_ADDR' 30 | #define REG_AON_APB_APB_EB0 SCI_ADDR(REGS_AON_APB_BASE, 0x0000) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:338:27: note: in expansion of macro 'REG_AON_APB_APB_EB0' 338 | __raw_writel(__raw_readl(REG_AON_APB_APB_EB0) | BIT_MM_EB | | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:30:56: note: in expansion of macro 'SCI_ADDR' 30 | #define REG_AON_APB_APB_EB0 SCI_ADDR(REGS_AON_APB_BASE, 0x0000) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:339:15: note: in expansion of macro 'REG_AON_APB_APB_EB0' 339 | BIT_GPU_EB, REG_AON_APB_APB_EB0); | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_ahb_rf.h:30:56: note: in expansion of macro 'SCI_ADDR' 30 | #define REG_MM_AHB_AHB_EB SCI_ADDR(REGS_MM_AHB_BASE, 0x0000) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:340:27: note: in expansion of macro 'REG_MM_AHB_AHB_EB' 340 | __raw_writel(__raw_readl(REG_MM_AHB_AHB_EB) | BIT_MM_CKG_EB, | ^~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_ahb_rf.h:30:56: note: in expansion of macro 'SCI_ADDR' 30 | #define REG_MM_AHB_AHB_EB SCI_ADDR(REGS_MM_AHB_BASE, 0x0000) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:341:3: note: in expansion of macro 'REG_MM_AHB_AHB_EB' 341 | REG_MM_AHB_AHB_EB); | ^~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_ahb_rf.h:32:56: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_MM_AHB_GEN_CKG_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0008) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:342:27: note: in expansion of macro 'REG_MM_AHB_GEN_CKG_CFG' 342 | __raw_writel(__raw_readl(REG_MM_AHB_GEN_CKG_CFG) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_ahb_rf.h:32:56: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_MM_AHB_GEN_CKG_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0008) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:344:3: note: in expansion of macro 'REG_MM_AHB_GEN_CKG_CFG' 344 | REG_MM_AHB_GEN_CKG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_clk.h:29:41: note: in expansion of macro 'SCI_ADDR' 29 | #define REG_MM_CLK_MM_AHB_CFG SCI_ADDR(REGS_MM_CLK_BASE, 0x0020) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:345:27: note: in expansion of macro 'REG_MM_CLK_MM_AHB_CFG' 345 | __raw_writel(__raw_readl(REG_MM_CLK_MM_AHB_CFG) | 0x3, | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_mm_clk.h:29:41: note: in expansion of macro 'SCI_ADDR' 29 | #define REG_MM_CLK_MM_AHB_CFG SCI_ADDR(REGS_MM_CLK_BASE, 0x0020) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:346:3: note: in expansion of macro 'REG_MM_CLK_MM_AHB_CFG' 346 | REG_MM_CLK_MM_AHB_CFG); | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:31:56: note: in expansion of macro 'SCI_ADDR' 31 | #define REG_AON_APB_APB_EB1 SCI_ADDR(REGS_AON_APB_BASE, 0x0004) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:348:27: note: in expansion of macro 'REG_AON_APB_APB_EB1' 348 | __raw_writel(__raw_readl(REG_AON_APB_APB_EB1) | BIT_CODEC_EB, REG_AON_APB_APB_EB1); | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:31:56: note: in expansion of macro 'SCI_ADDR' 31 | #define REG_AON_APB_APB_EB1 SCI_ADDR(REGS_AON_APB_BASE, 0x0004) | ^~~~~~~~ arch/arm/mach-sc/board-j3xnlte.c:348:64: note: in expansion of macro 'REG_AON_APB_APB_EB1' 348 | __raw_writel(__raw_readl(REG_AON_APB_APB_EB1) | BIT_CODEC_EB, REG_AON_APB_APB_EB1); | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-j3xnlte.c:22: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ arch/arm/mach-sc/board-j3xnlte.c: In function 'sc8830_init_machine': arch/arm/mach-sc/board-j3xnlte.c:294:10: warning: ignoring return value of 'PTR_ERR' declared with attribute 'warn_unused_result' [-Wunused-result] 294 | return PTR_ERR(sec_class); | ^~~~~~~~~~~~~~~~~~ CC arch/arm/kernel/traps.o CC arch/arm/mm/fault-armv.o arch/arm/kernel/traps.c: In function 'cp_abort': arch/arm/kernel/traps.c:827:21: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 827 | panic("CP Crash : %s", debug_info); | ~^ ~~~~~~~~~~ | | | | | void * | char * | %p In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from arch/arm/mach-sc/board-j3xnlte.c:35: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from arch/arm/mach-sc/board-j3xnlte.c:58: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC arch/arm/mach-sc/sec_gps_bcm47520.o CC arch/arm/mm/flush.o LD arch/arm/mach-sc/built-in.o CC arch/arm/mm/idmap.o CC arch/arm/kernel/atags_parse.o CC arch/arm/kernel/cpuidle.o CC kernel/fork.o CC arch/arm/mm/ioremap.o CC arch/arm/kernel/fiq.o AS arch/arm/kernel/fiqasm.o CC arch/arm/kernel/armksyms.o CC arch/arm/mm/mmap.o CC arch/arm/mm/pgd.o CC arch/arm/kernel/module.o CC arch/arm/mm/mmu.o AS arch/arm/kernel/sleep.o CC arch/arm/kernel/suspend.o CC kernel/exec_domain.o CC arch/arm/kernel/smp.o CC arch/arm/mm/proc-syms.o CC kernel/panic.o CC arch/arm/mm/alignment.o CC arch/arm/kernel/smp_tlb.o CC arch/arm/kernel/ftrace.o CC kernel/printk.o CC arch/arm/kernel/insn.o CC arch/arm/mm/highmem.o CC arch/arm/kernel/unwind.o CC arch/arm/kernel/devtree.o AS arch/arm/mm/abort-ev7.o AS arch/arm/mm/pabort-v7.o AS arch/arm/mm/cache-v7.o CC arch/arm/mm/copypage-v6.o CC arch/arm/kernel/hw_breakpoint.o CC arch/arm/mm/context.o CC kernel/cpu.o CC arch/arm/kernel/perf_event.o AS arch/arm/mm/tlb-v7.o kernel/cpu.c: In function 'cpu_hotplug_pm_callback': AS arch/arm/mm/proc-v7.o kernel/cpu.c:596:28: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 596 | printk("*** %s, action:0x%x ***\n", __func__, action ); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lx kernel/cpu.c:612:28: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 612 | printk("*** %s, action:0x%x done ***\n", __func__, action ); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lx LD arch/arm/mm/built-in.o CC arch/arm/kernel/perf_event_cpu.o CC mm/filemap.o CC kernel/exit.o CC arch/arm/kernel/topology.o CC arch/arm/kernel/io.o AS arch/arm/kernel/hyp-stub.o AS arch/arm/kernel/head.o LDS arch/arm/kernel/vmlinux.lds LD arch/arm/kernel/built-in.o CC mm/mempool.o CC kernel/itimer.o HZFILE kernel/hz.bc CC kernel/softirq.o CC mm/oom_kill.o CC kernel/resource.o CC mm/fadvise.o CC kernel/sysctl.o CC kernel/sysctl_binary.o CC mm/maccess.o CC mm/page_alloc.o CC mm/page-writeback.o mm/page_alloc.c: In function 'show_migration_types': mm/page_alloc.c:3199:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 3199 | p += sprintf(p, "%c%d", types[i], nr_migrate[i]); | ~^ ~~~~~~~~~~~~~ | | | | int long unsigned int | %ld CC kernel/capability.o CC kernel/ptrace.o CC kernel/timer.o CC mm/readahead.o CC mm/swap.o CC kernel/user.o CC mm/truncate.o CC mm/vmscan.o CC kernel/signal.o CC kernel/sys.o mm/vmscan.c: In function 'wakeup_kswapd': mm/vmscan.c:3348:28: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 3348 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld 3349 | __func__, global_page_state(NR_FREE_PAGES), global_page_state(NR_FREE_CMA_PAGES), high_wmark_pages(zone), low_wmark_pages(zone) , min_wmark_pages(zone) ,order); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int mm/vmscan.c:3348:41: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 3348 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld 3349 | __func__, global_page_state(NR_FREE_PAGES), global_page_state(NR_FREE_CMA_PAGES), high_wmark_pages(zone), low_wmark_pages(zone) , min_wmark_pages(zone) ,order); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int mm/vmscan.c:3348:50: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 3348 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld mm/vmscan.c:3348:58: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] 3348 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld mm/vmscan.c:3348:67: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long unsigned int' [-Wformat=] 3348 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld CC mm/shmem.o CC kernel/kmod.o CC kernel/workqueue.o CC mm/util.o kernel/workqueue.c: In function 'create_worker': kernel/workqueue.c:1739:40: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size between 5 and 14 [-Wformat-truncation=] 1739 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~ kernel/workqueue.c:1739:36: note: directive argument in the range [0, 2147483647] 1739 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~~~~~~~~ kernel/workqueue.c:1739:3: note: 'snprintf' output between 4 and 23 bytes into a destination of size 16 1739 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1740 | pool->attrs->nice < 0 ? "H" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC kernel/pid.o CC mm/mmzone.o CC mm/vmstat.o CC mm/backing-dev.o CC kernel/task_work.o CC kernel/rcupdate.o CC kernel/extable.o CC mm/mm_init.o CC mm/mmu_context.o CC kernel/params.o CC mm/percpu.o CC kernel/posix-timers.o CC mm/slab_common.o CC mm/compaction.o CC kernel/kthread.o CC mm/balloon_compaction.o CC kernel/wait.o CC mm/interval_tree.o CC mm/fremap.o CC kernel/sys_ni.o CC kernel/posix-cpu-timers.o CC mm/highmem.o CC kernel/mutex.o CC mm/madvise.o CC mm/memory.o CC kernel/hrtimer.o CC kernel/rwsem.o CC mm/mincore.o CC kernel/nsproxy.o CC kernel/srcu.o CC mm/mlock.o CC mm/mmap.o CC kernel/semaphore.o CC mm/mprotect.o CC kernel/notifier.o CC kernel/ksysfs.o CC mm/mremap.o CC kernel/cred.o CC mm/msync.o CC kernel/async.o CC mm/rmap.o CC mm/vmalloc.o CC kernel/range.o CC kernel/groups.o CC kernel/lglock.o kernel/groups.c: In function 'in_group_p': kernel/groups.c:281:19: warning: comparison between pointer and integer 281 | if(get_dumpTsk() == current) | ^~ CC mm/pagewalk.o CC kernel/smpboot.o CC kernel/cpu/idle.o CC mm/pgtable-generic.o CC kernel/events/core.o LD kernel/cpu/built-in.o CC mm/process_vm_access.o CC kernel/irq/irqdesc.o CC mm/init-mm.o CC mm/bootmem.o CC kernel/irq/handle.o CC kernel/irq/manage.o CC mm/memblock.o CC kernel/irq/spurious.o CC mm/bounce.o CC kernel/irq/resend.o CC kernel/irq/chip.o CC mm/page_io.o CC kernel/irq/dummychip.o CC kernel/events/ring_buffer.o CC mm/swap_state.o CC kernel/irq/devres.o CC mm/swapfile.o CC kernel/events/callchain.o CC kernel/irq/autoprobe.o CC kernel/irq/irqdomain.o CC kernel/events/hw_breakpoint.o CC kernel/irq/proc.o LD kernel/events/built-in.o CC mm/frontswap.o CC kernel/irq/pm.o CC mm/zswap.o LD kernel/irq/built-in.o CC kernel/power/qos.o CC kernel/power/main.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | kernel/power/main.c: In function 'set_cpufreq_min_limit': kernel/power/main.c:596:1: warning: label 'out' defined but not used [-Wunused-label] 596 | out: | ^~~ At top level: kernel/power/main.c:321:24: warning: 'decode_state' defined but not used [-Wunused-function] 321 | static suspend_state_t decode_state(const char *buf, size_t n) | ^~~~~~~~~~~~ CC mm/dmapool.o CC mm/ksm.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/system.h:17, from kernel/power/main.c:19: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from kernel/power/main.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC kernel/power/console.o CC kernel/power/process.o CC mm/slub.o CC kernel/power/suspend.o CC kernel/power/wakelock.o kernel/power/suspend.c:56:13: warning: 'freeze_enter' defined but not used [-Wunused-function] 56 | static void freeze_enter(void) | ^~~~~~~~~~~~ kernel/power/suspend.c:51:13: warning: 'freeze_begin' defined but not used [-Wunused-function] 51 | static void freeze_begin(void) | ^~~~~~~~~~~~ CC mm/migrate.o CC kernel/power/userwakelock.o CC kernel/power/earlysuspend.o CC kernel/power/fbearlysuspend.o CC mm/zpool.o CC mm/zsmalloc.o CC kernel/power/suspend_time.o CC kernel/power/poweroff.o CC kernel/power/wakeup_reason.o CC kernel/sched/core.o LD kernel/power/built-in.o CC kernel/sched/clock.o LD mm/built-in.o CC kernel/sched/cputime.o CC fs/open.o CC fs/read_write.o CC kernel/sched/idle_task.o CC fs/file_table.o CC kernel/sched/fair.o CC fs/super.o CC fs/char_dev.o CC fs/stat.o CC kernel/sched/rt.o CC fs/exec.o CC kernel/sched/stop_task.o CC fs/pipe.o fs/exec.c: In function 'get_task_comm': fs/exec.c:1027:32: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 1027 | strncpy(buf, tsk->comm, sizeof(tsk->comm)); | ^ CC kernel/sched/cpupri.o CC kernel/sched/cpuacct.o CC fs/namei.o CC fs/fcntl.o LD kernel/sched/built-in.o CC kernel/time/timekeeping.o CC fs/ioctl.o CC kernel/time/ntp.o CC fs/readdir.o CC kernel/time/clocksource.o CC fs/select.o CC fs/dcache.o CC kernel/time/jiffies.o CC kernel/time/timer_list.o CC fs/inode.o CC kernel/time/timeconv.o CC kernel/time/posix-clock.o CC fs/attr.o CC fs/bad_inode.o CC kernel/time/alarmtimer.o CC fs/file.o kernel/time/alarmtimer.c: In function 'alarmtimer_fired': kernel/time/alarmtimer.c:219:24: warning: passing argument 1 of 'rtc->ops->read_time' from incompatible pointer type [-Wincompatible-pointer-types] 219 | rtc->ops->read_time(rtc, &tm); | ^~~ | | | struct rtc_device * kernel/time/alarmtimer.c:219:24: note: expected 'struct device *' but argument is of type 'struct rtc_device *' CC fs/filesystems.o CC kernel/time/clockevents.o CC fs/namespace.o CC fs/seq_file.o CC kernel/time/tick-common.o CC kernel/time/tick-broadcast.o CC fs/xattr.o CC kernel/time/tick-broadcast-hrtimer.o CC fs/libfs.o CC kernel/time/tick-oneshot.o CC fs/fs-writeback.o CC kernel/time/tick-sched.o CC fs/pnode.o CC fs/splice.o LD kernel/time/built-in.o CC kernel/trace/trace_clock.o CC kernel/trace/ftrace.o CC fs/sync.o CC fs/utimes.o CC fs/stack.o CC fs/fs_struct.o CC fs/statfs.o CC fs/buffer.o CC kernel/trace/ring_buffer.o CC fs/bio.o CC fs/block_dev.o CC fs/direct-io.o CC kernel/trace/trace.o CC fs/mpage.o CC fs/ioprio.o CC fs/proc_namespace.o CC fs/configfs/inode.o CC fs/debugfs/inode.o CC fs/configfs/file.o CC fs/configfs/dir.o CC fs/debugfs/file.o CC kernel/trace/trace_output.o kernel/trace/trace_output.c: In function 'trace_graph_ret_raw': kernel/trace/trace_output.c:1157:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1157 | if (!trace_seq_printf(&iter->seq, "%lx %lld %lld %ld %d\n", | ^~ kernel/trace/trace_output.c:1163:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1163 | return TRACE_TYPE_PARTIAL_LINE; | ^~~~~~ CC fs/configfs/symlink.o LD fs/debugfs/debugfs.o LD fs/debugfs/built-in.o CC fs/devpts/inode.o CC fs/configfs/mount.o CC kernel/trace/trace_stat.o LD fs/devpts/devpts.o LD fs/devpts/built-in.o CC fs/ecryptfs/dentry.o CC fs/configfs/item.o CC kernel/trace/trace_printk.o CC fs/ecryptfs/file.o LD fs/configfs/configfs.o LD fs/configfs/built-in.o CC fs/ecryptfs/inode.o CC fs/exfat/exfat.o CC kernel/trace/trace_sched_switch.o CC fs/ecryptfs/main.o CC kernel/trace/trace_functions.o CC fs/ecryptfs/super.o CC kernel/trace/trace_sched_wakeup.o CC fs/ecryptfs/mmap.o CC kernel/trace/trace_nop.o CC fs/ecryptfs/read_write.o CC kernel/trace/trace_functions_graph.o CC fs/ecryptfs/crypto.o CC fs/exfat/exfat_api.o CC kernel/trace/blktrace.o CC fs/exfat/exfat_blkdev.o CC fs/ecryptfs/keystore.o CC kernel/trace/trace_events.o CC fs/exfat/exfat_cache.o fs/ecryptfs/keystore.c: In function 'decrypt_pki_encrypted_session_key': fs/ecryptfs/keystore.c:1174:41: warning: taking address of packed member of 'struct ecryptfs_auth_tok' may result in an unaligned pointer value [-Waddress-of-packed-member] 1174 | rc = write_tag_64_packet(auth_tok_sig, &(auth_tok->session_key), | ^~~~~~~~~~~~~~~~~~~~~~~~ fs/ecryptfs/keystore.c:1193:27: warning: taking address of packed member of 'struct ecryptfs_auth_tok' may result in an unaligned pointer value [-Waddress-of-packed-member] 1193 | rc = parse_tag_65_packet(&(auth_tok->session_key), | ^~~~~~~~~~~~~~~~~~~~~~~~ CC fs/exfat/exfat_data.o CC fs/exfat/exfat_global.o CC fs/ecryptfs/kthread.o CC fs/exfat/exfat_nls.o CC kernel/trace/trace_export.o CC fs/ecryptfs/debug.o CC fs/exfat/exfat_oal.o CC fs/exfat/exfat_upcase.o CC kernel/trace/trace_event_perf.o LD fs/ecryptfs/ecryptfs.o LD fs/ecryptfs/built-in.o CC fs/exfat/exfat_xattr.o LD fs/exofs/built-in.o CC fs/exfat/exfat_super.o CC fs/ext2/balloc.o CC kernel/trace/trace_events_filter.o CC fs/ext2/dir.o LD fs/exfat/exfat_core.o LD fs/exfat/exfat_fs.o LD fs/exfat/built-in.o CC fs/ext3/balloc.o CC kernel/trace/power-traces.o CC fs/ext2/file.o CC fs/ext2/ialloc.o CC kernel/trace/rpm-traces.o CC fs/ext2/inode.o CC fs/ext3/bitmap.o LD kernel/trace/libftrace.o LD kernel/trace/built-in.o CC kernel/freezer.o CC fs/ext3/dir.o CC kernel/profile.o CC fs/ext2/ioctl.o CC fs/ext3/file.o CC fs/ext2/namei.o CC fs/ext3/fsync.o CC fs/ext2/super.o CC kernel/stacktrace.o CC fs/ext3/ialloc.o CC kernel/futex.o CC fs/ext2/symlink.o CC fs/ext3/inode.o CC fs/ext2/xattr.o CC fs/ext2/xattr_user.o CC kernel/rtmutex.o CC fs/ext2/xattr_trusted.o LD fs/ext2/ext2.o LD fs/ext2/built-in.o CC fs/ext4/balloc.o CC kernel/smp.o CC fs/ext3/ioctl.o CC fs/ext4/bitmap.o CC kernel/spinlock.o CC fs/ext3/namei.o CC fs/ext4/dir.o CC kernel/uid16.o CC kernel/module.o CC fs/ext4/file.o kernel/module.c: In function 'print_modules': kernel/module.c:3857:27: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'void *' [-Wformat=] 3857 | printk(" %s%s[start=0x%lx,size=%d]", mod->name, module_flags(mod, buf), mod->module_core, mod->core_size); | ~~^ ~~~~~~~~~~~~~~~~ | | | | long unsigned int void * | %p CC fs/ext4/fsync.o CC fs/ext3/super.o CC fs/ext4/ialloc.o CC kernel/kallsyms.o CC fs/ext4/inode.o CC kernel/cgroup.o CC fs/ext3/symlink.o CC fs/ext3/hash.o CC fs/ext3/resize.o CC fs/ext3/ext3_jbd.o CC fs/ext4/page-io.o CC fs/ext3/xattr.o CC kernel/cgroup_freezer.o CC kernel/res_counter.o CC fs/ext4/ioctl.o CC fs/ext3/xattr_user.o CC kernel/stop_machine.o CC fs/ext3/xattr_trusted.o CC kernel/audit.o CC fs/ext4/namei.o LD fs/ext3/ext3.o LD fs/ext3/built-in.o CC fs/ext4/super.o CC kernel/auditfilter.o CC kernel/auditsc.o CC fs/ext4/symlink.o CC kernel/audit_watch.o CC fs/ext4/hash.o CC kernel/audit_tree.o CC kernel/watchdog.o CC kernel/seccomp.o CC fs/ext4/resize.o CC kernel/rcutree.o CC kernel/relay.o CC fs/ext4/extents.o kernel/relay.c: In function 'relay_create_buf_file': kernel/relay.c:423:35: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 423 | snprintf(tmpname, NAME_MAX, "%s%d", chan->base_filename, cpu); | ^ kernel/relay.c:423:2: note: 'snprintf' output between 2 and 266 bytes into a destination of size 255 423 | snprintf(tmpname, NAME_MAX, "%s%d", chan->base_filename, cpu); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC fs/ext4/ext4_jbd2.o CC kernel/utsname_sysctl.o CC kernel/tracepoint.o CC kernel/elfcore.o CC fs/ext4/migrate.o CC kernel/irq_work.o CC kernel/cpu_pm.o CC fs/ext4/mballoc.o BC kernel/timeconst.h CC kernel/time.o CC fs/f2fs/dir.o In file included from fs/f2fs/dir.c:14: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ LD kernel/built-in.o CC fs/f2fs/file.o CC ipc/util.o In file included from fs/f2fs/file.c:28: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC ipc/msgutil.o CC ipc/msg.o CC ipc/sem.o CC fs/f2fs/inode.o CC fs/ext4/block_validity.o In file included from fs/f2fs/inode.c:17: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC ipc/shm.o CC fs/ext4/move_extent.o CC fs/f2fs/namei.o In file included from fs/f2fs/namei.c:20: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC ipc/ipcns_notifier.o CC ipc/syscall.o CC fs/ext4/mmp.o CC ipc/ipc_sysctl.o CC fs/f2fs/hash.o LD ipc/built-in.o CC fs/f2fs/super.o In file included from fs/f2fs/hash.c:21: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/keys/gc.o CC fs/ext4/indirect.o In file included from fs/f2fs/super.c:28: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/keys/key.o CC security/keys/keyring.o CC security/keys/keyctl.o CC fs/ext4/extents_status.o CC security/keys/permission.o CC fs/f2fs/inline.o CC fs/ext4/xattr.o CC security/keys/process_keys.o In file included from fs/f2fs/inline.c:14: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/keys/request_key.o CC fs/f2fs/checkpoint.o CC fs/ext4/xattr_user.o CC security/keys/request_key_auth.o In file included from fs/f2fs/checkpoint.c:20: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/ext4/xattr_trusted.o CC security/keys/user_defined.o CC fs/ext4/inline.o CC security/keys/proc.o CC security/keys/sysctl.o CC fs/f2fs/gc.o LD security/keys/built-in.o GEN security/selinux/flask.h security/selinux/av_permissions.h CC security/selinux/avc.o In file included from fs/f2fs/gc.c:20: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/ext4/xattr_security.o LD fs/ext4/ext4.o LD fs/ext4/built-in.o CC security/selinux/hooks.o CC fs/fat/cache.o CC fs/f2fs/data.o CC fs/fat/dir.o In file included from fs/f2fs/data.c:27: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/fat/fatent.o CC security/selinux/selinuxfs.o CC fs/f2fs/node.o CC fs/fat/file.o In file included from fs/f2fs/node.c:19: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/fat/inode.o CC security/selinux/netlink.o CC security/selinux/nlmsgtab.o CC security/selinux/netif.o CC fs/f2fs/segment.o CC fs/fat/misc.o CC security/selinux/netnode.o In file included from fs/f2fs/segment.c:20: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/fat/nfs.o CC security/selinux/netport.o CC fs/fat/xattr.o CC security/selinux/exports.o CC fs/fat/namei_vfat.o CC security/selinux/ss/ebitmap.o CC security/selinux/ss/hashtab.o LD fs/fat/fat.o LD fs/fat/vfat.o LD fs/fat/built-in.o CC security/selinux/ss/symtab.o CC fs/fuse/dev.o CC security/selinux/ss/sidtab.o CC fs/f2fs/recovery.o In file included from fs/f2fs/recovery.c:13: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/selinux/ss/avtab.o CC fs/f2fs/shrinker.o In file included from fs/f2fs/shrinker.c:15: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/selinux/ss/policydb.o CC fs/f2fs/extent_cache.o CC fs/fuse/dir.o In file included from fs/f2fs/extent_cache.c:17: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/f2fs/debug.o CC fs/fuse/file.o In file included from fs/f2fs/debug.c:21: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC fs/f2fs/xattr.o In file included from fs/f2fs/xattr.c:24: fs/f2fs/f2fs.h: In function 'blkaddr_in_node': fs/f2fs/f2fs.h:1784:30: warning: taking address of packed member of 'struct f2fs_inode' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ fs/f2fs/f2fs.h:1784:47: warning: taking address of packed member of 'struct direct_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 1784 | return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; | ^~~~ CC security/selinux/ss/services.o LD fs/f2fs/f2fs.o LD fs/f2fs/built-in.o CC security/selinux/ss/conditional.o CC fs/fuse/inode.o CC fs/fuse/control.o CC security/selinux/ss/mls.o CC security/selinux/ss/status.o LD fs/fuse/fuse.o LD fs/fuse/built-in.o CC fs/jbd/transaction.o CC fs/jbd2/transaction.o LD security/selinux/selinux.o LD security/selinux/built-in.o CC security/commoncap.o CC security/min_addr.o CC fs/jbd/commit.o CC security/security.o CC fs/jbd2/commit.o CC fs/jbd/recovery.o CC security/capability.o CC fs/jbd/checkpoint.o CC fs/jbd2/recovery.o CC fs/jbd/revoke.o CC security/lsm_audit.o CC fs/jbd2/checkpoint.o CC fs/jbd/journal.o LD security/built-in.o CC fs/jbd2/revoke.o CC fs/jbd2/journal.o CC crypto/api.o LD fs/jbd/jbd.o LD fs/jbd/built-in.o CC crypto/cipher.o CC fs/nls/nls_base.o CC crypto/compress.o CC fs/nls/nls_cp437.o CC crypto/algapi.o CC fs/nls/nls_ascii.o CC fs/nls/nls_iso8859-1.o CC fs/nls/nls_utf8.o LD fs/nls/built-in.o CC crypto/scatterwalk.o LD fs/jbd2/jbd2.o LD fs/jbd2/built-in.o CC fs/notify/fsnotify.o CC fs/notify/notification.o CC crypto/proc.o CC crypto/ablkcipher.o CC fs/notify/group.o CC crypto/blkcipher.o CC fs/notify/inode_mark.o CC fs/notify/mark.o CC crypto/ahash.o CC fs/notify/vfsmount_mark.o CC crypto/shash.o CC fs/notify/fdinfo.o LD fs/notify/dnotify/built-in.o LD fs/notify/fanotify/built-in.o CC crypto/algboss.o CC fs/notify/inotify/inotify_fsnotify.o CC fs/notify/inotify/inotify_user.o CC crypto/testmgr.o CC crypto/crypto_wq.o LD fs/notify/inotify/built-in.o LD fs/notify/built-in.o CC fs/ntfs/aops.o CC crypto/aead.o CC fs/proc/task_mmu.o CC fs/ntfs/attrib.o LD crypto/crypto_blkcipher.o CC crypto/chainiv.o CC fs/proc/inode.o CC fs/ntfs/collate.o CC crypto/eseqiv.o CC fs/ntfs/compress.o CC fs/proc/root.o CC crypto/seqiv.o CC fs/proc/base.o CC fs/ntfs/debug.o CC fs/ntfs/dir.o LD crypto/crypto_hash.o CC crypto/pcompress.o fs/ntfs/dir.c: In function 'ntfs_lookup_inode_by_name': fs/ntfs/dir.c:157:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 157 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:207:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 207 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:248:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 248 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:267:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 267 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:417:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 417 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:467:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 467 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:510:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 510 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c:529:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 529 | (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/dir.c: In function 'ntfs_filldir': fs/ntfs/dir.c:1050:43: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 1050 | name_len = ntfs_ucstonls(vol, (ntfschar*)&ie->key.file_name.file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ LD crypto/cryptomgr.o CC crypto/hmac.o CC fs/proc/generic.o CC fs/ntfs/file.o CC fs/ntfs/index.o CC crypto/crypto_null.o CC fs/ntfs/inode.o CC fs/proc/array.o CC crypto/md5.o CC crypto/sha1_generic.o CC fs/proc/fd.o CC fs/ntfs/mft.o CC fs/proc/proc_tty.o CC crypto/sha256_generic.o CC fs/proc/cmdline.o CC fs/proc/consoles.o CC fs/ntfs/mst.o CC fs/proc/cpuinfo.o CC fs/ntfs/namei.o CC fs/proc/devices.o CC crypto/gf128mul.o fs/ntfs/namei.c: In function 'ntfs_lookup': fs/ntfs/namei.c:188:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 188 | (ntfschar*)&name->name, name->len, | ^~~~~~~~~~~ fs/ntfs/namei.c:242:16: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 242 | (ntfschar*)&fn->file_name, fn->file_name_length, | ^~~~~~~~~~~~~~ fs/ntfs/namei.c: In function 'ntfs_get_parent': fs/ntfs/namei.c:315:18: warning: converting a packed 'MFT_RECORD' pointer (alignment 1) to a 'struct dentry' pointer (alignment 8) may result in an unaligned pointer value [-Waddress-of-packed-member] 315 | return (struct dentry *)mrec; | ^~~~~~ In file included from fs/ntfs/attrib.h:29, from fs/ntfs/namei.c:28: fs/ntfs/layout.h:326:9: note: defined here 326 | typedef struct { | ^~~~~~ In file included from fs/ntfs/namei.c:23: include/linux/dcache.h:103:8: note: defined here 103 | struct dentry { | ^~~~~~ CC fs/proc/interrupts.o CC fs/ntfs/runlist.o CC fs/proc/loadavg.o CC crypto/ecb.o CC fs/proc/meminfo.o CC fs/ntfs/super.o CC crypto/cbc.o CC fs/proc/stat.o fs/ntfs/super.c: In function 'is_boot_sector_ntfs': fs/ntfs/super.c:596:3: warning: converting a packed 'NTFS_BOOT_SECTOR' pointer (alignment 1) to a 'le32' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 596 | for (i = 0, u = (le32*)b; u < (le32*)(&b->checksum); ++u) | ^~~ CC crypto/xts.o CC fs/proc/uptime.o crypto/xts.c:337:13: warning: conflicting types for built-in function 'free'; expected 'void(void *)' [-Wbuiltin-declaration-mismatch] 337 | static void free(struct crypto_instance *inst) | ^~~~ crypto/xts.c:27:1: note: 'free' is declared in header '' 26 | #include +++ |+#include 27 | CC fs/proc/version.o CC fs/ntfs/sysctl.o CC fs/ntfs/unistr.o CC fs/proc/softirqs.o CC crypto/ctr.o fs/ntfs/unistr.c: In function 'ntfs_file_upcase_value': fs/ntfs/unistr.c:220:30: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 220 | ntfs_upcase_name((ntfschar*)&file_name_attr->file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/unistr.c: In function 'ntfs_file_compare_values': fs/ntfs/unistr.c:229:39: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 229 | return ntfs_collate_names((ntfschar*)&file_name_attr1->file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/ntfs/unistr.c:231:15: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 231 | (ntfschar*)&file_name_attr2->file_name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC fs/proc/namespaces.o CC fs/ntfs/upcase.o CC crypto/gcm.o CC fs/proc/self.o LD fs/ntfs/ntfs.o LD fs/ntfs/built-in.o CC crypto/des_generic.o CC fs/proc/proc_sysctl.o CC fs/proc/proc_net.o CC crypto/twofish_generic.o CC crypto/twofish_common.o CC fs/proc/kmsg.o CC fs/proc/page.o CC crypto/aes_generic.o LD fs/proc/sprd_debug/built-in.o LD fs/proc/proc.o LD fs/proc/built-in.o CC fs/pstore/inode.o CC fs/pstore/platform.o CC crypto/arc4.o CC fs/pstore/ram.o CC crypto/deflate.o CC fs/pstore/ram_core.o CC crypto/crc32c.o LD fs/quota/built-in.o CC crypto/crc32.o LD fs/pstore/pstore.o LD fs/pstore/ramoops.o CC fs/ramfs/inode.o LD fs/pstore/built-in.o CC fs/ramfs/file-mmu.o CC crypto/authenc.o CC fs/sdcardfs/dentry.o LD fs/ramfs/ramfs.o LD fs/ramfs/built-in.o CC fs/sdcardfs/file.o CC fs/sysfs/inode.o CC crypto/authencesn.o CC fs/sdcardfs/inode.o CC fs/sysfs/file.o CC fs/sdcardfs/main.o CC crypto/lzo.o CC fs/sysfs/dir.o CC crypto/rng.o CC fs/sdcardfs/super.o CC fs/sdcardfs/lookup.o CC fs/sysfs/symlink.o CC crypto/krng.o CC fs/sdcardfs/mmap.o CC crypto/ansi_cprng.o CC fs/sysfs/mount.o CC fs/sdcardfs/packagelist.o fs/sdcardfs/packagelist.c:51:20: warning: 'kgroups' defined but not used [-Wunused-const-variable=] 51 | static const gid_t kgroups[1] = { AID_PACKAGE_INFO }; | ^~~~~~~ CC crypto/ghash-generic.o CC fs/sysfs/bin.o CC fs/sdcardfs/derived_perm.o LD crypto/crypto.o LD crypto/crypto_algapi.o LD crypto/built-in.o CC fs/sdcardfs/xattr.o CC block/elevator.o CC fs/sysfs/group.o LD fs/sdcardfs/sdcardfs.o LD fs/sdcardfs/built-in.o CC fs/eventpoll.o LD fs/sysfs/built-in.o CC fs/anon_inodes.o block/elevator.c: In function 'elv_register': block/elevator.c:857:14: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 857 | "%s_io_cq", e->elevator_name); | ^ block/elevator.c:856:3: note: 'snprintf' output between 7 and 22 bytes into a destination of size 21 856 | snprintf(e->icq_cache_name, sizeof(e->icq_cache_name), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 857 | "%s_io_cq", e->elevator_name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC fs/signalfd.o CC fs/timerfd.o CC block/blk-core.o CC fs/eventfd.o CC fs/aio.o CC fs/locks.o CC fs/binfmt_script.o CC fs/binfmt_elf.o CC fs/mbcache.o CC block/blk-tag.o CC fs/posix_acl.o CC fs/xattr_acl.o CC block/blk-sysfs.o CC fs/generic_acl.o CC block/blk-flush.o CC fs/coredump.o CC fs/drop_caches.o In file included from arch/arm/include/generated/asm/current.h:1, from include/linux/wait.h:8, from include/linux/mmzone.h:9, from include/linux/gfp.h:4, from include/linux/slab.h:12, from fs/coredump.c:1: fs/coredump.c: In function 'do_coredump': include/asm-generic/current.h:6:45: warning: passing argument 1 of 'set_dumpTsk' makes integer from pointer without a cast [-Wint-conversion] 6 | #define get_current() (current_thread_info()->task) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ | | | struct task_struct * include/asm-generic/current.h:7:17: note: in expansion of macro 'get_current' 7 | #define current get_current() | ^~~~~~~~~~~ fs/coredump.c:525:14: note: in expansion of macro 'current' 525 | set_dumpTsk(current); | ^~~~~~~ fs/coredump.c:492:22: note: expected 'int' but argument is of type 'struct task_struct *' 492 | void set_dumpTsk(int tsk) | ~~~~^~~ CC block/blk-settings.o CC block/blk-ioc.o CC fs/dcookies.o CC block/blk-map.o CC block/blk-exec.o LD fs/built-in.o LD drivers/amba/built-in.o CC drivers/android/binder.o CC block/blk-merge.o LD drivers/autotst/built-in.o CC [M] drivers/autotst/autotstdrv.o drivers/autotst/autotstdrv.c: In function 'autotst_ioctl': drivers/autotst/autotstdrv.c:348:15: warning: unused variable 'i' [-Wunused-variable] 348 | int i; | ^ drivers/autotst/autotstdrv.c:357:15: warning: unused variable 'i' [-Wunused-variable] 357 | int i; | ^ In file included from include/linux/printk.h:5, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/cdev.h:4, from drivers/autotst/autotstdrv.c:7: drivers/autotst/autotstdrv.c: At top level: include/linux/init.h:300:6: warning: 'init_module' specifies less restrictive attribute than its target 'autotst_init': 'cold' [-Wmissing-attributes] 300 | int init_module(void) __attribute__((alias(#initfn))); | ^~~~~~~~~~~ drivers/autotst/autotstdrv.c:438:1: note: in expansion of macro 'module_init' 438 | module_init(autotst_init); | ^~~~~~~~~~~ drivers/autotst/autotstdrv.c:387:19: note: 'init_module' target declared here 387 | static int __init autotst_init(void) | ^~~~~~~~~~~~ In file included from include/linux/printk.h:5, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/cdev.h:4, from drivers/autotst/autotstdrv.c:7: include/linux/init.h:306:7: warning: 'cleanup_module' specifies less restrictive attribute than its target 'autotst_exit': 'cold' [-Wmissing-attributes] 306 | void cleanup_module(void) __attribute__((alias(#exitfn))); | ^~~~~~~~~~~~~~ drivers/autotst/autotstdrv.c:439:1: note: in expansion of macro 'module_exit' 439 | module_exit(autotst_exit); | ^~~~~~~~~~~ drivers/autotst/autotstdrv.c:423:20: note: 'cleanup_module' target declared here 423 | static void __exit autotst_exit(void) | ^~~~~~~~~~~~ CC [M] drivers/autotst/dispc.o In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/autotst/dispc.c:27: drivers/autotst/dispc_reg.h: In function 'dispc_read': drivers/autotst/dispc_reg.h:122:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 122 | return __raw_readl(g_dispc_base_addr+ reg); | ~~~~~~~~~~~~~~~~~^~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dispc.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/autotst/dispc.c:27: drivers/autotst/dispc_reg.h: In function 'dispc_write': drivers/autotst/dispc_reg.h:127:41: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 127 | __raw_writel(value, (g_dispc_base_addr + reg)); | ~~~~~~~~~~~~~~~~~~~^~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dispc.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dispc.c: At top level: drivers/autotst/dispc.c:32: warning: "pr_debug" redefined 32 | #define pr_debug printk | In file included from include/linux/kernel.h:13, from include/linux/clk.h:16, from drivers/autotst/dispc.c:14: include/linux/printk.h:245: note: this is the location of the previous definition 245 | #define pr_debug(fmt, ...) \ | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/clk.h:16, from drivers/autotst/dispc.c:14: drivers/autotst/dispc.c: In function 'dispc_fb_prepare': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/autotst/dispc.c:1018:9: note: in expansion of macro 'KERN_INFO' 1018 | printk(KERN_INFO "sprdfb: got %d bytes frame buffer at 0x%x\n", fb_size, | ^~~~~~~~~ drivers/autotst/dispc.c:1018:61: note: format string is defined here 1018 | printk(KERN_INFO "sprdfb: got %d bytes frame buffer at 0x%x\n", fb_size, | ~^ | | | unsigned int | %lx drivers/autotst/dispc.c:1024:10: warning: assignment to 'long unsigned int *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion] 1024 | p_pixel = autotst_dispc_ctx.fb_addr_v; | ^ drivers/autotst/dispc.c:1025:14: warning: passing argument 1 of 'draw_patten' from incompatible pointer type [-Wincompatible-pointer-types] 1025 | draw_patten(p_pixel, panel->width, panel->height, PATTEN_GRID_WIDTH, PATTEN_GRID_HEIGHT); | ^~~~~~~ | | | long unsigned int * drivers/autotst/dispc.c:988:35: note: expected 'uint32_t *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' 988 | static void draw_patten(uint32_t* buffer, int buffer_w, int buffer_h, int grid_w, int grid_h) | ~~~~~~~~~~^~~~~~ CC block/blk-softirq.o CC block/blk-timeout.o CC [M] drivers/autotst/dsi.o In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/autotst/dsi.c:36: warning: "pr_debug" redefined 36 | #define pr_debug printk | In file included from include/linux/kernel.h:13, from include/linux/sched.h:15, from include/linux/ptrace.h:5, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/kgdb.h:13, from include/linux/kgdb.h:20, from drivers/autotst/dsi.c:14: include/linux/printk.h:245: note: this is the location of the previous definition 245 | #define pr_debug(fmt, ...) \ | drivers/autotst/dsi.c: In function 'dsi_core_read_function': drivers/autotst/dsi.c:75:26: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 75 | return __raw_readl(addr + offset); | ~~~~~^~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_core_write_function': drivers/autotst/dsi.c:80:27: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 80 | __raw_writel(data, (addr + offset)); | ~~~~~~^~~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_core_or_function': drivers/autotst/dsi.c:85:28: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 85 | __raw_writel((__raw_readl(addr) | data), addr); | ^~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c:85:43: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 85 | __raw_writel((__raw_readl(addr) | data), addr); | ^~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_core_and_function': drivers/autotst/dsi.c:89:28: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 89 | __raw_writel((__raw_readl(addr) & data), addr); | ^~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c:89:43: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 89 | __raw_writel((__raw_readl(addr) & data), addr); | ^~~~ | | | long unsigned int In file included from include/linux/io.h:22, from drivers/autotst/dsi.c:16: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_module_init': drivers/autotst/dsi.c:228:21: warning: unused variable 'mipi' [-Wunused-variable] 228 | struct info_mipi * mipi = panel->info.mipi; | ^~~~ drivers/autotst/dsi.c:225:6: warning: unused variable 'ret' [-Wunused-variable] 225 | int ret = 0; | ^~~ CC [M] drivers/autotst/lcd_dummy.o CC block/blk-iopoll.o CC [M] drivers/autotst/mipi_dsih_api.o CC [M] drivers/autotst/mipi_dsih_dphy.o CC block/blk-lib.o CC [M] drivers/autotst/mipi_dsih_hal.o LD drivers/android/built-in.o LD drivers/auxdisplay/built-in.o CC drivers/base/core.o LD [M] drivers/autotst/autotst.o CC drivers/battery/sec_battery.o CC block/ioctl.o drivers/battery/sec_battery.c:5477:13: warning: 'cable_initial_check' defined but not used [-Wunused-function] 5477 | static void cable_initial_check(struct sec_battery_info *battery) | ^~~~~~~~~~~~~~~~~~~ CC block/genhd.o CC drivers/base/bus.o CC drivers/battery/sec_adc.o CC drivers/base/dd.o CC block/scsi_ioctl.o drivers/battery/sec_adc.c: In function 'sec_bat_adc_ap_init': drivers/battery/sec_adc.c:26:9: warning: 'return' with a value, in function returning void [-Wreturn-type] 26 | return true; | ^~~~ drivers/battery/sec_adc.c:21:13: note: declared here 21 | static void sec_bat_adc_ap_init(struct platform_device *pdev) | ^~~~~~~~~~~~~~~~~~~ drivers/battery/sec_adc.c: In function 'sec_bat_adc_ap_read': drivers/battery/sec_adc.c:32:6: warning: unused variable 'ret' [-Wunused-variable] 32 | int ret = 0; | ^~~ drivers/battery/sec_adc.c: In function 'sec_bat_adc_ap_exit': drivers/battery/sec_adc.c:72:10: warning: 'return' with a value, in function returning void [-Wreturn-type] 72 | return true; | ^~~~ drivers/battery/sec_adc.c:67:13: note: declared here 67 | static void sec_bat_adc_ap_exit(void) | ^~~~~~~~~~~~~~~~~~~ At top level: drivers/battery/sec_adc.c:19:28: warning: 'temp_adc' defined but not used [-Wunused-variable] 19 | static struct iio_channel *temp_adc; | ^~~~~~~~ CC drivers/battery/sec_dt_init.o CC drivers/base/syscore.o In file included from drivers/battery/sec_dt_init.c:20: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sec_dt_init.c:24: include/soc/sprd/__hardware-sc9630.h:114: warning: "SPRD_MISC_BASE" redefined 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/battery/sec_dt_init.c:20: include/soc/sprd/sci_glb_regs.h:51: note: this is the location of the previous definition 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | drivers/battery/sec_dt_init.c: In function 'sec_charger_cb': drivers/battery/sec_dt_init.c:599:9: warning: 'return' with a value, in function returning void [-Wreturn-type] 599 | return 0; | ^ drivers/battery/sec_dt_init.c:503:6: note: declared here 503 | void sec_charger_cb(u8 cable_type) | ^~~~~~~~~~~~~~ drivers/battery/sec_dt_init.c: In function 'sec_bat_dt_init': drivers/battery/sec_dt_init.c:1026:23: warning: assignment to 'void (*)(struct sec_battery_info *)' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 1026 | pdata->initial_check = sec_bat_initial_check; | ^ drivers/battery/sec_dt_init.c: In function 'sec_fg_dt_init': drivers/battery/sec_dt_init.c:1220:11: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion] 1220 | return ERR_PTR(-EINVAL); | ^~~~~~~~~~~~~~~~ CC drivers/base/driver.o CC block/partition-generic.o CC drivers/base/class.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sec_dt_init.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sec_dt_init.c:24: include/soc/sprd/__hardware-sc9630.h:114: warning: "SPRD_MISC_BASE" redefined 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/battery/sec_dt_init.c:20: include/soc/sprd/sci_glb_regs.h:51: note: this is the location of the previous definition 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | CC drivers/battery/sm5701_charger.o block/partition-generic.c: In function 'disk_name': block/partition-generic.c:41:37: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 41 | snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); | ^ block/partition-generic.c:41:3: note: 'snprintf' output between 2 and 43 bytes into a destination of size 32 41 | snprintf(buf, BDEVNAME_SIZE, "%s%d", hd->disk_name, partno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ block/partition-generic.c:39:36: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size between 0 and 31 [-Wformat-truncation=] 39 | snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); | ^~ block/partition-generic.c:39:3: note: 'snprintf' output between 3 and 44 bytes into a destination of size 32 39 | snprintf(buf, BDEVNAME_SIZE, "%sp%d", hd->disk_name, partno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/battery/sm5701_charger.c: In function 'SM5701_isr_work': drivers/battery/sm5701_charger.c:528:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 528 | int full_check_type; | ^~~ drivers/battery/sm5701_charger.c: In function 'SM5701_charger_initialize': drivers/battery/sm5701_charger.c:657:22: warning: passing argument 3 of 'SM5701_reg_read' from incompatible pointer type [-Wincompatible-pointer-types] 657 | SM5701_DEVICE_ID, &charger->dev_id); | ^~~~~~~~~~~~~~~~ | | | int * In file included from drivers/battery/sm5701_charger.c:27: include/linux/mfd/sm5701_core.h:148:64: note: expected 'u8 *' {aka 'unsigned char *'} but argument is of type 'int *' 148 | extern int SM5701_reg_read(struct i2c_client *i2c, u8 reg, u8 *dest); | ~~~~^~~~ drivers/battery/sm5701_charger.c: In function 'SM5701_charger_probe': drivers/battery/sm5701_charger.c:1091:18: warning: assignment to 'struct sec_battery_platform_data *' from incompatible pointer type 'struct SM5701_charger_data *' [-Wincompatible-pointer-types] 1091 | charger->pdata = pdata->charger_data; | ^ CC drivers/base/platform.o CC block/partitions/check.o CC drivers/battery/sprd27x3_fuelgauge4samsung.o In file included from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sprd27x3_fuelgauge4samsung.c:17: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sprd27x3_fuelgauge4samsung.c:17: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sprd27x3_fuelgauge4samsung.c:17: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sprd27x3_fuelgauge4samsung.c:17: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/battery/sprd27x3_fuelgauge4samsung.c:17: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd27x3_fuelgauge4samsung.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC block/partitions/msdos.o CC drivers/battery/sec_fuelgauge.o drivers/battery/sec_fuelgauge.c: In function 'sec_fuelgauge_probe': drivers/battery/sec_fuelgauge.c:507:1: warning: label 'err_supply_unreg' defined but not used [-Wunused-label] 507 | err_supply_unreg: | ^~~~~~~~~~~~~~~~ At top level: drivers/battery/sec_fuelgauge.c:274:20: warning: 'sec_fg_irq_thread' defined but not used [-Wunused-function] 274 | static irqreturn_t sec_fg_irq_thread(int irq, void *irq_data) | ^~~~~~~~~~~~~~~~~ drivers/battery/sec_fuelgauge.c:261:13: warning: 'sec_fg_isr_work' defined but not used [-Wunused-function] 261 | static void sec_fg_isr_work(struct work_struct *work) | ^~~~~~~~~~~~~~~ CC drivers/base/cpu.o CC block/partitions/efi.o CC drivers/battery/sprd_2713_fgu.o In file included from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/battery/sprd_2713_fgu.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/battery/sprd_2713_fgu.c: In function 'sprdfgu_read_soc': drivers/battery/sprd_2713_fgu.c:665:4: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 665 | union power_supply_propval swell_value; | ^~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/battery/sprd_2713_fgu.c:13: drivers/battery/sprd_2713_fgu.c: In function 'sprdfgu_store_attribute': include/linux/kern_levels.h:4:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'ptrdiff_t' {aka 'const int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/battery/sprd_2713_fgu.c:1148:2: note: in expansion of macro 'pr_info' 1148 | pr_info("sprdfgu_store_attribute %lu %lu\n", off, set_value); | ^~~~~~~ CC drivers/base/firmware.o LD block/partitions/built-in.o CC block/noop-iosched.o CC drivers/base/init.o LD drivers/battery/built-in.o CC drivers/block/loop.o CC drivers/base/map.o CC block/cfq-iosched.o CC drivers/base/devres.o CC drivers/base/attribute_container.o CC drivers/base/transport_class.o LD drivers/block/built-in.o CC drivers/bluetooth/sprd_lpm.o CC drivers/base/topology.o LD drivers/bluetooth/built-in.o LD drivers/bus/built-in.o LD block/built-in.o CC drivers/cdrom/cdrom.o CC sound/sound_core.o CC drivers/base/devtmpfs.o LD sound/arm/built-in.o LD sound/atmel/built-in.o CC sound/core/compress_offload.o sound/core/compress_offload.c: In function 'snd_compr_calc_avail': sound/core/compress_offload.c:175:34: warning: taking address of packed member of 'struct snd_compr_avail' may result in an unaligned pointer value [-Waddress-of-packed-member] 175 | snd_compr_update_tstamp(stream, &avail->tstamp); | ^~~~~~~~~~~~~~ CC drivers/base/power/sysfs.o CC sound/core/hwdep.o CC drivers/base/power/generic_ops.o CC drivers/base/power/common.o CC sound/core/memalloc.o LD drivers/cdrom/built-in.o CC drivers/base/power/qos.o MK_FW firmware/coreriver/j3xlte.fw.gen.S IHEX firmware/coreriver/j3xlte.fw AS firmware/coreriver/j3xlte.fw.gen.o LD firmware/built-in.o CC drivers/base/power/main.o CC sound/core/pcm.o CC arch/arm/oprofile/../../../drivers/oprofile/oprof.o CC arch/arm/oprofile/../../../drivers/oprofile/cpu_buffer.o CC drivers/base/power/wakeup.o CC arch/arm/oprofile/../../../drivers/oprofile/buffer_sync.o CC sound/core/pcm_native.o CC arch/arm/oprofile/../../../drivers/oprofile/event_buffer.o CC drivers/base/power/runtime.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_files.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofilefs.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_stats.o CC drivers/base/power/clock_ops.o CC arch/arm/oprofile/../../../drivers/oprofile/timer_int.o LD drivers/base/power/built-in.o CC drivers/base/regmap/regmap.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_perf.o CC sound/core/pcm_lib.o CC arch/arm/oprofile/common.o LD arch/arm/oprofile/oprofile.o LD arch/arm/oprofile/built-in.o CC sound/core/pcm_timer.o CC net/socket.o CC drivers/base/regmap/regcache.o CC sound/core/pcm_misc.o CC drivers/base/regmap/regcache-rbtree.o CC sound/core/pcm_memory.o drivers/base/regmap/regcache-rbtree.c:34:1: warning: alignment 1 of 'struct regcache_rbtree_node' is less than 4 [-Wpacked-not-aligned] 34 | } __attribute__ ((packed)); | ^ drivers/base/regmap/regcache-rbtree.c: In function 'regcache_rbtree_insert': drivers/base/regmap/regcache-rbtree.c:127:15: warning: taking address of packed member of 'struct regcache_rbtree_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 127 | rb_link_node(&rbnode->node, parent, new); | ^~~~~~~~~~~~~ drivers/base/regmap/regcache-rbtree.c:128:18: warning: taking address of packed member of 'struct regcache_rbtree_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 128 | rb_insert_color(&rbnode->node, root); | ^~~~~~~~~~~~~ drivers/base/regmap/regcache-rbtree.c: In function 'regcache_rbtree_exit': drivers/base/regmap/regcache-rbtree.c:246:18: warning: taking address of packed member of 'struct regcache_rbtree_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 246 | next = rb_next(&rbtree_node->node); | ^~~~~~~~~~~~~~~~~~ drivers/base/regmap/regcache-rbtree.c:247:12: warning: taking address of packed member of 'struct regcache_rbtree_node' may result in an unaligned pointer value [-Waddress-of-packed-member] 247 | rb_erase(&rbtree_node->node, &rbtree_ctx->root); | ^~~~~~~~~~~~~~~~~~ CC drivers/base/regmap/regcache-lzo.o CC drivers/base/regmap/regcache-flat.o CC sound/core/rawmidi.o LD net/802/built-in.o CC net/bluetooth/af_bluetooth.o CC drivers/base/regmap/regmap-debugfs.o CC drivers/base/regmap/regmap-i2c.o CC sound/core/timer.o CC drivers/base/regmap/regmap-spi.o CC net/bluetooth/hci_core.o LD drivers/base/regmap/built-in.o CC drivers/base/dma-mapping.o net/bluetooth/hci_core.c: In function 'hci_smp_ltks_clear': net/bluetooth/hci_core.c:1653:12: warning: taking address of packed member of 'struct smp_ltk' may result in an unaligned pointer value [-Waddress-of-packed-member] 1653 | list_del(&k->list); | ^~~~~~~~ net/bluetooth/hci_core.c: In function 'hci_add_ltk': net/bluetooth/hci_core.c:1804:12: warning: taking address of packed member of 'struct smp_ltk' may result in an unaligned pointer value [-Waddress-of-packed-member] 1804 | list_add(&key->list, &hdev->long_term_keys); | ^~~~~~~~~~ net/bluetooth/hci_core.c: In function 'hci_remove_ltk': net/bluetooth/hci_core.c:1851:12: warning: taking address of packed member of 'struct smp_ltk' may result in an unaligned pointer value [-Waddress-of-packed-member] 1851 | list_del(&k->list); | ^~~~~~~~ CC drivers/base/dma-coherent.o net/bluetooth/hci_core.c: In function 'hci_register_dev': net/bluetooth/hci_core.c:2216:26: warning: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=] 2216 | sprintf(hdev->name, "hci%d", id); | ^~ net/bluetooth/hci_core.c:2216:22: note: directive argument in the range [0, 2147483647] 2216 | sprintf(hdev->name, "hci%d", id); | ^~~~~~~ net/bluetooth/hci_core.c:2216:2: note: 'sprintf' output between 5 and 14 bytes into a destination of size 8 2216 | sprintf(hdev->name, "hci%d", id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC sound/core/sound.o CC drivers/base/dma-buf.o CC sound/core/init.o CC drivers/base/firmware_class.o CC net/bluetooth/hci_conn.o drivers/base/firmware_class.c: In function 'fw_pm_notify': drivers/base/firmware_class.c:1535:26: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 1535 | printk("*** %s, mode:0x%x done ***\n", __func__, mode); | ~^ ~~~~ | | | | unsigned int long unsigned int | %lx CC sound/core/memory.o CC sound/core/info.o CC drivers/base/module.o LD drivers/base/built-in.o CC drivers/char/mem.o CC net/bluetooth/hci_event.o CC sound/core/control.o CC drivers/char/random.o net/bluetooth/hci_event.c: In function 'hci_le_ltk_request_evt': net/bluetooth/hci_event.c:3650:12: warning: taking address of packed member of 'struct smp_ltk' may result in an unaligned pointer value [-Waddress-of-packed-member] 3650 | list_del(<k->list); | ^~~~~~~~~~ CC sound/core/misc.o CC sound/core/device.o CC drivers/char/misc.o CC sound/core/jack.o CC net/bluetooth/mgmt.o LD drivers/char/built-in.o CC drivers/clk/clk-devres.o LD sound/core/snd.o LD sound/core/snd-hwdep.o LD sound/core/snd-timer.o LD sound/core/snd-pcm.o LD sound/core/snd-page-alloc.o LD sound/core/snd-rawmidi.o LD sound/core/snd-compress.o LD sound/core/built-in.o CC sound/drivers/saudio.o CC drivers/clk/clkdev.o net/bluetooth/mgmt.c: In function 'read_commands': net/bluetooth/mgmt.c:308:23: warning: taking address of packed member of 'struct mgmt_rp_read_commands' may result in an unaligned pointer value [-Waddress-of-packed-member] 308 | for (i = 0, opcode = rp->opcodes; i < num_commands; i++, opcode++) | ^~ sound/drivers/saudio.c: In function 'saudio_clear_cmd': sound/drivers/saudio.c:218:6: warning: unused variable 'i' [-Wunused-variable] 218 | int i = 0; | ^ sound/drivers/saudio.c: In function 'snd_card_saudio_pcm_open': sound/drivers/saudio.c:385:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 385 | mutex_lock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:155:38: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 155 | extern void mutex_lock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:387:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 387 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:391:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 391 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c: In function 'snd_card_saudio_pcm_close': sound/drivers/saudio.c:445:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 445 | mutex_lock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:155:38: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 155 | extern void mutex_lock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:447:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 447 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:451:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 451 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c: In function 'snd_card_saudio_pcm_prepare': sound/drivers/saudio.c:564:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 564 | mutex_lock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:155:38: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 155 | extern void mutex_lock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:566:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 566 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c:570:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 570 | mutex_unlock(&saudio->mutex); | ^~~~~~~~~~~~~~ In file included from include/linux/kref.h:21, from include/linux/kobject.h:24, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: include/linux/mutex.h:172:40: note: expected 'struct mutex *' but argument is of type 'const struct mutex *' 172 | extern void mutex_unlock(struct mutex *lock); | ~~~~~~~~~~~~~~^~~~ sound/drivers/saudio.c: In function 'snd_saudio_probe': sound/drivers/saudio.c:1273:15: warning: unused variable 'thread_id' [-Wunused-variable] 1273 | static pid_t thread_id = (pid_t) - 1; | ^~~~~~~~~ At top level: sound/drivers/saudio.c:1273:15: warning: 'thread_id' defined but not used [-Wunused-variable] CC drivers/clk/clk.o LD sound/drivers/mpu401/built-in.o LD sound/drivers/opl3/built-in.o LD sound/drivers/opl4/built-in.o LD sound/drivers/pcsp/built-in.o LD sound/drivers/vx/built-in.o LD sound/drivers/built-in.o LD sound/firewire/built-in.o LD sound/i2c/other/built-in.o LD sound/i2c/built-in.o LD sound/isa/ad1816a/built-in.o LD sound/isa/ad1848/built-in.o LD sound/isa/cs423x/built-in.o LD sound/isa/es1688/built-in.o LD sound/isa/galaxy/built-in.o LD sound/isa/gus/built-in.o LD sound/isa/msnd/built-in.o LD sound/isa/opti9xx/built-in.o LD sound/isa/sb/built-in.o LD sound/isa/wavefront/built-in.o LD sound/isa/wss/built-in.o LD sound/isa/built-in.o LD sound/mips/built-in.o LD sound/parisc/built-in.o LD sound/pci/ac97/built-in.o LD sound/pci/ali5451/built-in.o LD sound/pci/asihpi/built-in.o CC drivers/clk/clk-divider.o LD sound/pci/au88x0/built-in.o LD sound/pci/aw2/built-in.o LD sound/pci/ca0106/built-in.o LD sound/pci/cs46xx/built-in.o LD sound/pci/cs5535audio/built-in.o LD sound/pci/ctxfi/built-in.o LD sound/pci/echoaudio/built-in.o CC net/bluetooth/hci_sock.o LD sound/pci/emu10k1/built-in.o LD sound/pci/hda/built-in.o LD sound/pci/ice1712/built-in.o LD sound/pci/korg1212/built-in.o LD sound/pci/lola/built-in.o LD sound/pci/lx6464es/built-in.o LD sound/pci/mixart/built-in.o LD sound/pci/nm256/built-in.o LD sound/pci/oxygen/built-in.o LD sound/pci/pcxhr/built-in.o LD sound/pci/riptide/built-in.o LD sound/pci/rme9652/built-in.o CC drivers/clk/clk-fixed-factor.o LD sound/pci/trident/built-in.o LD sound/pci/vx222/built-in.o LD sound/pci/ymfpci/built-in.o LD sound/pci/built-in.o CC drivers/clk/clk-fixed-rate.o LD sound/pcmcia/pdaudiocf/built-in.o LD sound/pcmcia/vx/built-in.o LD sound/pcmcia/built-in.o LD sound/ppc/built-in.o CC net/bluetooth/hci_sysfs.o LD sound/sh/built-in.o CC sound/soc/soc-core.o CC drivers/clk/clk-gate.o CC drivers/clk/clk-mux.o CC drivers/clk/clk-composite.o CC net/bluetooth/l2cap_core.o CC drivers/clk/clk-sc.o In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | sound/soc/soc-core.c: In function 'fmt_single_name': sound/soc/soc-core.c:3726:35: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 3726 | snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name); | ^ sound/soc/soc-core.c:3726:4: note: 'snprintf' output 2 or more bytes (assuming 33) into a destination of size 32 3726 | snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/clk/clk-sc.c:25: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/clk/clk-sc.c:24: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/clk/clk-sc.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | LD drivers/clk/built-in.o CC drivers/clocksource/clksrc-of.o CC drivers/clocksource/mmio.o LD drivers/clocksource/built-in.o CC drivers/cpufreq/cpufreq.o In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/asm-generic/cputime.h:4, from arch/arm/include/generated/asm/cputime.h:1, from drivers/cpufreq/cpufreq.c:20: drivers/cpufreq/cpufreq.c: In function '__cpufreq_remove_dev': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'struct cpufreq_policy *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/cpufreq/cpufreq.c:1175:3: note: in expansion of macro 'pr_debug' 1175 | pr_debug("%s: removing link, cpu: %d policy[%d] %x\n", __func__, cpu,data->cpu,data); | ^~~~~~~~ CC sound/soc/soc-dapm.o CC net/bluetooth/l2cap_sock.o CC drivers/cpufreq/cpufreq_stats.o CC drivers/cpufreq/cpufreq_limit.o CC drivers/cpufreq/cpufreq_performance.o CC sound/soc/soc-jack.o CC net/bluetooth/smp.o CC drivers/cpufreq/cpufreq_interactive.o CC sound/soc/soc-cache.o CC net/bluetooth/sco.o CC drivers/cpufreq/freq_table.o CC sound/soc/soc-utils.o LD drivers/cpufreq/built-in.o CC drivers/cpuhotplug/sprd_hotplug.o drivers/cpuhotplug/sprd_hotplug.c:258:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] 258 | static void sprd_unplug_one_cpu_ss() | ^~~~~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: In function 'sd_unplug_avg_load11': drivers/cpuhotplug/sprd_hotplug.c:452:6: warning: unused variable 'idx' [-Wunused-variable] 452 | int idx = 0; | ^~~ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:27, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/cache.h:4, from include/linux/time.h:4, from include/asm-generic/cputime.h:4, from arch/arm/include/generated/asm/cputime.h:1, from include/linux/cpufreq.h:14, from drivers/cpuhotplug/sprd_hotplug.c:1: drivers/cpuhotplug/sprd_hotplug.c: In function 'sd_check_cpu_sprd': include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast 11 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/jiffies.h:102:3: note: in expansion of macro 'typecheck' 102 | (typecheck(unsigned long, a) && \ | ^~~~~~~~~ include/linux/jiffies.h:105:26: note: in expansion of macro 'time_after' 105 | #define time_before(a,b) time_after(b,a) | ^~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:656:6: note: in expansion of macro 'time_before' 656 | if (time_before(jiffies, boot_done)) | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:651:27: warning: unused variable 'puwi' [-Wunused-variable] 651 | struct unplug_work_info *puwi; | ^~~~ drivers/cpuhotplug/sprd_hotplug.c:649:15: warning: unused variable 'local_load' [-Wunused-variable] 649 | unsigned int local_load = 0; | ^~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: At top level: drivers/cpuhotplug/sprd_hotplug.c:717:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] 717 | void dbs_check_cpu_sprd() | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:27, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/cache.h:4, from include/linux/time.h:4, from include/asm-generic/cputime.h:4, from arch/arm/include/generated/asm/cputime.h:1, from include/linux/cpufreq.h:14, from drivers/cpuhotplug/sprd_hotplug.c:1: drivers/cpuhotplug/sprd_hotplug.c: In function 'sprd_hotplug': include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast 11 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/jiffies.h:102:3: note: in expansion of macro 'typecheck' 102 | (typecheck(unsigned long, a) && \ | ^~~~~~~~~ include/linux/jiffies.h:105:26: note: in expansion of macro 'time_after' 105 | #define time_before(a,b) time_after(b,a) | ^~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:911:9: note: in expansion of macro 'time_before' 911 | while (time_before(jiffies, boot_done)) | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: In function 'store_cpu_hotplug_disable': drivers/cpuhotplug/sprd_hotplug.c:1254:22: warning: unused variable 'cpu' [-Wunused-variable] 1254 | unsigned int input, cpu; | ^~~ In file included from include/linux/printk.h:5, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/asm-generic/cputime.h:4, from arch/arm/include/generated/asm/cputime.h:1, from include/linux/cpufreq.h:14, from drivers/cpuhotplug/sprd_hotplug.c:1: drivers/cpuhotplug/sprd_hotplug.c: At top level: drivers/cpuhotplug/sprd_hotplug.c:1631:13: warning: initialization of 'initcall_t' {aka 'int (*)(void)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 1631 | module_init(sprd_hotplug_init); | ^~~~~~~~~~~~~~~~~ include/linux/init.h:180:58: note: in definition of macro '__define_initcall' 180 | __attribute__((__section__(".initcall" #id ".init"))) = fn | ^~ include/linux/init.h:214:24: note: in expansion of macro 'device_initcall' 214 | #define __initcall(fn) device_initcall(fn) | ^~~~~~~~~~~~~~~ include/linux/init.h:268:24: note: in expansion of macro '__initcall' 268 | #define module_init(x) __initcall(x); | ^~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:1631:1: note: in expansion of macro 'module_init' 1631 | module_init(sprd_hotplug_init); | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:534:12: warning: 'cpu_evaluate_score' defined but not used [-Wunused-function] 534 | static int cpu_evaluate_score(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:447:21: warning: 'sd_unplug_avg_load11' defined but not used [-Wunused-function] 447 | static unsigned int sd_unplug_avg_load11(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:339:21: warning: 'sd_unplug_avg_load1' defined but not used [-Wunused-function] 339 | static unsigned int sd_unplug_avg_load1(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:189:21: warning: 'cpufreq_max_limit' defined but not used [-Wunused-variable] 189 | static unsigned int cpufreq_max_limit = 0; | ^~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:188:21: warning: 'cpufreq_min_limit' defined but not used [-Wunused-variable] 188 | static unsigned int cpufreq_min_limit = ULONG_MAX; | ^~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:186:12: warning: 'cpu_score' defined but not used [-Wunused-variable] 186 | static int cpu_score = 0; | ^~~~~~~~~ CC net/bluetooth/lib.o CC sound/soc/soc-pcm.o LD drivers/cpuhotplug/built-in.o CC drivers/cpuidle/cpuidle.o CC net/bluetooth/a2mp.o CC drivers/cpuidle/driver.o CC sound/soc/soc-compress.o CC drivers/cpuidle/governor.o CC net/bluetooth/amp.o CC drivers/cpuidle/sysfs.o CC drivers/cpuidle/governors/ladder.o CC sound/soc/soc-io.o CC net/bluetooth/hidp/core.o CC drivers/cpuidle/governors/menu.o LD sound/soc/atmel/built-in.o LD sound/soc/au1x/built-in.o LD drivers/cpuidle/governors/built-in.o LD sound/soc/blackfin/built-in.o LD sound/soc/cirrus/built-in.o LD sound/soc/codecs/built-in.o LD drivers/cpuidle/built-in.o LD sound/soc/davinci/built-in.o LD sound/soc/dwc/built-in.o LD sound/soc/fsl/built-in.o LD drivers/crypto/built-in.o LD sound/soc/generic/built-in.o LD sound/soc/jz4740/built-in.o LD sound/soc/kirkwood/built-in.o LD sound/soc/mid-x86/built-in.o LD drivers/firewire/built-in.o LD sound/soc/mxs/built-in.o LD sound/soc/nuc900/built-in.o LD sound/soc/omap/built-in.o LD drivers/firmware/built-in.o LD sound/soc/pxa/built-in.o LD sound/soc/s6000/built-in.o LD sound/soc/samsung/built-in.o LD sound/soc/sh/built-in.o CC drivers/gpio/devres.o CC sound/soc/sprd/i2s-r0p0-null-codec.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | CC drivers/gpio/gpiolib.o In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ In file included from sound/soc/sprd/i2s-r0p0-null-codec.c:22: At top level: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC sound/soc/sprd/sprd-asoc-common.o CC net/bluetooth/hidp/sock.o In file included from sound/soc/sprd/sprd-asoc-common.c:34: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC sound/soc/sprd/sprd-asoc-card.o LD net/bluetooth/hidp/hidp.o LD net/bluetooth/hidp/built-in.o LD net/bluetooth/bluetooth.o LD net/bluetooth/built-in.o CC net/core/sock.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ In file included from sound/soc/sprd/sprd-asoc-card.c:26: At top level: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC drivers/gpio/gpiolib-of.o CC sound/soc/sprd/codec/null-codec/null-codec.o In file included from sound/soc/sprd/codec/null-codec/null-codec.c:36: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ LD sound/soc/sprd/codec/null-codec/snd-soc-sprd-null-codec.o LD sound/soc/sprd/codec/null-codec/built-in.o CC sound/soc/sprd/codec/sprd/v4/sprd-codec.o CC drivers/gpio/secgpio_dvs.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: At top level: sound/soc/sprd/codec/sprd/v4/sprd-codec.c:461:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 461 | static int is_low_power_support() | ^~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'is_low_power_support': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:465:13: warning: unused variable 'j' [-Wunused-variable] 465 | int i = 0, j = 0; | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_auxadc_en': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:662:6: warning: unused variable 'val' [-Wunused-variable] 662 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:661:6: warning: unused variable 'mask' [-Wunused-variable] 661 | int mask; | ^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function '_mixer_adc_linein_mute_nolock': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:902:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 902 | struct sprd_codec_priv *sprd_codec = snd_soc_codec_get_drvdata(codec); | ^~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'daclspkl_set': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1086:1: warning: no return statement in function returning non-void [-Wreturn-type] 1086 | } | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_hp_pa_lpw': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1529:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1529 | struct sprd_codec_priv *sprd_codec = snd_soc_codec_get_drvdata(codec); | ^~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_hp_pa_mode': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1567:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1567 | struct sprd_codec_priv *sprd_codec = snd_soc_codec_get_drvdata(codec); | ^~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_hp_pa_osc': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1596:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1596 | struct sprd_codec_priv *sprd_codec = snd_soc_codec_get_drvdata(codec); | ^~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_hp_pa_hpl_mute': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1703:6: warning: unused variable 'val' [-Wunused-variable] 1703 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1702:6: warning: unused variable 'mask' [-Wunused-variable] 1702 | int mask; | ^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_hp_pa_hpr_mute': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1717:6: warning: unused variable 'val' [-Wunused-variable] 1717 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1716:6: warning: unused variable 'mask' [-Wunused-variable] 1716 | int mask; | ^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_inter_headphone_pa_pre': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1818:33: warning: unused variable 'p_setting' [-Wunused-variable] 1818 | struct sprd_codec_inter_hp_pa *p_setting = | ^~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_analog_open': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:2212:11: warning: unused variable 'mask' [-Wunused-variable] 2212 | uint32_t mask = 0; | ^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:2211:11: warning: unused variable 'val' [-Wunused-variable] 2211 | uint32_t val = 0; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_adc_clock_input_en': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:2291:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 2291 | struct sprd_codec_priv *sprd_codec = snd_soc_codec_get_drvdata(codec); | ^~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_info_get': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:3943:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 3943 | if (chip_id == 0x2723) | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:20: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:56:3: note: in expansion of macro 'pr_info' 56 | pr_info(fmt, ##__VA_ARGS__); \ | ^~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:3951:2: note: in expansion of macro 'sp_asoc_pr_info' 3951 | sp_asoc_pr_info("%s, codec info = %d\n", | ^~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_linein_mute_put': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:3969:6: warning: unused variable 'i' [-Wunused-variable] 3969 | int i = 0; | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: At top level: sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4224: warning: "SPRD_CODEC_PGA_MAX" redefined 4224 | #define SPRD_CODEC_PGA_MAX(xname, xreg, max, tlv_array) \ | sound/soc/sprd/codec/sprd/v4/sprd-codec.c:136: note: this is the location of the previous definition 136 | #define SPRD_CODEC_PGA_MAX (SPRD_CODEC_PGA_END - SPRD_CODEC_PGA_START) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:20: sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'aud_glb_reg_read': include/linux/kern_levels.h:4:18: warning: unknown conversion type character ',' in format [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:56:3: note: in expansion of macro 'pr_info' 56 | pr_info(fmt, ##__VA_ARGS__); \ | ^~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4539:3: note: in expansion of macro 'sp_asoc_pr_info' 4539 | sp_asoc_pr_info("%, error, not enough memory!!!\n", __func__); | ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:56:3: note: in expansion of macro 'pr_info' 56 | pr_info(fmt, ##__VA_ARGS__); \ | ^~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4539:3: note: in expansion of macro 'sp_asoc_pr_info' 4539 | sp_asoc_pr_info("%, error, not enough memory!!!\n", __func__); | ^~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4550:38: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4550 | snd_iprintf(buffer, "%30s: 0x%08x 0x%08x\n", | ~~~^ | | | unsigned int | %08lx 4551 | aud_glb_reg[i].reg_name, 4552 | aud_glb_reg[i].reg + sizeof(aud_glb_reg[i].reg) * j, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4556:42: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 4556 | snd_iprintf(buffer, "%27s+%2d: 0x%08x 0x%08x\n", | ~~~^ | | | unsigned int | %08lx ...... 4559 | aud_glb_reg[i].reg + sizeof(aud_glb_reg[i].reg) * j, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_probe': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4930:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 4930 | iounmap(sprd_codec_dp_base); | ^~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:37: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:319:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 319 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_remove': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4940:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 4940 | iounmap(sprd_codec_dp_base); | ^~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:37: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:319:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 319 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC drivers/gpio/secgpio_dvs_sc9830.o In file included from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/pinmap.h:17, from drivers/gpio/secgpio_dvs_sc9830.c:16: include/soc/sprd/__hardware-sc9630.h:114: warning: "SPRD_MISC_BASE" redefined 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/gpio/secgpio_dvs_sc9830.c:14: include/soc/sprd/sci_glb_regs.h:51: note: this is the location of the previous definition 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | drivers/gpio/secgpio_dvs_sc9830.c:341:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 341 | static int dvs_gpio_map_table_init() | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpio/secgpio_dvs_sc9830.c:373:14: warning: initialization of 'struct dvs_gpio_map_table *' from incompatible pointer type 'struct dvs_gpio_map_table (*)[164]' [-Wincompatible-pointer-types] 373 | .dvs_gpio = &dvs_gpio, | ^ drivers/gpio/secgpio_dvs_sc9830.c:373:14: note: (near initialization for 'sharkl_gpio_dvs.dvs_gpio') CC drivers/gpio/gpio-eic.o In file included from drivers/gpio/gpio-eic.c:27: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/gpio/gpio-eic.c: In function 'eic_gpio_probe': drivers/gpio/gpio-eic.c:730:3: warning: ignoring return value of 'gpiochip_remove' declared with attribute 'warn_unused_result' [-Wunused-result] 730 | gpiochip_remove(&sgc->chip); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/core/request_sock.o LD drivers/gpio/built-in.o LD drivers/gpu/drm/i2c/built-in.o LD drivers/gpu/drm/built-in.o CC drivers/gpu/sprd_iommu/sprd_iommu_sysfs.o CC sound/soc/sprd/codec/sprd/v4/sprd-audio-power.o drivers/gpu/sprd_iommu/sprd_iommu_sysfs.c: In function 'iova_dump_chunk_bitmap': drivers/gpu/sprd_iommu/sprd_iommu_sysfs.c:26:36: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=] 26 | seq_printf(s,"chunk phys_addr:0x%lx start_addr:0x%lx end_addr:0x%lx\n", | ~~^ | | | long unsigned int | %x 27 | chunk->phys_addr, chunk->start_addr, chunk->end_addr); | ~~~~~~~~~~~~~~~~ | | | phys_addr_t {aka unsigned int} In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ At top level: sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:282:18: warning: 'VPA_VSEL_table' defined but not used [-Wunused-const-variable=] 282 | static const u16 VPA_VSEL_table[] = { | ^~~~~~~~~~~~~~ In file included from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:33: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC drivers/gpu/sprd_iommu/sprd_iommu_drv.o CC net/core/skbuff.o LD sound/soc/sprd/codec/sprd/v4/snd-soc-sprd-sprd-codec-v4.o LD sound/soc/sprd/codec/sprd/v4/built-in.o CC sound/soc/sprd/dai/sprd-pcm.o drivers/gpu/sprd_iommu/sprd_iommu_drv.c: In function 'sprd_iommu_get_resource': drivers/gpu/sprd_iommu/sprd_iommu_drv.c:262:12: warning: unused variable 'i' [-Wunused-variable] 262 | uint32_t i; | ^ At top level: drivers/gpu/sprd_iommu/sprd_iommu_drv.c:197:12: warning: 'sprd_iommu_resume' defined but not used [-Wunused-function] 197 | static int sprd_iommu_resume(struct platform_device *pdev) | ^~~~~~~~~~~~~~~~~ drivers/gpu/sprd_iommu/sprd_iommu_drv.c:184:12: warning: 'sprd_iommu_suspend' defined but not used [-Wunused-function] 184 | static int sprd_iommu_suspend(struct platform_device *pdev, pm_message_t state) | ^~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ sound/soc/sprd/dai/sprd-pcm.c: In function 'sprd_pcm_open': sound/soc/sprd/dai/sprd-pcm.c:285:24: warning: assignment to 'dma_addr_t *' {aka 'unsigned int *'} from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion] 285 | rtd->dma_desc_array = (unsigned int)rtd->dma_desc_array_orig + (rtd->dma_desc_array_phys - rtd->dma_desc_array_phys_orig); | ^ sound/soc/sprd/dai/sprd-pcm.c: In function 'sprd_pcm_hw_params': sound/soc/sprd/dai/sprd-pcm.c:619:28: warning: assignment to 'long unsigned int' from 'dma_addr_t *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion] 619 | dma_reg_addr[0].virt_addr = rtd->dma_desc_array; | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from sound/soc/sprd/dai/sprd-pcm.c:20: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:75:3: note: in expansion of macro 'pr_debug' 75 | pr_debug(fmt, ##__VA_ARGS__); \ | ^~~~~~~~ sound/soc/sprd/dai/sprd-pcm.c:620:2: note: in expansion of macro 'sp_asoc_pr_dbg' 620 | sp_asoc_pr_dbg("dma_reg_addr[0].virt_addr:0x%x\n", | ^~~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:75:3: note: in expansion of macro 'pr_debug' 75 | pr_debug(fmt, ##__VA_ARGS__); \ | ^~~~~~~~ sound/soc/sprd/dai/sprd-pcm.c:644:3: note: in expansion of macro 'sp_asoc_pr_dbg' 644 | sp_asoc_pr_dbg("dma_reg_addr[1].virt_addr:0x%x\n", | ^~~~~~~~~~~~~~ In file included from sound/soc/sprd/dai/sprd-pcm.c:45: At top level: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC drivers/gpu/sprd_iommu/sprd_iommu_common.o drivers/gpu/sprd_iommu/sprd_iommu_common.c: In function 'sprd_iommu_reg_init': drivers/gpu/sprd_iommu/sprd_iommu_common.c:85:31: warning: right shift count >= width of type [-Wshift-count-overflow] 85 | (u32)(data->re_route_page >> 32), | ^~ drivers/gpu/sprd_iommu/sprd_iommu_common.c:97:27: warning: right shift count >= width of type [-Wshift-count-overflow] 97 | (u32)(data->iova_base >> 32), | ^~ LD sound/soc/sprd/dai/snd-soc-sprd-audio-dma.o LD sound/soc/sprd/dai/built-in.o CC sound/soc/sprd/dai/i2s/i2s.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from sound/soc/sprd/dai/i2s/i2s.c:20: sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_reg_update': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ sound/soc/sprd/sprd-asoc-common.h:62:3: note: in expansion of macro 'pr_info' 62 | pr_info(fmt, ##__VA_ARGS__); \ | ^~~~~~~ sound/soc/sprd/dai/i2s/i2s.c:199:2: note: in expansion of macro 'sp_asoc_pr_reg' 199 | sp_asoc_pr_reg("[0x%04x] U:[0x%08x] R:[0x%08x]\n", reg & 0xFFFF, new, | ^~~~~~~~~~~~~~ sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_startup': sound/soc/sprd/dai/i2s/i2s.c:599:25: warning: initialization of 'struct i2s_priv *' from incompatible pointer type 'struct i2s_dai *' [-Wincompatible-pointer-types] 599 | struct i2s_priv *i2s = to_info(dai); | ^~~~~~~ sound/soc/sprd/dai/i2s/i2s.c: In function 'get_index': sound/soc/sprd/dai/i2s/i2s.c:841:2: warning: statement with no effect [-Wunused-value] 841 | for (line_first;line_first < line_end;line_first++) { | ^~~ sound/soc/sprd/dai/i2s/i2s.c: In function 'get_index_value': sound/soc/sprd/dai/i2s/i2s.c:858:2: warning: statement with no effect [-Wunused-value] 858 | for (line_first;;line_first++) { | ^~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from sound/soc/sprd/dai/i2s/i2s.c:20: sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_config_get': include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ sound/soc/sprd/dai/i2s/i2s.c:976:2: note: in expansion of macro 'pr_debug' 976 | pr_debug("i2s_config_get return value %d,id %d\n",ucontrol->value.integer.value[0],id); | ^~~~~~~~ sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_config_set': sound/soc/sprd/dai/i2s/i2s.c:985:23: warning: unused variable 'card' [-Wunused-variable] 985 | struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); | ^~~~ In file included from include/linux/io.h:22, from sound/soc/sprd/dai/i2s/i2s.c:32: sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_drv_probe': sound/soc/sprd/dai/i2s/i2s.c:1173:53: warning: passing argument 1 of '__arm_ioremap' makes integer from pointer without a cast [-Wint-conversion] 1173 | i2s->membase = (void __iomem *)ioremap_nocache(i2s->memphys, i2s->reg_size); /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:508:53: note: in definition of macro 'ioremap_nocache' 508 | #define ioremap_nocache(cookie,size) __arm_ioremap((cookie), (size), MT_DEVICE) | ^~~~~~ In file included from include/linux/io.h:22, from sound/soc/sprd/dai/i2s/i2s.c:32: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:316:36: note: expected 'phys_addr_t' {aka 'unsigned int'} but argument is of type 'unsigned int *' 316 | extern void __iomem *__arm_ioremap(phys_addr_t, size_t, unsigned int); | ^~~~~~~~~~~ sound/soc/sprd/dai/i2s/i2s.c:1189:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1189 | const char *dai_name = NULL; | ^~~~~ sound/soc/sprd/dai/i2s/i2s.c:1199:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1199 | const char * config_type = NULL; | ^~~~~ sound/soc/sprd/dai/i2s/i2s.c:1399:11: warning: assignment to 'unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 1399 | membase = i2s->membase; | ^ In file included from sound/soc/sprd/dai/i2s/i2s.c:42: At top level: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC drivers/gpu/sprd_iommu/gsp/sprd_iommu_gsp.o LD sound/soc/sprd/dai/i2s/snd-soc-sprd-i2s.o LD drivers/gpu/sprd_iommu/gsp/built-in.o LD sound/soc/sprd/dai/i2s/built-in.o CC drivers/gpu/sprd_iommu/mm/sprd_iommu_mm.o CC sound/soc/sprd/dai/vaudio/vaudio.o In file included from sound/soc/sprd/dai/vaudio/vaudio.c:38: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ LD drivers/gpu/sprd_iommu/mm/built-in.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_vsp.o LD sound/soc/sprd/dai/vaudio/snd-soc-sprd-vaudio.o LD sound/soc/sprd/dai/vaudio/built-in.o CC sound/soc/sprd/dai/vbc/r2p0/vbc.o CC net/core/iovec.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_dcam.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_enable': include/soc/sprd/__sprd_audio_sc8835l.h:749:1: warning: no return statement in function returning non-void [-Wreturn-type] 749 | } | ^ include/soc/sprd/__sprd_audio_sc8835l.h: In function 'arch_audio_memory_sleep_disable': include/soc/sprd/__sprd_audio_sc8835l.h:760:1: warning: no return statement in function returning non-void [-Wreturn-type] 760 | } | ^ sound/soc/sprd/dai/vbc/r2p0/vbc.c: In function 'vbc_drv_probe': sound/soc/sprd/dai/vbc/r2p0/vbc.c:748:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 748 | iounmap(sprd_vbc_base); | ^~~~~~~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:33: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:319:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 319 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ sound/soc/sprd/dai/vbc/r2p0/vbc.c: In function 'vbc_drv_remove': sound/soc/sprd/dai/vbc/r2p0/vbc.c:768:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 768 | iounmap(sprd_vbc_base); | ^~~~~~~~~~~~~ | | | long unsigned int In file included from include/linux/io.h:22, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:33: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:319:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 319 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from sound/soc/sprd/dai/vbc/r2p0/vbc.c:802: sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c: In function 'vbc_eq_profile_close': sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1733:10: warning: passing argument 2 of 'vbc_eq_profile_apply' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1733 | &vbc_da_eq_profile_default, vbc_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1720:69: note: expected 'void *' but argument is of type 'const u32 (*)[164]' {aka 'const unsigned int (*)[164]'} 1720 | static void vbc_eq_profile_apply(struct snd_soc_codec *codec, void *data, | ~~~~~~^~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1738:10: warning: passing argument 2 of 'vbc_eq_profile_apply' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1738 | &vbc_ad_eq_profile_default, vbc_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1720:69: note: expected 'void *' but argument is of type 'const u32 (*)[88]' {aka 'const unsigned int (*)[88]'} 1720 | static void vbc_eq_profile_apply(struct snd_soc_codec *codec, void *data, | ~~~~~~^~~~ In file included from sound/soc/sprd/dai/vbc/r2p0/vbc.c:41: At top level: sound/soc/sprd/sprd-asoc-common.h:45:20: warning: 'codec_hw_info' defined but not used [-Wunused-variable] 45 | static const char *codec_hw_info[] = { | ^~~~~~~~~~~~~ CC drivers/gpu/sprd_iommu/v2/sprd_iommu_dispc.o CC net/core/datagram.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_gsp0.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_gsp1.o In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from include/soc/sprd/__sprd_audio_sc8835l.h:23, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | CC drivers/gpu/sprd_iommu/v2/sprd_iommu_vpp.o In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/__sprd_audio_sc8835l.h:25, from include/soc/sprd/sprd-audio.h:18, from sound/soc/sprd/dai/vbc/r2p0/vbc-comm.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.h:20, from sound/soc/sprd/dai/vbc/r2p0/vbc.c:47: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | LD sound/soc/sprd/dai/vbc/r2p0/snd-soc-sprd-vbc-r2p0.o LD sound/soc/sprd/dai/vbc/r2p0/built-in.o LD sound/soc/sprd/snd-soc-i2s.o LD sound/soc/sprd/built-in.o CC net/core/stream.o LD sound/soc/tegra/built-in.o LD sound/soc/txx9/built-in.o LD sound/soc/ux500/built-in.o LD sound/soc/snd-soc-core.o LD sound/soc/built-in.o LD sound/sparc/built-in.o LD drivers/gpu/sprd_iommu/v2/built-in.o LD sound/spi/built-in.o LD drivers/gpu/sprd_iommu/built-in.o LD sound/synth/built-in.o CC sound/usb/card.o LD drivers/gpu/vga/built-in.o LD drivers/gpu/built-in.o CC drivers/hid/hid-lg.o CC net/core/scm.o CC drivers/hid/hid-picolcd_core.o CC sound/usb/clock.o CC sound/usb/endpoint.o CC drivers/hid/hid-picolcd_debugfs.o CC net/core/gen_stats.o CC sound/usb/format.o CC drivers/hid/hid-wiimote-core.o CC net/core/gen_estimator.o CC sound/usb/helper.o CC drivers/hid/hid-wiimote-ext.o CC sound/usb/mixer.o CC net/core/net_namespace.o CC drivers/hid/hid-wiimote-debug.o CC drivers/hid/hid-debug.o CC net/core/secure_seq.o CC net/core/flow_dissector.o CC sound/usb/mixer_quirks.o CC drivers/hid/hid-core.o CC sound/usb/pcm.o CC net/core/sysctl_net_core.o net/core/sysctl_net_core.c:24:12: warning: 'one' defined but not used [-Wunused-variable] 24 | static int one = 1; | ^~~ CC net/core/dev.o CC sound/usb/proc.o CC drivers/hid/hid-input.o CC sound/usb/quirks.o CC sound/usb/stream.o CC drivers/hid/hidraw.o CC sound/usb/midi.o CC drivers/hid/uhid.o CC drivers/hid/hid-generic.o LD sound/usb/6fire/built-in.o LD sound/usb/caiaq/built-in.o LD sound/usb/misc/built-in.o LD sound/usb/usx2y/built-in.o LD sound/usb/snd-usb-audio.o LD sound/usb/snd-usbmidi-lib.o CC drivers/hid/hid-a4tech.o LD sound/usb/built-in.o CC sound/last.o CC drivers/hid/hid-axff.o LD sound/soundcore.o LD sound/built-in.o CC net/core/ethtool.o CC drivers/hid/hid-apple.o CC drivers/hid/hid-belkin.o CC net/core/dev_addr_lists.o CC drivers/hid/hid-cherry.o CC drivers/hid/hid-chicony.o CC drivers/hid/hid-cypress.o CC net/core/dst.o CC drivers/hid/hid-dr.o CC drivers/hid/hid-emsff.o CC drivers/hid/hid-elecom.o CC net/core/netevent.o CC drivers/hid/hid-ezkey.o CC drivers/hid/hid-gyration.o CC drivers/hid/hid-holtek-kbd.o CC net/core/neighbour.o CC net/core/rtnetlink.o CC drivers/hid/hid-holtekff.o CC drivers/hid/hid-kensington.o CC drivers/hid/hid-keytouch.o net/core/rtnetlink.c:1140:32: warning: 'ifla_vf_policy' defined but not used [-Wunused-const-variable=] 1140 | static const struct nla_policy ifla_vf_policy[IFLA_VF_MAX+1] = { | ^~~~~~~~~~~~~~ net/core/rtnetlink.c:1136:32: warning: 'ifla_vfinfo_policy' defined but not used [-Wunused-const-variable=] 1136 | static const struct nla_policy ifla_vfinfo_policy[IFLA_VF_INFO_MAX+1] = { | ^~~~~~~~~~~~~~~~~~ CC drivers/hid/hid-kye.o CC drivers/hid/hid-lcpower.o LD drivers/hid/hid-logitech.o CC drivers/hid/hid-logitech-dj.o CC drivers/hid/hid-magicmouse.o CC net/core/utils.o drivers/hid/hid-logitech-dj.c: In function 'delayedwork_callback': drivers/hid/hid-logitech-dj.c:266:37: warning: '%d' directive output may be truncated writing between 1 and 3 bytes into a region of size 2 [-Wformat-truncation=] 266 | snprintf(tmpstr, sizeof(tmpstr), ":%d", dj_report->device_index); | ^~ drivers/hid/hid-logitech-dj.c:266:35: note: directive argument in the range [0, 255] 266 | snprintf(tmpstr, sizeof(tmpstr), ":%d", dj_report->device_index); | ^~~~~ drivers/hid/hid-logitech-dj.c:266:2: note: 'snprintf' output between 3 and 5 bytes into a destination of size 3 266 | snprintf(tmpstr, sizeof(tmpstr), ":%d", dj_report->device_index); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/core/link_watch.o CC drivers/hid/hid-microsoft.o CC drivers/hid/hid-monterey.o CC drivers/hid/hid-multitouch.o CC net/core/filter.o CC drivers/hid/hid-ortek.o CC net/core/sock_diag.o CC drivers/hid/hid-prodikeys.o CC drivers/hid/hid-pl.o CC net/core/dev_ioctl.o CC drivers/hid/hid-petalynx.o LD drivers/hid/hid-picolcd.o CC net/core/flow.o CC drivers/hid/hid-synaptics-bt.o In file included from include/linux/bitops.h:30, from include/linux/kernel.h:10, from drivers/hid/hid-synaptics-bt.c:1: drivers/hid/hid-synaptics-bt.c: In function 'samsung_bookcover_input_mapping': drivers/hid/hid-synaptics-bt.c:247:21: warning: statement will never be executed [-Wswitch-unreachable] 247 | set_bit(EV_REP, hi->input->evbit); | ~~^~~~~~~ /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:184:45: note: in definition of macro 'ATOMIC_BITOP' 184 | #define ATOMIC_BITOP(name,nr,p) _##name(nr,p) | ^ drivers/hid/hid-synaptics-bt.c:247:3: note: in expansion of macro 'set_bit' 247 | set_bit(EV_REP, hi->input->evbit); | ^~~~~~~ CC drivers/hid/hid-primax.o CC net/core/net-sysfs.o CC drivers/hid/hid-roccat.o CC net/core/net-procfs.o net/core/net-sysfs.c:30:19: warning: 'fmt_long_hex' defined but not used [-Wunused-const-variable=] 30 | static const char fmt_long_hex[] = "%#lx\n"; | ^~~~~~~~~~~~ CC drivers/hid/hid-roccat-common.o CC drivers/hid/hid-roccat-arvo.o CC net/core/fib_rules.o CC drivers/hid/hid-roccat-isku.o CC net/core/net-traces.o CC drivers/hid/hid-roccat-kone.o CC drivers/hid/hid-roccat-koneplus.o LD arch/arm/lib/built-in.o AS arch/arm/lib/ashldi3.o LD net/core/built-in.o AS arch/arm/lib/ashrdi3.o CC net/ethernet/eth.o AS arch/arm/lib/backtrace.o AS arch/arm/lib/call_with_stack.o AS arch/arm/lib/changebit.o AS arch/arm/lib/clear_user.o AS arch/arm/lib/clearbit.o AS arch/arm/lib/copy_from_user.o CC drivers/hid/hid-roccat-konepure.o AS arch/arm/lib/copy_page.o AS arch/arm/lib/copy_to_user.o AS arch/arm/lib/csumipv6.o AS arch/arm/lib/csumpartial.o AS arch/arm/lib/csumpartialcopy.o AS arch/arm/lib/csumpartialcopyuser.o AS arch/arm/lib/delay-loop.o CC drivers/hid/hid-roccat-kovaplus.o CC arch/arm/lib/delay.o LD net/ethernet/built-in.o CC net/ipv4/route.o AS arch/arm/lib/div64.o AS arch/arm/lib/findbit.o AS arch/arm/lib/getuser.o AS arch/arm/lib/io-readsb.o AS arch/arm/lib/io-readsl.o AS arch/arm/lib/io-readsw-armv4.o AS arch/arm/lib/io-writesb.o AS arch/arm/lib/io-writesl.o CC drivers/hid/hid-roccat-lua.o AS arch/arm/lib/io-writesw-armv4.o AS arch/arm/lib/lib1funcs.o AS arch/arm/lib/lshrdi3.o AS arch/arm/lib/memchr.o AS arch/arm/lib/memcmpksm.o arch/arm/lib/memcmpksm.S:79: warning: "ENTRY" redefined 79 | #define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE | In file included from arch/arm/lib/memcmpksm.S:29: include/linux/linkage.h:77: note: this is the location of the previous definition 77 | #define ENTRY(name) \ | arch/arm/lib/memcmpksm.S:80: warning: "END" redefined 80 | #define END(y) _END(_C_LABEL(y)) | In file included from arch/arm/lib/memcmpksm.S:29: include/linux/linkage.h:91: note: this is the location of the previous definition 91 | #define END(name) \ | AS arch/arm/lib/memcpy.o AS arch/arm/lib/memmove.o CC drivers/hid/hid-roccat-pyra.o AS arch/arm/lib/memset.o AS arch/arm/lib/memzero.o AS arch/arm/lib/muldi3.o AS arch/arm/lib/pagecmp_ksm.o AS arch/arm/lib/pagesum_ksm.o AS arch/arm/lib/putuser.o AS arch/arm/lib/setbit.o AS arch/arm/lib/strchr.o AS arch/arm/lib/strrchr.o AS arch/arm/lib/testchangebit.o AS arch/arm/lib/testclearbit.o AS arch/arm/lib/testsetbit.o AS arch/arm/lib/ucmpdi2.o AR arch/arm/lib/lib.a CC drivers/hid/hid-roccat-savu.o CC lib/bcd.o CC drivers/hid/hid-saitek.o CC lib/div64.o CC lib/sort.o CC drivers/hid/hid-samsung.o CC lib/parser.o In file included from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from drivers/hid/hid-samsung.c:30: drivers/hid/hid-samsung.c: In function 'samsung_kbd_input_mapping': drivers/hid/hid-samsung.c:146:21: warning: statement will never be executed [-Wswitch-unreachable] 146 | set_bit(EV_REP, hi->input->evbit); | ~~^~~~~~~ /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:184:45: note: in definition of macro 'ATOMIC_BITOP' 184 | #define ATOMIC_BITOP(name,nr,p) _##name(nr,p) | ^ drivers/hid/hid-samsung.c:146:3: note: in expansion of macro 'set_bit' 146 | set_bit(EV_REP, hi->input->evbit); | ^~~~~~~ drivers/hid/hid-samsung.c: In function 'samsung_universal_kbd_input_mapping': drivers/hid/hid-samsung.c:279:21: warning: statement will never be executed [-Wswitch-unreachable] 279 | set_bit(EV_REP, hi->input->evbit); | ~~^~~~~~~ /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:184:45: note: in definition of macro 'ATOMIC_BITOP' 184 | #define ATOMIC_BITOP(name,nr,p) _##name(nr,p) | ^ drivers/hid/hid-samsung.c:279:3: note: in expansion of macro 'set_bit' 279 | set_bit(EV_REP, hi->input->evbit); | ^~~~~~~ CC net/ipv4/inetpeer.o CC lib/halfmd4.o CC drivers/hid/hid-sjoy.o CC lib/debug_locks.o CC lib/random32.o CC drivers/hid/hid-sony.o CC lib/bust_spinlocks.o CC drivers/hid/hid-speedlink.o CC lib/hexdump.o CC net/ipv4/protocol.o CC lib/kasprintf.o CC drivers/hid/hid-sunplus.o CC drivers/hid/hid-gaff.o CC lib/bitmap.o CC drivers/hid/hid-tmff.o CC net/ipv4/ip_input.o CC drivers/hid/hid-tivo.o CC lib/scatterlist.o CC drivers/hid/hid-topseed.o In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from net/ipv4/ip_input.c:118: net/ipv4/ip_input.c: In function 'ip_rcv': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct sk_buff *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:11:22: note: in expansion of macro 'KERN_SOH' 11 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */ | ^~~~~~~~ net/ipv4/ip_input.c:385:10: note: in expansion of macro 'KERN_WARNING' 385 | printk(KERN_WARNING "ip_rcv skb 0x%x type PACKET_OTHERHOST dev %s adjust to PACKET_HOST\n", skb, dev->name); | ^~~~~~~~~~~~ net/ipv4/ip_input.c:385:38: note: format string is defined here 385 | printk(KERN_WARNING "ip_rcv skb 0x%x type PACKET_OTHERHOST dev %s adjust to PACKET_HOST\n", skb, dev->name); | ~^ | | | unsigned int CC drivers/hid/hid-twinhan.o CC drivers/hid/hid-uclogic.o CC lib/gcd.o CC net/ipv4/ip_fragment.o CC lib/lcm.o CC drivers/hid/hid-zpff.o CC lib/list_sort.o CC drivers/hid/hid-zydacron.o CC lib/uuid.o CC drivers/hid/hid-waltop.o CC lib/flex_array.o LD drivers/hid/hid-wiimote.o CC drivers/hid/usbhid/hid-core.o CC net/ipv4/ip_forward.o CC lib/iovec.o CC lib/bsearch.o CC lib/find_last_bit.o CC lib/find_next_bit.o net/ipv4/ip_forward.c:48:13: warning: 'ip_exceeds_mtu' defined but not used [-Wunused-function] 48 | static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) | ^~~~~~~~~~~~~~ net/ipv4/ip_forward.c:42:13: warning: 'ip_may_fragment' defined but not used [-Wunused-function] 42 | static bool ip_may_fragment(const struct sk_buff *skb) | ^~~~~~~~~~~~~~~ CC lib/llist.o CC net/ipv4/ip_options.o CC lib/memweight.o CC lib/kfifo.o CC drivers/hid/usbhid/hid-quirks.o LD drivers/hid/usbhid/usbhid.o LD drivers/hid/usbhid/built-in.o LD drivers/hid/hid.o CC net/ipv4/ip_output.o LD drivers/hid/built-in.o LD drivers/hsi/clients/built-in.o LD drivers/hsi/built-in.o CC drivers/hwspinlock/hwspinlock_core.o CC lib/string_helpers.o CC lib/kstrtox.o CC drivers/hwspinlock/sprd_hwspinlock.o CC lib/pci_iomap.o In file included from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/hwspinlock/sprd_hwspinlock.c:242:22: warning: 'sprd_hwspinlock_addr' defined but not used [-Wunused-function] 242 | static unsigned long sprd_hwspinlock_addr(unsigned int lock_id) | ^~~~~~~~~~~~~~~~~~~~ In file included from drivers/hwspinlock/sprd_hwspinlock.c:35: include/soc/sprd/arch_lock.h:173:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 173 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:160:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 160 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC lib/iomap_copy.o LD drivers/hwspinlock/built-in.o CC drivers/i2c/i2c-boardinfo.o CC lib/devres.o CC drivers/i2c/i2c-core.o CC lib/hweight.o CC net/ipv4/ip_sockglue.o CC lib/bitrev.o CC lib/crc-ccitt.o CC lib/crc16.o HOSTCC lib/gen_crc32table CC lib/libcrc32c.o CC drivers/i2c/i2c-dev.o CC net/ipv4/inet_hashtables.o CC lib/genalloc.o CC drivers/i2c/algos/i2c-algo-bit.o CC lib/lzo/lzo1x_compress.o CC net/ipv4/inet_timewait_sock.o CC lib/lzo/lzo1x_decompress_safe.o LD drivers/i2c/algos/built-in.o CC drivers/i2c/busses/i2c-gpio.o LD lib/lzo/lzo_compress.o LD lib/lzo/lzo_decompress.o LD lib/lzo/built-in.o CC lib/reed_solomon/reed_solomon.o CC drivers/i2c/busses/i2c-sprd.o LD lib/reed_solomon/built-in.o CC lib/zlib_deflate/deflate.o In file included from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/ipv4/inet_connection_sock.o CC lib/zlib_deflate/deftree.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | LD drivers/i2c/busses/built-in.o LD drivers/i2c/muxes/built-in.o LD drivers/i2c/built-in.o CC lib/zlib_deflate/deflate_syms.o LD drivers/idle/built-in.o CC drivers/iio/industrialio-core.o LD lib/zlib_deflate/zlib_deflate.o LD lib/zlib_deflate/built-in.o CC lib/zlib_inflate/inffast.o CC lib/zlib_inflate/inflate.o CC net/ipv4/tcp.o CC lib/zlib_inflate/infutil.o CC drivers/iio/industrialio-event.o CC lib/zlib_inflate/inftrees.o CC lib/zlib_inflate/inflate_syms.o LD lib/zlib_inflate/zlib_inflate.o LD lib/zlib_inflate/built-in.o CC lib/textsearch.o CC drivers/iio/inkern.o CC lib/ts_kmp.o CC lib/ts_bm.o CC drivers/iio/industrialio-buffer.o CC lib/ts_fsm.o CC lib/percpu_counter.o CC drivers/iio/industrialio-trigger.o CC lib/audit.o CC net/ipv4/tcp_input.o CC lib/syscall.o CC drivers/iio/kfifo_buf.o CC lib/nlattr.o LD drivers/iio/accel/built-in.o LD drivers/iio/adc/built-in.o LD drivers/iio/amplifiers/built-in.o LD drivers/iio/common/hid-sensors/built-in.o LD drivers/iio/common/st_sensors/built-in.o LD drivers/iio/common/built-in.o LD drivers/iio/dac/built-in.o LD drivers/iio/frequency/built-in.o LD drivers/iio/gyro/built-in.o LD drivers/iio/imu/inv_mpu/built-in.o LD drivers/iio/imu/built-in.o LD drivers/iio/inv_test/built-in.o LD drivers/iio/light/built-in.o LD drivers/iio/magnetometer/inv_compass/built-in.o LD drivers/iio/magnetometer/built-in.o LD drivers/iio/industrialio.o LD drivers/iio/built-in.o CC drivers/input/input.o In file included from drivers/input/input.c:36: drivers/input/input.c: In function 'input_booster_touch_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:434:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 434 | DECLARE_TIMEOUT_FUNC(touch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:434:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 434 | DECLARE_TIMEOUT_FUNC(touch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:434:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 434 | DECLARE_TIMEOUT_FUNC(touch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_multitouch_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:435:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 435 | DECLARE_TIMEOUT_FUNC(multitouch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:435:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 435 | DECLARE_TIMEOUT_FUNC(multitouch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:435:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 435 | DECLARE_TIMEOUT_FUNC(multitouch); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_key_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:436:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 436 | DECLARE_TIMEOUT_FUNC(key); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:436:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 436 | DECLARE_TIMEOUT_FUNC(key); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:436:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 436 | DECLARE_TIMEOUT_FUNC(key); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_touchkey_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:437:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 437 | DECLARE_TIMEOUT_FUNC(touchkey); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:437:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 437 | DECLARE_TIMEOUT_FUNC(touchkey); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:437:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 437 | DECLARE_TIMEOUT_FUNC(touchkey); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_keyboard_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:438:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 438 | DECLARE_TIMEOUT_FUNC(keyboard); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:438:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 438 | DECLARE_TIMEOUT_FUNC(keyboard); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:438:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 438 | DECLARE_TIMEOUT_FUNC(keyboard); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_mouse_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:439:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 439 | DECLARE_TIMEOUT_FUNC(mouse); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:439:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 439 | DECLARE_TIMEOUT_FUNC(mouse); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:439:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 439 | DECLARE_TIMEOUT_FUNC(mouse); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_mouse_wheel_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:440:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 440 | DECLARE_TIMEOUT_FUNC(mouse_wheel); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:440:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 440 | DECLARE_TIMEOUT_FUNC(mouse_wheel); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:440:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 440 | DECLARE_TIMEOUT_FUNC(mouse_wheel); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_pen_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:441:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 441 | DECLARE_TIMEOUT_FUNC(pen); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:441:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 441 | DECLARE_TIMEOUT_FUNC(pen); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:441:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 441 | DECLARE_TIMEOUT_FUNC(pen); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_hover_timeout_work_func': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:442:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 442 | DECLARE_TIMEOUT_FUNC(hover); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:352:4: note: in expansion of macro 'SET_BOOSTER' 352 | SET_BOOSTER; \ | ^~~~~~~~~~~ drivers/input/input.c:442:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 442 | DECLARE_TIMEOUT_FUNC(hover); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int include/linux/input/input.h:222:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:222:12: note: in definition of macro 'remove_frequency' 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:363:3: note: in expansion of macro 'REMOVE_BOOSTER' 363 | REMOVE_BOOSTER; \ | ^~~~~~~~~~~~~~ drivers/input/input.c:442:1: note: in expansion of macro 'DECLARE_TIMEOUT_FUNC' 442 | DECLARE_TIMEOUT_FUNC(hover); | ^~~~~~~~~~~~~~~~~~~~ include/linux/input/input.h:222:98: note: format string is defined here 222 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in remove_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_idle_state': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/input.c:470:3: note: in expansion of macro 'SET_BOOSTER' 470 | SET_BOOSTER; | ^~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/input.c:470:3: note: in expansion of macro 'SET_BOOSTER' 470 | SET_BOOSTER; | ^~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_press_state': include/linux/input/input.h:210:12: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct t_input_booster *' [-Wformat=] 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | | | struct t_input_booster * include/linux/input/input.h:210:12: note: in definition of macro 'set_frequency' 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/input.c:492:6: note: in expansion of macro 'SET_BOOSTER' 492 | SET_BOOSTER; | ^~~~~~~~~~~ include/linux/input/input.h:210:94: note: format string is defined here 210 | pr_debug("[Input Booster2] %s this before cpufreq_limit_put in set_frequency mecro : %d\n", glGage, _this); \ | ~^ | | | int include/linux/input/input.h:214:11: warning: format '%d' expects argument of type 'int', but argument 4 has type 'struct cpufreq_limit_handle *' [-Wformat=] 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~ | | | struct cpufreq_limit_handle * include/linux/input/input.h:214:11: note: in definition of macro 'set_frequency' 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/input.c:492:6: note: in expansion of macro 'SET_BOOSTER' 492 | SET_BOOSTER; | ^~~~~~~~~~~ include/linux/input/input.h:214:72: note: format string is defined here 214 | pr_debug("[Input Booster2] %s set_frequency : %d , min_handle : %d\n", glGage, value, _this->cpu_min_handle); \ | ~^ | | | int drivers/input/input.c: In function 'input_booster_init': include/linux/input/input.h:262:75: warning: passing argument 4 of 'of_property_read_u32_index' from incompatible pointer type [-Wincompatible-pointer-types] 262 | err |= of_property_read_u32_index(cnp, "input_booster,core_num_lock", i, &dt_infor->param_tables[i].core_num_lock); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u8 * {aka unsigned char *} drivers/input/input.c:741:5: note: in expansion of macro 'DTSI_TO' 741 | DTSI_TO; | ^~~~~~~ In file included from include/linux/input/input.h:6, from drivers/input/input.c:36: include/linux/of.h:298:28: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'u8 *' {aka 'unsigned char *'} 298 | u32 index, u32 *out_value); | ~~~~~^~~~~~~~~ CC lib/cpu_rmap.o CC lib/dynamic_queue_limits.o CC lib/strncpy_from_user.o CC lib/strnlen_user.o CC lib/argv_split.o CC lib/bug.o CC lib/cmdline.o CC lib/cpumask.o CC net/ipv4/tcp_output.o CC lib/ctype.o CC lib/dec_and_lock.o CC lib/decompress.o CC lib/decompress_inflate.o CC drivers/input/input-compat.o CC lib/dump_stack.o CC drivers/input/input-mt.o CC lib/earlycpio.o CC lib/extable.o CC drivers/input/ff-core.o CC lib/fdt.o CC lib/fdt_empty_tree.o CC lib/fdt_ro.o CC drivers/input/ff-memless.o CC lib/fdt_rw.o CC lib/fdt_strerror.o CC lib/fdt_sw.o CC drivers/input/matrix-keymap.o CC lib/fdt_wip.o CC lib/flex_proportions.o CC net/ipv4/tcp_timer.o CC lib/idr.o CC drivers/input/evdev.o CC lib/int_sqrt.o CC lib/ioremap.o CC drivers/input/keyboard/sc_keypad.o CC net/ipv4/tcp_ipv4.o CC lib/irq_regs.o In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/linux/kobject.h:21, from include/linux/slub_def.h:13, from include/linux/slab.h:282, from drivers/input/keyboard/sc_keypad.c:16: drivers/input/keyboard/sc_keypad.c:208:59: warning: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, const char *, size_t)' {aka 'int (*)(struct device *, struct device_attribute *, const char *, unsigned int)'} from incompatible pointer type 'ssize_t (*)(struct device *, struct device_attribute *, char *, size_t)' {aka 'int (*)(struct device *, struct device_attribute *, char *, unsigned int)'} [-Wincompatible-pointer-types] 208 | static DEVICE_ATTR(reset_enabled, 0664,reset_enable_show, reset_enable_store); | ^~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:75:11: note: in definition of macro '__ATTR' 75 | .store = _store, \ | ^~~~~~ drivers/input/keyboard/sc_keypad.c:208:8: note: in expansion of macro 'DEVICE_ATTR' 208 | static DEVICE_ATTR(reset_enabled, 0664,reset_enable_show, reset_enable_store); | ^~~~~~~~~~~ drivers/input/keyboard/sc_keypad.c:208:59: note: (near initialization for 'dev_attr_reset_enabled.store') 208 | static DEVICE_ATTR(reset_enabled, 0664,reset_enable_show, reset_enable_store); | ^~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:75:11: note: in definition of macro '__ATTR' 75 | .store = _store, \ | ^~~~~~ drivers/input/keyboard/sc_keypad.c:208:8: note: in expansion of macro 'DEVICE_ATTR' 208 | static DEVICE_ATTR(reset_enabled, 0664,reset_enable_show, reset_enable_store); | ^~~~~~~~~~~ drivers/input/keyboard/sc_keypad.c: In function 'reset_enable_show': drivers/input/keyboard/sc_keypad.c:214:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 214 | int reg_val; | ^~~ drivers/input/keyboard/sc_keypad.c: In function 'key_show': drivers/input/keyboard/sc_keypad.c:113:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 113 | #define KPD_KEY_STATUS (KPD_REG_BASE + 0x2C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:263:29: note: in expansion of macro 'KPD_KEY_STATUS' 263 | keys_pressed = __raw_readl(KPD_KEY_STATUS); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_isr': drivers/input/keyboard/sc_keypad.c:82:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 82 | #define KPD_INT_MASK_STATUS (KPD_REG_BASE + 0x0C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:331:41: note: in expansion of macro 'KPD_INT_MASK_STATUS' 331 | unsigned long int_status = __raw_readl(KPD_INT_MASK_STATUS); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:113:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 113 | #define KPD_KEY_STATUS (KPD_REG_BASE + 0x2C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:332:41: note: in expansion of macro 'KPD_KEY_STATUS' 332 | unsigned long key_status = __raw_readl(KPD_KEY_STATUS); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:99:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 99 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:338:22: note: in expansion of macro 'KPD_INT_CLR' 338 | value = __raw_readl(KPD_INT_CLR); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:99:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 99 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:340:22: note: in expansion of macro 'KPD_INT_CLR' 340 | __raw_writel(value, KPD_INT_CLR); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_parse_dt': drivers/input/keyboard/sc_keypad.c:652:9: warning: returning 'struct sci_keypad_platform_data *' from a function with incompatible return type 'struct sci_keypad_platdata *' [-Wincompatible-pointer-types] 652 | return pdata; | ^~~~~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_probe': drivers/input/keyboard/sc_keypad.c:745:9: warning: assignment to 'struct sci_keypad_platform_data *' from incompatible pointer type 'struct sci_keypad_platdata *' [-Wincompatible-pointer-types] 745 | pdata = sci_keypad_parse_dt(&pdev->dev); | ^ drivers/input/keyboard/sc_keypad.c:99:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 99 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:774:28: note: in expansion of macro 'KPD_INT_CLR' 774 | __raw_writel(KPD_INT_ALL, KPD_INT_CLR); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:100:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 100 | #define KPD_POLARITY (KPD_REG_BASE + 0x18) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:775:52: note: in expansion of macro 'KPD_POLARITY' 775 | __raw_writel(CFG_ROW_POLARITY | CFG_COL_POLARITY, KPD_POLARITY); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:111:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 111 | #define KPD_CLK_DIV_CNT (KPD_REG_BASE + 0x28) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:776:18: note: in expansion of macro 'KPD_CLK_DIV_CNT' 776 | __raw_writel(1, KPD_CLK_DIV_CNT); | ^~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:107:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 107 | #define KPD_LONG_KEY_CNT (KPD_REG_BASE + 0x20) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:777:20: note: in expansion of macro 'KPD_LONG_KEY_CNT' 777 | __raw_writel(0xc, KPD_LONG_KEY_CNT); | ^~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:106:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 106 | #define KPD_DEBOUNCE_CNT (KPD_REG_BASE + 0x1C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:778:20: note: in expansion of macro 'KPD_DEBOUNCE_CNT' 778 | __raw_writel(0x5, KPD_DEBOUNCE_CNT); | ^~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:80:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 80 | #define KPD_INT_EN (KPD_REG_BASE + 0x04) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:830:22: note: in expansion of macro 'KPD_INT_EN' 830 | __raw_writel(value, KPD_INT_EN); | ^~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:109:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 109 | #define KPD_SLEEP_CNT (KPD_REG_BASE + 0x24) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:832:22: note: in expansion of macro 'KPD_SLEEP_CNT' 832 | __raw_writel(value, KPD_SLEEP_CNT); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:67:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 67 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:859:22: note: in expansion of macro 'KPD_CTRL' 859 | __raw_writel(value, KPD_CTRL); | ^~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:742:22: warning: unused variable 'np' [-Wunused-variable] 742 | struct device_node *np = pdev->dev.of_node; | ^~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_remove': drivers/input/keyboard/sc_keypad.c:99:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 99 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:922:28: note: in expansion of macro 'KPD_INT_CLR' 922 | __raw_writel(KPD_INT_ALL, KPD_INT_CLR); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:67:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 67 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:923:22: note: in expansion of macro 'KPD_CTRL' 923 | value = __raw_readl(KPD_CTRL); | ^~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:67:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 67 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:925:22: note: in expansion of macro 'KPD_CTRL' 925 | __raw_writel(value, KPD_CTRL); | ^~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_resume': drivers/input/keyboard/sc_keypad.c:99:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 99 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:956:28: note: in expansion of macro 'KPD_INT_CLR' 956 | __raw_writel(KPD_INT_ALL, KPD_INT_CLR); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:100:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 100 | #define KPD_POLARITY (KPD_REG_BASE + 0x18) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:957:52: note: in expansion of macro 'KPD_POLARITY' 957 | __raw_writel(CFG_ROW_POLARITY | CFG_COL_POLARITY, KPD_POLARITY); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:111:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 111 | #define KPD_CLK_DIV_CNT (KPD_REG_BASE + 0x28) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:958:18: note: in expansion of macro 'KPD_CLK_DIV_CNT' 958 | __raw_writel(1, KPD_CLK_DIV_CNT); | ^~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:107:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 107 | #define KPD_LONG_KEY_CNT (KPD_REG_BASE + 0x20) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:959:20: note: in expansion of macro 'KPD_LONG_KEY_CNT' 959 | __raw_writel(0xc, KPD_LONG_KEY_CNT); | ^~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:106:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 106 | #define KPD_DEBOUNCE_CNT (KPD_REG_BASE + 0x1C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:960:20: note: in expansion of macro 'KPD_DEBOUNCE_CNT' 960 | __raw_writel(0x5, KPD_DEBOUNCE_CNT); | ^~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:80:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 80 | #define KPD_INT_EN (KPD_REG_BASE + 0x04) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:965:22: note: in expansion of macro 'KPD_INT_EN' 965 | __raw_writel(value, KPD_INT_EN); | ^~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:109:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 109 | #define KPD_SLEEP_CNT (KPD_REG_BASE + 0x24) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:967:22: note: in expansion of macro 'KPD_SLEEP_CNT' 967 | __raw_writel(value, KPD_SLEEP_CNT); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:67:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 67 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:974:22: note: in expansion of macro 'KPD_CTRL' 974 | __raw_writel(value, KPD_CTRL); | ^~~~~~~~ In file included from include/linux/io.h:22, from drivers/input/keyboard/sc_keypad.c:15: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC lib/is_single_threaded.o CC lib/klist.o In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/keyboard/sc_keypad.c:46: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/input/keyboard/tc300k.o drivers/input/keyboard/tc300k.c: In function 'tc300k_suspend': drivers/input/keyboard/tc300k.c:2652:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 2652 | for (i = 0; i < data->num_key; i++) | ^~~ drivers/input/keyboard/tc300k.c:2654:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 2654 | input_sync(data->input_dev); | ^~~~~~~~~~ At top level: drivers/input/keyboard/tc300k.c:2773:32: warning: 'tc300k_pm_ops' defined but not used [-Wunused-const-variable=] 2773 | static const struct dev_pm_ops tc300k_pm_ops = { | ^~~~~~~~~~~~~ CC lib/kobject.o LD drivers/input/keyboard/built-in.o CC drivers/input/misc/gpio_event.o CC lib/kobject_uevent.o CC drivers/input/misc/gpio_matrix.o CC net/ipv4/tcp_minisocks.o CC lib/md5.o CC drivers/input/misc/gpio_input.o CC lib/plist.o CC lib/prio_heap.o CC drivers/input/misc/gpio_output.o CC lib/proportions.o CC lib/radix-tree.o CC drivers/input/misc/gpio_axis.o CC drivers/input/misc/uinput.o CC net/ipv4/tcp_cong.o CC lib/ratelimit.o CC lib/rbtree.o CC lib/reciprocal_div.o CC lib/rwsem-spinlock.o CC lib/sha1.o CC drivers/input/misc/headset_sprd_sc2723.o In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/input/misc/headset_sprd_sc2723.c:1338:20: warning: 'headset_detect_mic_irq_handler' defined but not used [-Wunused-function] 1338 | static irqreturn_t headset_detect_mic_irq_handler(int irq, void *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC lib/show_mem.o CC net/ipv4/tcp_metrics.o CC lib/string.o In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | LD drivers/input/misc/built-in.o CC drivers/input/touchscreen/ist30xxc/ist30xxc.o CC lib/timerqueue.o CC lib/vsprintf.o drivers/input/touchscreen/ist30xxc/ist30xxc.c:31:5: warning: "CONFIG_EXTCON_S2MM001B" is not defined, evaluates to 0 [-Wundef] 31 | #if CONFIG_EXTCON_S2MM001B | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:7, from drivers/input/touchscreen/ist30xxc/ist30xxc.c:17: drivers/input/touchscreen/ist30xxc/ist30xxc.c: In function 'debug_work_func': include/linux/stddef.h:8:14: warning: 'return' with a value, in function returning void [-Wreturn-type] 8 | #define NULL ((void *)0) | ^ drivers/input/touchscreen/ist30xxc/ist30xxc.c:1240:10: note: in expansion of macro 'NULL' 1240 | return NULL; | ^~~~ drivers/input/touchscreen/ist30xxc/ist30xxc.c:1226:13: note: declared here 1226 | static void debug_work_func(struct work_struct *work) | ^~~~~~~~~~~~~~~ drivers/input/touchscreen/ist30xxc/ist30xxc.c: In function 'ist30xx_probe': drivers/input/touchscreen/ist30xxc/ist30xxc.c:1386:22: warning: unused variable 'np' [-Wunused-variable] 1386 | struct device_node *np = client->dev.of_node; | ^~ drivers/input/touchscreen/ist30xxc/ist30xxc.c: At top level: drivers/input/touchscreen/ist30xxc/ist30xxc.c:1741:5: warning: "CONFIG_EXTCON_S2MM001B" is not defined, evaluates to 0 [-Wundef] 1741 | #if CONFIG_EXTCON_S2MM001B | ^~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/ist30xxc/ist30xxc.c:31:5: warning: "CONFIG_EXTCON_S2MM001B" is not defined, evaluates to 0 [-Wundef] 31 | #if CONFIG_EXTCON_S2MM001B | ^~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/ist30xxc/ist30xxc.c:1741:5: warning: "CONFIG_EXTCON_S2MM001B" is not defined, evaluates to 0 [-Wundef] 1741 | #if CONFIG_EXTCON_S2MM001B | ^~~~~~~~~~~~~~~~~~~~~~ CC drivers/input/touchscreen/ist30xxc/ist30xxc_misc.o CC net/ipv4/tcp_fastopen.o CC drivers/input/touchscreen/ist30xxc/ist30xxc_sys.o GEN lib/crc32table.h AR lib/lib.a CC lib/crc32.o CC net/ipv4/datagram.o drivers/input/touchscreen/ist30xxc/ist30xxc_sys.c: In function 'ist30xx_cmd_hold': drivers/input/touchscreen/ist30xxc/ist30xxc_sys.c:94:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 94 | int ret = ist30xx_write_cmd(client, | ^~~ CC drivers/input/touchscreen/ist30xxc/ist30xxc_update.o drivers/input/touchscreen/ist30xxc/ist30xxc_update.c:990:5: warning: "IST30XX_MULTIPLE_TSP" is not defined, evaluates to 0 [-Wundef] 990 | #if IST30XX_MULTIPLE_TSP | ^~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/ist30xxc/ist30xxc_update.c: In function 'ist30xx_auto_bin_update': drivers/input/touchscreen/ist30xxc/ist30xxc_update.c:1093:5: warning: "IST30XX_MULTIPLE_TSP" is not defined, evaluates to 0 [-Wundef] 1093 | #if IST30XX_MULTIPLE_TSP | ^~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/ist30xxc/ist30xxc_update.c: In function 'ist30xx_fw_version_show': drivers/input/touchscreen/ist30xxc/ist30xxc_update.c:1467:28: warning: argument to 'sizeof' in 'strncat' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 1467 | strncat(buf, msg, sizeof(msg)); | ^ LD lib/built-in.o CC drivers/input/touchscreen/ist30xxc/ist30xxc_tracking.o CC net/ipv4/raw.o CC net/ipv4/udp.o CC drivers/input/touchscreen/ist30xxc/ist30xxc_sec.o CC drivers/input/touchscreen/ist30xxc/ist30xxc_cmcs.o CC net/ipv4/udplite.o CC drivers/input/touchscreen/ist30xxc/ist30xxc_cmcs_jit.o CC net/ipv4/arp.o CC net/ipv4/icmp.o net/ipv4/arp.c:152:31: warning: 'arp_broken_ops' defined but not used [-Wunused-const-variable=] 152 | static const struct neigh_ops arp_broken_ops = { | ^~~~~~~~~~~~~~ LD drivers/input/touchscreen/ist30xxc/built-in.o LD drivers/input/touchscreen/built-in.o LD drivers/input/input-core.o LD drivers/input/built-in.o CC drivers/irqchip/irqchip.o CC drivers/irqchip/irq-gic.o CC drivers/irqchip/irq-gic-common.o CC net/ipv4/devinet.o CC net/ipv4/af_inet.o LD drivers/irqchip/built-in.o CC drivers/leds/led-core.o CC drivers/leds/led-class.o CC drivers/leds/leds-sm5701.o In file included from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/leds/leds-sm5701.c:13: drivers/leds/leds-sm5701.c: In function 'sm5701_movie_store': include/linux/kernel.h:797:48: warning: initialization of 'const struct work_struct *' from incompatible pointer type 'struct led_classdev *' [-Wincompatible-pointer-types] 797 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ^ drivers/leds/leds-sm5701.c:450:13: note: in expansion of macro 'container_of' 450 | container_of(led_cdev, struct SM5701_leds_data, work_movie); | ^~~~~~~~~~~~ include/linux/kernel.h:797:48: note: (near initialization for 'chip') 797 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ^ drivers/leds/leds-sm5701.c:450:13: note: in expansion of macro 'container_of' 450 | container_of(led_cdev, struct SM5701_leds_data, work_movie); | ^~~~~~~~~~~~ drivers/leds/leds-sm5701.c: In function 'sm5701_flash_store': include/linux/kernel.h:797:48: warning: initialization of 'const struct work_struct *' from incompatible pointer type 'struct led_classdev *' [-Wincompatible-pointer-types] 797 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ^ drivers/leds/leds-sm5701.c:508:13: note: in expansion of macro 'container_of' 508 | container_of(led_cdev, struct SM5701_leds_data, work_flash); | ^~~~~~~~~~~~ include/linux/kernel.h:797:48: note: (near initialization for 'chip') 797 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ^ drivers/leds/leds-sm5701.c:508:13: note: in expansion of macro 'container_of' 508 | container_of(led_cdev, struct SM5701_leds_data, work_flash); | ^~~~~~~~~~~~ CC net/ipv4/igmp.o CC net/ipv4/fib_frontend.o LD drivers/leds/built-in.o LD drivers/lguest/built-in.o LD drivers/macintosh/built-in.o CC drivers/md/dm.o LD drivers/media/common/b2c2/built-in.o LD drivers/media/common/saa7146/built-in.o LD drivers/media/common/siano/built-in.o LD drivers/media/common/built-in.o LD drivers/media/firewire/built-in.o CC net/ipv4/fib_semantics.o LD drivers/media/i2c/soc_camera/built-in.o LD drivers/media/i2c/built-in.o LD drivers/media/mmc/siano/built-in.o LD drivers/media/mmc/built-in.o LD drivers/media/parport/built-in.o LD drivers/media/pci/b2c2/built-in.o LD drivers/media/pci/ddbridge/built-in.o LD drivers/media/pci/dm1105/built-in.o LD drivers/media/pci/mantis/built-in.o LD drivers/media/pci/ngene/built-in.o LD drivers/media/pci/pluto2/built-in.o LD drivers/media/pci/pt1/built-in.o LD drivers/media/pci/saa7146/built-in.o LD drivers/media/pci/ttpci/built-in.o LD drivers/media/pci/built-in.o LD drivers/media/platform/davinci/built-in.o LD drivers/media/platform/built-in.o LD drivers/media/radio/built-in.o CC drivers/media/radio/sprd2331/fmdrv_main.o In file included from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/media/radio/sprd2331/fmdrv_main.c:47: drivers/media/radio/sprd2331/fmdrv_rds_parser.h:84:1: warning: no semicolon at end of struct or union 84 | } RDS_marlin_block; | ^ In file included from drivers/media/radio/sprd2331/fmdrv_main.c:42: drivers/media/radio/sprd2331/fmdrv_main.c: In function 'parse_at_fm_cmd': drivers/media/radio/sprd2331/fmdrv.h:32:20: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'void *' [-Wformat=] 32 | #define FM_HEADER "FM_DRV: " | ^~~~~~~~~~ drivers/media/radio/sprd2331/fmdrv.h:35:38: note: in expansion of macro 'FM_HEADER' 35 | #define fm_pr(format, arg...) printk(FM_HEADER "%s-%d -- "format"\n", \ | ^~~~~~~~~ drivers/media/radio/sprd2331/fmdrv_main.c:164:3: note: in expansion of macro 'fm_pr' 164 | fm_pr("seek fmdev->read_buf: %s error!", fmdev->read_buf); | ^~~~~ drivers/media/radio/sprd2331/fmdrv_main.c:144:6: warning: unused variable 'ret' [-Wunused-variable] 144 | int ret = 0; | ^~~ drivers/media/radio/sprd2331/fmdrv_main.c: In function 'parse_at_fm_num': drivers/media/radio/sprd2331/fmdrv_main.c:191:6: warning: unused variable 'ret' [-Wunused-variable] 191 | int ret = 0; | ^~~ In file included from drivers/media/radio/sprd2331/fmdrv_main.c:42: drivers/media/radio/sprd2331/fmdrv_main.c: In function 'fm_sdio_read': drivers/media/radio/sprd2331/fmdrv.h:32:20: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'void *' [-Wformat=] 32 | #define FM_HEADER "FM_DRV: " | ^~~~~~~~~~ drivers/media/radio/sprd2331/fmdrv.h:35:38: note: in expansion of macro 'FM_HEADER' 35 | #define fm_pr(format, arg...) printk(FM_HEADER "%s-%d -- "format"\n", \ | ^~~~~~~~~ drivers/media/radio/sprd2331/fmdrv_main.c:223:2: note: in expansion of macro 'fm_pr' 223 | fm_pr("* fmdev->read_buf: %s *\n", fmdev->read_buf); | ^~~~~ drivers/media/radio/sprd2331/fmdrv_main.c: In function 'fm_seek': drivers/media/radio/sprd2331/fmdrv_main.c:371:24: warning: passing argument 1 of 'parse_at_fm_cmd' from incompatible pointer type [-Wincompatible-pointer-types] 371 | ret = parse_at_fm_cmd(&parm.freq); | ^~~~~~~~~~ | | | uint16_t * {aka short unsigned int *} drivers/media/radio/sprd2331/fmdrv_main.c:135:29: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'uint16_t *' {aka 'short unsigned int *'} 135 | int parse_at_fm_cmd(uint32 *freq_found) | ~~~~~~~~^~~~~~~~~~ CC drivers/md/dm-table.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/radio/sprd2331/../../../misc/sdiodev/sdio_dev.h:41, from drivers/media/radio/sprd2331/fmdrv_main.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/ipv4/fib_trie.o CC drivers/media/radio/sprd2331/fmdrv_ops.o drivers/media/radio/sprd2331/fmdrv_ops.c: In function 'fm_ioctl': drivers/media/radio/sprd2331/fmdrv_ops.c:163:29: warning: passing argument 2 of 'copy_from_user' makes pointer from integer without a cast [-Wint-conversion] 163 | if (copy_from_user(&iarg, arg, sizeof(iarg))) { | ^~~ | | | long unsigned int In file included from include/linux/uaccess.h:5, from drivers/media/radio/sprd2331/fmdrv_ops.c:28: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/uaccess.h:433:86: note: expected 'const void *' but argument is of type 'long unsigned int' 433 | static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) | ~~~~~~~~~~~~~~~~~~~^~~~ drivers/media/radio/sprd2331/fmdrv_ops.c:168:20: warning: passing argument 1 of 'copy_to_user' makes pointer from integer without a cast [-Wint-conversion] 168 | if (copy_to_user(arg, &iarg, sizeof(iarg))) | ^~~ | | | long unsigned int In file included from include/linux/uaccess.h:5, from drivers/media/radio/sprd2331/fmdrv_ops.c:28: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/uaccess.h:442:68: note: expected 'void *' but argument is of type 'long unsigned int' 442 | static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) | ~~~~~~~~~~~~~^~ CC drivers/media/radio/sprd2331/fmdrv_rds_parser.o In file included from drivers/media/radio/sprd2331/fmdrv_rds_parser.c:22: drivers/media/radio/sprd2331/fmdrv_rds_parser.h:84:1: warning: no semicolon at end of struct or union 84 | } RDS_marlin_block; | ^ drivers/media/radio/sprd2331/fmdrv_rds_parser.c: In function 'rds_get_ptyn': drivers/media/radio/sprd2331/fmdrv_rds_parser.c:104:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 104 | memcpy((void *)&ptyn[0], (void *)grp->block[2].word, 2); | ^ drivers/media/radio/sprd2331/fmdrv_rds_parser.c:105:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 105 | memcpy((void *)&ptyn[2], (void *)grp->block[3].word, 2); | ^ drivers/media/radio/sprd2331/fmdrv_rds_parser.c: In function 'rfd_get_rtplus': drivers/media/radio/sprd2331/fmdrv_rds_parser.c:149:44: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 149 | s_marker = ((grp->block[3].data[0] >> 5) + (grp->block[3].data[0] & 0x07) << 3); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/radio/sprd2331/fmdrv_rds_parser.c: In function 'rds_get_tdc': drivers/media/radio/sprd2331/fmdrv_rds_parser.c:178:32: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion] 178 | memcpy(tdc_seg, grp->block[2].word, 2); | ~~~~~~~~~~~~~^~~~~ | | | short unsigned int In file included from include/linux/string.h:17, from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/radio/sprd2331/fmdrv_rds_parser.c:23: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/string.h:16:30: note: expected 'const void *' but argument is of type 'short unsigned int' 16 | extern void * memcpy(void *, const void *, __kernel_size_t); | ^~~~~~~~~~~~ drivers/media/radio/sprd2331/fmdrv_rds_parser.c:182:38: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Wint-conversion] 182 | memcpy(tdc_seg + len, grp->block[3].word, 2); | ~~~~~~~~~~~~~^~~~~ | | | short unsigned int In file included from include/linux/string.h:17, from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/radio/sprd2331/fmdrv_rds_parser.c:23: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/string.h:16:30: note: expected 'const void *' but argument is of type 'short unsigned int' 16 | extern void * memcpy(void *, const void *, __kernel_size_t); | ^~~~~~~~~~~~ CC drivers/md/dm-target.o LD drivers/media/radio/sprd2331/marlin_fm.o LD drivers/media/radio/sprd2331/built-in.o LD drivers/media/rc/keymaps/built-in.o LD drivers/media/rc/built-in.o CC drivers/media/sprd_dcam/tshark2/dcam_drv.o In file included from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:24: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:24: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:24: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:24: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:24: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function 'dcam_path0_cfg': drivers/media/sprd_dcam/tshark2/dcam_drv.c:1922:50: warning: unused variable 'i' [-Wunused-variable] 1922 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function 'dcam_path1_cfg': drivers/media/sprd_dcam/tshark2/dcam_drv.c:2213:50: warning: unused variable 'i' [-Wunused-variable] 2213 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c:2283:11: warning: too many arguments for format [-Wformat-extra-args] 2283 | printk("zcf dcam_path1_cfg rot:\n",path->rot_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function 'dcam_path2_cfg': drivers/media/sprd_dcam/tshark2/dcam_drv.c:2471:50: warning: unused variable 'i' [-Wunused-variable] 2471 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c:2544:11: warning: too many arguments for format [-Wformat-extra-args] 2544 | printk("zcf dcam_path2_cfg rot:\n",path->rot_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_buf_queue_write': drivers/media/sprd_dcam/tshark2/dcam_drv.c:3179:58: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 3179 | printk("DCAM: warning, queue is full, cannot write 0x%lx \n", frame->yaddr); | ~~^ ~~~~~~~~~~~~ | | | | | uint32_t {aka unsigned int} | long unsigned int | %x drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_frm_clear': drivers/media/sprd_dcam/tshark2/dcam_drv.c:3278:26: warning: unused variable 'i' [-Wunused-variable] 3278 | uint32_t i = 0; | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_path_set_next_frm': drivers/media/sprd_dcam/tshark2/dcam_drv.c:3395:26: warning: unused variable 'flag' [-Wunused-variable] 3395 | uint32_t flag = 0; | ^~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c:3391:27: warning: unused variable 'orig_frame' [-Wunused-variable] 3391 | struct dcam_frame *orig_frame = NULL; | ^~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_path0_sof': drivers/media/sprd_dcam/tshark2/dcam_drv.c:4309:27: warning: unused variable 'sc_coeff' [-Wunused-variable] 4309 | struct dcam_sc_coeff *sc_coeff; | ^~~~~~~~ In file included from include/linux/kernel.h:7, from drivers/media/sprd_dcam/tshark2/dcam_drv.c:13: drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_get_valid_sc_coeff': include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'int32_t' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c:4776:10: note: in expansion of macro 'NULL' 4776 | return NULL; | ^~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_push_sc_buf': include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'int32_t' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c:4805:10: note: in expansion of macro 'NULL' 4805 | return NULL; | ^~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: In function '_dcam_pop_sc_buf': include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'int32_t' {aka 'int'} makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^ drivers/media/sprd_dcam/tshark2/dcam_drv.c:4840:10: note: in expansion of macro 'NULL' 4840 | return NULL; | ^~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c: At top level: drivers/media/sprd_dcam/tshark2/dcam_drv.c:298:19: warning: '_dcam_sensor_sof' declared 'static' but never defined [-Wunused-function] 298 | LOCAL void _dcam_sensor_sof(void); | ^~~~~~~~~~~~~~~~ CC drivers/md/dm-linear.o drivers/media/sprd_dcam/tshark2/dcam_drv.c:3300:12: warning: '_dcam_frm_pop' defined but not used [-Wunused-function] 3300 | LOCAL void _dcam_frm_pop(enum dcam_path_index path_index) | ^~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.c:268:32: warning: 's_need_312m_clk_flag' defined but not used [-Wunused-variable] 268 | LOCAL uint32_t s_need_312m_clk_flag = 0; | ^~~~~~~~~~~~~~~~~~~~ CC net/ipv4/inet_fragment.o CC drivers/md/dm-stripe.o CC net/ipv4/ping.o CC drivers/md/dm-ioctl.o CC net/ipv4/ip_tunnel.o CC drivers/md/dm-io.o CC drivers/media/sprd_dcam/common/dcam_img.o net/ipv4/ip_tunnel.c: In function '__ip_tunnel_create': net/ipv4/ip_tunnel.c:296:3: warning: 'strncat' specified bound 2 equals source length [-Wstringop-overflow=] 296 | strncat(name, "%d", 2); | ^~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:63:5: warning: "CONFIG_SC_FPGA" is not defined, evaluates to 0 [-Wundef] 63 | #if CONFIG_SC_FPGA | ^~~~~~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_tx_done': drivers/media/sprd_dcam/common/dcam_img.c:1248:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1248 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1247:27: warning: unused variable 'fmr_index' [-Wunused-variable] 1247 | uint32_t fmr_index; | ^~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_tx_error': drivers/media/sprd_dcam/common/dcam_img.c:1321:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1321 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1319:28: warning: unused variable 'path' [-Wunused-variable] 1319 | struct dcam_path_spec *path; | ^~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_no_mem': drivers/media/sprd_dcam/common/dcam_img.c:1367:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1367 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1365:28: warning: unused variable 'path' [-Wunused-variable] 1365 | struct dcam_path_spec *path; | ^~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_path0_cfg': drivers/media/sprd_dcam/common/dcam_img.c:1479:34: warning: unused variable 'i' [-Wunused-variable] 1479 | uint32_t param, i; | ^ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_path_cfg': drivers/media/sprd_dcam/common/dcam_img.c:1532:34: warning: unused variable 'i' [-Wunused-variable] 1532 | uint32_t param, i; | ^ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_write': drivers/media/sprd_dcam/common/dcam_img.c:1684:32: warning: unused variable 'lock_flag' [-Wunused-variable] 1684 | unsigned long lock_flag; | ^~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_enable': drivers/media/sprd_dcam/common/dcam_img.c:1769:31: warning: unused variable 'cur_node' [-Wunused-variable] 1769 | struct dcam_node *cur_node; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_zoom_thread_loop': drivers/media/sprd_dcam/common/dcam_img.c:1978:27: warning: unused variable 'zoom_rect' [-Wunused-variable] 1978 | struct dcam_rect zoom_rect = {0}; | ^~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1977:27: warning: unused variable 'ret' [-Wunused-variable] 1977 | int ret = DCAM_RTN_SUCCESS; | ^~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_k_ioctl': drivers/media/sprd_dcam/common/dcam_img.c:3366:36: warning: passing argument 2 of 'sprd_flash_cfg' makes pointer from integer without a cast [-Wint-conversion] 3366 | ret = sprd_flash_cfg(&cfg_param, arg); | ^~~ | | | long unsigned int In file included from drivers/media/sprd_dcam/common/dcam_img.c:47: drivers/media/sprd_dcam/tshark2/../flash/flash.h:22:39: note: expected 'void *' but argument is of type 'long unsigned int' 22 | int sprd_flash_cfg(void *param, void *arg); | ~~~~~~^~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media/sprd_dcam/common/dcam_img.c:13: drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_read': include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.h:26:33: note: in expansion of macro 'pr_debug' 26 | #define DCAM_TRACE pr_debug | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3392:2: note: in expansion of macro 'DCAM_TRACE' 3392 | DCAM_TRACE("SPRD_IMG: sprd_img_read %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3398:39: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3398 | printk("sprd_img_read: error, cnt %ld read_op %ld \n", cnt, sizeof(struct sprd_img_read_op)); | ~~^ ~~~ | | | | long int size_t {aka unsigned int} | %d drivers/media/sprd_dcam/common/dcam_img.c:3398:51: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 3398 | printk("sprd_img_read: error, cnt %ld read_op %ld \n", cnt, sizeof(struct sprd_img_read_op)); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int unsigned int | %d In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media/sprd_dcam/common/dcam_img.c:13: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct dcam_node' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.h:26:33: note: in expansion of macro 'pr_debug' 26 | #define DCAM_TRACE pr_debug | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3457:4: note: in expansion of macro 'DCAM_TRACE' 3457 | DCAM_TRACE("SPRD_IMG: node, 0x%x %d %d \n", node, node.index, path->frm_id_base); | ^~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_write': include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/media/sprd_dcam/tshark2/dcam_drv.h:26:33: note: in expansion of macro 'pr_debug' 26 | #define DCAM_TRACE pr_debug | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3523:2: note: in expansion of macro 'DCAM_TRACE' 3523 | DCAM_TRACE("SPRD_IMG: sprd_img_write %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3529:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3529 | printk("sprd_img_write: error, cnt %ld read_op %ld \n", cnt, sizeof(struct sprd_img_write_op)); | ~~^ ~~~ | | | | long int size_t {aka unsigned int} | %d drivers/media/sprd_dcam/common/dcam_img.c:3529:52: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 3529 | printk("sprd_img_write: error, cnt %ld read_op %ld \n", cnt, sizeof(struct sprd_img_write_op)); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int unsigned int | %d drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_dcam_registers_dump': drivers/media/sprd_dcam/common/dcam_img.c:3606:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3606 | uint32_t* reg_buf = (uint32_t*)buf; | ^~~~~~~~ CC drivers/md/dm-kcopyd.o CC net/ipv4/sysctl_net_ipv4.o CC drivers/md/dm-sysfs.o CC drivers/media/sprd_dcam/common/parse_hwinfo.o CC net/ipv4/sysfs_net_ipv4.o In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/md/dm-builtin.o drivers/media/sprd_dcam/common/parse_hwinfo.c: In function 'parse_baseaddress': drivers/media/sprd_dcam/common/parse_hwinfo.c:69:16: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 69 | dcam_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:72:15: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 72 | isp_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:76:15: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 76 | csi_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c: In function 'get_regulator_name': drivers/media/sprd_dcam/common/parse_hwinfo.c:332:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 332 | *name = ldostr; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:342:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 342 | *name = ldostr; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:352:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 352 | *name = ldostr; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:362:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 362 | *name = ldostr; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:373:12: warning: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types] 373 | if(strcmp(name, "vddcammot")==0) { | ^~~~ | | | char ** In file included from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/sprd_dcam/common/parse_hwinfo.c:13: include/linux/string.h:38:19: note: expected 'const char *' but argument is of type 'char **' 38 | extern int strcmp(const char *,const char *); | ^~~~~~~~~~~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:375:19: warning: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types] 375 | } else if(strcmp(name, "vddcama")==0){ | ^~~~ | | | char ** In file included from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/sprd_dcam/common/parse_hwinfo.c:13: include/linux/string.h:38:19: note: expected 'const char *' but argument is of type 'char **' 38 | extern int strcmp(const char *,const char *); | ^~~~~~~~~~~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:377:19: warning: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types] 377 | } else if(strcmp(name, "vddcamd")==0){ | ^~~~ | | | char ** In file included from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/sprd_dcam/common/parse_hwinfo.c:13: include/linux/string.h:38:19: note: expected 'const char *' but argument is of type 'char **' 38 | extern int strcmp(const char *,const char *); | ^~~~~~~~~~~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:379:19: warning: passing argument 1 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types] 379 | } else if(strcmp(name, "vddcamio")==0){ | ^~~~ | | | char ** In file included from include/linux/dynamic_debug.h:111, from include/linux/kernel.h:14, from drivers/media/sprd_dcam/common/parse_hwinfo.c:13: include/linux/string.h:38:19: note: expected 'const char *' but argument is of type 'char **' 38 | extern int strcmp(const char *,const char *); | ^~~~~~~~~~~~ CC drivers/media/sprd_dcam/common/gen_scale_coef.o CC net/ipv4/proc.o CC drivers/md/dm-crypt.o CC drivers/media/sprd_dcam/common/sin_cos.o CC drivers/media/sprd_dcam/common/flash_test.o CC net/ipv4/fib_rules.o CC drivers/media/sprd_dcam/flash/flash_sm5701.o LD drivers/media/sprd_dcam/flash/built-in.o LD drivers/media/sprd_dcam/sprd_dcam.o LD drivers/media/sprd_dcam/built-in.o CC drivers/media/sprd_gsp/scaler_coef_cal.o LD drivers/md/dm-mod.o LD drivers/md/built-in.o CC drivers/media/sprd_gsp/gsp_config_if.o CC net/ipv4/gre.o In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/scaler_coef_cal.h:18, from drivers/media/sprd_gsp/scaler_coef_cal.c:18: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/mfd/mfd-core.o CC drivers/media/sprd_gsp/gsp_drv.o In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/mfd/sm5504.o drivers/mfd/sm5504.c: In function 'sm5504_irq_work': drivers/mfd/sm5504.c:1238:35: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 1238 | if ( ((ret&0xF0) != 0xE0) || (ret&0x01 == 0x01) ) { // control register abnormal | ^ CC net/ipv4/ah4.o LD drivers/media/sprd_gsp/sprd_gsp.o LD drivers/media/sprd_gsp/built-in.o CC drivers/media/sprd_isp/isp_drv.o drivers/media/sprd_isp/isp_drv.c: In function 'isp_register_irq': drivers/media/sprd_isp/isp_drv.c:431:9: warning: unused variable 'irq' [-Wunused-variable] 431 | int irq; | ^~~ drivers/media/sprd_isp/isp_drv.c: In function 'isp_unregister_irq': drivers/media/sprd_isp/isp_drv.c:444:10: warning: unused variable 'irq' [-Wunused-variable] 444 | int irq; | ^~~ CC drivers/mfd/sm5701_core.o drivers/mfd/sm5701_core.c: In function 'SM5701_operation_mode_function_control': drivers/mfd/sm5701_core.c:236:19: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct i2c_client *' [-Wformat=] 236 | printk("client:%x\n", client); | ~^ ~~~~~~ | | | | | struct i2c_client * | unsigned int drivers/mfd/sm5701_core.c:237:24: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct device' [-Wformat=] 237 | printk("client->dev:%x\n", client->dev); | ~^ ~~~~~~~~~~~ | | | | | struct device | unsigned int drivers/mfd/sm5701_core.c:238:46: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'void *' [-Wformat=] 238 | printk("pdata = client->dev.platform_data:%x\n", client->dev.platform_data); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | unsigned int void * | %p drivers/mfd/sm5701_core.c:239:32: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct SM5701_charger_data *' [-Wformat=] 239 | printk("pdata->charger_data:%x\n", pdata->charger_data); | ~^ ~~~~~~~~~~~~~~~~~~~ | | | | | struct SM5701_charger_data * | unsigned int CC net/ipv4/esp4.o CC drivers/mfd/sm5701_irq.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_cfg_param.o drivers/mfd/sm5701_irq.c:29:28: warning: 'struct sm5701_dev' declared inside parameter list will not be visible outside of this definition or declaration 29 | int sm5701_irq_init(struct sm5701_dev *sm5701) | ^~~~~~~~~~ drivers/mfd/sm5701_irq.c:38:29: warning: 'struct sm5701_dev' declared inside parameter list will not be visible outside of this definition or declaration 38 | void sm5701_irq_exit(struct sm5701_dev *sm5701) | ^~~~~~~~~~ drivers/mfd/sm5701_irq.c:21:20: warning: 'sm5701_irq_thread' defined but not used [-Wunused-function] 21 | static irqreturn_t sm5701_irq_thread(int irq, void *data) | ^~~~~~~~~~~~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_capability.o LD drivers/mfd/built-in.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_isr.o CC drivers/misc/uid_stat.o CC net/ipv4/ipcomp.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_pgg.o CC drivers/misc/benchmark/benchmark-proc.o drivers/misc/benchmark/benchmark-proc.c: In function 'init_module': drivers/misc/benchmark/benchmark-proc.c:82:112: warning: passing argument 5 of 'proc_create_data' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 82 | entry = proc_create_data(bench_name[i].name, S_IRUGO|S_IWUGO, benchmark_entry, &benchmark_fops, bench_name[i].name); | ~~~~~~~~~~~~~^~~~~ In file included from drivers/misc/benchmark/benchmark-proc.c:3: include/linux/proc_fs.h:28:13: note: expected 'void *' but argument is of type 'const char *' 28 | void *); | ^~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_blc.o LD drivers/misc/benchmark/built-in.o CC drivers/misc/bootperf/bootperf.o CC net/ipv4/xfrm4_tunnel.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_rgb_gain.o LD drivers/misc/bootperf/built-in.o LD drivers/misc/carma/built-in.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_pwd.o LD drivers/misc/cb710/built-in.o LD drivers/misc/eeprom/built-in.o LD drivers/misc/lis3lv02d/built-in.o CC drivers/misc/mdbg/mdbg_ring.o CC net/ipv4/xfrm4_mode_beet.o In file included from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/misc/mdbg/mdbg_ring.h:15, from drivers/misc/mdbg/mdbg_ring.c:12: drivers/misc/mdbg/mdbg_ring.c: In function 'mdbg_ring': drivers/misc/mdbg/mdbg_type.h:33:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'MDBG_SIZE_T' {aka 'long int'} [-Wformat=] 33 | #define MDBG_HEADER_ERR "MDBG_ERR: " | ^~~~~~~~~~~~ drivers/misc/mdbg/mdbg_type.h:36:40: note: in expansion of macro 'MDBG_HEADER_ERR' 36 | #define MDBG_ERR(fmt,args...) printk(MDBG_HEADER_ERR "%s:" fmt "\n", __func__, ## args) | ^~~~~~~~~~~~~~~ drivers/misc/mdbg/mdbg_ring.c:38:4: note: in expansion of macro 'MDBG_ERR' 38 | MDBG_ERR("size error:%d",size); | ^~~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_nlc.o CC drivers/misc/mdbg/mdbg_sdio.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_2d_lsc.o In file included from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: drivers/misc/mdbg/mdbg_sdio.c: In function 'mdbg_sdio_read': drivers/misc/mdbg/mdbg_type.h:33:26: warning: format '%d' expects argument of type 'int', but argument 4 has type 'MDBG_SIZE_T' {aka 'long int'} [-Wformat=] 33 | #define MDBG_HEADER_ERR "MDBG_ERR: " | ^~~~~~~~~~~~ drivers/misc/mdbg/mdbg_type.h:36:40: note: in expansion of macro 'MDBG_HEADER_ERR' 36 | #define MDBG_ERR(fmt,args...) printk(MDBG_HEADER_ERR "%s:" fmt "\n", __func__, ## args) | ^~~~~~~~~~~~~~~ drivers/misc/mdbg/mdbg_sdio.c:122:3: note: in expansion of macro 'MDBG_ERR' 122 | MDBG_ERR("[%s][%d]\n",__func__, sdio_read_len); | ^~~~~~~~ drivers/misc/mdbg/mdbg_sdio.c:127:47: warning: passing argument 3 of 'sdio_dev_read' from incompatible pointer type [-Wincompatible-pointer-types] 127 | sdio_dev_read(MDBG_CHANNEL_READ,mdbg_rx_buff,&sdio_read_len); | ^~~~~~~~~~~~~~ | | | MDBG_SIZE_T * {aka long int *} In file included from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: drivers/misc/mdbg/../sdiodev/sdio_dev.h:200:54: note: expected 'uint32 *' {aka 'unsigned int *'} but argument is of type 'MDBG_SIZE_T *' {aka 'long int *'} 200 | int sdio_dev_read(uint32 chn,void* read_buf,uint32 *count); | ~~~~~~~~^~~~~ CC net/ipv4/tunnel4.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg_sdio.h:15, from drivers/misc/mdbg/mdbg_sdio.c:12: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/misc/mdbg/mdbg.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_1d_lsc.o In file included from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: drivers/misc/mdbg/mdbg.c: In function 'mdbg_assert_interface': include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:61:9: note: in expansion of macro 'KERN_INFO' 61 | printk(KERN_INFO "mdbg_assert_interface:%s\n",mdbg_proc->assert.buf); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:61:43: note: format string is defined here 61 | printk(KERN_INFO "mdbg_assert_interface:%s\n",mdbg_proc->assert.buf); | ~^ | | | char * | %p In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: drivers/misc/mdbg/mdbg.c: In function 'mdbg_assert_read': include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:82:9: note: in expansion of macro 'KERN_INFO' 82 | printk(KERN_INFO "mdbg_assert_read:%s\n",mdbg_proc->assert.buf); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:82:38: note: format string is defined here 82 | printk(KERN_INFO "mdbg_assert_read:%s\n",mdbg_proc->assert.buf); | ~^ | | | char * | %p In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: drivers/misc/mdbg/mdbg.c: In function 'mdbg_wdtirq_read': include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:103:9: note: in expansion of macro 'KERN_INFO' 103 | printk(KERN_INFO "mdbg_wdtirq_read:%s\n",mdbg_proc->wdtirq.buf); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:103:38: note: format string is defined here 103 | printk(KERN_INFO "mdbg_wdtirq_read:%s\n",mdbg_proc->wdtirq.buf); | ~^ | | | char * | %p In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: drivers/misc/mdbg/mdbg.c: In function 'mdbg_loopcheck_read': include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:125:9: note: in expansion of macro 'KERN_INFO' 125 | printk(KERN_INFO "mdbg_loopcheck_read:%s\n",mdbg_proc->loopcheck.buf); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:125:41: note: format string is defined here 125 | printk(KERN_INFO "mdbg_loopcheck_read:%s\n",mdbg_proc->loopcheck.buf); | ~^ | | | char * | %p In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: drivers/misc/mdbg/mdbg.c: In function 'mdbg_at_cmd_read': include/linux/kern_levels.h:4:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'void *' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:148:9: note: in expansion of macro 'KERN_INFO' 148 | printk(KERN_INFO "mdbg_at_cmd_read:%s\n",mdbg_proc->at_cmd.buf); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:148:38: note: format string is defined here 148 | printk(KERN_INFO "mdbg_at_cmd_read:%s\n",mdbg_proc->at_cmd.buf); | ~^ | | | char * | %p drivers/misc/mdbg/mdbg.c: In function 'mdbg_proc_open': drivers/misc/mdbg/mdbg.c:158:8: warning: unused variable 'type' [-Wunused-variable] 158 | char *type = entry->name; | ^~~~ drivers/misc/mdbg/mdbg.c: In function 'mdbg_proc_release': drivers/misc/mdbg/mdbg.c:169:8: warning: unused variable 'type' [-Wunused-variable] 169 | char *type = entry->name; | ^~~~ drivers/misc/mdbg/mdbg.c: In function 'mdbg_read': drivers/misc/mdbg/mdbg.c:441:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 441 | int timeout = -1; | ^~~ In file included from include/linux/kernel.h:13, from include/asm-generic/bug.h:13, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bug.h:61, from include/linux/bug.h:4, from include/linux/thread_info.h:11, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/wait.h:7, from include/linux/fs.h:6, from drivers/misc/mdbg/mdbg_type.h:12, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'MDBG_SIZE_T' {aka 'long int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:314:10: note: in definition of macro 'printk_ratelimited' 314 | printk(fmt, ##__VA_ARGS__); \ | ^~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/mdbg/mdbg.c:470:21: note: in expansion of macro 'KERN_INFO' 470 | printk_ratelimited(KERN_INFO "%s read_size: %d mdbg_read_count:%d\n",__func__,read_size,mdbg_read_count); | ^~~~~~~~~ drivers/misc/mdbg/mdbg.c:303:36: note: format string is defined here 303 | printk(KERN_INFO "mdbg start wake marlin\n"); | ~^ | | | int | eld drivers/misc/mdbg/mdbg.c: In function 'mdbg_assert_interface': drivers/misc/mdbg/mdbg.c:60:2: warning: 'strncpy' output truncated before terminating nul copying 23 bytes from a string of the same length [-Wstringop-truncation] 60 | strncpy(mdbg_proc->assert.buf,"wifi channel is blocked",23); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/ipv4/xfrm4_mode_transport.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_binning4awb.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/mdbg/../sdiodev/sdio_dev.h:41, from drivers/misc/mdbg/mdbg_type.h:27, from drivers/misc/mdbg/mdbg.h:13, from drivers/misc/mdbg/mdbg.c:9: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | LD drivers/misc/mdbg/mdbgdrv.o LD drivers/misc/mdbg/built-in.o CC drivers/misc/sdiodev/sdio_dev.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_buf_queue.o CC net/ipv4/xfrm4_mode_tunnel.o In file included from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/misc/sdiodev/sdio_dev.c:120:3: warning: backslash and newline separated by space 120 | }\ | drivers/misc/sdiodev/sdio_dev.c:125:44: warning: backslash and newline separated by space 125 | mutex_unlock(&(g_mgr_suspend.func_lock));\ | drivers/misc/sdiodev/sdio_dev.c: In function 'mgr_suspend_init': drivers/misc/sdiodev/sdio_dev.c:161:6: warning: unused variable 'ret' [-Wunused-variable] 161 | int ret; | ^~~ drivers/misc/sdiodev/sdio_dev.c: In function 'set_sprd_download_fin': drivers/misc/sdiodev/sdio_dev.c:268:24: warning: 'return' with a value, in function returning void [-Wreturn-type] 268 | return fwdownload_fin = dl_tag; | ~~~~~~~~~~~~~~~^~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:265:6: note: declared here 265 | void set_sprd_download_fin(int dl_tag) | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c: In function 'get_screen_status': drivers/misc/sdiodev/sdio_dev.c:322:6: warning: assignment to 'char *' from incompatible pointer type 'int *' [-Wincompatible-pointer-types] 322 | buf = (int *)kzalloc(4,GFP_KERNEL); | ^ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/bitops.h:27, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: drivers/misc/sdiodev/sdio_dev.c: In function 'set_marlin_wakeup': include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast 11 | (void)(&__dummy == &__dummy2); \ | ^~ include/linux/spinlock.h:198:3: note: in expansion of macro 'typecheck' 198 | typecheck(unsigned long, flags); \ | ^~~~~~~~~ include/linux/spinlock.h:323:2: note: in expansion of macro 'raw_spin_lock_irqsave' 323 | raw_spin_lock_irqsave(spinlock_check(lock), flags); \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:376:2: note: in expansion of macro 'spin_lock_irqsave' 376 | spin_lock_irqsave(&sleep_spinlock, flags); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'atomic_t' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ include/linux/printk.h:216:9: note: in expansion of macro 'KERN_ERR' 216 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~ drivers/misc/sdiodev/sdio_dev.h:151:2: note: in expansion of macro 'pr_err' 151 | pr_err(SDIOTRAN_HEADER "%s:" fmt "\n", __func__, ## args) | ^~~~~~ drivers/misc/sdiodev/sdio_dev.c:396:4: note: in expansion of macro 'SDIOTRAN_ERR' 396 | SDIOTRAN_ERR("set_marlin_complete -%d\n", set_marlin_cmplete); | ^~~~~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:350:6: warning: unused variable 'bt_state' [-Wunused-variable] 350 | int bt_state ; | ^~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:349:6: warning: unused variable 'screen_status' [-Wunused-variable] 349 | int screen_status = 1; | ^~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: drivers/misc/sdiodev/sdio_dev.c: In function 'marlin_workq': include/linux/kern_levels.h:4:18: warning: too many arguments for format [-Wformat-extra-args] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ include/linux/printk.h:216:9: note: in expansion of macro 'KERN_ERR' 216 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~ drivers/misc/sdiodev/sdio_dev.h:151:2: note: in expansion of macro 'pr_err' 151 | pr_err(SDIOTRAN_HEADER "%s:" fmt "\n", __func__, ## args) | ^~~~~~ drivers/misc/sdiodev/sdio_dev.c:1060:4: note: in expansion of macro 'SDIOTRAN_ERR' 1060 | SDIOTRAN_ERR("no handler for this chn",read_chn); | ^~~~~~~~~~~~ In file included from include/linux/srcu.h:34, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:792, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: drivers/misc/sdiodev/sdio_dev.c: In function 'sdio_dev_intr_init': include/linux/workqueue.h:194:17: warning: assignment to 'work_func_t' {aka 'void (*)(struct work_struct *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 194 | (_work)->func = (_func); \ | ^ include/linux/workqueue.h:237:3: note: in expansion of macro 'PREPARE_WORK' 237 | PREPARE_WORK((_work), (_func)); \ | ^~~~~~~~~~~~ include/linux/workqueue.h:243:3: note: in expansion of macro '__INIT_WORK' 243 | __INIT_WORK((_work), (_func), 0); \ | ^~~~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:1121:2: note: in expansion of macro 'INIT_WORK' 1121 | INIT_WORK(&marlin_wq, marlin_workq); | ^~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c: In function 'marlinack_workq': drivers/misc/sdiodev/sdio_dev.c:1280:6: warning: unused variable 'ret' [-Wunused-variable] 1280 | int ret = 0; | ^~~ drivers/misc/sdiodev/sdio_dev.c:1279:6: warning: unused variable 'read_chn' [-Wunused-variable] 1279 | int read_chn; | ^~~~~~~~ In file included from include/linux/srcu.h:34, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:792, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: drivers/misc/sdiodev/sdio_dev.c: In function 'marlin_wake_intr_init': include/linux/workqueue.h:194:17: warning: assignment to 'work_func_t' {aka 'void (*)(struct work_struct *)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 194 | (_work)->func = (_func); \ | ^ include/linux/workqueue.h:237:3: note: in expansion of macro 'PREPARE_WORK' 237 | PREPARE_WORK((_work), (_func)); \ | ^~~~~~~~~~~~ include/linux/workqueue.h:243:3: note: in expansion of macro '__INIT_WORK' 243 | __INIT_WORK((_work), (_func), 0); \ | ^~~~~~~~~~~ drivers/misc/sdiodev/sdio_dev.c:1392:2: note: in expansion of macro 'INIT_WORK' 1392 | INIT_WORK(&marlinwake_wq, marlinack_workq); | ^~~~~~~~~ In file included from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/misc/sdiodev/sdio_dev.h:22, from drivers/misc/sdiodev/sdio_dev.c:19: drivers/misc/sdiodev/sdio_dev.c: In function 'sdio_dev_get_host': include/linux/kernel.h:797:48: warning: initialization of 'const long unsigned int (*)[0]' from incompatible pointer type 'struct sdhci_host *' [-Wincompatible-pointer-types] 797 | const typeof( ((type *)0)->member ) *__mptr = (ptr); \ | ^ drivers/misc/sdiodev/sdio_dev.c:1676:9: note: in expansion of macro 'container_of' 1676 | return container_of(host, struct mmc_host, private); | ^~~~~~~~~~~~ At top level: drivers/misc/sdiodev/sdio_dev.c:1224:12: warning: 'marlin_sdio_sync_init' defined but not used [-Wunused-function] 1224 | static int marlin_sdio_sync_init(void) | ^~~~~~~~~~~~~~~~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_awb.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_raw_aem.o CC net/ipv4/netfilter.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sdiodev/sdio_dev.h:41, from drivers/misc/sdiodev/sdio_dev.c:19: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/misc/sdiodev/sdio_dev.c:120:3: warning: backslash and newline separated by space 120 | }\ | drivers/misc/sdiodev/sdio_dev.c:125:44: warning: backslash and newline separated by space 125 | mutex_unlock(&(g_mgr_suspend.func_lock));\ | LD drivers/misc/sdiodev/sdiodevhal.o LD drivers/misc/sdiodev/built-in.o drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_raw_aem.c: In function 'isp_k_raw_aem_get_statistics': drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_raw_aem.c:215:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 215 | aem_statistics = (struct isp_raw_aem_statistics *)(node->k_addr); | ^ LD drivers/misc/sprd_2351/built-in.o CC drivers/misc/sprd_coda7l/vpu.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_bpc.o In file included from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/misc/sprd_coda7l/vpu.c:229:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 229 | static int vpu_power_on(); | ^~~~~~ drivers/misc/sprd_coda7l/vpu.c:230:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 230 | static int vpu_power_shutdown(); | ^~~~~~ drivers/misc/sprd_coda7l/vpu.c:270:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 270 | static int vpu_power_on() | ^~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:293:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 293 | static int vpu_power_shutdown() | ^~~~~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_release': drivers/misc/sprd_coda7l/vpu.c:828:9: warning: unused variable 'reg_addr' [-Wunused-variable] 828 | int reg_addr; | ^~~~~~~~ drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_parse_dt': drivers/misc/sprd_coda7l/vpu.c:978:27: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 978 | vpu_clk_node_name = of_clk_get_parent_name(np, j+1); //This position is based on related dts file | ^ drivers/misc/sprd_coda7l/vpu.c:1002:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1002 | name_parent = of_clk_get_parent_name(vpu_clk_np, i); | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/misc/sprd_coda7l/vpu.c:25: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1005:20: note: in expansion of macro 'KERN_INFO' 1005 | printk(KERN_INFO "vpu: clock_name_map[%d] = (%d, %s)\n", i, frequency, name_parent); | ^~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1005:59: note: format string is defined here 1005 | printk(KERN_INFO "vpu: clock_name_map[%d] = (%d, %s)\n", i, frequency, name_parent); | ~^ | | | int | %ld drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_probe': drivers/misc/sprd_coda7l/vpu.c:1042:22: warning: unused variable 'res' [-Wunused-variable] 1042 | struct resource *res = NULL; | ^~~ drivers/misc/sprd_coda7l/vpu.c:1041:9: warning: unused variable 'reg_addr' [-Wunused-variable] 1041 | int reg_addr; | ^~~~~~~~ In file included from drivers/misc/sprd_coda7l/vpu.c:49: drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_init': include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:96:56: note: in expansion of macro 'SCI_ADDR' 96 | #define REG_AON_APB_BOND_OPT0 SCI_ADDR(REGS_AON_APB_BASE, 0x303C) | ^~~~~~~~ drivers/misc/sprd_coda7l/vpu.h:108:116: note: in expansion of macro 'REG_AON_APB_BOND_OPT0' 108 | #define vpu_logd(fmt, ...) printk(KERN_WARNING "[DEBUG][" LOG_TAG "]" "[F:%s-L:%d]" fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__) | ^~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1189:5: note: in expansion of macro 'vpu_logd' 1189 | vpu_logd("vpu_init, REG_AON_APB_BOND_OPT0 = 0x%x\n", __raw_readl(REG_AON_APB_BOND_OPT0)); | ^~~~~~~~ In file included from include/linux/scatterlist.h:10, from include/linux/dma-mapping.h:9, from drivers/misc/sprd_coda7l/vpu.c:31: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/misc/sprd_coda7l/vpu.c:49: include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:96:56: note: in expansion of macro 'SCI_ADDR' 96 | #define REG_AON_APB_BOND_OPT0 SCI_ADDR(REGS_AON_APB_BASE, 0x303C) | ^~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1191:20: note: in expansion of macro 'REG_AON_APB_BOND_OPT0' 1191 | if(__raw_readl(REG_AON_APB_BOND_OPT0) & (1<<12)) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/scatterlist.h:10, from include/linux/dma-mapping.h:9, from drivers/misc/sprd_coda7l/vpu.c:31: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/misc/sprd_coda7l/vpu.c:49: drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_exit': include/soc/sprd/sci_glb_regs.h:108:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 108 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:96:56: note: in expansion of macro 'SCI_ADDR' 96 | #define REG_AON_APB_BOND_OPT0 SCI_ADDR(REGS_AON_APB_BASE, 0x303C) | ^~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1215:20: note: in expansion of macro 'REG_AON_APB_BOND_OPT0' 1215 | if(__raw_readl(REG_AON_APB_BOND_OPT0) & (1<<12)) { | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/scatterlist.h:10, from include/linux/dma-mapping.h:9, from drivers/misc/sprd_coda7l/vpu.c:31: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/misc/sprd_coda7l/vpu.c: In function 'set_vpu_parent_clk': drivers/misc/sprd_coda7l/vpu.c:1300:9: warning: unused variable 'i' [-Wunused-variable] 1300 | int i, j, ret; | ^ drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_set_mm_clk': drivers/misc/sprd_coda7l/vpu.c:1336:17: warning: unused variable 'clk_coda7_apb' [-Wunused-variable] 1336 | struct clk *clk_coda7_apb; | ^~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1335:17: warning: unused variable 'clk_coda7_cc' [-Wunused-variable] 1335 | struct clk *clk_coda7_cc; | ^~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1334:17: warning: unused variable 'clk_coda7_axi' [-Wunused-variable] 1334 | struct clk *clk_coda7_axi; | ^~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c: In function 'vpu_clk_get': drivers/misc/sprd_coda7l/vpu.c:1403:1: warning: no return statement in function returning non-void [-Wreturn-type] 1403 | } | ^ drivers/misc/sprd_coda7l/vpu.c: At top level: drivers/misc/sprd_coda7l/vpu.c:227:12: warning: 'vpu_set_clk_by_register' declared 'static' but never defined [-Wunused-function] 227 | static int vpu_set_clk_by_register(void); | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1440:6: warning: 'vpu_clk_disable' defined but not used [-Wunused-function] 1440 | void vpu_clk_disable(struct clk *clk) | ^~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1409:5: warning: 'vpu_clk_enable' defined but not used [-Wunused-function] 1409 | int vpu_clk_enable(struct clk *clk) | ^~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:1400:13: warning: 'vpu_clk_get' defined but not used [-Wunused-function] 1400 | struct clk *vpu_clk_get(struct device *dev) | ^~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:257:12: warning: 'find_vpu_freq_level' defined but not used [-Wunused-function] 257 | static int find_vpu_freq_level(unsigned long freq, struct clock_name_map_t clk_map[]) | ^~~~~~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:247:14: warning: 'vpu_get_clk_src_name' defined but not used [-Wunused-function] 247 | static char *vpu_get_clk_src_name(unsigned int freq_level, struct clock_name_map_t clk_map[]) | ^~~~~~~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:221:12: warning: 's_run_codstd' defined but not used [-Wunused-variable] 221 | static u32 s_run_codstd; | ^~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:220:12: warning: 's_run_index' defined but not used [-Wunused-variable] 220 | static u32 s_run_index; | ^~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:219:12: warning: 's_vpu_reg_store' defined but not used [-Wunused-variable] 219 | static u32 s_vpu_reg_store[MAX_NUM_VPU_CORE][64]; | ^~~~~~~~~~~~~~~ drivers/misc/sprd_coda7l/vpu.c:200:23: warning: 'vpu_hw_dev' defined but not used [-Wunused-variable] 200 | static struct vpu_dev vpu_hw_dev; | ^~~~~~~~~~ CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_bdn.o LD drivers/misc/sprd_coda7l/built-in.o CC drivers/misc/sprd_cproc/sprd_cproc.o CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_grgb.o In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/misc/sprd_cproc/sprd_cproc.c:15: drivers/misc/sprd_cproc/sprd_cproc.c: In function 'cproc_proc_read': include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:289:12: note: in expansion of macro 'KERN_ERR' 289 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:289:52: note: format string is defined here 289 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ~~^ | | | long unsigned int | %x drivers/misc/sprd_cproc/sprd_cproc.c:398:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 398 | ssize_t ret; | ^~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/misc/sprd_cproc/sprd_cproc.c:15: drivers/misc/sprd_cproc/sprd_cproc.c: In function 'cproc_proc_write': include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:472:11: note: in expansion of macro 'KERN_ERR' 472 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:472:51: note: format string is defined here 472 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ~~^ | | | long unsigned int | %x drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_fs_init': drivers/misc/sprd_cproc/sprd_cproc.c:569:10: warning: 'return' with a value, in function returning void [-Wreturn-type] 569 | return -ENOMEM; | ^ drivers/misc/sprd_cproc/sprd_cproc.c:558:20: note: declared here 558 | static inline void sprd_cproc_fs_init(struct cproc_device *cproc) | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/misc/sprd_cproc/sprd_cproc.c:15: drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_native_cp_start': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:686:9: note: in expansion of macro 'pr_info' 686 | pr_info("deep sllep reg =0x%x, reset reg =0x%x\n", ctrl->ctrl_reg[CPROC_CTRL_DEEP_SLEEP], ctrl->ctrl_reg[CPROC_CTRL_RESET]); | ^~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:686:9: note: in expansion of macro 'pr_info' 686 | pr_info("deep sllep reg =0x%x, reset reg =0x%x\n", ctrl->ctrl_reg[CPROC_CTRL_DEEP_SLEEP], ctrl->ctrl_reg[CPROC_CTRL_RESET]); | ^~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:656:11: warning: unused variable 'value' [-Wunused-variable] 656 | uint32_t value, state; | ^~~~~ drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_native_arm7_start': drivers/misc/sprd_cproc/sprd_cproc.c:744:18: warning: unused variable 'state' [-Wunused-variable] 744 | uint32_t value, state; | ^~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:744:11: warning: unused variable 'value' [-Wunused-variable] 744 | uint32_t value, state; | ^~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/misc/sprd_cproc/sprd_cproc.c:15: drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_parse_dt': include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:927:17: note: in expansion of macro 'pr_info' 927 | pr_info("sprd_cproc before p2v: ctrl_reg[%d] = 0x%lx\n", i, ctrl_reg[i]); | ^~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:971:2: note: in expansion of macro 'pr_info' 971 | pr_info("sprd_cproc: iram_addr=0x%x\n", ctrl->iram_addr); | ^~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'int (*)(void *)' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1012:2: note: in expansion of macro 'pr_info' 1012 | pr_info("sprd_cproc: stop callback 0x%x, start callback 0x%x\n", | ^~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'int (*)(void *)' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1012:2: note: in expansion of macro 'pr_info' 1012 | pr_info("sprd_cproc: stop callback 0x%x, start callback 0x%x\n", | ^~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_probe': include/linux/kern_levels.h:4:18: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1089:2: note: in expansion of macro 'pr_info' 1089 | pr_info("%s %p %x\n", __func__, pdata->base, pdata->maxsz); | ^~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_rgb_gain2.o drivers/misc/sprd_cproc/sprd_cproc.c: In function 'cproc_proc_write': drivers/misc/sprd_cproc/sprd_cproc.c:494:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] 494 | } | ^ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_nlm.o CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o LD drivers/misc/sprd_cproc/built-in.o CC drivers/misc/sprd_dwnload/sprd_download.o In file included from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_cfa.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_dwnload/../sdiodev/sdio_dev.h:41, from drivers/misc/sprd_dwnload/sprd_download.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o CC drivers/misc/sprd_dwnload/sprd_power_ctl.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_cmc10.o LD drivers/misc/sprd_dwnload/built-in.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_gamma.o CC drivers/misc/sprd_jpg/sprd_jpg.o In file included from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/misc/sprd_jpg/sprd_jpg.c: In function 'jpg_isr': drivers/misc/sprd_jpg/sprd_jpg.c:413:16: warning: passing argument 1 of 'sci_glb_set' makes integer from pointer without a cast [-Wint-conversion] 413 | sci_glb_set((void *)(sprd_jpg_virt+0x4400), BIT(30)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void * In file included from drivers/misc/sprd_jpg/sprd_jpg.c:37: include/soc/sprd/sci.h:51:31: note: expected 'long unsigned int' but argument is of type 'void *' 51 | int sci_glb_set(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ drivers/misc/sprd_jpg/sprd_jpg.c:414:16: warning: passing argument 1 of 'sci_glb_clr' makes integer from pointer without a cast [-Wint-conversion] 414 | sci_glb_clr((void *)(sprd_jpg_virt+0x4400), BIT(31)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void * In file included from drivers/misc/sprd_jpg/sprd_jpg.c:37: include/soc/sprd/sci.h:63:31: note: expected 'long unsigned int' but argument is of type 'void *' 63 | int sci_glb_clr(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_cmc8.o CC net/ipv4/netfilter/nf_nat_proto_icmp.o LD drivers/misc/sprd_jpg/built-in.o CC drivers/misc/sprd_otp/core.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_ct.o CC net/ipv4/netfilter/nf_defrag_ipv4.o CC drivers/misc/sprd_otp/otp-helper.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_cce.o CC drivers/misc/sprd_otp/efuse.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_hsv.o In file included from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/arch_lock.h:173:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 173 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:160:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 160 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC net/ipv4/netfilter/nf_nat_h323.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_csc.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_pre_cdn_rgb.o In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/misc/sprd_otp/ana_efuse.o In file included from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/arch_lock.h:173:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 173 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:160:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 160 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_pstrz.o In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/ipv4/netfilter/nf_nat_pptp.o CC drivers/misc/sprd_otp/otp-bitmap.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_raw_afm.o LD drivers/misc/sprd_otp/built-in.o CC drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.o In file included from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:41: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/platform_device.h:14, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:15: drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_ioctl': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:212:16: note: in expansion of macro 'KERN_ERR' 212 | printk(KERN_ERR "SPRD_VPP_FREE_PHYSICAL_MEMORY base: 0x%x, phys_addr: 0x%x, size: 0x%x, virt_addr: 0x%x\n", | ^~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:212:65: note: format string is defined here 212 | printk(KERN_ERR "SPRD_VPP_FREE_PHYSICAL_MEMORY base: 0x%x, phys_addr: 0x%x, size: 0x%x, virt_addr: 0x%x\n", | ~^ | | | unsigned int | %lx In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/platform_device.h:14, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:15: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:212:16: note: in expansion of macro 'KERN_ERR' 212 | printk(KERN_ERR "SPRD_VPP_FREE_PHYSICAL_MEMORY base: 0x%x, phys_addr: 0x%x, size: 0x%x, virt_addr: 0x%x\n", | ^~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:212:111: note: format string is defined here 212 | printk(KERN_ERR "SPRD_VPP_FREE_PHYSICAL_MEMORY base: 0x%x, phys_addr: 0x%x, size: 0x%x, virt_addr: 0x%x\n", | ~^ | | | unsigned int | %lx drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:240:52: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 240 | __raw_writel((1<<1), SPRD_VPP_BASE + VPP_INT_CLR); In file included from include/linux/io.h:22, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:19: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:153:19: warning: unused variable 'frequency' [-Wunused-variable] 153 | unsigned long frequency; | ^~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:152:11: warning: unused variable 'name_parent' [-Wunused-variable] 152 | char *name_parent; | ^~~~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:151:17: warning: unused variable 'clk_parent' [-Wunused-variable] 151 | struct clk *clk_parent; | ^~~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_isr': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:317:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 317 | ret = __raw_readl(SPRD_VPP_BASE + VPP_INT_STS); In file included from include/linux/io.h:22, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:19: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:278:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 278 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:320:44: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 320 | __raw_writel((1<<1), SPRD_VPP_BASE + VPP_INT_CLR); In file included from include/linux/io.h:22, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:19: /home/pmos/build/src/android_kernel_samsung_sharkls-e3381e42b00e1ff977815b365cea53f18afff7a8/arch/arm/include/asm/io.h:258:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 258 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'vpp_set_mm_clk': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:339:11: warning: unused variable 'name_parent' [-Wunused-variable] 339 | char *name_parent; | ^~~~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:338:17: warning: unused variable 'clk_parent' [-Wunused-variable] 338 | struct clk *clk_parent; | ^~~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:337:17: warning: unused variable 'clk_vpp' [-Wunused-variable] 337 | struct clk *clk_vpp; | ^~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_suspend': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:561:9: warning: unused variable 'ret' [-Wunused-variable] 561 | int ret=-1; | ^~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_remove': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:608:29: warning: passing argument 1 of 'clk_put' from incompatible pointer type [-Wincompatible-pointer-types] 608 | clk_put(deint_hw_dev.vpp_parent_clk); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ | | | struct clk ** In file included from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:21: include/linux/clk.h:206:26: note: expected 'struct clk *' but argument is of type 'struct clk **' 206 | void clk_put(struct clk *clk); | ~~~~~~~~~~~~^~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_parse_dt': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:641:25: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 641 | deint_clk_node_name = of_clk_get_parent_name(np, 1); //This position is based on related dts file | ^ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:665:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 665 | name_parent = of_clk_get_parent_name(deint_clk_np, i); | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/platform_device.h:14, from drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:15: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:668:16: note: in expansion of macro 'KERN_INFO' 668 | printk(KERN_INFO "deint: clock_name_map[%d] = (%d, %s)\n", i, frequency, name_parent); | ^~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:668:57: note: format string is defined here 668 | printk(KERN_INFO "deint: clock_name_map[%d] = (%d, %s)\n", i, frequency, name_parent); | ~^ | | | int | %ld drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c: In function 'deint_probe': drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:681:22: warning: unused variable 'res' [-Wunused-variable] 681 | struct resource *res = NULL; | ^~~ At top level: drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:109:12: warning: 'find_deint_freq_level' defined but not used [-Wunused-function] 109 | static int find_deint_freq_level(unsigned long freq) | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/sprd_vpp/sprd_deint/vpp_deint_drv.c:99:14: warning: 'deint_get_clk_src_name' defined but not used [-Wunused-function] 99 | static char *deint_get_clk_src_name(unsigned int freq_level) | ^~~~~~~~~~~~~~~~~~~~~~ CC net/ipv4/netfilter/nf_nat_proto_gre.o LD drivers/misc/sprd_vpp/sprd_deint/built-in.o LD drivers/misc/sprd_vpp/built-in.o CC drivers/misc/sprd_vsp/sprd_vsp_sc8830.o In file included from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/misc/sprd_vsp/sprd_vsp_sc8830.c: In function 'vsp_parse_dt': drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:463:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 463 | vsp_clk_node_name = of_clk_get_parent_name(np, 1); //This position is based on related dts file | ^ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:483:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 483 | name_parent = of_clk_get_parent_name(vsp_clk_np, i); | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/platform_device.h:14, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:15: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:486:16: note: in expansion of macro 'KERN_INFO' 486 | printk(KERN_INFO "vsp clk order in dts file: clk[%d] = (%d, %s)\n", i, frequency, name_parent); | ^~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:486:66: note: format string is defined here 486 | printk(KERN_INFO "vsp clk order in dts file: clk[%d] = (%d, %s)\n", i, frequency, name_parent); | ~^ | | | int | %ld drivers/misc/sprd_vsp/sprd_vsp_sc8830.c: In function 'vsp_suspend': drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:751:9: warning: unused variable 'ret' [-Wunused-variable] 751 | int ret=-1; | ^~~ At top level: drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:770:12: warning: 'vsp_resume' defined but not used [-Wunused-function] 770 | static int vsp_resume(struct platform_device *pdev) | ^~~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:749:12: warning: 'vsp_suspend' defined but not used [-Wunused-function] 749 | static int vsp_suspend(struct platform_device *pdev, pm_message_t state) | ^~~~~~~~~~~ CC net/ipv4/netfilter/ip_tables.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_yiq_aem.o LD drivers/misc/sprd_vsp/built-in.o LD drivers/misc/ti-st/built-in.o CC drivers/misc/sim_slot.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_anti_flicker.o drivers/misc/sim_slot.c:83:11: warning: initialization of 'ssize_t (*)(struct file *, const char *, size_t, loff_t *)' {aka 'int (*)(struct file *, const char *, unsigned int, long long int *)'} from incompatible pointer type 'loff_t (*)(struct file *, loff_t, int)' {aka 'long long int (*)(struct file *, long long int, int)'} [-Wincompatible-pointer-types] 83 | .write = seq_lseek, | ^~~~~~~~~ drivers/misc/sim_slot.c:83:11: note: (near initialization for 'check_simslot_count_fops.write') CC drivers/misc/scx35_scenario_dmc.o drivers/misc/scx35_scenario_dmc.c: In function 'scenario_dfs_init': drivers/misc/scx35_scenario_dmc.c:268:6: warning: unused variable 'err' [-Wunused-variable] 268 | int err; | ^~~ drivers/misc/scx35_scenario_dmc.c: In function 'scenario_dfs_write': drivers/misc/scx35_scenario_dmc.c:240:2: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 240 | copy_from_user(freq_buf,buf,count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC drivers/misc/uid_cputime.o CC net/ipv4/netfilter/iptable_filter.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_yiq_afm.o LD drivers/misc/built-in.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_pre_cdn.o CC net/ipv4/netfilter/iptable_mangle.o CC net/ipv4/netfilter/iptable_nat.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_prefilter.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_brightness.o CC net/ipv4/netfilter/iptable_raw.o CC net/ipv4/netfilter/ipt_ah.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_contrast.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_hist.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_hist2.o CC net/ipv4/netfilter/ipt_rpfilter.o CC net/ipv4/netfilter/ipt_MASQUERADE.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_aca.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_cdn.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_edge.o CC net/ipv4/netfilter/ipt_REJECT.o CC net/ipv4/netfilter/arp_tables.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_css.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_csa.o CC net/ipv4/netfilter/arpt_mangle.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_hua.o CC net/ipv4/netfilter/arptable_filter.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_post_cdn.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_emboss.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_y_gamma.o LD net/ipv4/netfilter/nf_conntrack_ipv4.o LD net/ipv4/netfilter/nf_nat_ipv4.o LD net/ipv4/netfilter/built-in.o DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev00.dtb CC net/ipv4/inet_diag.o Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev01.dtb Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_y_delay.o DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev02.dtb Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev03.dtb Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev04.dtb Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_iircnr.o DTC arch/arm/boot/dts/sprd-scx35l_sharkls_j3xnlte_rev05.dtb Warning (ranges_format): /sdios has empty "ranges" property but its #address-cells (2) differs from / (1) Warning (ranges_format): /sdios has empty "ranges" property but its #size-cells (2) differs from / (1) CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_fetch.o CC net/ipv4/tcp_diag.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_store.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_dispatch.o CC net/ipv4/tcp_cubic.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_arbiter.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_raw_sizer.o CC net/ipv4/xfrm4_policy.o CC drivers/media/sprd_isp/isp2.0/tshark2/src/isp_k_common.o CC net/ipv4/xfrm4_state.o CC net/ipv4/xfrm4_input.o LD drivers/media/sprd_isp/sprd_isp.o LD drivers/media/sprd_isp/built-in.o CC net/ipv4/xfrm4_output.o CC drivers/media/sprd_rotation/rot_drv.o CC drivers/media/sprd_rotation/img_rot.o LD net/ipv4/built-in.o CC drivers/media/sprd_scale/common/sin_cos.o CC net/ipv6/af_inet6.o CC drivers/media/sprd_scale/common/gen_scale_coef.o LD drivers/media/sprd_rotation/sprd_rotation.o LD drivers/media/sprd_rotation/built-in.o CC net/key/af_key.o CC drivers/media/sprd_scale/common/img_scale.o drivers/media/sprd_scale/common/img_scale.c: In function 'scale_k_read': drivers/media/sprd_scale/common/img_scale.c:110:55: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 110 | printk("scale_k_read error: wrong size of u_data: %ld \n", cnt); | ~~^ ~~~ | | | | | size_t {aka unsigned int} | long int | %d CC drivers/media/sprd_scale/scale_drv.o CC net/ipv6/anycast.o LD drivers/media/sprd_scale/sprd_scale.o CC net/ipv6/ip6_output.o LD drivers/media/sprd_scale/built-in.o CC drivers/media/sprd_sensor/csi2/csi_api.o In file included from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:32, from drivers/media/sprd_sensor/csi2/csi_api.c:12: include/soc/sprd/__hardware-sc9630.h:114: warning: "SPRD_MISC_BASE" redefined 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/sci_glb_regs.h:51: note: this is the location of the previous definition 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | LD net/key/built-in.o drivers/media/sprd_sensor/csi2/csi_api.c: In function 'csi_read_registers': drivers/media/sprd_sensor/csi2/csi_api.c:722:34: warning: comparison between pointer and integer 722 | while (buf_len != 0 && reg_addr < (u64)(CSI2_BASE + SPRD_CSI2_REG_SIZE)) { | ^ CC net/l2tp/l2tp_core.o CC drivers/media/sprd_sensor/sensor_drv_k.o drivers/media/sprd_sensor/sensor_drv_k.c: In function '_sensor_k_set_flash': drivers/media/sprd_sensor/sensor_drv_k.c:1101:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1101 | if(flash_torch_status==1) | ^~ drivers/media/sprd_sensor/sensor_drv_k.c:1104:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1104 | switch (flash_mode) | ^~~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media/sprd_sensor/sensor_drv_k.c:13: drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_write': include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:76:43: note: in expansion of macro 'pr_debug' 76 | #define SENSOR_PRINT pr_debug | ^~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1649:2: note: in expansion of macro 'SENSOR_PRINT' 1649 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:76:43: note: in expansion of macro 'pr_debug' 76 | #define SENSOR_PRINT pr_debug | ^~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1649:2: note: in expansion of macro 'SENSOR_PRINT' 1649 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_set_i2c_addr': drivers/media/sprd_sensor/sensor_drv_k.c:131:11: warning: 'return' with a value, in function returning void [-Wreturn-type] 131 | return -EFAULT; \ | ^ drivers/media/sprd_sensor/sensor_drv_k.c:1861:2: note: in expansion of macro 'SENSOR_CHECK_ZERO' 1861 | SENSOR_CHECK_ZERO(p_file); | ^~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1856:6: note: declared here 1856 | void sensor_k_set_i2c_addr(struct file *file, uint16_t i2c_addr) | ^~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:131:11: warning: 'return' with a value, in function returning void [-Wreturn-type] 131 | return -EFAULT; \ | ^ drivers/media/sprd_sensor/sensor_drv_k.c:1863:2: note: in expansion of macro 'SENSOR_CHECK_ZERO' 1863 | SENSOR_CHECK_ZERO(p_mod); | ^~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1856:6: note: declared here 1856 | void sensor_k_set_i2c_addr(struct file *file, uint16_t i2c_addr) | ^~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_set_id': drivers/media/sprd_sensor/sensor_drv_k.c:131:11: warning: 'return' with a value, in function returning void [-Wreturn-type] 131 | return -EFAULT; \ | ^ drivers/media/sprd_sensor/sensor_drv_k.c:1872:2: note: in expansion of macro 'SENSOR_CHECK_ZERO' 1872 | SENSOR_CHECK_ZERO(p_file); | ^~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1868:6: note: declared here 1868 | void sensor_k_set_id(struct file *file, uint32_t sensor_id) | ^~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:131:11: warning: 'return' with a value, in function returning void [-Wreturn-type] 131 | return -EFAULT; \ | ^ drivers/media/sprd_sensor/sensor_drv_k.c:1874:2: note: in expansion of macro 'SENSOR_CHECK_ZERO' 1874 | SENSOR_CHECK_ZERO(p_mod); | ^~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1868:6: note: declared here 1868 | void sensor_k_set_id(struct file *file, uint32_t sensor_id) | ^~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_probe': drivers/media/sprd_sensor/sensor_drv_k.c:2358:6: warning: unused variable 'gpio_mipi_en' [-Wunused-variable] 2358 | int gpio_mipi_en = 0; | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'Rear_Cam_show_flash': drivers/media/sprd_sensor/sensor_drv_k.c:2819:17: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2819 | return sprintf(buf, "%d", flash_torch_status); | ^~~ In file included from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/stat.h:18, from include/linux/module.h:10, from drivers/media/sprd_sensor/sensor_drv_k.c:13: include/linux/kernel.h:371:41: note: expected 'char *' but argument is of type 'const char *' 371 | extern __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); | ~~~~~~^~~ In file included from include/linux/kobject.h:21, from include/linux/module.h:16, from drivers/media/sprd_sensor/sensor_drv_k.c:13: drivers/media/sprd_sensor/sensor_drv_k.c: At top level: drivers/media/sprd_sensor/sensor_drv_k.c:2902:71: warning: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'ssize_t (*)(struct device *, struct device_attribute *, const char *, size_t)' {aka 'int (*)(struct device *, struct device_attribute *, const char *, unsigned int)'} [-Wincompatible-pointer-types] 2902 | static DEVICE_ATTR(rear_flash, S_IRUGO | S_IWUSR | S_IWGRP | S_IXOTH, Rear_Cam_show_flash, Rear_Cam_store_flash); // Read(User, Group, Other), Write(User, Group), Execute(Other) | ^~~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2902:8: note: in expansion of macro 'DEVICE_ATTR' 2902 | static DEVICE_ATTR(rear_flash, S_IRUGO | S_IWUSR | S_IWGRP | S_IXOTH, Rear_Cam_show_flash, Rear_Cam_store_flash); // Read(User, Group, Other), Write(User, Group), Execute(Other) | ^~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2902:71: note: (near initialization for 'dev_attr_rear_flash.show') 2902 | static DEVICE_ATTR(rear_flash, S_IRUGO | S_IWUSR | S_IWGRP | S_IXOTH, Rear_Cam_show_flash, Rear_Cam_store_flash); // Read(User, Group, Other), Write(User, Group), Execute(Other) | ^~~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2902:8: note: in expansion of macro 'DEVICE_ATTR' 2902 | static DEVICE_ATTR(rear_flash, S_IRUGO | S_IWUSR | S_IWGRP | S_IXOTH, Rear_Cam_show_flash, Rear_Cam_store_flash); // Read(User, Group, Other), Write(User, Group), Execute(Other) | ^~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_init': drivers/media/sprd_sensor/sensor_drv_k.c:3082:31: warning: passing argument 2 of 'device_destroy' makes integer from pointer without a cast [-Wint-conversion] 3082 | device_destroy(camera_class, dev_t_front); | ^~~~~~~~~~~ | | | struct device * In file included from include/linux/platform_device.h:14, from drivers/media/sprd_sensor/sensor_drv_k.c:21: include/linux/device.h:937:53: note: expected 'dev_t' {aka 'unsigned int'} but argument is of type 'struct device *' 937 | extern void device_destroy(struct class *cls, dev_t devt); | ~~~~~~^~~~ drivers/media/sprd_sensor/sensor_drv_k.c:3088:31: warning: passing argument 2 of 'device_destroy' makes integer from pointer without a cast [-Wint-conversion] 3088 | device_destroy(camera_class, dev_t_flash); | ^~~~~~~~~~~ | | | struct device * In file included from include/linux/platform_device.h:14, from drivers/media/sprd_sensor/sensor_drv_k.c:21: include/linux/device.h:937:53: note: expected 'dev_t' {aka 'unsigned int'} but argument is of type 'struct device *' 937 | extern void device_destroy(struct class *cls, dev_t devt); | ~~~~~~^~~~ drivers/media/sprd_sensor/sensor_drv_k.c:3114:30: warning: passing argument 2 of 'device_destroy' makes integer from pointer without a cast [-Wint-conversion] 3114 | device_destroy(camera_class,dev_t_rear); | ^~~~~~~~~~ | | | struct device * In file included from include/linux/platform_device.h:14, from drivers/media/sprd_sensor/sensor_drv_k.c:21: include/linux/device.h:937:53: note: expected 'dev_t' {aka 'unsigned int'} but argument is of type 'struct device *' 937 | extern void device_destroy(struct class *cls, dev_t devt); | ~~~~~~^~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_ioctl': drivers/media/sprd_sensor/sensor_drv_k.c:2213:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2213 | copy_from_user(&type, ¶->type, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2219:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2219 | copy_to_user(para->buff, chksum->data_ptr, chksum->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2220:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2220 | copy_to_user(¶->len, &chksum->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2228:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2228 | copy_to_user(para->buff, p_mod->otp_param[p_file->sensor_id].buff, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2229 | p_mod->otp_param[p_file->sensor_id].len); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2230:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2230 | copy_to_user(¶->len, &p_mod->otp_param[p_file->sensor_id].len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2231 | sizeof(uint32_t)); | ~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2234:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2234 | copy_to_user(para->awb.data_ptr, awb->data_ptr, awb->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2235:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2235 | copy_to_user(¶->awb.size, &awb->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2238:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2238 | copy_to_user(para->lsc.data_ptr, lsc->data_ptr, lsc->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:2239:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2239 | copy_to_user(¶->lsc.size, &lsc->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'Rear_camera_checkfw_factory': drivers/media/sprd_sensor/sensor_drv_k.c:2739:37: warning: 'NG_VER' directive writing 6 bytes into a region of size 3 [-Wformat-overflow=] 2739 | sprintf(cam_checkfw_factory, "NG_VER"); | ~~~^~~ drivers/media/sprd_sensor/sensor_drv_k.c:2739:4: note: 'sprintf' output 7 bytes into a destination of size 3 2739 | sprintf(cam_checkfw_factory, "NG_VER"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC drivers/media/sprd_sensor/csi2/csi_access.o CC drivers/media/sprd_sensor/csi2/csi_driver.o drivers/media/sprd_sensor/csi2/csi_driver.c:33:18: warning: extra tokens at end of #ifdef directive 33 | #ifdef IS_ENABLED(VERSION3T) || IS_ENABLED(VERSION3D) | ^ drivers/media/sprd_sensor/csi2/csi_driver.c:112:7: warning: extra tokens at end of #else directive [-Wendif-labels] 112 | #else IS_ENABLED(VERSION3L) | ^~~~~~~~~~ drivers/media/sprd_sensor/csi2/csi_driver.c: In function 'csi_init': drivers/media/sprd_sensor/csi2/csi_driver.c:287:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 287 | access_init((u32*)base_address); | ^ CC drivers/media/sprd_sensor/csi2/csi_log.o CC net/l2tp/l2tp_ppp.o CC net/ipv6/ip6_input.o CC drivers/media/sprd_sensor/csi2/csi_system.o CC drivers/media/sprd_sensor/identify/sensor_identify.o drivers/media/sprd_sensor/identify/sensor_identify.c:37:12: warning: 'Sensor_WriteI2C' defined but not used [-Wunused-function] 37 | static int Sensor_WriteI2C (uint32_t *fd_handle, uint16_t slave_addr, uint8_t * cmd, uint16_t cmd_length) | ^~~~~~~~~~~~~~~ LD drivers/media/sprd_sensor/identify/built-in.o CC drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.o drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c: In function 'Sensor_PowerOn': drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:85:40: warning: passing argument 3 of 'z_ioctl' makes integer from pointer without a cast [-Wint-conversion] 85 | z_ioctl (pfile, SENSOR_IO_POWER_CFG, &power_cfg); | ^~~~~~~~~~ | | | struct sensor_power_info_tag * drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:65:69: note: expected 'long unsigned int' but argument is of type 'struct sensor_power_info_tag *' 65 | static int z_ioctl (struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:88:43: warning: passing argument 3 of 'z_ioctl' makes integer from pointer without a cast [-Wint-conversion] 88 | z_ioctl (pfile, SENSOR_IO_SET_MCLK, &mclk); | ^~~~~ | | | uint32_t * {aka unsigned int *} drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:65:69: note: expected 'long unsigned int' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 65 | static int z_ioctl (struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c: In function 'Sensor_WriteI2C': drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:104:50: warning: passing argument 3 of 'z_ioctl' makes integer from pointer without a cast [-Wint-conversion] 104 | ret = z_ioctl (pfile, SENSOR_IO_I2C_WRITE_EXT, &i2c_tab); | ^~~~~~~~ | | | struct sensor_i2c_tag * drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:65:69: note: expected 'long unsigned int' but argument is of type 'struct sensor_i2c_tag *' 65 | static int z_ioctl (struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c: In function 'Sensor_ReadI2C': drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:121:49: warning: passing argument 3 of 'z_ioctl' makes integer from pointer without a cast [-Wint-conversion] 121 | ret = z_ioctl (pfile, SENSOR_IO_I2C_READ_EXT, &i2c_tab); | ^~~~~~~~ | | | struct sensor_i2c_tag * drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:65:69: note: expected 'long unsigned int' but argument is of type 'struct sensor_i2c_tag *' 65 | static int z_ioctl (struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c: In function 'Sensor_ReadOtp': drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:232:49: warning: passing argument 3 of 'z_ioctl' makes integer from pointer without a cast [-Wint-conversion] 232 | ret = z_ioctl (pfile, SENSOR_IO_SET_I2CCLOCK, &clock); | ^~~~~~ | | | uint32_t * {aka unsigned int *} drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:65:69: note: expected 'long unsigned int' but argument is of type 'uint32_t *' {aka 'unsigned int *'} 65 | static int z_ioctl (struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:197:12: warning: unused variable 'is_need_checksum' [-Wunused-variable] 197 | uint32_t is_need_checksum = 0; | ^~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:192:10: warning: unused variable 'otp_start_addr' [-Wunused-variable] 192 | loff_t otp_start_addr = 0; | ^~~~~~~~~~~~~~ drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c: In function 'z_ioctl': drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:71:1: warning: control reaches end of non-void function [-Wreturn-type] 71 | } | ^ At top level: drivers/media/sprd_sensor/otp/sensor_otp_coreprime3g_ve.c:60:21: warning: 'pdebugfile' defined but not used [-Wunused-variable] 60 | static struct file *pdebugfile = NULL; | ^~~~~~~~~~ CC net/ipv6/addrconf.o LD drivers/media/sprd_sensor/otp/built-in.o CC drivers/media/sprd_sensor/power/sensor_power_sharkl_j3xlte.o LD net/l2tp/built-in.o CC net/netfilter/core.o LD drivers/media/sprd_sensor/power/built-in.o CC drivers/media/sprd_sensor/sensor_reloadinfo_thread.o LD drivers/media/sprd_sensor/sprd_sensor.o LD drivers/media/sprd_sensor/built-in.o LD drivers/media/tuners/built-in.o LD drivers/media/usb/b2c2/built-in.o LD drivers/media/usb/dvb-usb/built-in.o LD drivers/media/usb/dvb-usb-v2/built-in.o LD drivers/media/usb/s2255/built-in.o LD drivers/media/usb/siano/built-in.o LD drivers/media/usb/stkwebcam/built-in.o LD drivers/media/usb/ttusb-budget/built-in.o LD drivers/media/usb/ttusb-dec/built-in.o LD drivers/media/usb/zr364xx/built-in.o LD drivers/media/usb/built-in.o CC net/netfilter/nf_log.o CC drivers/media/v4l2-core/v4l2-dev.o CC drivers/media/v4l2-core/v4l2-ioctl.o CC net/netfilter/nf_queue.o CC net/ipv6/addrlabel.o CC net/netfilter/nf_sockopt.o CC net/ipv6/route.o CC drivers/media/v4l2-core/v4l2-device.o CC net/netfilter/nf_conntrack_core.o CC drivers/media/v4l2-core/v4l2-fh.o CC drivers/media/v4l2-core/v4l2-event.o CC net/netfilter/nf_conntrack_standalone.o CC drivers/media/v4l2-core/v4l2-ctrls.o CC net/ipv6/ip6_fib.o CC net/netfilter/nf_conntrack_expect.o CC drivers/media/v4l2-core/v4l2-subdev.o CC net/netfilter/nf_conntrack_helper.o CC drivers/media/v4l2-core/v4l2-of.o CC net/ipv6/ipv6_sockglue.o CC drivers/media/v4l2-core/v4l2-common.o CC net/netfilter/nf_conntrack_proto.o CC drivers/media/v4l2-core/videobuf-core.o CC net/ipv6/ndisc.o CC net/netfilter/nf_conntrack_l3proto_generic.o net/ipv6/ndisc.c: In function 'ndisc_router_discovery': net/ipv6/ndisc.c:1296:36: warning: converting a packed 'struct nd_opt_hdr' pointer (alignment 1) to a 'struct route_info' pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 1296 | struct route_info *ri = (struct route_info *)p; | ^~~~~~~~~~ In file included from include/net/ipv6.h:20, from net/ipv6/ndisc.c:57: include/net/ndisc.h:88:8: note: defined here 88 | struct nd_opt_hdr { | ^~~~~~~~~~ In file included from net/ipv6/ndisc.c:60: include/net/ip6_route.h:4:8: note: defined here 4 | struct route_info { | ^~~~~~~~~~ CC drivers/media/v4l2-core/videobuf-vmalloc.o CC net/netfilter/nf_conntrack_proto_generic.o CC net/ipv6/udp.o LD drivers/media/v4l2-core/videodev.o LD drivers/media/v4l2-core/built-in.o LD drivers/media/built-in.o CC net/netfilter/nf_conntrack_proto_tcp.o CC drivers/mmc/card/block-sprd.o drivers/mmc/card/block-sprd.c: In function 'mmc_blk_issue_rw_rq': drivers/mmc/card/block-sprd.c:2016:34: warning: unused variable 'retry' [-Wunused-variable] 2016 | int ret = 1, disable_multi = 0, retry = 0, type; | ^~~~~ drivers/mmc/card/block-sprd.c: In function 'mmc_blk_probe': drivers/mmc/card/block-sprd.c:930:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 930 | snprintf(card->err_log[0].type, sizeof(char)*4, "sbc "); | ^ drivers/mmc/card/block-sprd.c:930:2: note: 'snprintf' output 5 bytes into a destination of size 4 930 | snprintf(card->err_log[0].type, sizeof(char)*4, "sbc "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:931:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 931 | snprintf(card->err_log[1].type, sizeof(char)*4, "sbc "); | ^ drivers/mmc/card/block-sprd.c:931:2: note: 'snprintf' output 5 bytes into a destination of size 4 931 | snprintf(card->err_log[1].type, sizeof(char)*4, "sbc "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:935:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 935 | snprintf(card->err_log[2].type, sizeof(char)*4, "cmd "); | ^ drivers/mmc/card/block-sprd.c:935:2: note: 'snprintf' output 5 bytes into a destination of size 4 935 | snprintf(card->err_log[2].type, sizeof(char)*4, "cmd "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:936:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 936 | snprintf(card->err_log[3].type, sizeof(char)*4, "cmd "); | ^ drivers/mmc/card/block-sprd.c:936:2: note: 'snprintf' output 5 bytes into a destination of size 4 936 | snprintf(card->err_log[3].type, sizeof(char)*4, "cmd "); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:940:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 940 | snprintf(card->err_log[4].type, sizeof(char)*4, "data"); | ^ drivers/mmc/card/block-sprd.c:940:2: note: 'snprintf' output 5 bytes into a destination of size 4 940 | snprintf(card->err_log[4].type, sizeof(char)*4, "data"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:941:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 941 | snprintf(card->err_log[5].type, sizeof(char)*4, "data"); | ^ drivers/mmc/card/block-sprd.c:941:2: note: 'snprintf' output 5 bytes into a destination of size 4 941 | snprintf(card->err_log[5].type, sizeof(char)*4, "data"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:945:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 945 | snprintf(card->err_log[6].type, sizeof(char)*4, "stop"); | ^ drivers/mmc/card/block-sprd.c:945:2: note: 'snprintf' output 5 bytes into a destination of size 4 945 | snprintf(card->err_log[6].type, sizeof(char)*4, "stop"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:946:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 946 | snprintf(card->err_log[7].type, sizeof(char)*4, "stop"); | ^ drivers/mmc/card/block-sprd.c:946:2: note: 'snprintf' output 5 bytes into a destination of size 4 946 | snprintf(card->err_log[7].type, sizeof(char)*4, "stop"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:950:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 950 | snprintf(card->err_log[8].type, sizeof(char)*4, "busy"); | ^ drivers/mmc/card/block-sprd.c:950:2: note: 'snprintf' output 5 bytes into a destination of size 4 950 | snprintf(card->err_log[8].type, sizeof(char)*4, "busy"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:951:55: warning: 'snprintf' output truncated before the last format character [-Wformat-truncation=] 951 | snprintf(card->err_log[9].type, sizeof(char)*4, "busy"); | ^ drivers/mmc/card/block-sprd.c:951:2: note: 'snprintf' output 5 bytes into a destination of size 4 951 | snprintf(card->err_log[9].type, sizeof(char)*4, "busy"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/netfilter/nf_conntrack_proto_udp.o CC net/ipv6/udplite.o CC drivers/mmc/card/queue-sprd.o drivers/mmc/card/queue-sprd.c: In function 'mmc_queue_suspend': drivers/mmc/card/queue-sprd.c:453:11: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 453 | printk("%s: mq->flags: %ld, q->queue_flags: 0x%x, \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 454 | q->in_flight (%d, %d) \n", | ~~~~~~~~~~~~~~~~~~~~~~~~~ 455 | mmc_hostname(mq->card->host), mq->flags, | ~~~~~~~~~ | | | unsigned int drivers/mmc/card/queue-sprd.c:453:11: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] CC net/ipv6/raw.o CC net/netfilter/nf_conntrack_extend.o CC drivers/mmc/card/sdio_card.o CC [M] drivers/mmc/card/mmc_test.o CC net/netfilter/nf_conntrack_acct.o In file included from include/linux/printk.h:5, from include/linux/kernel.h:13, from include/linux/interrupt.h:5, from include/linux/mmc/core.h:11, from drivers/mmc/card/mmc_test.c:12: include/linux/init.h:300:6: warning: 'init_module' specifies less restrictive attribute than its target 'mmc_test_init': 'cold' [-Wmissing-attributes] 300 | int init_module(void) __attribute__((alias(#initfn))); | ^~~~~~~~~~~ drivers/mmc/card/mmc_test.c:3050:1: note: in expansion of macro 'module_init' 3050 | module_init(mmc_test_init); | ^~~~~~~~~~~ drivers/mmc/card/mmc_test.c:3036:19: note: 'init_module' target declared here 3036 | static int __init mmc_test_init(void) | ^~~~~~~~~~~~~ In file included from include/linux/printk.h:5, from include/linux/kernel.h:13, from include/linux/interrupt.h:5, from include/linux/mmc/core.h:11, from drivers/mmc/card/mmc_test.c:12: include/linux/init.h:306:7: warning: 'cleanup_module' specifies less restrictive attribute than its target 'mmc_test_exit': 'cold' [-Wmissing-attributes] 306 | void cleanup_module(void) __attribute__((alias(#exitfn))); | ^~~~~~~~~~~~~~ drivers/mmc/card/mmc_test.c:3051:1: note: in expansion of macro 'module_exit' 3051 | module_exit(mmc_test_exit); | ^~~~~~~~~~~ drivers/mmc/card/mmc_test.c:3041:20: note: 'cleanup_module' target declared here 3041 | static void __exit mmc_test_exit(void) | ^~~~~~~~~~~~~ CC net/ipv6/icmp.o CC net/netfilter/nf_conntrack_ecache.o LD drivers/mmc/card/mmc_block.o LD drivers/mmc/card/built-in.o CC drivers/mmc/core/core-sprd.o CC net/netfilter/nf_conntrack_h323_main.o CC net/ipv6/mcast.o CC drivers/mmc/core/bus.o CC net/netfilter/nf_conntrack_h323_asn1.o CC net/netfilter/nf_nat_core.o CC drivers/mmc/core/host.o CC net/ipv6/reassembly.o CC drivers/mmc/core/mmc.o drivers/mmc/core/mmc.c:1508:12: warning: 'mmc_can_sleep' defined but not used [-Wunused-function] 1508 | static int mmc_can_sleep(struct mmc_card *card) | ^~~~~~~~~~~~~ CC net/netfilter/nf_nat_proto_unknown.o CC net/ipv6/tcp_ipv6.o CC drivers/mmc/core/mmc_ops.o CC net/netfilter/nf_nat_proto_common.o CC drivers/mmc/core/sd.o CC net/netfilter/nf_nat_proto_udp.o CC net/ipv6/ping.o CC drivers/mmc/core/sd_ops.o CC net/netfilter/nf_nat_proto_tcp.o CC net/netfilter/nf_nat_helper.o CC drivers/mmc/core/sdio.o CC net/ipv6/exthdrs.o net/ipv6/exthdrs.c: In function 'ipv6_dest_hao': net/ipv6/exthdrs.c:201:23: warning: taking address of packed member of 'struct ipv6_destopt_hao' may result in an unaligned pointer value [-Waddress-of-packed-member] 201 | if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) { | ^~~~~~~~~~ net/ipv6/exthdrs.c:208:29: warning: taking address of packed member of 'struct ipv6_destopt_hao' may result in an unaligned pointer value [-Waddress-of-packed-member] 208 | (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); | ^~~~~~~~~~ CC drivers/mmc/core/sdio_ops.o CC net/netfilter/nfnetlink_queue_core.o CC drivers/mmc/core/sdio_bus.o net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_build_packet_message': net/netfilter/nfnetlink_queue_core.c:388:20: warning: taking address of packed member of 'struct nfqnl_msg_packet_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 388 | *packet_id_ptr = &pmsg->packet_id; | ^~~~~~~~~~~~~~~~ CC net/ipv6/datagram.o CC drivers/mmc/core/sdio_cis.o CC net/netfilter/nfnetlink.o CC drivers/mmc/core/sdio_io.o CC net/ipv6/ip6_flowlabel.o CC drivers/mmc/core/sdio_irq.o LD net/netfilter/nfnetlink_queue.o CC net/netfilter/nfnetlink_log.o CC drivers/mmc/core/quirks.o CC drivers/mmc/core/slot-gpio.o CC net/ipv6/inet6_connection_sock.o CC drivers/mmc/core/debugfs.o LD net/netfilter/nf_conntrack.o CC net/netfilter/nf_conntrack_proto_dccp.o LD drivers/mmc/core/mmc_core.o LD drivers/mmc/core/built-in.o CC drivers/mmc/host/sdhost.o CC net/ipv6/sysctl_net_ipv6.o In file included from drivers/mmc/host/sdhost.c:30: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost.c:28: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/mmc/host/sdhost.c:30: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost.c:28: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/mmc/host/sdhost.c:30: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost.c:28: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/mmc/host/sdhost.c:30: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost.c:28: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/mmc/host/sdhost.c:30: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost.c:28: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/mmc/host/sdhost.c: In function 'sdhost_hw_reset': drivers/mmc/host/sdhost.c:899:16: warning: unused variable 'flags' [-Wunused-variable] 899 | unsigned long flags; | ^~~~~ CC net/netfilter/nf_conntrack_proto_gre.o CC net/ipv6/xfrm6_policy.o net/ipv6/xfrm6_policy.c: In function '_decode_session6': net/ipv6/xfrm6_policy.c:168:5: warning: converting a packed 'struct ipv6_opt_hdr' pointer (alignment 1) to a '__be16' {aka 'short unsigned int'} pointer (alignment 2) may result in an unaligned pointer value [-Waddress-of-packed-member] 168 | __be16 *ports = (__be16 *)exthdr; | ^~~~~~ In file included from include/linux/ipv6.h:4, from include/net/if_inet6.h:19, from include/net/addrconf.h:50, from net/ipv6/xfrm6_policy.c:17: include/uapi/linux/ipv6.h:55:8: note: defined here 55 | struct ipv6_opt_hdr { | ^~~~~~~~~~~~ CC drivers/mmc/host/sdhost_debugfs.o CC net/ipv6/xfrm6_state.o In file included from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost_debugfs.c:15: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost_debugfs.c:15: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost_debugfs.c:15: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost_debugfs.c:15: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/mmc/host/sdhost_debugfs.c:15: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/mmc/host/sdhost_debugfs.c:17: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/netfilter/nf_conntrack_proto_sctp.o LD drivers/mmc/host/built-in.o LD drivers/mmc/built-in.o CC drivers/net/mii.o CC net/ipv6/xfrm6_input.o CC net/netfilter/nf_conntrack_proto_udplite.o CC drivers/net/Space.o CC net/ipv6/xfrm6_output.o CC net/netfilter/nf_conntrack_netlink.o CC drivers/net/loopback.o LD drivers/net/ethernet/8390/built-in.o LD drivers/net/ethernet/broadcom/built-in.o CC net/ipv6/netfilter.o LD drivers/net/ethernet/cadence/built-in.o LD drivers/net/ethernet/cirrus/built-in.o LD drivers/net/ethernet/faraday/built-in.o LD drivers/net/ethernet/i825xx/built-in.o LD drivers/net/ethernet/intel/built-in.o LD drivers/net/ethernet/marvell/built-in.o LD drivers/net/ethernet/micrel/built-in.o LD drivers/net/ethernet/microchip/built-in.o LD drivers/net/ethernet/natsemi/built-in.o LD drivers/net/ethernet/seeq/built-in.o CC drivers/net/ethernet/smsc/smc91x.o CC net/netfilter/nf_conntrack_amanda.o CC net/ipv6/fib6_rules.o CC net/netfilter/nf_conntrack_ftp.o CC net/ipv6/proc.o CC net/ipv6/ah6.o LD net/netfilter/nf_conntrack_h323.o CC net/netfilter/nf_conntrack_irc.o CC net/ipv6/esp6.o CC drivers/net/ethernet/smsc/smsc911x.o CC net/netfilter/nf_conntrack_broadcast.o CC net/ipv6/ipcomp6.o CC net/netfilter/nf_conntrack_netbios_ns.o CC net/ipv6/xfrm6_tunnel.o CC net/netfilter/nf_conntrack_pptp.o LD drivers/net/ethernet/smsc/built-in.o LD drivers/net/ethernet/stmicro/built-in.o LD drivers/net/ethernet/wiznet/built-in.o LD drivers/net/ethernet/built-in.o CC drivers/net/phy/phy.o CC net/ipv6/tunnel6.o CC net/netfilter/nf_conntrack_sane.o CC drivers/net/phy/phy_device.o CC net/netfilter/nf_conntrack_sip.o CC net/ipv6/xfrm6_mode_transport.o CC net/ipv6/xfrm6_mode_tunnel.o CC drivers/net/phy/mdio_bus.o CC net/ipv6/xfrm6_mode_beet.o CC net/netfilter/nf_conntrack_tftp.o LD drivers/net/phy/libphy.o LD drivers/net/phy/built-in.o CC drivers/net/ppp/ppp_generic.o CC net/ipv6/mip6.o LD net/netfilter/nf_nat.o CC net/netfilter/nf_nat_proto_dccp.o net/ipv6/mip6.c: In function 'mip6_destopt_reject': net/ipv6/mip6.c:236:13: warning: taking address of packed member of 'struct ipv6_destopt_hao' may result in an unaligned pointer value [-Waddress-of-packed-member] 236 | hao ? &hao->addr : &ipv6_hdr(skb)->saddr, | ^~~~~~~~~~ net/ipv6/mip6.c:258:29: warning: taking address of packed member of 'struct ipv6_destopt_hao' may result in an unaligned pointer value [-Waddress-of-packed-member] 258 | (hao ? (xfrm_address_t *)&hao->addr : NULL)); | ^~~~~~~~~~ CC net/ipv6/netfilter/ip6_tables.o CC net/netfilter/nf_nat_proto_udplite.o CC net/netfilter/nf_nat_proto_sctp.o CC drivers/net/ppp/ppp_async.o CC net/ipv6/netfilter/ip6table_filter.o CC net/netfilter/nf_nat_amanda.o CC net/ipv6/netfilter/ip6table_mangle.o CC net/netfilter/nf_nat_ftp.o CC drivers/net/ppp/bsd_comp.o CC net/netfilter/nf_nat_irc.o CC drivers/net/ppp/ppp_deflate.o CC net/ipv6/netfilter/ip6table_raw.o CC drivers/net/ppp/ppp_mppe.o CC net/netfilter/nf_nat_sip.o CC net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.o CC drivers/net/ppp/pppox.o CC net/netfilter/nf_nat_tftp.o CC net/ipv6/netfilter/nf_conntrack_proto_icmpv6.o CC net/netfilter/nf_tproxy_core.o CC drivers/net/ppp/pppoe.o CC net/ipv6/netfilter/nf_defrag_ipv6_hooks.o CC net/netfilter/x_tables.o CC drivers/net/ppp/pptp.o CC net/ipv6/netfilter/nf_conntrack_reasm.o CC drivers/net/ppp/pppolac.o CC net/ipv6/netfilter/ip6t_rpfilter.o CC net/netfilter/xt_tcpudp.o CC net/ipv6/netfilter/ip6t_REJECT.o CC drivers/net/ppp/pppopns.o CC net/netfilter/xt_mark.o LD net/ipv6/netfilter/nf_conntrack_ipv6.o LD net/ipv6/netfilter/nf_defrag_ipv6.o LD net/ipv6/netfilter/built-in.o CC net/ipv6/sit.o CC net/netfilter/xt_connmark.o LD drivers/net/ppp/built-in.o CC drivers/net/slip/slhc.o CC net/netfilter/xt_nat.o CC net/netfilter/xt_CLASSIFY.o CC net/ipv6/ip6_tunnel.o LD drivers/net/slip/built-in.o CC drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.o net/ipv6/ip6_tunnel.c: In function 'ip6_tnl_parse_tlv_enc_lim': net/ipv6/ip6_tunnel.c:410:40: warning: converting a packed 'struct ipv6_opt_hdr' pointer (alignment 1) to a 'struct frag_hdr' pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 410 | struct frag_hdr *frag_hdr = (struct frag_hdr *) hdr; | ^~~~~~~~ In file included from include/linux/ipv6.h:4, from include/net/ip.h:352, from net/ipv6/ip6_tunnel.c:49: include/uapi/linux/ipv6.h:55:8: note: defined here 55 | struct ipv6_opt_hdr { | ^~~~~~~~~~~~ In file included from include/net/ip_tunnels.h:16, from net/ipv6/ip6_tunnel.c:50: include/net/ipv6.h:105:8: note: defined here 105 | struct frag_hdr { | ^~~~~~~~ CC net/netfilter/xt_LOG.o drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c: In function 'wifi_256k_alloc': drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:62:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'unsigned char *' [-Wformat=] 62 | printk("\001" "0" "[wifi_256k_alloc][%d][0x%x]\n", i, wifi_mem[i].mem ); | ^~~~~~ ~~~~~~~~~~~~~~~ | | | unsigned char * drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:62:48: note: format string is defined here 62 | printk("\001" "0" "[wifi_256k_alloc][%d][0x%x]\n", i, wifi_mem[i].mem ); | ~^ | | | unsigned int | %hhn drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c: In function 'wifi_256k_free': drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:78:11: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'unsigned char *' [-Wformat=] 78 | printk("\001" "0" "[wifi_256k_free][%d][0x%x]\n", i, wifi_mem[i].mem ); | ^~~~~~ ~~~~~~~~~~~~~~~ | | | unsigned char * drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:78:47: note: format string is defined here 78 | printk("\001" "0" "[wifi_256k_free][%d][0x%x]\n", i, wifi_mem[i].mem ); | ~^ | | | unsigned int | %hhn drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c: In function 'sprdwl_mem_alloc': drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:93:10: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'unsigned char *' [-Wformat=] 93 | printk("\001" "0" "[wifi_mem][%d][0x%x]\n", i, wifi_mem[i].mem ); | ^~~~~~ ~~~~~~~~~~~~~~~ | | | unsigned char * drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.c:93:40: note: format string is defined here 93 | printk("\001" "0" "[wifi_mem][%d][0x%x]\n", i, wifi_mem[i].mem ); | ~^ | | | unsigned int | %hhn LD drivers/net/wireless/sc2331/sc2331_mem_alloc/built-in.o LD drivers/net/wireless/built-in.o CC drivers/net/tun.o CC net/netfilter/xt_NETMAP.o CC net/ipv6/addrconf_core.o CC net/netfilter/xt_NFLOG.o CC net/ipv6/exthdrs_core.o CC net/netfilter/xt_NFQUEUE.o LD drivers/net/built-in.o CC drivers/nfc/pn547.o CC net/netfilter/xt_REDIRECT.o CC net/ipv6/ip6_checksum.o CC net/netfilter/xt_TPROXY.o LD drivers/nfc/built-in.o CC drivers/of/base.o CC net/ipv6/ip6_icmp.o CC net/netfilter/xt_TCPMSS.o CC drivers/of/fdt.o CC net/ipv6/output_core.o CC net/netfilter/xt_TRACE.o CC drivers/of/address.o CC net/netfilter/xt_IDLETIMER.o CC drivers/of/irq.o CC net/ipv6/protocol.o CC drivers/of/device.o CC net/netfilter/xt_comment.o CC drivers/of/platform.o CC net/ipv6/ip6_offload.o CC net/netfilter/xt_connlimit.o CC net/ipv6/tcpv6_offload.o CC net/netfilter/xt_conntrack.o CC drivers/of/of_net.o CC net/ipv6/udp_offload.o CC net/netfilter/xt_ecn.o CC drivers/of/of_mdio.o CC net/ipv6/exthdrs_offload.o CC net/netfilter/xt_hashlimit.o LD drivers/of/built-in.o LD drivers/pinctrl/built-in.o CC drivers/platform/sprd/arch_init.o In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC net/ipv6/inet6_hashtables.o In file included from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/arch_lock.h:173:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 173 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:160:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 160 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC drivers/platform/sprd/arch_misc.o In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:48: warning: "REGS_GLB_BASE" redefined 48 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc9630.h:145: note: this is the location of the previous definition 145 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:50: warning: "REGS_AHB_BASE" redefined 50 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:32, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc9630.h:134: note: this is the location of the previous definition 134 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:51: warning: "SPRD_MISC_BASE" redefined 51 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:32, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc9630.h:114: note: this is the location of the previous definition 114 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:69: warning: "ANA_REGS_GLB_BASE" redefined 69 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:32, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc9630.h:146: note: this is the location of the previous definition 146 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:107: warning: "SCI_ADDR" redefined 107 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:32, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc9630.h:30: note: this is the location of the previous definition 30 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | CC net/netfilter/xt_helper.o In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/platform/sprd/arch_misc.c:15: drivers/platform/sprd/arch_misc.c: In function 'set_section_ro': include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'pmd_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:10:18: note: in expansion of macro 'KERN_SOH' 10 | #define KERN_ERR KERN_SOH "3" /* error conditions */ | ^~~~~~~~ include/linux/printk.h:216:9: note: in expansion of macro 'KERN_ERR' 216 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~ drivers/platform/sprd/arch_misc.c:97:4: note: in expansion of macro 'pr_err' 97 | pr_err("%s: pmd %p=%08lx for %08lx not section map\n", | ^~~~~~ include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'pmd_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:14:20: note: in expansion of macro 'KERN_SOH' 14 | #define KERN_DEBUG KERN_SOH "7" /* debug-level messages */ | ^~~~~~~~ include/linux/printk.h:246:12: note: in expansion of macro 'KERN_DEBUG' 246 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/platform/sprd/arch_misc.c:107:3: note: in expansion of macro 'pr_debug' 107 | pr_debug("%s: pmd %p=%08lx for %08lx ok\n", | ^~~~~~~~ drivers/platform/sprd/arch_misc.c:86:16: warning: unused variable 'pmd_end' [-Wunused-variable] 86 | unsigned long pmd_end; | ^~~~~~~ CC drivers/platform/sprd/adi.o In file included from drivers/platform/sprd/adi.c:30: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ CC net/netfilter/xt_hl.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | drivers/platform/sprd/adi.c: In function 'sci_adi_init': drivers/platform/sprd/adi.c:355:17: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 355 | sprd_adi_base = ioremap_nocache(res.start, | ^ LD net/ipv6/ipv6.o LD net/ipv6/built-in.o CC net/netlink/af_netlink.o CC net/netfilter/xt_iprange.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/platform/sprd/adc.o In file included from drivers/platform/sprd/adc.c:28: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from drivers/platform/sprd/adc.c:29: include/soc/sprd/arch_lock.h:173:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 173 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:160:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 160 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC net/netfilter/xt_length.o In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | CC drivers/platform/sprd/glb.o In file included from drivers/platform/sprd/glb.c:23: include/soc/sprd/sci_glb_regs.h:79:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 79 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:92:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 92 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:236: warning: "BITS_HPROT_DMAW" redefined 236 | #define BITS_HPROT_DMAW(_x_) ( (_x_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:645: note: this is the location of the previous definition 645 | #define BITS_HPROT_DMAW(_X_) ( (_X_) << 4 & (BIT(4)|BIT(5)|BIT(6)|BIT(7)) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:237: warning: "BITS_HPROT_DMAR" redefined 237 | #define BITS_HPROT_DMAR(_x_) ( (_x_) << 0 & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:646: note: this is the location of the previous definition 646 | #define BITS_HPROT_DMAR(_X_) ( (_X_) & (BIT(0)|BIT(1)|BIT(2)|BIT(3)) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:407: warning: "BIT_GPU_SOFT_RST" redefined 407 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:252, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_gpu_apb_rf.h:36: note: this is the location of the previous definition 36 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:706: warning: "BIT_CA7_C3_PU_LOCK" redefined 706 | #define BIT_CA7_C3_PU_LOCK ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:184: note: this is the location of the previous definition 184 | #define BIT_CA7_C3_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:707: warning: "BIT_CA7_C2_PU_LOCK" redefined 707 | #define BIT_CA7_C2_PU_LOCK ( BIT(2) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:181: note: this is the location of the previous definition 181 | #define BIT_CA7_C2_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:255, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_pmu_apb_rf.h:708: warning: "BIT_CA7_C1_PU_LOCK" redefined 708 | #define BIT_CA7_C1_PU_LOCK ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:178: note: this is the location of the previous definition 178 | #define BIT_CA7_C1_PU_LOCK ( BIT(0) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:153: warning: "BIT_AP_EMC_AUTO_GATE_EN" redefined 153 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(4) ) | CC net/netfilter/xt_limit.o In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:552: note: this is the location of the previous definition 552 | #define BIT_AP_EMC_AUTO_GATE_EN ( BIT(1) ) | In file included from include/soc/sprd/sci_glb_regs.h:249, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_ap_ahb_rf.h:154: warning: "BIT_CA7_EMC_AUTO_GATE_EN" redefined 154 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(3) ) | In file included from include/soc/sprd/sci_glb_regs.h:247, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x35l/__regs_aon_apb_rf.h:553: note: this is the location of the previous definition 553 | #define BIT_CA7_EMC_AUTO_GATE_EN ( BIT(0) ) | I