+ export BPO_JOB_ID=581354 + BPO_JOB_ID=581354 + 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-finepower-f1 (002320) [15:59:56] % cd /home/build/pmaports; git remote -v origin https://gitlab.com/postmarketOS/pmaports.git/ (fetch) origin https://gitlab.com/postmarketOS/pmaports.git/ (push) (002320) [15:59:56] % 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 (002320) [15:59:56] Shutdown complete (002320) [15:59:56] Calculate work folder size (002320) [15:59:56] % sudo du -ks /home/build/.local/var/pmbootstrap 20 /home/build/.local/var/pmbootstrap (002320) [15:59:56] Shutdown complete (002320) [15:59:56] % sudo du -ks /home/build/.local/var/pmbootstrap 20 /home/build/.local/var/pmbootstrap (002320) [15:59:56] Cleared up ~0 MB of space (002320) [15:59:56] APKINDEX outdated (file does not exist yet): http://build.postmarketos.org/wip/master/armv7/APKINDEX.tar.gz (002320) [15:59:56] APKINDEX outdated (file does not exist yet): http://mirror.postmarketos.org/postmarketos/master/armv7/APKINDEX.tar.gz (002320) [15:59:56] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz (002320) [15:59:56] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz (002320) [15:59:56] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz (002320) [15:59:56] Update package index for armv7 (5 file(s)) (002320) [15:59:56] % mkdir -p /home/build/.local/var/pmbootstrap/cache_http (002320) [15:59:56] Download http://build.postmarketos.org/wip/master/armv7/APKINDEX.tar.gz (002320) [15:59:57] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_apk_armv7 (002320) [15:59:57] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_998f7344438a1788b147ed513f6089174b226690ae3d66156cb5ad15c0b72094 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.af6ab7cc.tar.gz (002320) [15:59:57] Download http://mirror.postmarketos.org/postmarketos/master/armv7/APKINDEX.tar.gz (002320) [15:59:57] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_1ac903ac063665387c34164a0e83a5c312b7e081baa5ffa9d72b7c3c8a7e0d02 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.bdd0d494.tar.gz (002320) [15:59:57] Download http://dl-4.alpinelinux.org/alpine/edge/main/armv7/APKINDEX.tar.gz (002320) [15:59:58] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b894cc111f87d781ddff66d11108cb154a7ec03d2ff6ede85d1981e0686cb930 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.ed54c246.tar.gz (002320) [15:59:58] Download http://dl-4.alpinelinux.org/alpine/edge/community/armv7/APKINDEX.tar.gz (002320) [15:59:59] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_2711711070325f8796558accbc5c494a4477cd3aae3d87e2b77ac2088bf47f40 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.e76b60f6.tar.gz (002320) [15:59:59] Download http://dl-4.alpinelinux.org/alpine/edge/testing/armv7/APKINDEX.tar.gz (002320) [16:00:00] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_a9dc322bd1623cfa5460d475f77fc452b38a9a192c6d6bf87ea68fd01b1c06b9 /home/build/.local/var/pmbootstrap/cache_apk_armv7/APKINDEX.24c95890.tar.gz (002320) [16:00:00] APKINDEX outdated (file does not exist yet): http://build.postmarketos.org/wip/master/x86_64/APKINDEX.tar.gz (002320) [16:00:00] APKINDEX outdated (file does not exist yet): http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz (002320) [16:00:00] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz (002320) [16:00:00] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz (002320) [16:00:00] APKINDEX outdated (file does not exist yet): http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz (002320) [16:00:00] Update package index for x86_64 (5 file(s)) (002320) [16:00:00] Download http://build.postmarketos.org/wip/master/x86_64/APKINDEX.tar.gz (002320) [16:00:00] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_apk_x86_64 (002320) [16:00:00] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b5c42e3975be0fe9e47c9d10368cdb12b769d34497838f599f197797ceee4130 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.af6ab7cc.tar.gz (002320) [16:00:00] Download http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz (002320) [16:00:00] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_fbf6a6bb13f455234f8410708d660d6939b023713fb7426b3335eb2673669e92 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.bdd0d494.tar.gz (002320) [16:00:00] Download http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz (002320) [16:00:01] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_aa67e23cbb4d0d6bd4a068d4c1ffaddafc17982b20d0b66bba28fd70e9dcca18 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.ed54c246.tar.gz (002320) [16:00:01] Download http://dl-4.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz (002320) [16:00:02] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_98c2384a26483d9f5a647c0da3addb5180f319fb8359ed26c35bd8d941d5a68d /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.e76b60f6.tar.gz (002320) [16:00:02] Download http://dl-4.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz (002320) [16:00:03] % sudo cp /home/build/.local/var/pmbootstrap/cache_http/APKINDEX_b44671428b2a6d432bdd2a5fc8cee55ea633c42c3fc24145ccf43677cb953bb9 /home/build/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.24c95890.tar.gz (002320) [16:00:10] Build is necessary for package 'linux-finepower-f1': Binary package out of date (binary: 3.10.65-r4, aport: 3.10.65-r5) (002320) [16:00:10] NOTE: Skipped apk version check for chroot 'native', because it is not installed yet! (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/dev (002320) [16:00:10] % sudo mount -t tmpfs -o size=1M,noexec,dev tmpfs /home/build/.local/var/pmbootstrap/chroot_native/dev (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/dev/pts /home/build/.local/var/pmbootstrap/chroot_native/dev/shm (002320) [16:00:10] % sudo mount -t tmpfs -o nodev,nosuid,noexec tmpfs /home/build/.local/var/pmbootstrap/chroot_native/dev/shm (002320) [16:00:10] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/null c 1 3 (002320) [16:00:10] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/zero c 1 5 (002320) [16:00:10] % sudo mknod -m 666 /home/build/.local/var/pmbootstrap/chroot_native/dev/full c 1 7 (002320) [16:00:10] % sudo mknod -m 644 /home/build/.local/var/pmbootstrap/chroot_native/dev/random c 1 8 (002320) [16:00:10] % sudo mknod -m 644 /home/build/.local/var/pmbootstrap/chroot_native/dev/urandom c 1 9 (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/proc (002320) [16:00:10] % sudo mount --bind /proc /home/build/.local/var/pmbootstrap/chroot_native/proc (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/var/cache/apk (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_apk_x86_64 /home/build/.local/var/pmbootstrap/chroot_native/var/cache/apk (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_ccache_x86_64 (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-ccache (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_ccache_x86_64 /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-ccache (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_distfiles (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/var/cache/distfiles (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_distfiles /home/build/.local/var/pmbootstrap/chroot_native/var/cache/distfiles (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-git (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_git /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-git (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/cache_rust (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-rust (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/cache_rust /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-rust (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/config_abuild (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-abuild-config (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/config_abuild /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-abuild-config (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/config_apk_keys (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/keys (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/config_apk_keys /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/keys (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/packages/edge (002320) [16:00:10] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-packages (002320) [16:00:10] % sudo mount --bind /home/build/.local/var/pmbootstrap/packages/edge /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap-packages (002320) [16:00:10] % sudo touch /home/build/.local/var/pmbootstrap/chroot_native/in-pmbootstrap (002320) [16:00:10] Download http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.12.7-r0.apk (002320) [16:00:12] sigfilename: sbin/apk.static.SIGN.RSA.alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002320) [16:00:12] sigkey: alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002320) [16:00:12] extracted: /tmp/pmbootstrap57q05aecapk (002320) [16:00:12] extracted: /tmp/pmbootstrapuzykk5f2sig (002320) [16:00:12] Verify apk.static signature with /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub (002320) [16:00:12] % openssl dgst -sha1 -verify /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub -signature /tmp/pmbootstrapuzykk5f2sig /tmp/pmbootstrap57q05aecapk Verified OK (002320) [16:00:12] Verify the version reported by the apk.static binary (must match the package version 2.12.7-r0) (002320) [16:00:12] % /tmp/pmbootstrap57q05aecapk --version apk-tools 2.12.7, compiled for x86_64. (002320) [16:00:12] (native) install alpine-base (002320) [16:00:12] % sudo ln -s -f /var/cache/apk /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/cache (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58199dcc.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5261cecb.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58cbb476.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-58e4f17d.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-5243ef4b.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/build.postmarketos.org.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/wip.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /home/build/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-524d27bb.rsa.pub /home/build/.local/var/pmbootstrap/config_apk_keys/ (002320) [16:00:12] % sudo cp /etc/resolv.conf /home/build/.local/var/pmbootstrap/chroot_native/etc/resolv.conf (002320) [16:00:12] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/etc/apk (002320) [16:00:12] (native) update /etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo /mnt/pmbootstrap-packages >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo http://build.postmarketos.org/wip/master >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo http://mirror.postmarketos.org/postmarketos/master >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/main >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/community >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo sh -c echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /home/build/.local/var/pmbootstrap/chroot_native/etc/apk/repositories (002320) [16:00:12] % sudo mkdir -p /home/build/.local/var/pmbootstrap/tmp (002320) [16:00:12] % sudo mkfifo /home/build/.local/var/pmbootstrap/tmp/apk_progress_fifo (002320) [16:00:12] % sudo cat /home/build/.local/var/pmbootstrap/tmp/apk_progress_fifo (002320) [16:00:12] % 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 (002320) [16:00:12] New background process: pid=2397, 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 (002320) [16:00:18] (native) % adduser -D pmos -u 12345 (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-abuild-config /home/pmos/.abuild (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-abuild-config (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-ccache /home/pmos/.ccache (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-ccache (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/packages (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-packages /home/pmos/packages/pmos (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-packages (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/registry (002320) [16:00:18] (native) % mkdir -p /mnt/pmbootstrap-rust/registry/index (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/registry/index /home/pmos/.cargo/registry/index (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/registry/index (002320) [16:00:18] (native) % mkdir -p /mnt/pmbootstrap-rust/registry/cache (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/registry/cache /home/pmos/.cargo/registry/cache (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/registry/cache (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/git (002320) [16:00:18] (native) % mkdir -p /mnt/pmbootstrap-rust/git/db (002320) [16:00:18] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap-rust/git/db /home/pmos/.cargo/git/db (002320) [16:00:18] (native) % chown pmos:pmos /mnt/pmbootstrap-rust/git/db (002320) [16:00:18] (native) calculate depends of abuild, build-base, ccache, git (pmbootstrap -v for details) (002320) [16:00:18] (native) install abuild build-base ccache git (002320) [16:00:18] % sudo mkfifo /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002320) [16:00:18] (native) % cat /tmp/apk_progress_fifo (002320) [16:00:18] (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 (002320) [16:00:18] New background process: pid=2435, 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 (20210905.160018) Executing busybox-1.34.0-r2.trigger Executing ca-certificates-20191127-r5.trigger OK: 216 MiB in 60 packages (002320) [16:04:03] (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 (002320) [16:04:04] (native) % apk --no-progress del .pmbootstrap WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/1) Purging .pmbootstrap (20210905.160018) OK: 216 MiB in 59 packages (002320) [16:04:04] (native) % chown root:abuild /var/cache/distfiles (002320) [16:04:04] (native) % chmod g+w /var/cache/distfiles (002320) [16:04:04] (native) generate abuild keys (002320) [16:04:04] (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 (002320) [16:04:04] (native) % cp /mnt/pmbootstrap-abuild-config/pmos@local-6134ea74.rsa.pub /etc/apk/keys/ (002320) [16:04:04] (native) % cp /tmp/gzip_wrapper.sh /usr/local/bin/gzip (002320) [16:04:04] (native) % chmod +x /usr/local/bin/gzip (002320) [16:04:04] (native) % adduser pmos abuild (002320) [16:04:04] (native) % sed -i -e s/^CLEANUP=.*/CLEANUP=''/ /etc/abuild.conf (002320) [16:04:04] (native) % sed -i -e s/^ERROR_CLEANUP=.*/ERROR_CLEANUP=''/ /etc/abuild.conf (002320) [16:04:04] (native) % touch /var/local/pmbootstrap_chroot_build_init_done (002320) [16:04:04] (native) % sed -i -e s/^export JOBS=.*/export JOBS=3/ /etc/abuild.conf (002320) [16:04:04] (native) % busybox su pmos -c HOME=/home/pmos ccache --max-size 5G Set cache size limit to 5.0 GB (002320) [16:04:04] (native) calculate depends of ccache-cross-symlinks, gcc-armv7, g++-armv7 (pmbootstrap -v for details) (002320) [16:04:05] (native) install ccache-cross-symlinks gcc-armv7 g++-armv7 (002320) [16:04:05] % sudo rm -f /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002320) [16:04:05] % sudo mkfifo /home/build/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo (002320) [16:04:05] (native) % cat /tmp/apk_progress_fifo (002320) [16:04:05] (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 (002320) [16:04:05] New background process: pid=2482, 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 (20210905.160405) Executing busybox-1.34.0-r2.trigger OK: 379 MiB in 65 packages (002320) [16:05:11] (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 (002320) [16:05:11] (native) % apk --no-progress del .pmbootstrap WARNING: Ignoring /mnt/pmbootstrap-packages: No such file or directory (1/1) Purging .pmbootstrap (20210905.160405) OK: 379 MiB in 64 packages (002320) [16:05:11] (native) build armv7/linux-finepower-f1-3.10.65-r5.apk (002320) [16:05:11] % sudo cp -rL /home/build/pmaports/device/testing/linux-finepower-f1/ /home/build/.local/var/pmbootstrap/chroot_native/home/pmos/build (002320) [16:05:11] (native) % chown -R pmos:pmos /home/pmos/build (002320) [16:05:11] % sudo mkdir -p /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmaports (002320) [16:05:11] % sudo mount --bind /home/build/pmaports /home/build/.local/var/pmbootstrap/chroot_native/mnt/pmaports (002320) [16:05:11] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/build (002320) [16:05:11] (native) % busybox su pmos -c HOME=/home/pmos ln -sf /mnt/pmaports/.git /home/pmos/build/.git (002320) [16:05:11] (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-finepower-f1>>> linux-finepower-f1: Building pmos/linux-finepower-f1 3.10.65-r5 (using abuild 3.8.0_rc4-r0) started Sun, 05 Sep 2021 16:05:12 +0000 >>> linux-finepower-f1: Checking sanity of /home/pmos/build/APKBUILD... >>> WARNING: linux-finepower-f1: No maintainer >>> linux-finepower-f1: Analyzing dependencies... >>> linux-finepower-f1: Installing for build: build-base 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/52) Installing libbz2 (1.0.8-r1) (2/52) Installing perl (5.34.0-r1) (3/52) Installing sed (4.8-r0) (4/52) Installing installkernel (3.5-r1) (5/52) Installing ncurses-terminfo-base (6.2_p20210904-r1) (6/52) Installing ncurses-libs (6.2_p20210904-r1) (7/52) Installing readline (8.1.1-r0) (8/52) Installing bash (5.1.8-r0) Executing bash-5.1.8-r0.post-install (9/52) Installing libgmpxx (6.2.1-r0) (10/52) Installing gmp-dev (6.2.1-r0) (11/52) Installing bc (1.07.1-r1) (12/52) Installing linux-headers (5.10.41-r0) (13/52) Installing fts (1.2.7-r1) (14/52) Installing xz-libs (5.2.5-r0) (15/52) Installing libelf (0.185-r0) (16/52) Installing xz-dev (5.2.5-r0) (17/52) Installing zlib-dev (1.2.11-r3) (18/52) Installing elfutils-dev (0.185-r0) (19/52) Installing libpng (1.6.37-r1) (20/52) Installing freetype (2.11.0-r0) (21/52) Installing libuuid (2.37.2-r1) (22/52) Installing fontconfig (2.13.1-r4) (23/52) Installing encodings (1.0.5-r0) (24/52) Installing libfontenc (1.1.4-r0) (25/52) Installing mkfontscale (1.2.1-r1) (26/52) Installing ttf-dejavu (2.37-r1) (27/52) Installing ttf-droid (20200215-r1) (28/52) Installing py3-olefile (0.46-r5) (29/52) Installing libimagequant (2.15.1-r0) (30/52) Installing libjpeg-turbo (2.1.1-r0) (31/52) Installing lcms2 (2.12-r1) (32/52) Installing openjpeg (2.4.0-r2) (33/52) Installing libwebp (1.2.1-r0) (34/52) Installing tiff (4.2.0-r1) (35/52) Installing libxau (1.0.9-r0) (36/52) Installing libmd (1.0.3-r0) (37/52) Installing libbsd (0.11.3-r0) (38/52) Installing libxdmcp (1.1.3-r0) (39/52) Installing libxcb (1.14-r2) (40/52) Installing py3-pillow (8.1.2-r1) (41/52) Installing libffi (3.3-r2) (42/52) Installing gdbm (1.20-r2) (43/52) Installing mpdecimal (2.5.1-r1) (44/52) Installing sqlite-libs (9999-r0) (45/52) Installing python3 (3.9.6-r0) (46/52) Installing postmarketos-splash (1.0.0-r1) (47/52) Installing devicepkg-dev (0.13.0-r0) (48/52) Installing dtbtool-sprd (1.1.2-r0) (49/52) Installing .makedepends-linux-finepower-f1 (20210905.160512) (50/52) Installing perl-error (0.17029-r1) (51/52) Installing perl-git (2.33.0-r0) (52/52) 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 116 packages ]0;>>> linux-finepower-f1: Cleaning up srcdir ]0;>>> linux-finepower-f1: Cleaning up pkgdir >>> linux-finepower-f1: Fetching linux-finepower-f1-b30390f1645dcf1ebd08148d7d4086a544c56435.zip::https://github.com/jedld/kernel_7730/archive/b30390f1645dcf1ebd08148d7d4086a544c56435.zip % 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 156 100 156 0 0 1431 0 --:--:-- --:--:-- --:--:-- 1431 100 2144k 0 2144k 0 0 2014k 0 --:--:-- 0:00:01 --:--:-- 2014k 100 9.8M 0 9.8M 0 0 4886k 0 --:--:-- 0:00:02 --:--:-- 7944k 100 18.3M 0 18.3M 0 0 6117k 0 --:--:-- 0:00:03 --:--:-- 8301k 100 27.3M 0 27.3M 0 0 6887k 0 --:--:-- 0:00:04 --:--:-- 8616k 100 35.9M 0 35.9M 0 0 7218k 0 --:--:-- 0:00:05 --:--:-- 8591k 100 43.7M 0 43.7M 0 0 7388k 0 --:--:-- 0:00:06 --:--:-- 8532k 100 51.4M 0 51.4M 0 0 7448k 0 --:--:-- 0:00:07 --:--:-- 8505k 100 56.4M 0 56.4M 0 0 7169k 0 --:--:-- 0:00:08 --:--:-- 7813k 100 64.8M 0 64.8M 0 0 7324k 0 --:--:-- 0:00:09 --:--:-- 7680k 100 72.3M 0 72.3M 0 0 7361k 0 --:--:-- 0:00:10 --:--:-- 7507k 100 75.2M 0 75.2M 0 0 6965k 0 --:--:-- 0:00:11 --:--:-- 6452k 100 83.3M 0 83.3M 0 0 7074k 0 --:--:-- 0:00:12 --:--:-- 6546k 100 93.4M 0 93.4M 0 0 7323k 0 --:--:-- 0:00:13 --:--:-- 7571k 100 101M 0 101M 0 0 7411k 0 --:--:-- 0:00:14 --:--:-- 7569k 100 108M 0 108M 0 0 7400k 0 --:--:-- 0:00:15 --:--:-- 7479k 100 115M 0 115M 0 0 7357k 0 --:--:-- 0:00:16 --:--:-- 8224k 100 123M 0 123M 0 0 7416k 0 --:--:-- 0:00:17 --:--:-- 8241k 100 130M 0 130M 0 0 7425k 0 --:--:-- 0:00:18 --:--:-- 7692k 100 138M 0 138M 0 0 7458k 0 --:--:-- 0:00:19 --:--:-- 7589k 100 147M 0 147M 0 0 7511k 0 --:--:-- 0:00:20 --:--:-- 7847k 100 148M 0 148M 0 0 7526k 0 --:--:-- 0:00:20 --:--:-- 8189k >>> linux-finepower-f1: Fetching sprd-scx20_sp7731ceb.dts::https://raw.githubusercontent.com/HenriDellal/generic-kernels-code/master/arch/arm/boot/dts/finepower-f1.dts % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 71298 100 71298 0 0 546k 0 --:--:-- --:--:-- --:--:-- 548k >>> linux-finepower-f1: Fetching https://raw.githubusercontent.com/HenriDellal/generic-kernels-code/master/drivers/video/sprdfb/lcd/lcd_st7796s_mipi.c % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 5371 100 5371 0 0 44435 0 --:--:-- --:--:-- --:--:-- 44758 >>> linux-finepower-f1: Fetching linux-finepower-f1-b30390f1645dcf1ebd08148d7d4086a544c56435.zip::https://github.com/jedld/kernel_7730/archive/b30390f1645dcf1ebd08148d7d4086a544c56435.zip >>> linux-finepower-f1: Fetching sprd-scx20_sp7731ceb.dts::https://raw.githubusercontent.com/HenriDellal/generic-kernels-code/master/arch/arm/boot/dts/finepower-f1.dts >>> linux-finepower-f1: Fetching https://raw.githubusercontent.com/HenriDellal/generic-kernels-code/master/drivers/video/sprdfb/lcd/lcd_st7796s_mipi.c >>> linux-finepower-f1: Checking sha512sums... linux-finepower-f1-b30390f1645dcf1ebd08148d7d4086a544c56435.zip: OK config-finepower-f1.armv7: OK sprd-scx20_sp7731ceb.dts: OK lcd_st7796s_mipi.c: OK kernel-use-the-gnu89-standard-explicitly.patch: OK gcc7-give-up-on-ilog2-const-optimizations.patch: OK gcc8-fix-put-user.patch: OK gcc10-extern_YYLOC_global_declaration.patch: OK 01-remove-path-to-missing-driver.patch: OK 02-fix-includes-dump-lowpower-regs.patch: OK 03-set-BGR565-color-mode.patch: OK 04-add-st7796s-mipi-panel-support.patch: OK 05-fix-X11.patch: OK >>> linux-finepower-f1: Unpacking /var/cache/distfiles/linux-finepower-f1-b30390f1645dcf1ebd08148d7d4086a544c56435.zip... >>> linux-finepower-f1: kernel-use-the-gnu89-standard-explicitly.patch patching file Makefile >>> linux-finepower-f1: gcc7-give-up-on-ilog2-const-optimizations.patch patching file include/linux/log2.h >>> linux-finepower-f1: gcc8-fix-put-user.patch patching file arch/arm/include/asm/uaccess.h Hunk #1 succeeded at 168 (offset 6 lines). >>> linux-finepower-f1: gcc10-extern_YYLOC_global_declaration.patch patching file scripts/dtc/dtc-lexer.l patching file scripts/dtc/dtc-lexer.lex.c_shipped >>> linux-finepower-f1: 01-remove-path-to-missing-driver.patch patching file drivers/net/wireless/Kconfig >>> linux-finepower-f1: 02-fix-includes-dump-lowpower-regs.patch patching file drivers/platform/sprd/dump_lowpower_regs.c >>> linux-finepower-f1: 03-set-BGR565-color-mode.patch patching file drivers/video/sprdfb/sprdfb_main.c >>> linux-finepower-f1: 04-add-st7796s-mipi-panel-support.patch patching file drivers/video/sprdfb/Kconfig patching file drivers/video/sprdfb/lcd/Makefile >>> linux-finepower-f1: 05-fix-X11.patch patching file drivers/video/sprdfb/sprdfb_main.c Hunk #1 succeeded at 550 (offset 19 lines). NOTE: replacing /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/include/linux/compiler-gcc.h' make: Entering directory '/home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435' 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 In file included from scripts/kconfig/zconf.tab.c:2503: scripts/kconfig/menu.c: In function 'get_symbol_str': scripts/kconfig/menu.c:567:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized] 567 | jump->offset = r->len - 1; | ~~~~~~~~~~~~~^~~~~~~~~~~~ scripts/kconfig/menu.c:528:19: note: 'jump' was declared here 528 | struct jump_key *jump; | ^~~~ HOSTLD scripts/kconfig/conf scripts/kconfig/conf --oldconfig Kconfig # # configuration written to .config # make: Leaving directory '/home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/zconf.tab.o In file included from scripts/kconfig/zconf.tab.c:2503: scripts/kconfig/menu.c: In function 'get_symbol_str': scripts/kconfig/menu.c:567:18: warning: 'jump' may be used uninitialized in this function [-Wmaybe-uninitialized] 567 | jump->offset = r->len - 1; | ~~~~~~~~~~~~~^~~~~~~~~~~~ scripts/kconfig/menu.c:528:19: note: 'jump' was declared here 528 | struct jump_key *jump; | ^~~~ 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 CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h WRAP arch/arm/include/generated/asm/current.h WRAP arch/arm/include/generated/asm/emergency-restart.h WRAP arch/arm/include/generated/asm/errno.h WRAP arch/arm/include/generated/asm/exec.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 Generating include/generated/mach-types.h HOSTCC scripts/genksyms/genksyms.o CC kernel/bounds.s GEN include/generated/bounds.h CC arch/arm/kernel/asm-offsets.s GEN include/generated/asm-offsets.h CALL scripts/checksyscalls.sh SHIPPED scripts/genksyms/lex.lex.c HOSTCC scripts/dtc/data.o SHIPPED scripts/genksyms/keywords.hash.c SHIPPED scripts/genksyms/parse.tab.h SHIPPED scripts/genksyms/parse.tab.c HOSTCC scripts/genksyms/lex.lex.o 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 HOSTCC scripts/genksyms/parse.tab.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/livetree.o HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s MKELF scripts/mod/elfconfig.h GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/selinux/genheaders/genheaders HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/selinux/mdp/mdp HOSTCC scripts/dtc/treesource.o HOSTCC scripts/kallsyms HOSTCC scripts/dtc/util.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/mod/sumversion.o HOSTCC scripts/conmakehash HOSTCC scripts/mod/file2alias.o HOSTCC scripts/sortextable scripts/sortextable.c:68:1: warning: 'succeed_file' defined but not used [-Wunused-function] 68 | succeed_file(void) | ^~~~~~~~~~~~ In file included from scripts/sortextable.c:166: scripts/sortextable.c: In function 'main': scripts/sortextable.h:158:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized] 158 | memset(relocs, 0, relocs_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/sortextable.h:104:6: note: 'relocs_size' was declared here 104 | int relocs_size; | ^~~~~~~~~~~ In file included from scripts/sortextable.c:164: scripts/sortextable.h:158:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized] 158 | memset(relocs, 0, relocs_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/sortextable.h:104:6: note: 'relocs_size' was declared here 104 | int relocs_size; | ^~~~~~~~~~~ HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc 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 usr/initramfs_data.o init/main.c: In function 'do_one_initcall_debug': init/main.c:672:7: warning: unused variable 'name' [-Wunused-variable] 672 | char name[256]={0}; | ^~~~ AS arch/arm/vfp/entry.o LD usr/built-in.o CC arch/arm/kernel/elf.o AS arch/arm/vfp/vfphw.o CC arch/arm/vfp/vfpsingle.o AS arch/arm/kernel/entry-armv.o AS arch/arm/kernel/entry-common.o CC arch/arm/kernel/irq.o CHK include/generated/compile.h CC arch/arm/vfp/vfpdouble.o UPD include/generated/compile.h CC init/do_mounts.o CC arch/arm/kernel/opcodes.o CC arch/arm/kernel/process.o LD arch/arm/vfp/vfp.o LD arch/arm/vfp/built-in.o CC init/do_mounts_initrd.o CC arch/arm/mm/dma-mapping.o CC init/initramfs.o CC arch/arm/kernel/ptrace.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': 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; | ^~~~~~~~~~~~~ CC arch/arm/mm/extable.o CC init/calibrate.o CC arch/arm/mm/fault.o CC init/init_task.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/init.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/kernel/sched_clock.o CC init/version.o In file included from arch/arm/mm/init.c:40: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mm/init.c:40: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from arch/arm/mm/init.c:40: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC arch/arm/kernel/setup.o LD init/mounts.o LD init/built-in.o CC arch/arm/common/firmware.o In file included from arch/arm/mm/init.c:40: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mm/init.c:40: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from arch/arm/mm/init.c:40: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC arch/arm/mm/iomap.o LD arch/arm/common/built-in.o LD arch/arm/net/built-in.o AS arch/arm/crypto/aes-armv4.o CC arch/arm/crypto/aes_glue.o CC arch/arm/mm/fault-armv.o CC arch/arm/kernel/signal.o LD arch/arm/crypto/aes-arm.o LD arch/arm/crypto/built-in.o CC arch/arm/mach-sc/board-sp7731cea.o CC arch/arm/mm/flush.o In file included from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | AS arch/arm/kernel/sigreturn_codes.o In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: arch/arm/mach-sc/board-sp7731cea.c: In function '__sci_get_chip_id': include/soc/sprd/__hardware-sc7731.h:155:41: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 155 | #define CHIP_ID_LOW_REG (SPRD_AHB_BASE + 0xfc) | ~~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int arch/arm/mach-sc/board-sp7731cea.c:164:21: note: in expansion of macro 'CHIP_ID_LOW_REG' 164 | return __raw_readl(CHIP_ID_LOW_REG); | ^~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ arch/arm/mach-sc/board-sp7731cea.c: At top level: arch/arm/mach-sc/board-sp7731cea.c:184:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] 184 | int iotable_build() | ^~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c: In function 'iotable_build': arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:217:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 217 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:217:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 217 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:217:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 217 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:217:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 217 | ADD_SPRD_DEVICE("sprd,ahb", AHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:218:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 218 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:218:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 218 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:218:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 218 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:218:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 218 | ADD_SPRD_DEVICE("sprd,aonapb", AONAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:219:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 219 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:219:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 219 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:219:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 219 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:219:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 219 | ADD_SPRD_DEVICE("sprd,aonckg", AONCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:220:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 220 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:220:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 220 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:220:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 220 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:220:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 220 | ADD_SPRD_DEVICE("sprd,apbreg", APBREG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:221:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 221 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ CC arch/arm/kernel/stacktrace.o In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:221:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 221 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:221:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 221 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:221:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 221 | ADD_SPRD_DEVICE("sprd,core", CORE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:222:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 222 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:222:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 222 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:222:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 222 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:222:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 222 | ADD_SPRD_DEVICE("sprd,mmahb", MMAHB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:223:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 223 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:223:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 223 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:223:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 223 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:223:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 223 | ADD_SPRD_DEVICE("sprd,pmu", PMU); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:224:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 224 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:224:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 224 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:224:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 224 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:224:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 224 | ADD_SPRD_DEVICE("sprd,mmckg", MMCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:225:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 225 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:225:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 225 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:225:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 225 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:225:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 225 | ADD_SPRD_DEVICE("sprd,gpuapb", GPUAPB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:226:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 226 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:226:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 226 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:226:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 226 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:226:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 226 | ADD_SPRD_DEVICE("sprd,apbckg", APBCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:227:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 227 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:227:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 227 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:227:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 227 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:227:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 227 | ADD_SPRD_DEVICE("sprd,gpuckg", GPUCKG); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:228:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 228 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:228:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 228 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:228:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 228 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:228:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 228 | ADD_SPRD_DEVICE("sprd,int", INT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:229:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 229 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:229:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 229 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:229:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 229 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:229:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 229 | ADD_SPRD_DEVICE("sprd,intc0", INTC0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:230:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 230 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:230:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 230 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:230:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 230 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:230:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 230 | ADD_SPRD_DEVICE("sprd,intc1", INTC1); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:231:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 231 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:231:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 231 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:231:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 231 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:231:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 231 | ADD_SPRD_DEVICE("sprd,intc2", INTC2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:232:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 232 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:232:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 232 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:232:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 232 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:232:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 232 | ADD_SPRD_DEVICE("sprd,intc3", INTC3); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:233:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 233 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:233:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 233 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:233:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 233 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:233:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 233 | ADD_SPRD_DEVICE("sprd,uidefuse", UIDEFUSE); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:234:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 234 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:234:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 234 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:234:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 234 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:234:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 234 | ADD_SPRD_DEVICE("sprd,isp", ISP); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:235:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 235 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:235:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 235 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:235:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 235 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:235:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 235 | ADD_SPRD_DEVICE("sprd,csi2", CSI2); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:236:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 236 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:236:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 236 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:236:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 236 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:236:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 236 | ADD_SPRD_DEVICE("sprd,d-eic-gpio", EIC); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:237:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 237 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:237:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 237 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:237:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 237 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:237:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 237 | ADD_SPRD_DEVICE("sprd,ipi", IPI); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:238:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 238 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:238:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 238 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:238:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 238 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:238:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 238 | ADD_SPRD_DEVICE("sprd,dcam", DCAM); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:239:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 239 | ADD_SPRD_DEVICE("sprd,syscnt", SYSCNT); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:240:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 240 | ADD_SPRD_DEVICE("sprd,dma0", DMA0); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:241:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 241 | ADD_SPRD_DEVICE("sprd,pub", PUB); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:242:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 242 | ADD_SPRD_DEVICE("sprd,pin", PIN); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:197:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 197 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:34: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:44: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx In file included from include/linux/kernel.h:13, from arch/arm/mach-sc/board-sp7731cea.c:13: arch/arm/mach-sc/board-sp7731cea.c:199:12: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:3: note: in expansion of macro 'pr_debug' 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:243:2: note: in expansion of macro 'ADD_SPRD_DEVICE' 243 | ADD_SPRD_DEVICE("sprd,d-gpio-gpio", GPIO); | ^~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:199:54: note: format string is defined here 199 | pr_debug("sprd io map: phys=%08x virt=%08x size=%08x\n", \ | ~~~^ | | | unsigned int | %08lx arch/arm/mach-sc/board-sp7731cea.c:211:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 211 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:244:2: note: in expansion of macro 'ADD_SPRD_DEVICE_BY_NAME' 244 | ADD_SPRD_DEVICE_BY_NAME("hwspinlock0", HWSPINLOCK0); | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:211:25: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 211 | io_addr_sprd.id.vaddr = \ | ^ arch/arm/mach-sc/board-sp7731cea.c:245:2: note: in expansion of macro 'ADD_SPRD_DEVICE_BY_NAME' 245 | ADD_SPRD_DEVICE_BY_NAME("hwspinlock1", HWSPINLOCK1); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: arch/arm/mach-sc/board-sp7731cea.c: In function 'sc8830_pmu_init': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:39:37: note: in expansion of macro 'SCI_ADDR' 39 | #define REG_PMU_APB_PD_MM_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x001C)/*PD_MM_TOP_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:301:27: note: in expansion of macro 'REG_PMU_APB_PD_MM_TOP_CFG' 301 | __raw_writel(__raw_readl(REG_PMU_APB_PD_MM_TOP_CFG) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:39:37: note: in expansion of macro 'SCI_ADDR' 39 | #define REG_PMU_APB_PD_MM_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x001C)/*PD_MM_TOP_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:303:3: note: in expansion of macro 'REG_PMU_APB_PD_MM_TOP_CFG' 303 | REG_PMU_APB_PD_MM_TOP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:40:38: note: in expansion of macro 'SCI_ADDR' 40 | #define REG_PMU_APB_PD_GPU_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0020)/*PD_GPU_TOP_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:305:27: note: in expansion of macro 'REG_PMU_APB_PD_GPU_TOP_CFG' 305 | __raw_writel(__raw_readl(REG_PMU_APB_PD_GPU_TOP_CFG) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:40:38: note: in expansion of macro 'SCI_ADDR' 40 | #define REG_PMU_APB_PD_GPU_TOP_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0020)/*PD_GPU_TOP_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:307:3: note: in expansion of macro 'REG_PMU_APB_PD_GPU_TOP_CFG' 307 | REG_PMU_APB_PD_GPU_TOP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:32:32: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AON_APB_APB_EB0 SCI_ADDR(REGS_AON_APB_BASE, 0x0000)/*AHB_EB0*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:309:27: note: in expansion of macro 'REG_AON_APB_APB_EB0' 309 | __raw_writel(__raw_readl(REG_AON_APB_APB_EB0) | BIT_MM_EB | | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:32:32: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AON_APB_APB_EB0 SCI_ADDR(REGS_AON_APB_BASE, 0x0000)/*AHB_EB0*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:310:15: note: in expansion of macro 'REG_AON_APB_APB_EB0' 310 | BIT_GPU_EB, REG_AON_APB_APB_EB0); | ^~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_mm_ahb_rf.h:32:30: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_MM_AHB_AHB_EB SCI_ADDR(REGS_MM_AHB_BASE, 0x0000)/*AHB_EB*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:312:27: note: in expansion of macro 'REG_MM_AHB_AHB_EB' 312 | __raw_writel(__raw_readl(REG_MM_AHB_AHB_EB) | BIT_MM_CKG_EB, | ^~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_mm_ahb_rf.h:32:30: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_MM_AHB_AHB_EB SCI_ADDR(REGS_MM_AHB_BASE, 0x0000)/*AHB_EB*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:313:3: note: in expansion of macro 'REG_MM_AHB_AHB_EB' 313 | REG_MM_AHB_AHB_EB); | ^~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_mm_ahb_rf.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_MM_AHB_GEN_CKG_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0008)/*GEN_CKG_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:314:27: note: in expansion of macro 'REG_MM_AHB_GEN_CKG_CFG' 314 | __raw_writel(__raw_readl(REG_MM_AHB_GEN_CKG_CFG) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_mm_ahb_rf.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_MM_AHB_GEN_CKG_CFG SCI_ADDR(REGS_MM_AHB_BASE, 0x0008)/*GEN_CKG_CFG*/ | ^~~~~~~~ arch/arm/mach-sc/board-sp7731cea.c:316:3: note: in expansion of macro 'REG_MM_AHB_GEN_CKG_CFG' 316 | REG_MM_AHB_GEN_CKG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__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-sp7731cea.c:317:27: note: in expansion of macro 'REG_MM_CLK_MM_AHB_CFG' 317 | __raw_writel(__raw_readl(REG_MM_CLK_MM_AHB_CFG) | 0x3, | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__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-sp7731cea.c:318:3: note: in expansion of macro 'REG_MM_CLK_MM_AHB_CFG' 318 | REG_MM_CLK_MM_AHB_CFG); | ^~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:21: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ arch/arm/mach-sc/board-sp7731cea.c: In function 'sc8830_init_late': arch/arm/mach-sc/board-sp7731cea.c:281:2: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result' [-Wunused-result] 281 | regulator_enable(vddsim2); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CC arch/arm/mm/idmap.o CC arch/arm/kernel/sys_arm.o In file included from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from arch/arm/mach-sc/board-sp7731cea.c:45: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from arch/arm/mach-sc/board-sp7731cea.c:35: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from arch/arm/mach-sc/board-sp7731cea.c:56: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC arch/arm/mm/ioremap.o LD arch/arm/mach-sc/built-in.o CC kernel/fork.o CC arch/arm/kernel/time.o CC arch/arm/kernel/traps.o CC arch/arm/mm/mmap.o CC arch/arm/mm/pgd.o CC arch/arm/kernel/atags_parse.o CC arch/arm/mm/mmu.o CC arch/arm/kernel/cpuidle.o CC kernel/exec_domain.o CC arch/arm/kernel/armksyms.o arch/arm/mm/mmu.c:621:23: warning: 'early_pte_alloc_and_install' defined but not used [-Wunused-function] 621 | static pte_t * __init early_pte_alloc_and_install(pmd_t *pmd, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC arch/arm/kernel/module.o CC kernel/panic.o CC arch/arm/mm/proc-syms.o AS arch/arm/kernel/sleep.o CC arch/arm/kernel/suspend.o CC kernel/printk.o CC arch/arm/mm/alignment.o CC arch/arm/kernel/smp.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/smp_tlb.o CC arch/arm/mm/context.o CC arch/arm/kernel/unwind.o CC kernel/cpu.o AS arch/arm/mm/tlb-v7.o kernel/cpu.c: In function 'cpu_hotplug_pm_callback': kernel/cpu.c:579:28: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 579 | printk("*** %s, action:0x%x ***\n", __func__, action ); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lx kernel/cpu.c:595:28: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 595 | printk("*** %s, action:0x%x done ***\n", __func__, action ); | ~^ ~~~~~~ | | | | unsigned int long unsigned int | %lx AS arch/arm/mm/proc-v7.o LD arch/arm/mm/built-in.o CC mm/filemap.o CC arch/arm/kernel/devtree.o In file included from include/linux/fs.h:6, from mm/filemap.c:14: mm/filemap.c: In function '__lock_page': include/linux/wait.h:899:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 899 | struct wait_bit_queue name = { \ | ^~~~~~ mm/filemap.c:644:2: note: in expansion of macro 'DEFINE_WAIT_BIT' 644 | DEFINE_WAIT_BIT(wait, &page->flags, PG_locked); | ^~~~~~~~~~~~~~~ mm/filemap.c: In function '__lock_page_killable': include/linux/wait.h:899:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 899 | struct wait_bit_queue name = { \ | ^~~~~~ mm/filemap.c:659:2: note: in expansion of macro 'DEFINE_WAIT_BIT' 659 | DEFINE_WAIT_BIT(wait, &page->flags, PG_locked); | ^~~~~~~~~~~~~~~ CC kernel/exit.o CC arch/arm/kernel/swp_emulate.o CC arch/arm/kernel/hw_breakpoint.o CC arch/arm/kernel/topology.o CC mm/mempool.o CC arch/arm/kernel/io.o CC kernel/itimer.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 fs/open.o CC mm/oom_kill.o HZFILE kernel/hz.bc CC kernel/softirq.o CC fs/read_write.o CC mm/fadvise.o CC kernel/resource.o CC mm/maccess.o CC fs/file_table.o CC mm/page_alloc.o CC kernel/sysctl.o mm/page_alloc.c: In function 'show_migration_types': mm/page_alloc.c:3139:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 3139 | p += sprintf(p, "%c%d", types[i], nr_migrate[i]); | ~^ ~~~~~~~~~~~~~ | | | | int long unsigned int | %ld CC fs/super.o CC kernel/sysctl_binary.o CC fs/char_dev.o CC mm/page-writeback.o CC fs/stat.o CC kernel/capability.o CC fs/exec.o CC kernel/ptrace.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 mm/readahead.o CC fs/pipe.o CC kernel/timer.o CC mm/swap.o CC kernel/user.o CC fs/namei.o CC kernel/signal.o CC mm/truncate.o CC mm/vmscan.o mm/vmscan.c: In function 'wakeup_kswapd': mm/vmscan.c:3264:28: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 3264 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld 3265 | __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:3264:41: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 3264 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld 3265 | __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:3264:50: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] 3264 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld mm/vmscan.c:3264:58: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] 3264 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld mm/vmscan.c:3264:67: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long unsigned int' [-Wformat=] 3264 | printk("%s(pages): free:%d, free_cma:%d, high:%d, low:%d, min:%d, order:%d\r\n", | ~^ | | | int | %ld CC kernel/sys.o CC fs/fcntl.o CC mm/shmem.o CC fs/ioctl.o CC fs/readdir.o CC kernel/kmod.o CC fs/select.o CC kernel/workqueue.o CC mm/util.o CC mm/mmzone.o CC fs/dcache.o kernel/workqueue.c: In function 'create_worker': kernel/workqueue.c:1731: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=] 1731 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~ kernel/workqueue.c:1731:36: note: directive argument in the range [0, 2147483647] 1731 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~~~~~~~~ kernel/workqueue.c:1731:3: note: 'snprintf' output between 4 and 23 bytes into a destination of size 16 1731 | snprintf(id_buf, sizeof(id_buf), "%d:%d%s", pool->cpu, id, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1732 | pool->attrs->nice < 0 ? "H" : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC mm/vmstat.o CC kernel/pid.o CC mm/backing-dev.o CC fs/inode.o CC kernel/task_work.o CC mm/mm_init.o CC kernel/rcupdate.o CC mm/mmu_context.o CC kernel/extable.o CC mm/percpu.o CC fs/attr.o CC kernel/params.o CC fs/bad_inode.o CC kernel/posix-timers.o CC fs/file.o CC mm/slab_common.o CC mm/compaction.o CC kernel/kthread.o CC fs/filesystems.o CC mm/balloon_compaction.o CC kernel/wait.o CC fs/namespace.o CC mm/interval_tree.o CC kernel/sys_ni.o CC kernel/posix-cpu-timers.o CC mm/fremap.o CC mm/highmem.o CC kernel/mutex.o CC fs/seq_file.o CC mm/madvise.o CC kernel/hrtimer.o CC mm/memory.o CC fs/xattr.o CC kernel/rwsem.o CC fs/libfs.o CC kernel/nsproxy.o CC kernel/srcu.o CC mm/mincore.o CC fs/fs-writeback.o CC kernel/semaphore.o fs/fs-writeback.c: In function 'bdi_writeback_workfn': fs/fs-writeback.c:1070:27: warning: passing argument 1 of 'iodebug_bdi_save_pages' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1070 | iodebug_bdi_save_pages(dev_name(bdi->dev), pages_written); | ^~~~~~~~~~~~~~~~~~ fs/fs-writeback.c:33:51: note: expected 'unsigned char *' but argument is of type 'const char *' 33 | extern void iodebug_bdi_save_pages(unsigned char *dev_name, long nr_page); | ~~~~~~~~~~~~~~~^~~~~~~~ fs/fs-writeback.c:1083:26: warning: passing argument 1 of 'iodebug_bdi_save_pages' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1083 | iodebug_bdi_save_pages(dev_name(bdi->dev), pages_written); | ^~~~~~~~~~~~~~~~~~ fs/fs-writeback.c:33:51: note: expected 'unsigned char *' but argument is of type 'const char *' 33 | extern void iodebug_bdi_save_pages(unsigned char *dev_name, long nr_page); | ~~~~~~~~~~~~~~~^~~~~~~~ CC mm/mlock.o CC kernel/notifier.o CC fs/pnode.o CC mm/mmap.o CC kernel/ksysfs.o CC fs/splice.o CC kernel/cred.o CC kernel/async.o CC mm/mprotect.o CC fs/sync.o CC kernel/range.o CC kernel/groups.o CC mm/mremap.o CC fs/utimes.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/msync.o CC kernel/lglock.o CC fs/stack.o CC mm/rmap.o CC kernel/smpboot.o CC fs/fs_struct.o CC kernel/cpu/idle.o CC fs/statfs.o LD kernel/cpu/built-in.o CC kernel/events/core.o CC mm/vmalloc.o CC fs/buffer.o CC mm/pagewalk.o CC mm/pgtable-generic.o CC fs/bio.o CC mm/process_vm_access.o CC kernel/events/ring_buffer.o CC mm/init-mm.o CC mm/bootmem.o CC kernel/events/callchain.o CC kernel/events/hw_breakpoint.o CC fs/block_dev.o CC mm/memblock.o LD kernel/events/built-in.o CC kernel/irq/irqdesc.o CC mm/page_io.o CC fs/direct-io.o CC kernel/irq/handle.o CC mm/swap_state.o CC kernel/irq/manage.o CC mm/swapfile.o CC kernel/irq/spurious.o CC fs/mpage.o CC kernel/irq/resend.o CC kernel/irq/chip.o CC fs/ioprio.o CC mm/dmapool.o CC kernel/irq/dummychip.o CC kernel/irq/devres.o CC kernel/irq/autoprobe.o CC fs/proc_namespace.o CC mm/slub.o CC kernel/irq/irqdomain.o CC fs/configfs/inode.o CC kernel/irq/proc.o CC fs/configfs/file.o CC kernel/irq/pm.o CC fs/configfs/dir.o kernel/irq/pm.c: In function 'check_wakeup_irqs': kernel/irq/pm.c:103:7: warning: unused variable 'suspend_abort' [-Wunused-variable] 103 | char suspend_abort[MAX_SUSPEND_ABORT_LEN]; | ^~~~~~~~~~~~~ LD kernel/irq/built-in.o CC kernel/power/qos.o CC mm/migrate.o CC kernel/power/main.o CC fs/configfs/symlink.o kernel/power/main.c:314:24: warning: 'decode_state' defined but not used [-Wunused-function] 314 | static suspend_state_t decode_state(const char *buf, size_t n) | ^~~~~~~~~~~~ CC fs/configfs/mount.o CC kernel/power/console.o CC fs/configfs/item.o LD mm/built-in.o CC ipc/util.o LD fs/configfs/configfs.o LD fs/configfs/built-in.o CC fs/debugfs/inode.o CC kernel/power/process.o CC ipc/msgutil.o CC kernel/power/suspend.o CC fs/debugfs/file.o CC ipc/msg.o kernel/power/suspend.c:52:13: warning: 'freeze_enter' defined but not used [-Wunused-function] 52 | static void freeze_enter(void) | ^~~~~~~~~~~~ kernel/power/suspend.c:47:13: warning: 'freeze_begin' defined but not used [-Wunused-function] 47 | static void freeze_begin(void) | ^~~~~~~~~~~~ CC kernel/power/wakelock.o CC ipc/sem.o LD fs/debugfs/debugfs.o LD fs/debugfs/built-in.o CC fs/devpts/inode.o LD fs/devpts/devpts.o LD fs/devpts/built-in.o LD fs/exofs/built-in.o CC fs/ext2/balloc.o CC kernel/power/userwakelock.o CC ipc/shm.o CC kernel/power/earlysuspend.o CC fs/ext2/dir.o CC kernel/power/fbearlysuspend.o CC ipc/ipcns_notifier.o CC fs/ext2/file.o CC ipc/syscall.o CC ipc/ipc_sysctl.o CC kernel/power/suspend_time.o CC fs/ext2/ialloc.o CC kernel/power/poweroff.o LD ipc/built-in.o CC fs/ext2/inode.o CC kernel/power/wakeup_reason.o CC fs/ext2/ioctl.o CC security/keys/gc.o LD kernel/power/built-in.o CC kernel/sched/core.o CC fs/ext2/namei.o CC security/keys/key.o CC fs/ext2/super.o CC security/keys/keyring.o CC fs/ext2/symlink.o CC fs/ext2/xattr.o CC security/keys/keyctl.o CC fs/ext2/xattr_user.o CC security/keys/permission.o CC fs/ext2/xattr_trusted.o LD fs/ext2/ext2.o LD fs/ext2/built-in.o CC fs/ext3/balloc.o CC security/keys/process_keys.o CC kernel/sched/clock.o CC security/keys/request_key.o CC kernel/sched/cputime.o CC kernel/sched/idle_task.o CC fs/ext3/bitmap.o CC security/keys/request_key_auth.o CC kernel/sched/fair.o CC fs/ext3/dir.o CC security/keys/user_defined.o CC fs/ext3/file.o CC security/keys/proc.o CC fs/ext3/fsync.o CC security/keys/sysctl.o LD security/keys/built-in.o CC security/rootrecorder/root_recorder.o CC fs/ext3/ialloc.o LD security/rootrecorder/built-in.o GEN security/selinux/flask.h security/selinux/av_permissions.h CC security/selinux/avc.o CC fs/ext3/inode.o CC kernel/sched/rt.o CC security/selinux/hooks.o CC kernel/sched/stop_task.o CC fs/ext3/ioctl.o CC kernel/sched/cpupri.o CC fs/ext3/namei.o CC kernel/sched/cpuacct.o LD kernel/sched/built-in.o CC kernel/time/timekeeping.o CC security/selinux/selinuxfs.o CC fs/ext3/super.o CC kernel/time/ntp.o CC security/selinux/netlink.o CC kernel/time/clocksource.o CC security/selinux/nlmsgtab.o CC fs/ext3/symlink.o CC fs/ext3/hash.o CC kernel/time/jiffies.o CC security/selinux/netif.o CC kernel/time/timer_list.o CC fs/ext3/resize.o CC security/selinux/netnode.o CC kernel/time/timeconv.o CC kernel/time/posix-clock.o CC security/selinux/netport.o CC fs/ext3/ext3_jbd.o CC fs/ext3/xattr.o CC kernel/time/alarmtimer.o CC security/selinux/exports.o CC security/selinux/ss/ebitmap.o CC fs/ext3/xattr_user.o CC kernel/time/clockevents.o CC fs/ext3/xattr_trusted.o CC security/selinux/ss/hashtab.o CC kernel/time/tick-common.o CC security/selinux/ss/symtab.o LD fs/ext3/ext3.o LD fs/ext3/built-in.o CC security/selinux/ss/sidtab.o CC fs/ext4/balloc.o CC kernel/time/tick-broadcast.o CC kernel/time/tick-broadcast-hrtimer.o CC security/selinux/ss/avtab.o CC fs/ext4/bitmap.o CC kernel/time/tick-oneshot.o CC kernel/time/tick-sched.o CC fs/ext4/dir.o CC security/selinux/ss/policydb.o CC fs/ext4/file.o LD kernel/time/built-in.o CC kernel/trace/trace_clock.o CC kernel/trace/ring_buffer.o CC fs/ext4/fsync.o CC fs/ext4/ialloc.o CC security/selinux/ss/services.o CC fs/ext4/inode.o LD kernel/trace/built-in.o CC kernel/freezer.o CC kernel/profile.o CC security/selinux/ss/conditional.o CC kernel/stacktrace.o CC kernel/futex.o CC security/selinux/ss/mls.o CC fs/ext4/page-io.o CC security/selinux/ss/status.o CC kernel/rtmutex.o LD security/selinux/selinux.o LD security/selinux/built-in.o CC security/commoncap.o CC fs/ext4/ioctl.o CC kernel/smp.o CC fs/ext4/namei.o CC security/min_addr.o CC kernel/spinlock.o CC security/security.o CC kernel/uid16.o CC kernel/module.o CC security/capability.o kernel/module.c: In function 'print_modules': kernel/module.c:3833:27: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'void *' [-Wformat=] 3833 | 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/super.o CC security/lsm_audit.o LD security/built-in.o CC crypto/api.o CC kernel/kallsyms.o CC kernel/cgroup.o CC crypto/cipher.o CC fs/ext4/symlink.o CC crypto/compress.o CC fs/ext4/hash.o CC crypto/algapi.o CC fs/ext4/resize.o CC crypto/scatterwalk.o CC kernel/cgroup_freezer.o CC fs/ext4/extents.o CC kernel/res_counter.o CC crypto/proc.o CC kernel/stop_machine.o CC crypto/ablkcipher.o CC kernel/audit.o CC crypto/blkcipher.o CC fs/ext4/ext4_jbd2.o CC kernel/auditfilter.o CC fs/ext4/migrate.o CC crypto/ahash.o CC fs/ext4/mballoc.o CC kernel/auditsc.o CC crypto/shash.o CC crypto/algboss.o CC crypto/testmgr.o CC kernel/audit_watch.o CC crypto/crypto_wq.o CC kernel/audit_tree.o LD crypto/crypto_algapi.o CC crypto/aead.o CC fs/ext4/block_validity.o LD crypto/crypto_blkcipher.o CC crypto/chainiv.o CC kernel/watchdog.o CC crypto/eseqiv.o CC fs/ext4/move_extent.o CC kernel/seccomp.o LD crypto/crypto_hash.o CC crypto/pcompress.o CC kernel/rcutree.o LD crypto/cryptomgr.o CC crypto/hmac.o CC fs/ext4/mmp.o CC crypto/md5.o CC fs/ext4/indirect.o CC crypto/sha1_generic.o CC kernel/utsname_sysctl.o CC crypto/sha256_generic.o CC kernel/elfcore.o CC kernel/irq_work.o CC fs/ext4/extents_status.o CC crypto/gf128mul.o CC kernel/cpu_pm.o BC kernel/timeconst.h CC kernel/time.o CC crypto/ecb.o CC fs/ext4/xattr.o LD kernel/built-in.o CC crypto/cbc.o CC crypto/xts.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 crypto/des_generic.o CC block/elevator.o CC fs/ext4/xattr_user.o CC crypto/twofish_generic.o CC fs/ext4/xattr_trusted.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 crypto/twofish_common.o CC fs/ext4/inline.o CC block/blk-core.o CC crypto/aes_generic.o CC crypto/arc4.o CC fs/ext4/xattr_security.o CC crypto/deflate.o CC crypto/crc32c.o LD fs/ext4/ext4.o LD fs/ext4/built-in.o CC fs/fat/cache.o CC block/blk-tag.o CC crypto/authenc.o CC fs/fat/dir.o CC block/blk-sysfs.o CC crypto/authencesn.o CC block/blk-flush.o CC fs/fat/fatent.o CC crypto/lzo.o CC crypto/rng.o CC block/blk-settings.o CC crypto/krng.o CC fs/fat/file.o CC crypto/ansi_cprng.o CC block/blk-ioc.o LD crypto/crypto.o LD crypto/built-in.o CC fs/fat/inode.o LD drivers/amba/built-in.o LD drivers/autotst/built-in.o CC [M] drivers/autotst/autotstdrv.o In file included from drivers/autotst/autotstdrv.c:24: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/autotst/autotstdrv.c:24: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/autotst/autotstdrv.c:24: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/autotst/autotstdrv.c: In function 'autotst_ioctl': drivers/autotst/autotstdrv.c:349:15: warning: unused variable 'i' [-Wunused-variable] 349 | int i; | ^ drivers/autotst/autotstdrv.c:358:15: warning: unused variable 'i' [-Wunused-variable] 358 | int i; | ^ CC block/blk-map.o 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:440:1: note: in expansion of macro 'module_init' 440 | module_init(autotst_init); | ^~~~~~~~~~~ drivers/autotst/autotstdrv.c:389:19: note: 'init_module' target declared here 389 | 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:441:1: note: in expansion of macro 'module_exit' 441 | module_exit(autotst_exit); | ^~~~~~~~~~~ drivers/autotst/autotstdrv.c:425:20: note: 'cleanup_module' target declared here 425 | 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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/autotst/dispc.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dispc.c:19: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/autotst/dispc.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dispc.c: At top level: drivers/autotst/dispc.c:49: warning: "pr_debug" redefined 49 | #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:239: note: this is the location of the previous definition 239 | #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:1042:9: note: in expansion of macro 'KERN_INFO' 1042 | printk(KERN_INFO "sprdfb: got %d bytes frame buffer at 0x%x\n", fb_size, | ^~~~~~~~~ drivers/autotst/dispc.c:1042:61: note: format string is defined here 1042 | printk(KERN_INFO "sprdfb: got %d bytes frame buffer at 0x%x\n", fb_size, | ~^ | | | unsigned int | %lx drivers/autotst/dispc.c:1048:10: warning: assignment to 'long unsigned int *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion] 1048 | p_pixel = autotst_dispc_ctx.fb_addr_v; | ^ drivers/autotst/dispc.c:1049:14: warning: passing argument 1 of 'draw_patten' from incompatible pointer type [-Wincompatible-pointer-types] 1049 | draw_patten(p_pixel, panel->width, panel->height, PATTEN_GRID_WIDTH, PATTEN_GRID_HEIGHT); | ^~~~~~~ | | | long unsigned int * drivers/autotst/dispc.c:1012:35: note: expected 'uint32_t *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *' 1012 | static void draw_patten(uint32_t* buffer, int buffer_w, int buffer_h, int grid_w, int grid_h) | ~~~~~~~~~~^~~~~~ CC block/blk-exec.o CC fs/fat/misc.o CC [M] drivers/autotst/dsi.o CC block/blk-merge.o In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/autotst/dsi.c:26: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/autotst/dsi.c:22: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/autotst/dsi.c:26: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/autotst/dsi.c:27: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/autotst/dsi.c:27: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/autotst/dsi.c:27: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/kgdb.h:13, from include/linux/kgdb.h:20, from drivers/autotst/dsi.c:14: include/linux/printk.h:239: note: this is the location of the previous definition 239 | #define pr_debug(fmt, ...) \ | drivers/autotst/dsi.c: In function 'dsi_core_read_function': drivers/autotst/dsi.c:79:26: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 79 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_core_write_function': drivers/autotst/dsi.c:84:27: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 84 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | 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: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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | 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:93:28: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 93 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c:93:43: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 93 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/autotst/dsi.c: In function 'dsi_module_init': drivers/autotst/dsi.c:232:21: warning: unused variable 'mipi' [-Wunused-variable] 232 | struct info_mipi * mipi = panel->info.mipi; | ^~~~ drivers/autotst/dsi.c:229:6: warning: unused variable 'ret' [-Wunused-variable] 229 | int ret = 0; | ^~~ CC fs/fat/nfs.o CC [M] drivers/autotst/lcd_dummy.o CC [M] drivers/autotst/mipi_dsih_api.o CC fs/fat/namei_vfat.o CC [M] drivers/autotst/mipi_dsih_dphy_megacores.o CC block/blk-softirq.o CC [M] drivers/autotst/mipi_dsih_hal.o LD [M] drivers/autotst/autotst.o LD drivers/auxdisplay/built-in.o CC drivers/base/core.o CC block/blk-timeout.o LD fs/fat/fat.o LD fs/fat/vfat.o LD fs/fat/built-in.o CC fs/fuse/dev.o CC block/blk-iopoll.o CC block/blk-lib.o CC drivers/base/bus.o CC fs/fuse/dir.o CC block/ioctl.o CC drivers/base/dd.o CC block/genhd.o CC drivers/base/syscore.o CC fs/fuse/file.o CC drivers/base/driver.o fs/fuse/file.c: In function 'fuse_file_aio_write': fs/fuse/file.c:1158:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1158 | unsigned long jiffies_begin = jiffies; | ^~~~~~~~ CC drivers/base/class.o CC drivers/base/platform.o CC block/scsi_ioctl.o CC fs/fuse/inode.o CC drivers/base/cpu.o CC block/partition-generic.o CC drivers/base/firmware.o CC drivers/base/init.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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC fs/fuse/control.o CC drivers/base/map.o CC block/partitions/check.o CC drivers/base/devres.o LD fs/fuse/fuse.o LD fs/fuse/built-in.o CC fs/iodebug/iodebug_common.o CC block/partitions/msdos.o fs/iodebug/iodebug_common.c: In function 'show_taskstack': fs/iodebug/iodebug_common.c:158:65: warning: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'struct page *' [-Wformat=] 158 | printk("iodebug: %s(pid:%d,adj:%d,state:%c) locked on %s(0x%08lx) over %dms.\n", | ~~~~^ | | | long unsigned int ...... 162 | on_page ? on_page:(on_buffer->b_page), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | struct page * CC drivers/base/attribute_container.o CC drivers/base/transport_class.o CC fs/iodebug/iodebug_hotpoint.o CC block/partitions/efi.o CC drivers/base/topology.o LD block/partitions/built-in.o CC block/blk-cgroup.o CC fs/iodebug/iodebug_vfs.o CC drivers/base/devtmpfs.o fs/iodebug/iodebug_vfs.c: In function 'iodebug_save_vfs_io': fs/iodebug/iodebug_vfs.c:209:1: warning: label 'out' defined but not used [-Wunused-label] 209 | out: | ^~~ fs/iodebug/iodebug_vfs.c: In function 'iodebug_vfs_timer_init': fs/iodebug/iodebug_vfs.c:363:1: warning: control reaches end of non-void function [-Wreturn-type] 363 | } | ^ fs/iodebug/iodebug_vfs.c: In function 'iodebug_print_vfs_io.constprop': fs/iodebug/iodebug_vfs.c:263:49: warning: '%6d' directive output may be truncated writing between 6 and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=] 263 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %6d , %-7d ", prf_buffer, | ^~~ fs/iodebug/iodebug_vfs.c:263:45: note: using the range [-2147483648, 2147483647] for directive argument 263 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %6d , %-7d ", prf_buffer, | ^~~~~~~~~~~~~~~~ fs/iodebug/iodebug_vfs.c:263:45: note: using the range [-2147483648, 2147483647] for directive argument fs/iodebug/iodebug_vfs.c:263:4: note: 'snprintf' output between 19 and 283 bytes into a destination of size 256 263 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %6d , %-7d ", prf_buffer, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 264 | my_io_info->cnt[k], | ~~~~~~~~~~~~~~~~~~~ 265 | my_io_info->bytes[k]); | ~~~~~~~~~~~~~~~~~~~~~ fs/iodebug/iodebug_vfs.c:263:4: warning: 'snprintf' argument 4 overlaps destination object 'prf_buffer' [-Wrestrict] fs/iodebug/iodebug_vfs.c:223:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 223 | char prf_buffer[256] = {0}; | ^~~~~~~~~~ fs/iodebug/iodebug_vfs.c:271:48: warning: '%7d' directive output may be truncated writing between 7 and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=] 271 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %7d , %-7d %7dms", prf_buffer, | ^~~ fs/iodebug/iodebug_vfs.c:271:44: note: using the range [-2147483648, 2147483647] for directive argument 271 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %7d , %-7d %7dms", prf_buffer, | ^~~~~~~~~~~~~~~~~~~~~ fs/iodebug/iodebug_vfs.c:271:44: note: using the range [-2147483648, 2147483647] for directive argument fs/iodebug/iodebug_vfs.c:271:44: note: using the range [-2147483648, 2147483647] for directive argument fs/iodebug/iodebug_vfs.c:271:3: note: 'snprintf' output between 29 and 296 bytes into a destination of size 256 271 | snprintf(prf_buffer, sizeof(prf_buffer), "%s %7d , %-7d %7dms", prf_buffer, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 272 | cnt_per_task, bytes_per_task, jiffies_to_msecs(my_io_info->io_jiffies)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/iodebug/iodebug_vfs.c:271:3: warning: 'snprintf' argument 4 overlaps destination object 'prf_buffer' [-Wrestrict] fs/iodebug/iodebug_vfs.c:223:7: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 223 | char prf_buffer[256] = {0}; | ^~~~~~~~~~ CC drivers/base/power/sysfs.o CC fs/iodebug/iodebug_bdi.o CC block/noop-iosched.o fs/iodebug/iodebug_bdi.c: In function 'iodebug_show_bdi_io': fs/iodebug/iodebug_bdi.c:75:1: warning: no return statement in function returning non-void [-Wreturn-type] 75 | } | ^ CC drivers/base/power/generic_ops.o LD fs/iodebug/iodebug.o CC block/cfq-iosched.o LD fs/iodebug/built-in.o CC fs/jbd/transaction.o CC drivers/base/power/common.o CC drivers/base/power/qos.o CC drivers/base/power/main.o CC fs/jbd/commit.o CC fs/jbd/recovery.o LD block/built-in.o CC sound/sound_core.o CC drivers/base/power/wakeup.o CC fs/jbd/checkpoint.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:169:34: warning: taking address of packed member of 'struct snd_compr_avail' may result in an unaligned pointer value [-Waddress-of-packed-member] 169 | snd_compr_update_tstamp(stream, &avail->tstamp); | ^~~~~~~~~~~~~~ sound/core/compress_offload.c: In function 'snd_compr_ioctl_compat': sound/core/compress_offload.c:850:36: warning: passing argument 3 of 'snd_compr_ioctl' makes integer from pointer without a cast [-Wint-conversion] 850 | return snd_compr_ioctl(file, cmd, argp); | ^~~~ | | | void * sound/core/compress_offload.c:773:77: note: expected 'long unsigned int' but argument is of type 'void *' 773 | static long snd_compr_ioctl(struct file *f, unsigned int cmd, unsigned long arg) | ~~~~~~~~~~~~~~^~~ sound/core/compress_offload.c:845:28: warning: unused variable 'substream' [-Wunused-variable] 845 | struct snd_pcm_substream *substream; | ^~~~~~~~~ sound/core/compress_offload.c:844:23: warning: unused variable 'pcm_file' [-Wunused-variable] 844 | struct snd_pcm_file *pcm_file; | ^~~~~~~~ CC drivers/base/power/runtime.o CC fs/jbd/revoke.o CC sound/core/hwdep.o CC fs/jbd/journal.o CC drivers/base/power/clock_ops.o LD drivers/base/power/built-in.o CC drivers/base/regmap/regmap.o CC sound/core/memalloc.o CC sound/core/pcm.o LD fs/jbd/jbd.o LD fs/jbd/built-in.o CC fs/jbd2/transaction.o CC drivers/base/regmap/regcache.o CC sound/core/pcm_native.o CC drivers/base/regmap/regcache-rbtree.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 fs/jbd2/commit.o CC drivers/base/regmap/regcache-flat.o CC drivers/base/regmap/regmap-debugfs.o CC fs/jbd2/recovery.o CC drivers/base/regmap/regmap-i2c.o CC fs/jbd2/checkpoint.o CC sound/core/pcm_lib.o CC drivers/base/regmap/regmap-spi.o LD drivers/base/regmap/built-in.o CC fs/jbd2/revoke.o CC drivers/base/dma-mapping.o CC fs/jbd2/journal.o CC drivers/base/dma-coherent.o CC sound/core/pcm_timer.o CC drivers/base/dma-buf.o CC sound/core/pcm_misc.o CC drivers/base/firmware_class.o CC sound/core/pcm_memory.o drivers/base/firmware_class.c: In function 'fw_pm_notify': drivers/base/firmware_class.c:1525:26: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 1525 | printk("*** %s, mode:0x%x done ***\n", __func__, mode); | ~^ ~~~~ | | | | unsigned int long unsigned int | %lx CC sound/core/rawmidi.o CC drivers/base/module.o LD drivers/base/built-in.o CC drivers/block/loop.o LD fs/jbd2/jbd2.o LD fs/jbd2/built-in.o CC fs/nls/nls_base.o CC fs/nls/nls_cp437.o CC fs/nls/nls_ascii.o CC sound/core/timer.o CC fs/nls/nls_iso8859-1.o LD fs/nls/built-in.o CC fs/notify/fsnotify.o LD drivers/block/built-in.o CC drivers/bluetooth/hci_ldisc.o CC fs/notify/notification.o CC drivers/bluetooth/hci_h4.o CC sound/core/sound.o CC fs/notify/group.o LD drivers/bluetooth/hci_uart.o LD drivers/bluetooth/built-in.o LD drivers/bus/built-in.o LD drivers/cdrom/built-in.o CC drivers/char/mem.o CC fs/notify/inode_mark.o CC sound/core/init.o CC fs/notify/mark.o CC drivers/char/random.o CC sound/core/memory.o CC fs/notify/vfsmount_mark.o CC sound/core/info.o CC fs/notify/fdinfo.o CC drivers/char/misc.o LD fs/notify/dnotify/built-in.o LD fs/notify/fanotify/built-in.o CC fs/notify/inotify/inotify_fsnotify.o LD drivers/char/built-in.o CC drivers/clk/clk-devres.o CC sound/core/control.o CC drivers/clk/clkdev.o CC fs/notify/inotify/inotify_user.o CC drivers/clk/clk.o LD fs/notify/inotify/built-in.o LD fs/notify/built-in.o CC fs/proc/task_mmu.o CC sound/core/misc.o CC drivers/clk/clk-divider.o CC sound/core/device.o CC fs/proc/inode.o CC drivers/clk/clk-fixed-factor.o CC sound/core/jack.o CC drivers/clk/clk-fixed-rate.o CC fs/proc/root.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 drivers/clk/clk-gate.o CC sound/drivers/saudio.o CC fs/proc/base.o CC drivers/clk/clk-mux.o sound/drivers/saudio.c: In function 'saudio_clear_cmd': sound/drivers/saudio.c:301:6: warning: unused variable 'i' [-Wunused-variable] 301 | int i = 0; | ^ sound/drivers/saudio.c: In function 'snd_card_saudio_pcm_open': sound/drivers/saudio.c:495:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 495 | 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:497:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 497 | 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:501:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 501 | 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:555:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 555 | 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:557:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 557 | 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:561:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 561 | 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:674:13: warning: passing argument 1 of 'mutex_lock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 674 | 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:676:16: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 676 | 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:680:15: warning: passing argument 1 of 'mutex_unlock' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 680 | 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); | ~~~~~~~~~~~~~~^~~~ 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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'saudio_snd_init_card': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_saudio *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1282:9: note: in expansion of macro 'KERN_INFO' 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1282:68: note: format string is defined here 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1282:9: note: in expansion of macro 'KERN_INFO' 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1282:77: note: format string is defined here 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'struct snd_card *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1282:9: note: in expansion of macro 'KERN_INFO' 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1282:86: note: format string is defined here 1282 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry1!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_saudio *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1291:9: note: in expansion of macro 'KERN_INFO' 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1291:68: note: format string is defined here 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1291:9: note: in expansion of macro 'KERN_INFO' 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1291:77: note: format string is defined here 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'struct snd_card *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1291:9: note: in expansion of macro 'KERN_INFO' 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1291:86: note: format string is defined here 1291 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry2!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_saudio *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1300:9: note: in expansion of macro 'KERN_INFO' 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1300:68: note: format string is defined here 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1300:9: note: in expansion of macro 'KERN_INFO' 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1300:77: note: format string is defined here 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'struct snd_card *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1300:9: note: in expansion of macro 'KERN_INFO' 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1300:86: note: format string is defined here 1300 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_saudio *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1309:9: note: in expansion of macro 'KERN_INFO' 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1309:68: note: format string is defined here 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1309:9: note: in expansion of macro 'KERN_INFO' 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1309:77: note: format string is defined here 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'struct snd_card *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1309:9: note: in expansion of macro 'KERN_INFO' 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ^~~~~~~~~ sound/drivers/saudio.c:1309:86: note: format string is defined here 1309 | printk(KERN_INFO "yaye saudio.c:kcontrol create entry3!!!!saudio:%x, kctl:%x, card:%x, add_err:%d \n", | ~^ | | | unsigned int sound/drivers/saudio.c: In function 'snd_saudio_probe': sound/drivers/saudio.c:1419:15: warning: unused variable 'thread_id' [-Wunused-variable] 1419 | static pid_t thread_id = (pid_t) - 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/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/platform_device.h:14, from sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_playback_control_route_get': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1593:9: note: in expansion of macro 'KERN_INFO' 1593 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_get entry!!!kcontrol:%x!\n",kcontrol); | ^~~~~~~~~ sound/drivers/saudio.c:1593:78: note: format string is defined here 1593 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_get entry!!!kcontrol:%x!\n",kcontrol); | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1601:11: note: in expansion of macro 'KERN_INFO' 1601 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_get!!!! get value %d\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1601:77: note: format string is defined here 1601 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_get!!!! get value %d\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1595:7: warning: unused variable 'i' [-Wunused-variable] 1595 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_playback_control_route_put': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1616:10: note: in expansion of macro 'KERN_INFO' 1616 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_put entry set value:%d !!!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1616:78: note: format string is defined here 1616 | printk(KERN_INFO "yaye snd_pcm_playback_control_route_put entry set value:%d !!!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1612:6: warning: unused variable 'i' [-Wunused-variable] 1612 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_capture_control_route_get': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1649:9: note: in expansion of macro 'KERN_INFO' 1649 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_get entry!!!kcontrol:%x!\n",kcontrol); | ^~~~~~~~~ sound/drivers/saudio.c:1649:77: note: format string is defined here 1649 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_get entry!!!kcontrol:%x!\n",kcontrol); | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1657:11: note: in expansion of macro 'KERN_INFO' 1657 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_get!!!! get value %d\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1657:76: note: format string is defined here 1657 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_get!!!! get value %d\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1651:7: warning: unused variable 'i' [-Wunused-variable] 1651 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_capture_control_route_put': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1672:10: note: in expansion of macro 'KERN_INFO' 1672 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_put entry set value:%d !!!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1672:77: note: format string is defined here 1672 | printk(KERN_INFO "yaye snd_pcm_capture_control_route_put entry set value:%d !!!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1668:6: warning: unused variable 'i' [-Wunused-variable] 1668 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_loop_enable_control_get': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1703:9: note: in expansion of macro 'KERN_INFO' 1703 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_get entry!!!kcontrol:%x!\n",kcontrol); | ^~~~~~~~~ sound/drivers/saudio.c:1703:75: note: format string is defined here 1703 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_get entry!!!kcontrol:%x!\n",kcontrol); | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1711:11: note: in expansion of macro 'KERN_INFO' 1711 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_get!!!! get value %d!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1711:74: note: format string is defined here 1711 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_get!!!! get value %d!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1705:7: warning: unused variable 'i' [-Wunused-variable] 1705 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_loop_enable_control_put': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1727:10: note: in expansion of macro 'KERN_INFO' 1727 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_put entry set value[0]:%d !!!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1727:78: note: format string is defined here 1727 | printk(KERN_INFO "yaye snd_pcm_loop_enable_control_put entry set value[0]:%d !!!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1731:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1731 | int loop_enable = saudio->kcon_val_en; | ^~~ sound/drivers/saudio.c:1722:6: warning: unused variable 'i' [-Wunused-variable] 1722 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_loop_type_control_get': include/linux/kern_levels.h:4:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'struct snd_kcontrol *' [-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 */ | ^~~~~~~~ sound/drivers/saudio.c:1760:9: note: in expansion of macro 'KERN_INFO' 1760 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_get entry!!!kcontrol:%x!\n",kcontrol); | ^~~~~~~~~ sound/drivers/saudio.c:1760:73: note: format string is defined here 1760 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_get entry!!!kcontrol:%x!\n",kcontrol); | ~^ | | | unsigned int 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 sound/drivers/saudio.c:17: 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1768:11: note: in expansion of macro 'KERN_INFO' 1768 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_get!!!! get value %d!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1768:72: note: format string is defined here 1768 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_get!!!! get value %d!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1762:7: warning: unused variable 'i' [-Wunused-variable] 1762 | int i=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 sound/drivers/saudio.c:17: sound/drivers/saudio.c: In function 'snd_pcm_loop_type_control_put': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ sound/drivers/saudio.c:1784:10: note: in expansion of macro 'KERN_INFO' 1784 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_put entry set value:%d!!!\n", ucontrol->value.integer.value[0]); | ^~~~~~~~~ sound/drivers/saudio.c:1784:73: note: format string is defined here 1784 | printk(KERN_INFO "yaye snd_pcm_loop_type_control_put entry set value:%d!!!\n", ucontrol->value.integer.value[0]); | ~^ | | | int | %ld sound/drivers/saudio.c:1788:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1788 | int loop_type = saudio->kcon_val_type; | ^~~ sound/drivers/saudio.c:1779:6: warning: unused variable 'i' [-Wunused-variable] 1779 | int i=0; | ^ At top level: sound/drivers/saudio.c:1419:15: warning: 'thread_id' defined but not used [-Wunused-variable] 1419 | static pid_t thread_id = (pid_t) - 1; | ^~~~~~~~~ CC drivers/clk/clk-composite.o CC drivers/clk/clk-sc.o In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/clk/clk-sc.c:26: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/clk/clk-sc.c:26: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/clk/clk-sc.c:27: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ 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 CC fs/proc/generic.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 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 CC fs/proc/array.o LD sound/pci/echoaudio/built-in.o LD sound/pci/emu10k1/built-in.o LD sound/pci/hda/built-in.o In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | LD sound/pci/ice1712/built-in.o In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/clk/clk-sc.c:26: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/clk/clk-sc.c:25: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/clk/clk-sc.c:26: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/clk/clk-sc.c:26: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/clk/clk-sc.c:27: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ LD sound/pci/korg1212/built-in.o LD sound/pci/lola/built-in.o LD drivers/clk/built-in.o LD sound/pci/lx6464es/built-in.o LD sound/pci/mixart/built-in.o CC drivers/clocksource/clksrc-of.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 CC drivers/clocksource/mmio.o LD sound/pci/rme9652/built-in.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 LD drivers/clocksource/built-in.o CC drivers/cpufreq/cpufreq.o CC fs/proc/fd.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 LD sound/sh/built-in.o CC sound/soc/soc-core.o drivers/cpufreq/cpufreq.c: In function '__cpufreq_remove_dev': include/linux/dynamic_debug.h:70:13: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'struct cpufreq_policy *' [-Wformat=] 70 | .lineno = __LINE__, \ | ^~~~~~~~ : note: in definition of macro 'KBUILD_STR' include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' 76 | DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/cpufreq/cpufreq.c:1181:3: note: in expansion of macro 'pr_debug' 1181 | pr_debug("%s: removing link, cpu: %d policy[%d] %x\n", __func__, cpu,data->cpu,data); | ^~~~~~~~ CC fs/proc/proc_tty.o CC fs/proc/cmdline.o CC fs/proc/consoles.o CC fs/proc/cpuinfo.o CC fs/proc/devices.o CC drivers/cpufreq/cpufreq_stats.o CC fs/proc/interrupts.o sound/soc/soc-core.c: In function 'fmt_single_name': sound/soc/soc-core.c:3719:35: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 3719 | snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name); | ^ sound/soc/soc-core.c:3719:4: note: 'snprintf' output 2 or more bytes (assuming 33) into a destination of size 32 3719 | snprintf(tmp, NAME_SIZE, "%s.%s", dev->driver->name, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC fs/proc/loadavg.o CC drivers/cpufreq/cpufreq_performance.o CC drivers/cpufreq/cpufreq_powersave.o CC fs/proc/meminfo.o CC drivers/cpufreq/cpufreq_userspace.o CC sound/soc/soc-dapm.o CC fs/proc/stat.o CC drivers/cpufreq/cpufreq_ondemand.o CC fs/proc/uptime.o CC fs/proc/version.o CC drivers/cpufreq/cpufreq_conservative.o CC fs/proc/softirqs.o CC fs/proc/namespaces.o CC drivers/cpufreq/cpufreq_interactive.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/sysfs.h:20, from include/linux/kobject.h:21, from include/linux/device.h:17, from include/linux/node.h:17, from include/linux/cpu.h:17, from drivers/cpufreq/cpufreq_interactive.c:19: drivers/cpufreq/cpufreq_interactive.c: In function 'store_boostpulse': 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 */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/cpufreq/cpufreq_interactive.c:938:2: note: in expansion of macro 'pr_info' 938 | pr_info("Boost: value(%c, %d)\n", buf[0], val); | ^~~~~~~ drivers/cpufreq/cpufreq_interactive.c:949:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 949 | int cpu; | ^~~ CC fs/proc/self.o CC sound/soc/soc-jack.o CC fs/proc/proc_sysctl.o CC drivers/cpufreq/cpufreq_governor.o CC sound/soc/soc-cache.o CC drivers/cpufreq/freq_table.o LD drivers/cpufreq/built-in.o CC drivers/cpuhotplug/sprd_hotplug.o CC sound/soc/soc-utils.o CC fs/proc/proc_net.o drivers/cpuhotplug/sprd_hotplug.c:251:13: warning: function declaration isn't a prototype [-Wstrict-prototypes] 251 | static void sprd_unplug_one_cpu_ss() | ^~~~~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: In function 'sd_unplug_avg_load11': drivers/cpuhotplug/sprd_hotplug.c:445:6: warning: unused variable 'idx' [-Wunused-variable] 445 | int idx = 0; | ^~~ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/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:647:6: note: in expansion of macro 'time_before' 647 | if (time_before(jiffies, boot_done)) | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:644:27: warning: unused variable 'puwi' [-Wunused-variable] 644 | struct unplug_work_info *puwi; | ^~~~ drivers/cpuhotplug/sprd_hotplug.c:642:15: warning: unused variable 'local_load' [-Wunused-variable] 642 | unsigned int local_load = 0; | ^~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: At top level: drivers/cpuhotplug/sprd_hotplug.c:755:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] 755 | void dbs_check_cpu_sprd() | ^~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:872:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 872 | static int sprd_hotplug() | ^~~~~~~~~~~~ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/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:875:7: note: in expansion of macro 'time_before' 875 | if (time_before(jiffies, boot_done)){ | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: In function 'store_cpu_hotplug_disable': drivers/cpuhotplug/sprd_hotplug.c:1191:22: warning: unused variable 'cpu' [-Wunused-variable] 1191 | unsigned int input, cpu; | ^~~ In file included from include/linux/irqflags.h:14, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/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 'dbs_input_event': 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:1422:6: note: in expansion of macro 'time_before' 1422 | if (time_before(jiffies, boot_done)) | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c: At top level: drivers/cpuhotplug/sprd_hotplug.c:1505:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 1505 | static int sprd_tb_thread() | ^~~~~~~~~~~~~~ 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:1584:13: warning: initialization of 'initcall_t' {aka 'int (*)(void)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 1584 | 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:1584:1: note: in expansion of macro 'module_init' 1584 | module_init(sprd_hotplug_init); | ^~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:527:12: warning: 'cpu_evaluate_score' defined but not used [-Wunused-function] 527 | static int cpu_evaluate_score(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:440:21: warning: 'sd_unplug_avg_load11' defined but not used [-Wunused-function] 440 | static unsigned int sd_unplug_avg_load11(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:332:21: warning: 'sd_unplug_avg_load1' defined but not used [-Wunused-function] 332 | static unsigned int sd_unplug_avg_load1(int cpu, struct sd_dbs_tuners *sd_tunners , unsigned int load) | ^~~~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:182:21: warning: 'cpufreq_max_limit' defined but not used [-Wunused-variable] 182 | static unsigned int cpufreq_max_limit = 0; | ^~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:181:21: warning: 'cpufreq_min_limit' defined but not used [-Wunused-variable] 181 | static unsigned int cpufreq_min_limit = ULONG_MAX; | ^~~~~~~~~~~~~~~~~ drivers/cpuhotplug/sprd_hotplug.c:179:12: warning: 'cpu_score' defined but not used [-Wunused-variable] 179 | static int cpu_score = 0; | ^~~~~~~~~ CC sound/soc/soc-pcm.o LD drivers/cpuhotplug/built-in.o CC fs/proc/kmsg.o CC drivers/cpuidle/cpuidle.o CC fs/proc/page.o CC drivers/cpuidle/driver.o CC fs/proc/sprd_debug/proc_sprd_debug_frame.o CC drivers/cpuidle/governor.o CC fs/proc/sprd_debug/proc_sprd_debug.o CC sound/soc/soc-compress.o CC drivers/cpuidle/sysfs.o fs/proc/sprd_debug/proc_sprd_debug.c: In function '_scheinfo_num_proc_write': fs/proc/sprd_debug/proc_sprd_debug.c:89:49: warning: passing argument 3 of 'kstrtol' from incompatible pointer type [-Wincompatible-pointer-types] 89 | err = strict_strtol(strstrip(sche_num_buf), 0, &sche_num); | ^~~~~~~~~ | | | int * 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 fs/proc/sprd_debug/proc_sprd_debug.c:1: include/linux/kernel.h:271:80: note: expected 'long int *' but argument is of type 'int *' 271 | static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) | ~~~~~~^~~ fs/proc/sprd_debug/proc_sprd_debug.c: In function '_irqinfo_num_proc_write': fs/proc/sprd_debug/proc_sprd_debug.c:181:48: warning: passing argument 3 of 'kstrtol' from incompatible pointer type [-Wincompatible-pointer-types] 181 | err = strict_strtol(strstrip(irq_num_buf), 0, &irq_num); | ^~~~~~~~ | | | int * 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 fs/proc/sprd_debug/proc_sprd_debug.c:1: include/linux/kernel.h:271:80: note: expected 'long int *' but argument is of type 'int *' 271 | static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) | ~~~~~~^~~ fs/proc/sprd_debug/proc_sprd_debug.c: In function '_last_regs_info_proc_show': fs/proc/sprd_debug/proc_sprd_debug.c:206:25: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'long unsigned int' [-Wformat=] 206 | seq_printf(m, "vaddr:%p value:%p pc:%p time:%p status:%p\n", | ~^ | | | void * | %ld 207 | sprd_debug_last_regs_access[i].vaddr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int fs/proc/sprd_debug/proc_sprd_debug.c:206:34: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'u32' {aka 'unsigned int'} [-Wformat=] 206 | seq_printf(m, "vaddr:%p value:%p pc:%p time:%p status:%p\n", | ~^ | | | void * | %d 207 | sprd_debug_last_regs_access[i].vaddr, 208 | sprd_debug_last_regs_access[i].value, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | u32 {aka unsigned int} fs/proc/sprd_debug/proc_sprd_debug.c:206:40: warning: format '%p' expects argument of type 'void *', but argument 5 has type 'long unsigned int' [-Wformat=] 206 | seq_printf(m, "vaddr:%p value:%p pc:%p time:%p status:%p\n", | ~^ | | | void * | %ld ...... 209 | sprd_debug_last_regs_access[i].pc, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int fs/proc/sprd_debug/proc_sprd_debug.c:206:48: warning: format '%p' expects argument of type 'void *', but argument 6 has type 'long unsigned int' [-Wformat=] 206 | seq_printf(m, "vaddr:%p value:%p pc:%p time:%p status:%p\n", | ~^ | | | void * | %ld ...... 210 | sprd_debug_last_regs_access[i].time, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int fs/proc/sprd_debug/proc_sprd_debug.c:206:58: warning: format '%p' expects argument of type 'void *', but argument 7 has type 'unsigned int' [-Wformat=] 206 | seq_printf(m, "vaddr:%p value:%p pc:%p time:%p status:%p\n", | ~^ | | | void * | %d ...... 211 | sprd_debug_last_regs_access[i].status); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int fs/proc/sprd_debug/proc_sprd_debug.c:213:1: warning: no return statement in function returning non-void [-Wreturn-type] 213 | } | ^ CC fs/proc/sprd_debug/proc_cpu_usage.o CC drivers/cpuidle/governors/ladder.o CC sound/soc/soc-io.o CC drivers/cpuidle/governors/menu.o drivers/cpuidle/governors/menu.c:129:12: warning: 'get_loadavg' defined but not used [-Wunused-function] 129 | static int get_loadavg(void) | ^~~~~~~~~~~ CC fs/proc/sprd_debug/sprd_uboot_log_dump.o LD drivers/cpuidle/governors/built-in.o LD drivers/cpuidle/built-in.o LD drivers/crypto/built-in.o CC drivers/devfreq/devfreq.o LD sound/soc/atmel/built-in.o LD sound/soc/au1x/built-in.o LD sound/soc/blackfin/built-in.o LD fs/proc/sprd_debug/sprd_debug.o LD sound/soc/cirrus/built-in.o LD fs/proc/sprd_debug/built-in.o LD sound/soc/codecs/built-in.o LD fs/proc/proc.o LD sound/soc/davinci/built-in.o LD fs/proc/built-in.o LD sound/soc/dwc/built-in.o LD fs/quota/built-in.o LD sound/soc/fsl/built-in.o CC fs/ramfs/inode.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 sound/soc/mxs/built-in.o LD sound/soc/nuc900/built-in.o LD sound/soc/omap/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 drivers/devfreq/built-in.o LD drivers/firewire/built-in.o LD sound/soc/sh/built-in.o LD drivers/firmware/built-in.o CC sound/soc/sprd/i2s-r0p0-null-codec.o CC drivers/gpio/devres.o CC fs/ramfs/file-mmu.o CC drivers/gpio/gpiolib.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/i2s-r0p0-null-codec.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD fs/ramfs/ramfs.o LD fs/ramfs/built-in.o In file included from sound/soc/sprd/i2s-r0p0-null-codec.c:22: 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 fs/sdcardfs/dentry.o CC sound/soc/sprd/sprd-asoc-common.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 fs/sdcardfs/file.o CC sound/soc/sprd/sprd-asoc-card.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/sprd-asoc-card.c:25: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from sound/soc/sprd/sprd-asoc-card.c:27: 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 fs/sdcardfs/inode.o CC drivers/gpio/gpiolib-of.o CC sound/soc/sprd/codec/null-codec/null-codec.o CC drivers/gpio/gpio-eic.o In file included from drivers/gpio/gpio-eic.c:27: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/gpio/gpio-eic.c:27: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/gpio/gpio-eic.c:105:1: warning: useless storage class specifier in empty declaration 105 | }; | ^ drivers/gpio/gpio-eic.c: In function 'eic_gpio_probe': drivers/gpio/gpio-eic.c:868:3: warning: ignoring return value of 'gpiochip_remove' declared with attribute 'warn_unused_result' [-Wunused-result] 868 | gpiochip_remove(&sgc->chip); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 fs/sdcardfs/main.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 In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:50: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:493:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 493 | 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:497:13: warning: unused variable 'j' [-Wunused-variable] 497 | 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:696:6: warning: unused variable 'val' [-Wunused-variable] 696 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:695:6: warning: unused variable 'mask' [-Wunused-variable] 695 | 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:936:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 936 | 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:1120:1: warning: no return statement in function returning non-void [-Wreturn-type] 1120 | } | ^ 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:1572:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1572 | 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:1610:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1610 | 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:1639:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 1639 | 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:1746:6: warning: unused variable 'val' [-Wunused-variable] 1746 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1745:6: warning: unused variable 'mask' [-Wunused-variable] 1745 | 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:1760:6: warning: unused variable 'val' [-Wunused-variable] 1760 | int val; | ^~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:1759:6: warning: unused variable 'mask' [-Wunused-variable] 1759 | 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:1861:33: warning: unused variable 'p_setting' [-Wunused-variable] 1861 | 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:2248:11: warning: unused variable 'mask' [-Wunused-variable] 2248 | uint32_t mask = 0; | ^~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:2247:11: warning: unused variable 'val' [-Wunused-variable] 2247 | 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:2327:26: warning: unused variable 'sprd_codec' [-Wunused-variable] 2327 | 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:3979:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 3979 | 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:3987:2: note: in expansion of macro 'sp_asoc_pr_info' 3987 | 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:4005:6: warning: unused variable 'i' [-Wunused-variable] 4005 | int i = 0; | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: At top level: sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4260: warning: "SPRD_CODEC_PGA_MAX" redefined 4260 | #define SPRD_CODEC_PGA_MAX(xname, xreg, max, tlv_array) \ | sound/soc/sprd/codec/sprd/v4/sprd-codec.c:148: note: this is the location of the previous definition 148 | #define SPRD_CODEC_PGA_MAX (SPRD_CODEC_PGA_END - SPRD_CODEC_PGA_START) | sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'is_pa_short_check_support': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4690:13: warning: unused variable 'j' [-Wunused-variable] 4690 | int i = 0, j = 0; | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'audio_pa_short_check': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4718:32: warning: missing braces around initializer [-Wmissing-braces] 4718 | struct reg_val codec_regs[] = { | ^ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4717:8: warning: unused variable 'reg_buf' [-Wunused-variable] 4717 | char *reg_buf; | ^~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4714:6: warning: unused variable 'ver_id' [-Wunused-variable] 4714 | int ver_id = 0; | ^~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4713:6: warning: unused variable 'chip_id' [-Wunused-variable] 4713 | u32 chip_id = 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/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:4837:3: note: in expansion of macro 'sp_asoc_pr_info' 4837 | 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:4837:3: note: in expansion of macro 'sp_asoc_pr_info' 4837 | sp_asoc_pr_info("%, error, not enough memory!!!\n", __func__); | ^~~~~~~~~~~~~~~ In file included from sound/soc/sprd/codec/sprd/v4/sprd-codec.c:46: include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:981:2: note: in expansion of macro 'REG_PAIR' 981 | REG_PAIR(t, REG_AON_APB_APB_EB0, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:982:2: note: in expansion of macro 'REG_PAIR' 982 | REG_PAIR(t, REG_AON_APB_APB_RST0, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:983:2: note: in expansion of macro 'REG_PAIR' 983 | REG_PAIR(t, REG_AON_APB_SINDRV_CTRL, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:984:2: note: in expansion of macro 'REG_PAIR' 984 | REG_PAIR(t, REG_AON_APB_VBC_CTRL, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:985:2: note: in expansion of macro 'REG_PAIR' 985 | REG_PAIR(t, REG_AON_APB_AP_WPROT_EN, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:986:2: note: in expansion of macro 'REG_PAIR' 986 | REG_PAIR(t, REG_AON_APB_CP0_WPROT_EN, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:987:2: note: in expansion of macro 'REG_PAIR' 987 | REG_PAIR(t, REG_AON_APB_CP1_WPROT_EN, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:988:2: note: in expansion of macro 'REG_PAIR' 988 | REG_PAIR(t, REG_AON_APB_CP2_WPROT_EN, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:49:2: note: in expansion of macro 'AUDIO_VBC_REG_DUMP_LIST' 49 | AUDIO_VBC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:992:2: note: in expansion of macro 'REG_PAIR' 992 | REG_PAIR(t, SPRD_INTC0_BASE, 4, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:993:2: note: in expansion of macro 'REG_PAIR' 993 | REG_PAIR(t, REG_PMU_APB_SLEEP_CTRL, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:994:2: note: in expansion of macro 'REG_PAIR' 994 | REG_PAIR(t, REG_PMU_APB_MEM_PD_CFG0, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:995:2: note: in expansion of macro 'REG_PAIR' 995 | REG_PAIR(t, ANA_AUDIFA_INT_BASE, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:996:2: note: in expansion of macro 'REG_PAIR' 996 | REG_PAIR(t, ANA_REG_GLB_ARM_MODULE_EN, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:997:2: note: in expansion of macro 'REG_PAIR' 997 | REG_PAIR(t, ANA_REG_GLB_ARM_CLK_EN, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:998:2: note: in expansion of macro 'REG_PAIR' 998 | REG_PAIR(t, ANA_REG_GLB_AUD_SLP_CTRL, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:999:2: note: in expansion of macro 'REG_PAIR' 999 | REG_PAIR(t, ANA_REG_GLB_AUDIO_CTRL0, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:1000:2: note: in expansion of macro 'REG_PAIR' 1000 | REG_PAIR(t, ANA_REG_GLB_RTC_CLK_EN, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:1001:2: note: in expansion of macro 'REG_PAIR' 1001 | REG_PAIR(t, ANA_REG_GLB_XTL_WAIT_CTRL, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'int (*)(long unsigned int)' [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:1002:2: note: in expansion of macro 'REG_PAIR' 1002 | REG_PAIR(t, ANA_REG_GLB_ARM_RST, 1, sci_adi_read) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:50:2: note: in expansion of macro 'AUDIO_CODEC_REG_DUMP_LIST' 50 | AUDIO_CODEC_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:1006:2: note: in expansion of macro 'REG_PAIR' 1006 | REG_PAIR(t, REG_AP_APB_APB_EB, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:51:2: note: in expansion of macro 'AUDIO_IIS_REG_DUMP_LIST' 51 | AUDIO_IIS_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/sprd-audio.h:36:84: warning: assignment to 'int (*)(void *)' from incompatible pointer type 'u32 (*)(const volatile void *)' {aka 'unsigned int (*)(const volatile void *)'} [-Wincompatible-pointer-types] 36 | #define REG_PAIR(t, r, c, f) {t->reg_name = #r; t->reg = r; t->count = c; t->func = f; t++; } | ^ include/soc/sprd/__sprd_audio_sc8830.h:1007:2: note: in expansion of macro 'REG_PAIR' 1007 | REG_PAIR(t, REG_AP_APB_APB_RST, 1, __raw_readl) \ | ^~~~~~~~ include/soc/sprd/sprd-audio.h:51:2: note: in expansion of macro 'AUDIO_IIS_REG_DUMP_LIST' 51 | AUDIO_IIS_REG_DUMP_LIST(t) \ | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4841:2: note: in expansion of macro 'AUDIO_GLB_REG_DUMP_LIST' 4841 | AUDIO_GLB_REG_DUMP_LIST(reg_p); | ^~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4848:38: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 4848 | snd_iprintf(buffer, "%30s: 0x%08x 0x%08x\n", | ~~~^ | | | unsigned int | %08lx 4849 | aud_glb_reg[i].reg_name, 4850 | aud_glb_reg[i].reg + sizeof(aud_glb_reg[i].reg) * j, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int sound/soc/sprd/codec/sprd/v4/sprd-codec.c:4854:42: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] 4854 | snd_iprintf(buffer, "%27s+%2d: 0x%08x 0x%08x\n", | ~~~^ | | | unsigned int | %08lx ...... 4857 | aud_glb_reg[i].reg + sizeof(aud_glb_reg[i].reg) * j, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int 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} sound/soc/sprd/codec/sprd/v4/sprd-codec.c: In function 'sprd_codec_probe': sound/soc/sprd/codec/sprd/v4/sprd-codec.c:5237:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 5237 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:230:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 230 | 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:5247:10: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 5247 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:230:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 230 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC fs/sdcardfs/super.o CC drivers/gpu/sprd_iommu/sprd_iommu_drv.o drivers/gpu/sprd_iommu/sprd_iommu_drv.c: In function 'sprd_iommu_get_resource': drivers/gpu/sprd_iommu/sprd_iommu_drv.c:272:12: warning: unused variable 'i' [-Wunused-variable] 272 | uint32_t i; | ^ CC fs/sdcardfs/lookup.o 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), | ^~ drivers/gpu/sprd_iommu/sprd_iommu_common.c: In function 'iommu_pgt_show': drivers/gpu/sprd_iommu/sprd_iommu_common.c:406:9: warning: 'return' with a value, in function returning void [-Wreturn-type] 406 | return 0; | ^ drivers/gpu/sprd_iommu/sprd_iommu_common.c:359:6: note: declared here 359 | void iommu_pgt_show(struct sprd_iommu_dev *dev) | ^~~~~~~~~~~~~~ CC fs/sdcardfs/mmap.o CC drivers/gpu/sprd_iommu/gsp/sprd_iommu_gsp.o CC fs/sdcardfs/packagelist.o LD drivers/gpu/sprd_iommu/gsp/built-in.o CC drivers/gpu/sprd_iommu/mm/sprd_iommu_mm.o CC sound/soc/sprd/codec/sprd/v4/sprd-audio-power.o fs/sdcardfs/packagelist.c: In function 'packagelist_destroy': fs/sdcardfs/packagelist.c:452:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 452 | pid_t pkgl_pid = pkgl_dat->thread_id->pid; | ^~~~~ At top level: fs/sdcardfs/packagelist.c:57:20: warning: 'kgroups' defined but not used [-Wunused-const-variable=] 57 | static const gid_t kgroups[1] = { AID_PACKAGE_INFO }; | ^~~~~~~ LD drivers/gpu/sprd_iommu/mm/built-in.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_vsp.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/codec/sprd/v4/sprd-audio-power.c:31: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | 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 fs/sdcardfs/derived_perm.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_dcam.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 LD fs/sdcardfs/sdcardfs.o LD fs/sdcardfs/built-in.o CC fs/sysfs/inode.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_dispc.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/sprd-pcm.c:43: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | sound/soc/sprd/dai/sprd-pcm.c: In function 'sprd_pcm_open': sound/soc/sprd/dai/sprd-pcm.c:281:24: warning: assignment to 'dma_addr_t *' {aka 'unsigned int *'} from 'unsigned int' makes pointer from integer without a cast [-Wint-conversion] 281 | 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:604:28: warning: assignment to 'long unsigned int' from 'dma_addr_t *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion] 604 | dma_reg_addr[0].virt_addr = rtd->dma_desc_array; | ^ In file included from sound/soc/sprd/dai/sprd-pcm.c:17: sound/soc/sprd/sprd-asoc-debug.h:30:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 30 | #define pr_s pr_col_s "[" pr_id | ^~~ sound/soc/sprd/sprd-asoc-debug.h:33:25: note: in expansion of macro 'pr_s' 33 | #define pr_sprd_fmt(id) pr_s id pr_e | ^~~~ sound/soc/sprd/dai/sprd-pcm.c:18:21: note: in expansion of macro 'pr_sprd_fmt' 18 | #define pr_fmt(fmt) pr_sprd_fmt(" PCM ") fmt | ^~~~~~~~~~~ include/linux/dynamic_debug.h:78:35: note: in expansion of macro 'pr_fmt' 78 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \ | ^~~~~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(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:605:2: note: in expansion of macro 'sp_asoc_pr_dbg' 605 | sp_asoc_pr_dbg("dma_reg_addr[0].virt_addr:0x%x\n", | ^~~~~~~~~~~~~~ sound/soc/sprd/sprd-asoc-debug.h:30:23: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] 30 | #define pr_s pr_col_s "[" pr_id | ^~~ sound/soc/sprd/sprd-asoc-debug.h:33:25: note: in expansion of macro 'pr_s' 33 | #define pr_sprd_fmt(id) pr_s id pr_e | ^~~~ sound/soc/sprd/dai/sprd-pcm.c:18:21: note: in expansion of macro 'pr_sprd_fmt' 18 | #define pr_fmt(fmt) pr_sprd_fmt(" PCM ") fmt | ^~~~~~~~~~~ include/linux/dynamic_debug.h:78:35: note: in expansion of macro 'pr_fmt' 78 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \ | ^~~~~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(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:629:3: note: in expansion of macro 'sp_asoc_pr_dbg' 629 | 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 fs/sysfs/file.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_gsp0.o 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 CC drivers/gpu/sprd_iommu/v2/sprd_iommu_gsp1.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from sound/soc/sprd/dai/i2s/i2s.c:40: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from include/soc/sprd/i2s.h:20, from sound/soc/sprd/dai/i2s/i2s.c:48: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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/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 sound/soc/sprd/dai/i2s/i2s.c:17: sound/soc/sprd/dai/i2s/i2s.c: In function 'i2s_config_get': sound/soc/sprd/sprd-asoc-debug.h:30:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 30 | #define pr_s pr_col_s "[" pr_id | ^~~ sound/soc/sprd/sprd-asoc-debug.h:33:25: note: in expansion of macro 'pr_s' 33 | #define pr_sprd_fmt(id) pr_s id pr_e | ^~~~ sound/soc/sprd/dai/i2s/i2s.c:18:21: note: in expansion of macro 'pr_sprd_fmt' 18 | #define pr_fmt(fmt) pr_sprd_fmt(" I2S ") fmt | ^~~~~~~~~~~ include/linux/dynamic_debug.h:78:35: note: in expansion of macro 'pr_fmt' 78 | __dynamic_pr_debug(&descriptor, pr_fmt(fmt), \ | ^~~~~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:419:53: note: in definition of macro 'ioremap_nocache' 419 | #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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:227:36: note: expected 'phys_addr_t' {aka 'unsigned int'} but argument is of type 'unsigned int *' 227 | 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 fs/sysfs/dir.o CC drivers/gpu/sprd_iommu/v2/sprd_iommu_vpp.o LD drivers/gpu/sprd_iommu/v2/built-in.o LD drivers/gpu/sprd_iommu/built-in.o LD drivers/gpu/vga/built-in.o CC fs/sysfs/symlink.o LD drivers/gpu/built-in.o CC drivers/hid/hid-debug.o LD sound/soc/sprd/dai/i2s/snd-soc-sprd-i2s.o LD sound/soc/sprd/dai/i2s/built-in.o CC sound/soc/sprd/dai/vaudio/vaudio.o CC fs/sysfs/mount.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, from sound/soc/sprd/dai/vaudio/vaudio.c:38: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from sound/soc/sprd/dai/vaudio/vaudio.c:40: 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/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 drivers/hid/hid-core.o CC fs/sysfs/bin.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:230:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 230 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:230:50: note: expected 'volatile void *' but argument is of type 'long unsigned int' 230 | 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_reg_apply': sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1607:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1607 | effect_paras = &vbc_da_eq_profile_default; | ^ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1625:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1625 | effect_paras = &vbc_da_eq_profile_default; | ^ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c: In function 'vbc_eq_profile_close': sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1734:10: warning: passing argument 2 of 'vbc_eq_profile_apply' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1734 | &vbc_da_eq_profile_default, vbc_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1721:69: note: expected 'void *' but argument is of type 'const u32 (*)[164]' {aka 'const unsigned int (*)[164]'} 1721 | static void vbc_eq_profile_apply(struct snd_soc_codec *codec, void *data, | ~~~~~~^~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1739:10: warning: passing argument 2 of 'vbc_eq_profile_apply' discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers] 1739 | &vbc_ad_eq_profile_default, vbc_idx); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:1721:69: note: expected 'void *' but argument is of type 'const u32 (*)[88]' {aka 'const unsigned int (*)[88]'} 1721 | static void vbc_eq_profile_apply(struct snd_soc_codec *codec, void *data, | ~~~~~~^~~~ sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c: In function 'vbc_close_fm_dggain': sound/soc/sprd/dai/vbc/r2p0/vbc-codec.c:2370:1: warning: control reaches end of non-void function [-Wreturn-type] 2370 | } | ^ 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 fs/sysfs/group.o CC drivers/hid/hid-input.o LD fs/sysfs/built-in.o CC fs/eventpoll.o In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/__sprd_audio_sc8830.h:23, from include/soc/sprd/sprd-audio.h:20, 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-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/__sprd_audio_sc8830.h:25, from include/soc/sprd/sprd-audio.h:20, 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_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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 LD sound/soc/tegra/built-in.o LD sound/soc/txx9/built-in.o CC fs/anon_inodes.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 sound/spi/built-in.o LD sound/synth/built-in.o CC sound/usb/card.o CC fs/signalfd.o CC drivers/hid/uhid.o CC sound/usb/clock.o CC fs/timerfd.o CC drivers/hid/hid-generic.o CC fs/eventfd.o CC drivers/hid/hid-apple.o CC sound/usb/endpoint.o CC drivers/hid/hid-magicmouse.o CC fs/aio.o CC sound/usb/format.o CC drivers/hid/usbhid/hid-core.o CC sound/usb/helper.o CC sound/usb/mixer.o CC fs/locks.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 sound/usb/mixer_quirks.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 drivers/hwspinlock/sprd_hwspinlock.o CC fs/binfmt_script.o CC sound/usb/pcm.o In file included from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/hwspinlock/sprd_hwspinlock.c:34: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/linux/byteorder/little_endian.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/uapi/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from drivers/hwspinlock/sprd_hwspinlock.c:19: drivers/hwspinlock/sprd_hwspinlock.c: In function 'hwspinlock_show_lock_status': drivers/hwspinlock/sprd_hwspinlock.c:300:52: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 300 | return readl_relaxed(sprd_hwlock->hwspinlock_base + HWSPINLOCK_TTLSTS); | ^ | | | long unsigned int include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu' 33 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ drivers/hwspinlock/sprd_hwspinlock.c:300:9: note: in expansion of macro 'readl_relaxed' 300 | return readl_relaxed(sprd_hwlock->hwspinlock_base + HWSPINLOCK_TTLSTS); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/hwspinlock/sprd_hwspinlock.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ At top level: drivers/hwspinlock/sprd_hwspinlock.c:239:22: warning: 'sprd_hwspinlock_addr' defined but not used [-Wunused-function] 239 | 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:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC fs/binfmt_elf.o LD drivers/hwspinlock/built-in.o CC drivers/i2c/i2c-boardinfo.o CC drivers/i2c/i2c-core.o CC sound/usb/proc.o CC sound/usb/quirks.o CC fs/mbcache.o CC sound/usb/stream.o CC fs/posix_acl.o CC drivers/i2c/i2c-dev.o CC fs/xattr_acl.o CC sound/usb/midi.o LD drivers/i2c/algos/built-in.o CC drivers/i2c/busses/i2c-sprd.o CC fs/generic_acl.o In file included from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/i2c/busses/i2c-sprd.c: In function 'sprd_i2c_clk_init': drivers/i2c/busses/i2c-sprd.c:445:48: warning: passing argument 3 of 'of_property_read_string' from incompatible pointer type [-Wincompatible-pointer-types] 445 | if(of_property_read_string(np, "clock-names", &clock_name)) { | ^~~~~~~~~~~ | | | char ** In file included from include/linux/i2c.h:33, from drivers/i2c/busses/i2c-sprd.c:20: include/linux/of.h:254:21: note: expected 'const char **' but argument is of type 'char **' 254 | const char **out_string); | ~~~~~~~~~~~~~^~~~~~~~~~ CC fs/coredump.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) | ~~~~^~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/i2c/busses/i2c-sprd.c:34: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/i2c/busses/built-in.o LD sound/usb/6fire/built-in.o LD drivers/i2c/muxes/built-in.o LD sound/usb/caiaq/built-in.o LD drivers/i2c/built-in.o LD sound/usb/misc/built-in.o LD sound/usb/usx2y/built-in.o LD drivers/idle/built-in.o CC drivers/iio/industrialio-core.o LD sound/usb/snd-usb-audio.o LD sound/usb/snd-usbmidi-lib.o LD sound/usb/built-in.o CC sound/last.o LD sound/soundcore.o LD sound/built-in.o LD firmware/built-in.o CC fs/drop_caches.o CC fs/dcookies.o CC arch/arm/oprofile/../../../drivers/oprofile/oprof.o CC drivers/iio/industrialio-event.o LD fs/built-in.o CC arch/arm/oprofile/../../../drivers/oprofile/cpu_buffer.o CC arch/arm/oprofile/../../../drivers/oprofile/buffer_sync.o CC drivers/iio/inkern.o CC net/socket.o CC arch/arm/oprofile/../../../drivers/oprofile/event_buffer.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_files.o CC drivers/iio/industrialio-buffer.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofilefs.o CC arch/arm/oprofile/../../../drivers/oprofile/oprofile_stats.o CC drivers/iio/industrialio-trigger.o CC arch/arm/oprofile/../../../drivers/oprofile/timer_int.o CC drivers/iio/kfifo_buf.o CC arch/arm/oprofile/common.o LD net/802/built-in.o CC net/bluetooth/af_bluetooth.o LD arch/arm/oprofile/oprofile.o LD arch/arm/oprofile/built-in.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 arch/arm/lib/built-in.o AS arch/arm/lib/ashldi3.o LD drivers/iio/dac/built-in.o AS arch/arm/lib/ashrdi3.o LD drivers/iio/frequency/built-in.o LD drivers/iio/gyro/built-in.o AS arch/arm/lib/backtrace.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 AS arch/arm/lib/call_with_stack.o LD drivers/iio/light/built-in.o AS arch/arm/lib/changebit.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 AS arch/arm/lib/clear_user.o AS arch/arm/lib/clearbit.o AS arch/arm/lib/copy_from_user.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 arch/arm/lib/delay.o CC net/bluetooth/hci_core.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 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/memcpy.o AS arch/arm/lib/memmove.o AS arch/arm/lib/memset.o AS arch/arm/lib/memzero.o AS arch/arm/lib/muldi3.o AS arch/arm/lib/putuser.o AS arch/arm/lib/setbit.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': AS arch/arm/lib/strchr.o 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); | ^~~~~~~~ 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/input/input-compat.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 drivers/input/input-mt.o CC lib/bcd.o CC lib/div64.o CC lib/sort.o CC drivers/input/ff-core.o CC lib/parser.o CC drivers/input/matrix-keymap.o CC lib/halfmd4.o CC lib/debug_locks.o CC net/bluetooth/hci_conn.o CC drivers/input/evdev.o CC lib/random32.o CC lib/bust_spinlocks.o CC lib/hexdump.o CC drivers/input/keyboard/gpio_keys_sprd.o CC lib/kasprintf.o drivers/input/keyboard/gpio_keys_sprd.c: In function 'gpio_keys_get_devtree_pdata': drivers/input/keyboard/gpio_keys_sprd.c:625:52: warning: passing argument 3 of 'of_property_read_string' from incompatible pointer type [-Wincompatible-pointer-types] 625 | ret = of_property_read_string(node, "input-name", &input_name); | ^~~~~~~~~~~ | | | char ** In file included from include/asm-generic/gpio.h:7, from arch/arm/mach-sc/include/mach/gpio.h:63, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:45, from drivers/input/keyboard/gpio_keys_sprd.c:28: include/linux/of.h:254:21: note: expected 'const char **' but argument is of type 'char **' 254 | const char **out_string); | ~~~~~~~~~~~~~^~~~~~~~~~ drivers/input/keyboard/gpio_keys_sprd.c: In function 'gpio_keys_init': drivers/input/keyboard/gpio_keys_sprd.c:910:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 910 | struct device_node *node = of_find_compatible_node(NULL, NULL, "gpio-keys"); | ^~~~~~ drivers/input/keyboard/gpio_keys_sprd.c:914:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 914 | struct platform_device *dev = of_find_device_by_node(node); | ^~~~~~ CC lib/bitmap.o CC net/bluetooth/hci_event.o CC drivers/input/keyboard/sc_keypad.o In file included from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/keyboard/sc_keypad.c:40: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/keyboard/sc_keypad.c:39: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/keyboard/sc_keypad.c:39: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/keyboard/sc_keypad.c:39: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/keyboard/sc_keypad.c:39: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/input/keyboard/sc_keypad.c:39: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/input/keyboard/sc_keypad.c:45: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_isr': drivers/input/keyboard/sc_keypad.c:72:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 72 | #define KPD_INT_MASK_STATUS (KPD_REG_BASE + 0x0C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:221:41: note: in expansion of macro 'KPD_INT_MASK_STATUS' 221 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:103:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 103 | #define KPD_KEY_STATUS (KPD_REG_BASE + 0x2C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:222:41: note: in expansion of macro 'KPD_KEY_STATUS' 222 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:89:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 89 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:228:22: note: in expansion of macro 'KPD_INT_CLR' 228 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:89:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 89 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:230:22: note: in expansion of macro 'KPD_INT_CLR' 230 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | 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:455:9: warning: returning 'struct sci_keypad_platform_data *' from a function with incompatible return type 'struct sci_keypad_platdata *' [-Wincompatible-pointer-types] 455 | return pdata; | ^~~~~ drivers/input/keyboard/sc_keypad.c: In function 'sci_keypad_probe': drivers/input/keyboard/sc_keypad.c:548:9: warning: assignment to 'struct sci_keypad_platform_data *' from incompatible pointer type 'struct sci_keypad_platdata *' [-Wincompatible-pointer-types] 548 | pdata = sci_keypad_parse_dt(&pdev->dev); | ^ drivers/input/keyboard/sc_keypad.c:89:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 89 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:577:28: note: in expansion of macro 'KPD_INT_CLR' 577 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:90:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 90 | #define KPD_POLARITY (KPD_REG_BASE + 0x18) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:578:52: note: in expansion of macro 'KPD_POLARITY' 578 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:101:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 101 | #define KPD_CLK_DIV_CNT (KPD_REG_BASE + 0x28) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:579:18: note: in expansion of macro 'KPD_CLK_DIV_CNT' 579 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:97:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 97 | #define KPD_LONG_KEY_CNT (KPD_REG_BASE + 0x20) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:580:20: note: in expansion of macro 'KPD_LONG_KEY_CNT' 580 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:96:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 96 | #define KPD_DEBOUNCE_CNT (KPD_REG_BASE + 0x1C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:581:20: note: in expansion of macro 'KPD_DEBOUNCE_CNT' 581 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:70:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 70 | #define KPD_INT_EN (KPD_REG_BASE + 0x04) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:632:22: note: in expansion of macro 'KPD_INT_EN' 632 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, 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_SLEEP_CNT (KPD_REG_BASE + 0x24) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:634:22: note: in expansion of macro 'KPD_SLEEP_CNT' 634 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:57:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 57 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:661:22: note: in expansion of macro 'KPD_CTRL' 661 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:545:22: warning: unused variable 'np' [-Wunused-variable] 545 | 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:89:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 89 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:698:28: note: in expansion of macro 'KPD_INT_CLR' 698 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:57:48: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 57 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:699:22: note: in expansion of macro 'KPD_CTRL' 699 | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:57:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 57 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:701:22: note: in expansion of macro 'KPD_CTRL' 701 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | 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:89:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 89 | #define KPD_INT_CLR (KPD_REG_BASE + 0x10) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:729:28: note: in expansion of macro 'KPD_INT_CLR' 729 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:90:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 90 | #define KPD_POLARITY (KPD_REG_BASE + 0x18) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:730:52: note: in expansion of macro 'KPD_POLARITY' 730 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:101:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 101 | #define KPD_CLK_DIV_CNT (KPD_REG_BASE + 0x28) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:731:18: note: in expansion of macro 'KPD_CLK_DIV_CNT' 731 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:97:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 97 | #define KPD_LONG_KEY_CNT (KPD_REG_BASE + 0x20) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:732:20: note: in expansion of macro 'KPD_LONG_KEY_CNT' 732 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:96:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 96 | #define KPD_DEBOUNCE_CNT (KPD_REG_BASE + 0x1C) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:733:20: note: in expansion of macro 'KPD_DEBOUNCE_CNT' 733 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:70:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 70 | #define KPD_INT_EN (KPD_REG_BASE + 0x04) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:738:22: note: in expansion of macro 'KPD_INT_EN' 738 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, 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_SLEEP_CNT (KPD_REG_BASE + 0x24) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:740:22: note: in expansion of macro 'KPD_SLEEP_CNT' 740 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/input/keyboard/sc_keypad.c:57:48: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 57 | #define KPD_CTRL (KPD_REG_BASE + 0x00) | ~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int drivers/input/keyboard/sc_keypad.c:747:22: note: in expansion of macro 'KPD_CTRL' 747 | __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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC lib/scatterlist.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 drivers/input/keyboard/sprd_eic_keys.o drivers/input/keyboard/sprd_eic_keys.c: In function 'sprd_eic_keys_get_devtree_pdata': drivers/input/keyboard/sprd_eic_keys.c:226:52: warning: passing argument 3 of 'of_property_read_string' from incompatible pointer type [-Wincompatible-pointer-types] 226 | ret = of_property_read_string(node, "input-name", &input_name); | ^~~~~~~~~~~ | | | char ** In file included from include/asm-generic/gpio.h:7, from arch/arm/mach-sc/include/mach/gpio.h:63, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:45, from drivers/input/keyboard/sprd_eic_keys.c:30: include/linux/of.h:254:21: note: expected 'const char **' but argument is of type 'char **' 254 | const char **out_string); | ~~~~~~~~~~~~~^~~~~~~~~~ drivers/input/keyboard/sprd_eic_keys.c: In function 'sprd_eic_keys_init': drivers/input/keyboard/sprd_eic_keys.c:438:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 438 | struct device_node *node = of_find_compatible_node(NULL, NULL, "sprd,sprd-eic-keys"); | ^~~~~~ drivers/input/keyboard/sprd_eic_keys.c:442:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 442 | struct platform_device *dev = of_find_device_by_node(node); | ^~~~~~ At top level: drivers/input/keyboard/sprd_eic_keys.c:410:12: warning: 'sprd_eic_keys_resume' defined but not used [-Wunused-function] 410 | static int sprd_eic_keys_resume(struct platform_device *dev) | ^~~~~~~~~~~~~~~~~~~~ drivers/input/keyboard/sprd_eic_keys.c:405:12: warning: 'sprd_eic_keys_suspend' defined but not used [-Wunused-function] 405 | static int sprd_eic_keys_suspend(struct platform_device *dev, pm_message_t state) | ^~~~~~~~~~~~~~~~~~~~~ CC lib/gcd.o LD drivers/input/keyboard/built-in.o CC drivers/input/misc/gpio_event.o CC lib/lcm.o CC drivers/input/misc/gpio_matrix.o CC lib/list_sort.o CC drivers/input/misc/gpio_input.o CC lib/uuid.o CC lib/flex_array.o CC drivers/input/misc/gpio_output.o CC lib/iovec.o CC drivers/input/misc/gpio_axis.o CC lib/bsearch.o CC drivers/input/misc/uinput.o CC lib/find_last_bit.o CC net/bluetooth/mgmt.o CC lib/find_next_bit.o CC lib/llist.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++) | ^~ CC drivers/input/misc/headset_sprd_sc2723.o CC lib/memweight.o In file included from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ CC lib/kfifo.o include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:32: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/input/misc/headset_sprd_sc2723.c: In function 'adc_get_ideal': drivers/input/misc/headset_sprd_sc2723.c:1865:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1865 | u32 a = adc_cal_headset.A; | ^~~ At top level: drivers/input/misc/headset_sprd_sc2723.c:1847:12: warning: 'headset_resume' defined but not used [-Wunused-function] 1847 | static int headset_resume(struct platform_device *dev) | ^~~~~~~~~~~~~~ drivers/input/misc/headset_sprd_sc2723.c:1840:12: warning: 'headset_suspend' defined but not used [-Wunused-function] 1840 | static int headset_suspend(struct platform_device *dev, pm_message_t state) | ^~~~~~~~~~~~~~~ drivers/input/misc/headset_sprd_sc2723.c:1386:20: warning: 'headset_detect_mic_irq_handler' defined but not used [-Wunused-function] 1386 | static irqreturn_t headset_detect_mic_irq_handler(int irq, void *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC lib/string_helpers.o In file included from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/misc/headset_sprd_sc2723.c:19: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/input/misc/headset_sprd_sc2723.c:24: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/input/misc/headset_sprd_sc2723.c:31: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/input/misc/headset_sprd_sc2723.c:32: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ CC lib/kstrtox.o LD drivers/input/misc/built-in.o CC drivers/input/touchscreen/focaltech/focaltech.o In file included from drivers/input/touchscreen/focaltech/focaltech.c:74: include/linux/i2c/focaltech_ex_fun.h:29: warning: "PAGE_SIZE" redefined 29 | #define PAGE_SIZE 128 | In file included from include/linux/mmzone.h:20, from include/linux/gfp.h:4, from include/linux/firmware.h:6, from drivers/input/touchscreen/focaltech/focaltech.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/page.h:15: note: this is the location of the previous definition 15 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) | drivers/input/touchscreen/focaltech/focaltech.c: In function 'ft5x0x_ts_hw_init': drivers/input/touchscreen/focaltech/focaltech.c:677:3: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result' [-Wunused-result] 677 | regulator_enable(reg_vdd); | ^~~~~~~~~~~~~~~~~~~~~~~~~ At top level: drivers/input/touchscreen/focaltech/focaltech.c:1012:12: warning: 'ft5x0x_resume' defined but not used [-Wunused-function] 1012 | static int ft5x0x_resume(struct i2c_client *client) | ^~~~~~~~~~~~~ drivers/input/touchscreen/focaltech/focaltech.c:1007:12: warning: 'ft5x0x_suspend' defined but not used [-Wunused-function] 1007 | static int ft5x0x_suspend(struct i2c_client *client, pm_message_t mesg) | ^~~~~~~~~~~~~~ CC lib/pci_iomap.o CC net/bluetooth/hci_sock.o CC drivers/input/touchscreen/focaltech/focaltech_ctl.o CC lib/iomap_copy.o In file included from drivers/input/touchscreen/focaltech/focaltech_ctl.c:20: include/linux/i2c/focaltech_ex_fun.h:29: warning: "PAGE_SIZE" redefined 29 | #define PAGE_SIZE 128 | In file included from include/linux/mmzone.h:20, from include/linux/gfp.h:4, from include/linux/slab.h:12, from drivers/input/touchscreen/focaltech/focaltech_ctl.c:1: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/page.h:15: note: this is the location of the previous definition 15 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) | drivers/input/touchscreen/focaltech/focaltech_ctl.c:260:20: warning: initialization of 'long int (*)(struct file *, unsigned int, long unsigned int)' from incompatible pointer type 'int (*)(struct file *, unsigned int, long unsigned int)' [-Wincompatible-pointer-types] 260 | .unlocked_ioctl = ft_rw_iic_drv_ioctl, | ^~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/focaltech/focaltech_ctl.c:260:20: note: (near initialization for 'ft_rw_iic_drv_fops.unlocked_ioctl') CC lib/devres.o CC drivers/input/touchscreen/focaltech/focaltech_ex_fun.o CC lib/hweight.o CC net/bluetooth/hci_sysfs.o CC lib/bitrev.o In file included from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:26: include/linux/i2c/focaltech.h:52:28: warning: 'struct i2c_client' declared inside parameter list will not be visible outside of this definition or declaration 52 | int ft5x0x_i2c_Read(struct i2c_client *client, char *writebuf, int writelen,char *readbuf, int readlen); | ^~~~~~~~~~ include/linux/i2c/focaltech.h:53:29: warning: 'struct i2c_client' declared inside parameter list will not be visible outside of this definition or declaration 53 | int ft5x0x_i2c_Write(struct i2c_client *client, char *writebuf, int writelen); | ^~~~~~~~~~ In file included from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:27: include/linux/i2c/focaltech_ex_fun.h:29: warning: "PAGE_SIZE" redefined 29 | #define PAGE_SIZE 128 | In file included from include/linux/mmzone.h:20, from include/linux/gfp.h:4, from include/linux/device.h:29, from include/linux/pm_qos.h:10, from include/linux/netdevice.h:28, from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:22: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/page.h:15: note: this is the location of the previous definition 15 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT) | In file included from include/linux/kernel.h:7, from include/linux/plist.h:78, from include/linux/pm_qos.h:7, from include/linux/netdevice.h:28, from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:22: include/linux/stddef.h:8:14: warning: initialization of 'u32' {aka 'volatile unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 8 | #define NULL ((void *)0) | ^ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:35:29: note: in expansion of macro 'NULL' 35 | volatile u32 I2CDMABuf_pa = NULL; | ^~~~ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c: In function 'fts_ctpm_fw_upgrade': drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:560:6: warning: unused variable 'i_ret' [-Wunused-variable] 560 | int i_ret; | ^~~~~ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c: In function 'fts_fwupgradeapp_store': drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:1133:29: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1133 | num_read_chars = snprintf(buf, PAGE_SIZE, | ^~~ In file included from include/linux/plist.h:78, from include/linux/pm_qos.h:7, from include/linux/netdevice.h:28, from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:22: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:1138:29: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1138 | num_read_chars = snprintf(buf, PAGE_SIZE, | ^~~ In file included from include/linux/plist.h:78, from include/linux/pm_qos.h:7, from include/linux/netdevice.h:28, from drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:22: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ At top level: drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:51:22: warning: 'LIANCHUANG_FW' defined but not used [-Wunused-variable] 51 | static unsigned char LIANCHUANG_FW[] = { | ^~~~~~~~~~~~~ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:46:22: warning: 'FT5316_FW' defined but not used [-Wunused-variable] 46 | static unsigned char FT5316_FW[] = { | ^~~~~~~~~ drivers/input/touchscreen/focaltech/focaltech_ex_fun.c:42:22: warning: 'FT6306_FW' defined but not used [-Wunused-variable] 42 | static unsigned char FT6306_FW[] = { | ^~~~~~~~~ CC lib/crc-ccitt.o CC lib/crc16.o HOSTCC lib/gen_crc32table CC lib/libcrc32c.o LD drivers/input/touchscreen/focaltech/focaltech_ts.o LD drivers/input/touchscreen/focaltech/built-in.o CC drivers/input/touchscreen/msg2138/mstar_drv_sprd.o CC lib/genalloc.o CC net/bluetooth/l2cap_core.o drivers/input/touchscreen/msg2138/mstar_drv_sprd.c: In function 'pixcir_ts_parse_dt': drivers/input/touchscreen/msg2138/mstar_drv_sprd.c:107:54: warning: passing argument 3 of 'of_property_read_u32_array' from incompatible pointer type [-Wincompatible-pointer-types] 107 | ret = of_property_read_u32_array(np, "virtualkeys", &pdata->virtualkeys,12); | ^~~~~~~~~~~~~~~~~~~ | | | int (*)[12] In file included from include/asm-generic/gpio.h:7, from arch/arm/mach-sc/include/mach/gpio.h:63, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/gpio.h:10, from include/linux/gpio.h:45, from drivers/input/touchscreen/msg2138/mstar_drv_sprd.c:41: include/linux/of.h:247:16: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'int (*)[12]' 247 | u32 *out_values, | ~~~~~^~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_sprd.c: In function 'touch_driver_probe': drivers/input/touchscreen/msg2138/mstar_drv_sprd.c:151:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 151 | struct device_node *np = client->dev.of_node; | ^~~~~~ CC drivers/input/touchscreen/msg2138/mstar_drv_common.o CC drivers/input/touchscreen/msg2138/mstar_drv_ic_fw_porting_layer.o CC lib/lzo/lzo1x_compress.o CC drivers/input/touchscreen/msg2138/mstar_drv_main.o CC lib/lzo/lzo1x_decompress_safe.o In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_main.c:34: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_main.c:34: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_main.c:34: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from include/linux/input.h:22, from drivers/input/touchscreen/msg2138/mstar_drv_common.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_main.h:35, from drivers/input/touchscreen/msg2138/mstar_drv_main.c:32: include/linux/device.h:519:26: warning: 'dev_attr_platform_version' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:582:8: note: in expansion of macro 'DEVICE_ATTR' 582 | static DEVICE_ATTR(platform_version, SYSFS_AUTHORITY, DrvMainFirmwarePlatformVersionShow, DrvMainFirmwarePlatformVersionStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_debug' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:558:8: note: in expansion of macro 'DEVICE_ATTR' 558 | static DEVICE_ATTR(debug, SYSFS_AUTHORITY, DrvMainFirmwareDebugShow, DrvMainFirmwareDebugStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_data' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:233:8: note: in expansion of macro 'DEVICE_ATTR' 233 | static DEVICE_ATTR(data, SYSFS_AUTHORITY, DrvMainFirmwareDataShow, DrvMainFirmwareDataStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_version' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:188:8: note: in expansion of macro 'DEVICE_ATTR' 188 | static DEVICE_ATTR(version, SYSFS_AUTHORITY, DrvMainFirmwareVersionShow, DrvMainFirmwareVersionStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_update' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:168:8: note: in expansion of macro 'DEVICE_ATTR' 168 | static DEVICE_ATTR(update, SYSFS_AUTHORITY, DrvMainFirmwareUpdateShow, DrvMainFirmwareUpdateStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_driver_version' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:131:8: note: in expansion of macro 'DEVICE_ATTR' 131 | static DEVICE_ATTR(driver_version, SYSFS_AUTHORITY, DrvMainFirmwareDriverVersionShow, DrvMainFirmwareDriverVersionStore); | ^~~~~~~~~~~ include/linux/device.h:519:26: warning: 'dev_attr_chip_type' defined but not used [-Wunused-variable] 519 | struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) | ^~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:115:8: note: in expansion of macro 'DEVICE_ATTR' 115 | static DEVICE_ATTR(chip_type, SYSFS_AUTHORITY, DrvMainFirmwareChipTypeShow, DrvMainFirmwareChipTypeStore); | ^~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:76:23: warning: '_gFirmwareCmdDev' defined but not used [-Wunused-variable] 76 | static struct device *_gFirmwareCmdDev = NULL; | ^~~~~~~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_main.c:75:22: warning: '_gFirmwareClass' defined but not used [-Wunused-variable] 75 | static struct class *_gFirmwareClass = NULL; | ^~~~~~~~~~~~~~~ CC drivers/input/touchscreen/msg2138/mstar_drv_platform_interface.o LD lib/lzo/lzo_compress.o LD lib/lzo/lzo_decompress.o LD lib/lzo/built-in.o CC lib/zlib_deflate/deflate.o In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_interface.c:35: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_interface.c:35: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_interface.c:35: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.o In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.c:34: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.c:34: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.c:34: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.c: In function 'DrvPlatformLyrTouchDeviceRegulatorPowerOn': drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.c:202:5: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result' [-Wunused-result] 202 | regulator_enable(g_ReguVdd); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC lib/zlib_deflate/deftree.o CC drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.o In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:34: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:34: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/input/touchscreen/msg2138/mstar_drv_platform_porting_layer.h:39, from drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:34: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c: In function 'DrvFwCtrlHandleFingerTouch': drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:3639:8: warning: unused variable 'nTouchKeyCode' [-Wunused-variable] 3639 | u8 nTouchKeyCode = 0; | ^~~~~~~~~~~~~ At top level: drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:395:13: warning: '_DrvFwCtrlMsg22xxProgramEmem' defined but not used [-Wunused-function] 395 | static void _DrvFwCtrlMsg22xxProgramEmem(EmemType_e eEmemType) // For MSG22XX | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:281:13: warning: '_DrvFwCtrlMsg22xxEraseEmem' defined but not used [-Wunused-function] 281 | static void _DrvFwCtrlMsg22xxEraseEmem(EmemType_e eEmemType) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:213:13: warning: '_DrvFwCtrlMsg22xxGetTpVendorCode' defined but not used [-Wunused-function] 213 | static void _DrvFwCtrlMsg22xxGetTpVendorCode(u8 *pTpVendorCode) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:61:11: warning: '_gTpVendorCode' defined but not used [-Wunused-variable] 61 | static u8 _gTpVendorCode[3] = {0}; | ^~~~~~~~~~~~~~ drivers/input/touchscreen/msg2138/mstar_drv_self_fw_control.c:44:12: warning: 'keycode' defined but not used [-Wunused-variable] 44 | static int keycode; | ^~~~~~~ CC lib/zlib_deflate/deflate_syms.o LD lib/zlib_deflate/zlib_deflate.o CC drivers/input/touchscreen/msg2138/mstar_drv_utility_adaption.o LD lib/zlib_deflate/built-in.o CC lib/zlib_inflate/inffast.o CC lib/zlib_inflate/inflate.o LD drivers/input/touchscreen/msg2138/msg2138_ts.o LD drivers/input/touchscreen/msg2138/built-in.o LD drivers/input/touchscreen/built-in.o LD drivers/input/input-core.o LD drivers/input/built-in.o CC drivers/iq/sprd_iq.o CC lib/zlib_inflate/infutil.o In file included from drivers/iq/sprd_iq.c:23: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/iq/sprd_iq.c:23: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/iq/sprd_iq.c:23: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/iq/sprd_iq.c: In function 'sprd_iq_complete': drivers/iq/sprd_iq.c:220:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 220 | u32 vaddr = (u32)buf; | ^~~ drivers/iq/sprd_iq.c: In function 'iq_mem_ioctl': drivers/iq/sprd_iq.c:293:18: warning: assignment to 'struct iq_pb_data_header *' from incompatible pointer type 'struct iq_header *' [-Wincompatible-pointer-types] 293 | g_iq.ipd_head = (struct iq_header *)__va(sprd_iq_addr() | ^ drivers/iq/sprd_iq.c: In function 'show_iq_buf_status': drivers/iq/sprd_iq.c:450:22: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 450 | ret += snprintf(buf + ret, PAGE_SIZE, | ~~~~^~~~~ In file included from drivers/iq/sprd_iq.c:14: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ drivers/iq/sprd_iq.c:452:22: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 452 | ret += snprintf(buf + ret, PAGE_SIZE, | ~~~~^~~~~ In file included from drivers/iq/sprd_iq.c:14: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ drivers/iq/sprd_iq.c:459:23: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 459 | ret += snprintf(buf + ret, PAGE_SIZE, | ~~~~^~~~~ In file included from drivers/iq/sprd_iq.c:14: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ drivers/iq/sprd_iq.c:461:23: warning: passing argument 1 of 'snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 461 | ret += snprintf(buf + ret, PAGE_SIZE, | ~~~~^~~~~ In file included from drivers/iq/sprd_iq.c:14: include/linux/kernel.h:361:20: note: expected 'char *' but argument is of type 'const char *' 361 | int snprintf(char *buf, size_t size, const char *fmt, ...); | ~~~~~~^~~ In file included from include/linux/kobject.h:21, from include/linux/module.h:16, from drivers/iq/sprd_iq.c:15: drivers/iq/sprd_iq.c: At top level: drivers/iq/sprd_iq.c:473:43: warning: initialization of 'ssize_t (*)(struct class *, struct class_attribute *, char *)' {aka 'int (*)(struct class *, struct class_attribute *, char *)'} from incompatible pointer type 'ssize_t (*)(struct class *, struct class_attribute *, const char *, size_t)' {aka 'int (*)(struct class *, struct class_attribute *, const char *, unsigned int)'} [-Wincompatible-pointer-types] 473 | static CLASS_ATTR(iq_buf_status, S_IRUGO, show_iq_buf_status, NULL); | ^~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/iq/sprd_iq.c:473:8: note: in expansion of macro 'CLASS_ATTR' 473 | static CLASS_ATTR(iq_buf_status, S_IRUGO, show_iq_buf_status, NULL); | ^~~~~~~~~~ drivers/iq/sprd_iq.c:473:43: note: (near initialization for 'class_attr_iq_buf_status.show') 473 | static CLASS_ATTR(iq_buf_status, S_IRUGO, show_iq_buf_status, NULL); | ^~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/iq/sprd_iq.c:473:8: note: in expansion of macro 'CLASS_ATTR' 473 | static CLASS_ATTR(iq_buf_status, S_IRUGO, show_iq_buf_status, NULL); | ^~~~~~~~~~ CC lib/zlib_inflate/inftrees.o CC lib/zlib_inflate/inflate_syms.o LD drivers/iq/built-in.o CC drivers/irqchip/irqchip.o CC net/bluetooth/l2cap_sock.o CC drivers/irqchip/irq-gic.o LD lib/zlib_inflate/zlib_inflate.o LD lib/zlib_inflate/built-in.o CC lib/textsearch.o CC lib/ts_kmp.o CC drivers/irqchip/irq-gic-common.o CC lib/ts_bm.o CC net/bluetooth/smp.o LD drivers/irqchip/built-in.o CC drivers/leds/led-core.o CC lib/ts_fsm.o CC drivers/leds/led-class.o CC drivers/leds/leds-sprd-kpled-2723.o CC lib/percpu_counter.o In file included from drivers/leds/leds-sprd-kpled-2723.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/leds/leds-sprd-kpled-2723.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/leds/leds-sprd-kpled-2723.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/leds/leds-sprd-kpled-2723.c:13: drivers/leds/leds-sprd-kpled-2723.c: In function 'sprd_kpled_set_brightness': 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 */ | ^~~~~~~~ drivers/leds/leds-sprd-kpled-2723.c:39:34: note: in expansion of macro 'KERN_INFO' 39 | #define PRINT_INFO(x...) printk(KERN_INFO "[SPRD_KPLED_INFO] " x) | ^~~~~~~~~ drivers/leds/leds-sprd-kpled-2723.c:102:4: note: in expansion of macro 'PRINT_INFO' 102 | PRINT_INFO("reg:0x%08X set_val:0x%08X brightness:%ld brightness_level:%ld(0~15)\n", \ | ^~~~~~~~~~ drivers/leds/leds-sprd-kpled-2723.c: In function 'sprd_kpled_early_suspend': drivers/leds/leds-sprd-kpled-2723.c:177:28: warning: unused variable 'led' [-Wunused-variable] 177 | struct sprd_kpled *led = container_of(es, struct sprd_kpled, early_suspend); | ^~~ drivers/leds/leds-sprd-kpled-2723.c: In function 'sprd_kpled_late_resume': drivers/leds/leds-sprd-kpled-2723.c:183:28: warning: unused variable 'led' [-Wunused-variable] 183 | struct sprd_kpled *led = container_of(es, struct sprd_kpled, early_suspend); | ^~~ drivers/leds/leds-sprd-kpled-2723.c: In function 'sprd_kpled_2723_parse_dt': drivers/leds/leds-sprd-kpled-2723.c:197:11: warning: passing argument 1 of 'dev_err' from incompatible pointer type [-Wincompatible-pointer-types] 197 | dev_err(pdev, "sprd_kpled Could not allocate pdata"); | ^~~~ | | | struct platform_device * In file included from include/linux/platform_device.h:14, from drivers/leds/leds-sprd-kpled-2723.c:16: include/linux/device.h:992:34: note: expected 'const struct device *' but argument is of type 'struct platform_device *' 992 | int dev_err(const struct device *dev, const char *fmt, ...); | ~~~~~~~~~~~~~~~~~~~~~^~~ drivers/leds/leds-sprd-kpled-2723.c:202:11: warning: passing argument 1 of 'dev_err' from incompatible pointer type [-Wincompatible-pointer-types] 202 | dev_err(pdev, "fail to get pdata->brightness_max\n"); | ^~~~ | | | struct platform_device * In file included from include/linux/platform_device.h:14, from drivers/leds/leds-sprd-kpled-2723.c:16: include/linux/device.h:992:34: note: expected 'const struct device *' but argument is of type 'struct platform_device *' 992 | int dev_err(const struct device *dev, const char *fmt, ...); | ~~~~~~~~~~~~~~~~~~~~~^~~ drivers/leds/leds-sprd-kpled-2723.c:207:11: warning: passing argument 1 of 'dev_err' from incompatible pointer type [-Wincompatible-pointer-types] 207 | dev_err(pdev, "fail to get pdata->brightness_min\n"); | ^~~~ | | | struct platform_device * In file included from include/linux/platform_device.h:14, from drivers/leds/leds-sprd-kpled-2723.c:16: include/linux/device.h:992:34: note: expected 'const struct device *' but argument is of type 'struct platform_device *' 992 | int dev_err(const struct device *dev, const char *fmt, ...); | ~~~~~~~~~~~~~~~~~~~~~^~~ drivers/leds/leds-sprd-kpled-2723.c:212:11: warning: passing argument 1 of 'dev_err' from incompatible pointer type [-Wincompatible-pointer-types] 212 | dev_err(pdev, "fail to get pdata->run_mode\n"); | ^~~~ | | | struct platform_device * In file included from include/linux/platform_device.h:14, from drivers/leds/leds-sprd-kpled-2723.c:16: include/linux/device.h:992:34: note: expected 'const struct device *' but argument is of type 'struct platform_device *' 992 | int dev_err(const struct device *dev, const char *fmt, ...); | ~~~~~~~~~~~~~~~~~~~~~^~~ CC net/bluetooth/sco.o LD drivers/leds/built-in.o LD drivers/lguest/built-in.o LD drivers/macintosh/built-in.o CC drivers/md/dm.o CC lib/audit.o CC lib/syscall.o CC lib/dynamic_debug.o CC net/bluetooth/lib.o CC drivers/md/dm-table.o CC net/bluetooth/a2mp.o CC lib/nlattr.o CC drivers/md/dm-target.o CC lib/cpu_rmap.o CC net/bluetooth/amp.o CC drivers/md/dm-linear.o CC lib/dynamic_queue_limits.o CC net/bluetooth/bnep/core.o CC lib/strncpy_from_user.o CC drivers/md/dm-stripe.o CC lib/strnlen_user.o CC lib/e_show_mem.o CC drivers/md/dm-ioctl.o CC net/bluetooth/bnep/sock.o CC lib/argv_split.o CC lib/bug.o CC net/bluetooth/bnep/netdev.o CC lib/cmdline.o CC drivers/md/dm-io.o CC lib/cpumask.o LD net/bluetooth/bnep/bnep.o CC lib/ctype.o LD net/bluetooth/bnep/built-in.o CC net/bluetooth/hidp/core.o CC lib/dec_and_lock.o CC lib/decompress.o CC lib/decompress_inflate.o CC drivers/md/dm-kcopyd.o CC lib/dump_stack.o CC lib/earlycpio.o CC net/bluetooth/hidp/sock.o CC lib/extable.o CC drivers/md/dm-sysfs.o CC lib/fdt.o CC lib/fdt_empty_tree.o CC lib/fdt_ro.o LD net/bluetooth/hidp/hidp.o LD net/bluetooth/hidp/built-in.o CC drivers/md/dm-builtin.o CC net/bluetooth/rfcomm/core.o CC lib/fdt_rw.o CC drivers/md/dm-crypt.o CC lib/fdt_strerror.o CC lib/fdt_sw.o CC lib/fdt_wip.o CC lib/flex_proportions.o CC lib/idr.o CC net/bluetooth/rfcomm/sock.o LD drivers/md/dm-mod.o LD drivers/md/built-in.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 CC lib/int_sqrt.o LD drivers/media/common/built-in.o LD drivers/media/firewire/built-in.o LD drivers/media/i2c/soc_camera/built-in.o CC lib/ioremap.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 CC lib/irq_regs.o LD drivers/media/pci/ttpci/built-in.o LD drivers/media/pci/built-in.o LD drivers/media/platform/davinci/built-in.o CC lib/is_single_threaded.o LD drivers/media/platform/built-in.o LD drivers/media/radio/built-in.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/pike/dcam_drv.o CC net/bluetooth/rfcomm/tty.o In file included from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/pike/dcam_drv.c:23: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/pike/dcam_drv.c:23: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/pike/dcam_drv.c:23: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/pike/dcam_drv.c:23: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/pike/dcam_drv.c:23: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_dcam/pike/dcam_drv.c:26: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/media/sprd_dcam/pike/dcam_drv.c: In function 'dcam_path0_cfg': drivers/media/sprd_dcam/pike/dcam_drv.c:1705:50: warning: unused variable 'i' [-Wunused-variable] 1705 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/pike/dcam_drv.c: In function 'dcam_path1_cfg': drivers/media/sprd_dcam/pike/dcam_drv.c:1980:50: warning: unused variable 'i' [-Wunused-variable] 1980 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/pike/dcam_drv.c:2050:24: warning: too many arguments for format [-Wformat-extra-args] 2050 | printk("zcf dcam_path1_cfg rot:\n",path->rot_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/pike/dcam_drv.c: In function 'dcam_path2_cfg': drivers/media/sprd_dcam/pike/dcam_drv.c:2223:50: warning: unused variable 'i' [-Wunused-variable] 2223 | uint32_t base_id = *(uint32_t*)param, i; | ^ drivers/media/sprd_dcam/pike/dcam_drv.c:2295:24: warning: too many arguments for format [-Wformat-extra-args] 2295 | printk("zcf dcam_path2_cfg rot:\n",path->rot_mode); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/pike/dcam_drv.c: In function '_dcam_buf_queue_write': drivers/media/sprd_dcam/pike/dcam_drv.c:2841:58: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 2841 | printk("DCAM: warning, queue is full, cannot write 0x%lx \n", frame->yaddr); | ~~^ ~~~~~~~~~~~~ | | | | | uint32_t {aka unsigned int} | long unsigned int | %x CC lib/klist.o drivers/media/sprd_dcam/pike/dcam_drv.c: In function '_dcam_frm_clear': drivers/media/sprd_dcam/pike/dcam_drv.c:2940:26: warning: unused variable 'i' [-Wunused-variable] 2940 | uint32_t i = 0; | ^ drivers/media/sprd_dcam/pike/dcam_drv.c: In function '_dcam_path_set_next_frm': drivers/media/sprd_dcam/pike/dcam_drv.c:3057:26: warning: unused variable 'flag' [-Wunused-variable] 3057 | uint32_t flag = 0; | ^~~~ drivers/media/sprd_dcam/pike/dcam_drv.c:3053:27: warning: unused variable 'orig_frame' [-Wunused-variable] 3053 | struct dcam_frame *orig_frame = NULL; | ^~~~~~~~~~ drivers/media/sprd_dcam/pike/dcam_drv.c: In function 'mm_clk_register_trace': drivers/media/sprd_dcam/pike/dcam_drv.c:4310:19: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4310 | printk("MMAHB: %x val:%x \b\n", | ~^ | | | unsigned int | %lx 4311 | (SPRD_MMAHB_BASE + i), | ~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int drivers/media/sprd_dcam/pike/dcam_drv.c:4317:19: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 4317 | printk("MMCKG: %x val:%x \b\n", | ~^ | | | unsigned int | %lx 4318 | (SPRD_MMCKG_BASE + i), | ~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int At top level: drivers/media/sprd_dcam/pike/dcam_drv.c:2962:12: warning: '_dcam_frm_pop' defined but not used [-Wunused-function] 2962 | LOCAL void _dcam_frm_pop(enum dcam_path_index path_index) | ^~~~~~~~~~~~~ CC lib/kobject.o LD net/bluetooth/rfcomm/rfcomm.o LD net/bluetooth/rfcomm/built-in.o LD net/bluetooth/bluetooth.o LD net/bluetooth/built-in.o CC net/core/sock.o CC lib/kobject_uevent.o CC lib/md5.o CC lib/plist.o CC lib/prio_heap.o CC lib/proportions.o CC lib/radix-tree.o CC drivers/media/sprd_dcam/common/dcam_img.o CC lib/ratelimit.o In file included from drivers/media/sprd_dcam/common/dcam_img.c:31: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/sprd_dcam/common/dcam_img.c:31: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/media/sprd_dcam/common/dcam_img.c:31: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC net/core/request_sock.o 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:1247:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1247 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1246:27: warning: unused variable 'fmr_index' [-Wunused-variable] 1246 | 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:1319:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1319 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1317:28: warning: unused variable 'path' [-Wunused-variable] 1317 | 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:1365:27: warning: unused variable 'buf_addr' [-Wunused-variable] 1365 | struct dcam_img_buf_addr buf_addr; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1363:28: warning: unused variable 'path' [-Wunused-variable] 1363 | 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:1476:34: warning: unused variable 'i' [-Wunused-variable] 1476 | 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:1526:34: warning: unused variable 'i' [-Wunused-variable] 1526 | uint32_t param, i; | ^ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_init': drivers/media/sprd_dcam/common/dcam_img.c:1668:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1668 | int ret = DCAM_RTN_SUCCESS; | ^~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_write': drivers/media/sprd_dcam/common/dcam_img.c:1697:32: warning: unused variable 'lock_flag' [-Wunused-variable] 1697 | unsigned long lock_flag; | ^~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:1696:31: warning: unused variable 'cur_node' [-Wunused-variable] 1696 | struct dcam_node *cur_node; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_read': drivers/media/sprd_dcam/common/dcam_img.c:1727:31: warning: unused variable 'cur_node' [-Wunused-variable] 1727 | struct dcam_node *cur_node; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_queue_enable': drivers/media/sprd_dcam/common/dcam_img.c:1780:31: warning: unused variable 'cur_node' [-Wunused-variable] 1780 | struct dcam_node *cur_node; | ^~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c: In function 'sprd_img_k_ioctl': drivers/media/sprd_dcam/common/dcam_img.c:3360:36: warning: passing argument 2 of 'sprd_flash_cfg' makes pointer from integer without a cast [-Wint-conversion] 3360 | 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/common/../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/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': drivers/media/sprd_dcam/common/dcam_img.c:3386:13: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3386 | DCAM_TRACE("SPRD_IMG: sprd_img_read %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark/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:3386:2: note: in expansion of macro 'DCAM_TRACE' 3386 | DCAM_TRACE("SPRD_IMG: sprd_img_read %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3386:40: note: format string is defined here 3386 | DCAM_TRACE("SPRD_IMG: sprd_img_read %ld, dev %p \n", cnt, dev); | ~~^ | | | long int | %d drivers/media/sprd_dcam/common/dcam_img.c:3392:39: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3392 | 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:3392:51: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 3392 | 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/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:3453:15: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'struct dcam_node' [-Wformat=] 3453 | DCAM_TRACE("SPRD_IMG: node, 0x%x %d %d \n", node, node.index, path->frm_id_base); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark/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:3453:4: note: in expansion of macro 'DCAM_TRACE' 3453 | 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:3453:35: note: format string is defined here 3453 | DCAM_TRACE("SPRD_IMG: node, 0x%x %d %d \n", node, node.index, path->frm_id_base); | ~^ | | | unsigned int In file included 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_write': drivers/media/sprd_dcam/common/dcam_img.c:3518:13: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3518 | DCAM_TRACE("SPRD_IMG: sprd_img_write %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_dcam/tshark/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:3518:2: note: in expansion of macro 'DCAM_TRACE' 3518 | DCAM_TRACE("SPRD_IMG: sprd_img_write %ld, dev %p \n", cnt, dev); | ^~~~~~~~~~ drivers/media/sprd_dcam/common/dcam_img.c:3518:41: note: format string is defined here 3518 | DCAM_TRACE("SPRD_IMG: sprd_img_write %ld, dev %p \n", cnt, dev); | ~~^ | | | long int | %d drivers/media/sprd_dcam/common/dcam_img.c:3524:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 3524 | 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:3524:52: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=] 3524 | 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:3602:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 3602 | uint32_t* reg_buf = (uint32_t*)buf; | ^~~~~~~~ CC lib/rbtree.o CC lib/reciprocal_div.o CC lib/rwsem-spinlock.o CC net/core/skbuff.o CC lib/sha1.o CC lib/show_mem.o CC drivers/media/sprd_dcam/common/parse_hwinfo.o In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:21: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:21: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/media/sprd_dcam/common/parse_hwinfo.c:21: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_dcam/common/parse_hwinfo.c:20: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_dcam/common/parse_hwinfo.c:27: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC lib/string.o drivers/media/sprd_dcam/common/parse_hwinfo.c: In function 'parse_baseaddress': drivers/media/sprd_dcam/common/parse_hwinfo.c:95:16: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 95 | dcam_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:98:15: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 98 | isp_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:102:15: warning: assignment to 'long unsigned int' from 'void *' makes integer from pointer without a cast [-Wint-conversion] 102 | csi_regbase = ioremap_nocache(r.start, resource_size(&r)); | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c:85:6: warning: unused variable 'i' [-Wunused-variable] 85 | int i = 0; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c: In function 'parse_irq': drivers/media/sprd_dcam/common/parse_hwinfo.c:142:12: warning: unused variable 'irq' [-Wunused-variable] 142 | uint32_t irq; | ^~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:141:6: warning: unused variable 'i' [-Wunused-variable] 141 | int i; | ^ drivers/media/sprd_dcam/common/parse_hwinfo.c: In function 'clk_mm_i_eb': drivers/media/sprd_dcam/common/parse_hwinfo.c:219:10: warning: unused variable 'parent' [-Wunused-variable] 219 | char *parent = "clk_153m6"; | ^~~~~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:218:24: warning: unused variable 'clk_parent' [-Wunused-variable] 218 | struct clk *clk_ahb, *clk_parent; | ^~~~~~~~~~ drivers/media/sprd_dcam/common/parse_hwinfo.c:218:14: warning: unused variable 'clk_ahb' [-Wunused-variable] 218 | struct clk *clk_ahb, *clk_parent; | ^~~~~~~ CC drivers/media/sprd_dcam/common/gen_scale_coef.o CC lib/timerqueue.o CC lib/vsprintf.o CC drivers/media/sprd_dcam/common/sin_cos.o CC drivers/media/sprd_dcam/common/flash_test.o In file included from drivers/media/sprd_dcam/common/flash_test.h:18, from drivers/media/sprd_dcam/common/flash_test.c:17: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/sprd_dcam/common/flash_test.h:18, from drivers/media/sprd_dcam/common/flash_test.c:17: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/media/sprd_dcam/common/flash_test.h:18, from drivers/media/sprd_dcam/common/flash_test.c:17: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC net/core/iovec.o CC drivers/media/sprd_dcam/common/sprd_cam_pw_domain.o In file included from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:10: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:12: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_dcam/common/sprd_cam_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/media/sprd_dcam/flash/flash_parallel_connect_bg.o In file included from drivers/media/sprd_dcam/flash/flash_parallel_connect_bg.c:18: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/sprd_dcam/flash/flash_parallel_connect_bg.c:18: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/media/sprd_dcam/flash/flash_parallel_connect_bg.c:18: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/media/sprd_dcam/flash/flash_parallel_connect_bg.c:105:27: warning: 'struct sprd_flash_cfg_param' declared inside parameter list will not be visible outside of this definition or declaration 105 | int sprd_flash_cfg(struct sprd_flash_cfg_param *param, void *arg) | ^~~~~~~~~~~~~~~~~~~~ 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 CC net/core/datagram.o GEN lib/crc32table.h AR lib/lib.a 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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, 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-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, 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-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, 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-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, 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-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, 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-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, 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_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, 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_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC lib/crc32.o CC drivers/media/sprd_gsp/gsp_config_if.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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_config_if.c:20: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/media/sprd_gsp/gsp_drv.o LD lib/built-in.o DTC arch/arm/boot/dts/sprd-scx20_sp7731ceb.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 net/core/stream.o In file included from drivers/media/sprd_gsp/gsp_drv.c:39: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ 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:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_gsp/gsp_config_if.h:28, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_gsp/gsp_config_if.h:29, from drivers/media/sprd_gsp/gsp_drv.c:42: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | 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; | ^~~ LD drivers/media/sprd_gsp/sprd_gsp.o LD drivers/media/sprd_gsp/built-in.o CC drivers/media/sprd_rotation/rot_drv.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_cfg_param.o CC net/core/scm.o CC drivers/media/sprd_rotation/img_rot.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_capability.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_isr.o LD drivers/media/sprd_rotation/sprd_rotation.o LD drivers/media/sprd_rotation/built-in.o CC net/core/gen_stats.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_pgg.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_blc.o CC net/core/gen_estimator.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_rgb_gain.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_pwd.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_nlc.o CC net/core/net_namespace.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_2d_lsc.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_1d_lsc.o CC net/core/secure_seq.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_binning4awb.o CC net/core/flow_dissector.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_buf_queue.o CC net/core/sysctl_net_core.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_awb.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_raw_aem.o drivers/media/sprd_isp/isp2.0/pike/src/isp_k_raw_aem.c: In function 'isp_k_raw_aem_get_statistics': CC net/core/dev.o drivers/media/sprd_isp/isp2.0/pike/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); | ^ CC net/core/ethtool.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_bpc.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_bdn.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_grgb.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_rgb_gain2.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_nlm.o CC net/core/dev_addr_lists.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_cfa.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_cmc10.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_gamma.o CC net/core/dst.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_cmc8.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_ct.o CC net/core/netevent.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_cce.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_hsv.o CC net/core/neighbour.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_csc.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_pre_cdn_rgb.o CC net/core/rtnetlink.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_pstrz.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_raw_afm.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/media/sprd_isp/isp2.0/pike/src/isp_k_yiq_aem.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_anti_flicker.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_yiq_afm.o CC net/core/utils.o CC net/core/link_watch.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_pre_cdn.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_prefilter.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_brightness.o CC net/core/filter.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_contrast.o CC net/core/sock_diag.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_hist.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_hist2.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_aca.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_cdn.o CC net/core/dev_ioctl.o CC net/core/flow.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_edge.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_css.o CC net/core/net-sysfs.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_csa.o CC net/core/net-procfs.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_hua.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/media/sprd_isp/isp2.0/pike/src/isp_k_post_cdn.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_emboss.o CC net/core/fib_rules.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_y_gamma.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_y_delay.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_fetch.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_store.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_dispatch.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_arbiter.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_hdr.o LD net/core/built-in.o CC net/ethernet/eth.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_rgb2y.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_uv_prefilter.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_yuv_nlm.o CC drivers/media/sprd_isp/isp2.0/pike/src/isp_k_common.o CC net/ipv4/route.o LD net/ethernet/built-in.o CC net/ipv6/af_inet6.o LD drivers/media/sprd_isp/sprd_isp.o LD drivers/media/sprd_isp/built-in.o CC drivers/media/sprd_scale/common/sin_cos.o CC drivers/media/sprd_scale/common/gen_scale_coef.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 net/ipv6/anycast.o CC drivers/media/sprd_scale/scale_drv.o CC net/ipv4/inetpeer.o CC net/ipv6/ip6_output.o LD drivers/media/sprd_scale/sprd_scale.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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/media/sprd_sensor/csi2/csi_api.c:7: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:34, from drivers/media/sprd_sensor/csi2/csi_api.c:12: include/soc/sprd/__hardware-sc7731.h:118: warning: "SPRD_MISC_BASE" redefined 118 | #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:52: note: this is the location of the previous definition 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | drivers/media/sprd_sensor/csi2/csi_api.c: In function 'csi_read_registers': drivers/media/sprd_sensor/csi2/csi_api.c:767:34: warning: comparison between pointer and integer 767 | while (buf_len != 0 && reg_addr < (u64)(CSI2_BASE + SPRD_CSI2_REG_SIZE)) { | ^ CC net/ipv4/protocol.o CC drivers/media/sprd_sensor/sensor_drv_k.o In file included from drivers/media/sprd_sensor/sensor_drv_k.c:49: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/media/sprd_sensor/sensor_drv_k.c:49: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/media/sprd_sensor/sensor_drv_k.c:49: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from drivers/media/sprd_sensor/sensor_drv_k.c:51: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_release': drivers/media/sprd_sensor/sensor_drv_k.c:1277:44: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'void *' [-Wformat=] 1277 | printk("check !! free size = %d, ptr=0x%x \n", p_file->sensor_mem.size, p_file->sensor_mem.buf_ptr); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | unsigned int void * | %p In file included 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': drivers/media/sprd_sensor/sensor_drv_k.c:1316:15: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:73:42: note: in expansion of macro 'pr_debug' 73 | #define SENSOR_PRINT pr_debug | ^~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1316:2: note: in expansion of macro 'SENSOR_PRINT' 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1316:31: note: format string is defined here 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ~~^ | | | long int | %d In file included 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:1316:15: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=] 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:73:42: note: in expansion of macro 'pr_debug' 73 | #define SENSOR_PRINT pr_debug | ^~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1316:2: note: in expansion of macro 'SENSOR_PRINT' 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1316:40: note: format string is defined here 1316 | SENSOR_PRINT("sensor w cnt %ld, buf %ld\n", cnt, sizeof(buf)); | ~~^ | | | long int | %d drivers/media/sprd_sensor/sensor_drv_k.c:1324:55: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 1324 | SENSOR_PRINT_ERR("sensor w ERR: alloc fail, size %ld \n", cnt); | ~~^ ~~~ | | | | | size_t {aka unsigned int} | long int | %d In file included 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:1327:17: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 1327 | SENSOR_PRINT("sensor w: alloc success, size %ld \n", cnt); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:73:42: note: in expansion of macro 'pr_debug' 73 | #define SENSOR_PRINT pr_debug | ^~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1327:4: note: in expansion of macro 'SENSOR_PRINT' 1327 | SENSOR_PRINT("sensor w: alloc success, size %ld \n", cnt); | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1327:50: note: format string is defined here 1327 | SENSOR_PRINT("sensor w: alloc success, size %ld \n", cnt); | ~~^ | | | long int | %d drivers/media/sprd_sensor/sensor_drv_k.c:1332:58: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 1332 | SENSOR_PRINT_ERR("sensor w ERR: copy user fail, size %ld\n", cnt); | ~~^ ~~~ | | | | | size_t {aka unsigned int} | long int | %d drivers/media/sprd_sensor/sensor_drv_k.c: In function '_sensor_burst_write_init': drivers/media/sprd_sensor/sensor_drv_k.c:1386:77: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 1386 | SENSOR_PRINT_ERR("_sensor_burst_write_init ERROR: alloc is fail, size = %ld \n", init_table_size*sizeof(uint16_t) + 16); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int uint32_t {aka unsigned int} | %d drivers/media/sprd_sensor/sensor_drv_k.c:1390:72: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'uint32_t' {aka 'unsigned int'} [-Wformat=] 1390 | SENSOR_PRINT_HIGH("_sensor_burst_write_init: alloc success, size = %ld \n", init_table_size*sizeof(uint16_t) + 16); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long int uint32_t {aka unsigned int} | %d drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_ioctl': drivers/media/sprd_sensor/sensor_drv_k.c:1772:50: warning: format '%p' expects argument of type 'void *', but argument 2 has type 'long unsigned int' [-Wformat=] 1772 | printk("SENSOR: ioctl SENSOR_IO_READ_OTPDATA %p type %d\n", arg, para->type); | ~^ ~~~ | | | | void * long unsigned int | %ld drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_probe': drivers/media/sprd_sensor/sensor_drv_k.c:1921:6: warning: unused variable 'gpio_mipi_en' [-Wunused-variable] 1921 | int gpio_mipi_en = 0; | ^~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_ioctl': drivers/media/sprd_sensor/sensor_drv_k.c:1771:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1771 | copy_from_user(&type, ¶->type, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1777:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1777 | copy_to_user(para->buff, chksum->data_ptr, chksum->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1778:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1778 | copy_to_user(¶->len, &chksum->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1786:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1786 | copy_to_user(para->buff, p_mod->otp_param[p_file->sensor_id].buff, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1787 | p_mod->otp_param[p_file->sensor_id].len); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1788:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1788 | copy_to_user(¶->len, &p_mod->otp_param[p_file->sensor_id].len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1789 | sizeof(uint32_t)); | ~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1792:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1792 | copy_to_user(para->awb.data_ptr, awb->data_ptr, awb->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1793:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1793 | copy_to_user(¶->awb.size, &awb->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1796:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1796 | copy_to_user(para->lsc.data_ptr, lsc->data_ptr, lsc->size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c:1797:6: warning: ignoring return value of 'copy_to_user' declared with attribute 'warn_unused_result' [-Wunused-result] 1797 | copy_to_user(¶->lsc.size, &lsc->size, sizeof(uint32_t)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/sensor_drv_k.c: In function 'sensor_k_probe': drivers/media/sprd_sensor/sensor_drv_k.c:1868:26: warning: array subscript 3 is above array bounds of 'struct sensor_module_tag[3]' [-Warray-bounds] 1868 | p_mod->sensor_dev_tab[3].cur_i2c_client = client; | ~~~~~~~~~~~~~~~~~~~~~^~~ drivers/media/sprd_sensor/sensor_drv_k.c:161:34: note: while referencing 'sensor_dev_tab' 161 | struct sensor_module_tag sensor_dev_tab[SENSOR_DEV_MAX]; | ^~~~~~~~~~~~~~ CC net/ipv4/ip_input.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/media/sprd_sensor/csi2/csi_access.o CC drivers/media/sprd_sensor/csi2/csi_driver.o 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 'dphy_init_common': drivers/media/sprd_sensor/csi2/csi_driver.c:204:22: warning: unused variable 'csi_pclk_cfg_val' [-Wunused-variable] 204 | struct csi_pclk_cfg csi_pclk_cfg_val = {0, 0, 0, 0}; | ^~~~~~~~~~~~~~~~ drivers/media/sprd_sensor/csi2/csi_driver.c: In function 'csi_init': drivers/media/sprd_sensor/csi2/csi_driver.c:293:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 293 | access_init((u32*)base_address); | ^ At top level: drivers/media/sprd_sensor/csi2/csi_driver.c:181:13: warning: 'csi_get_pclk_cfg' defined but not used [-Wunused-function] 181 | static void csi_get_pclk_cfg(u32 bps_per_lane, struct csi_pclk_cfg *csi_pclk_cfg_ptr) | ^~~~~~~~~~~~~~~~ CC drivers/media/sprd_sensor/csi2/csi_log.o CC drivers/media/sprd_sensor/csi2/csi_system.o CC net/ipv6/ip6_input.o CC net/ipv4/ip_fragment.o CC drivers/media/sprd_sensor/otp/sensor_otp.o LD drivers/media/sprd_sensor/otp/built-in.o CC drivers/media/sprd_sensor/power/sensor_power.o LD drivers/media/sprd_sensor/power/built-in.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 CC net/ipv6/addrconf.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 drivers/media/v4l2-core/v4l2-dev.o CC net/ipv4/ip_forward.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 net/ipv4/ip_options.o CC drivers/media/v4l2-core/v4l2-ioctl.o CC net/ipv4/ip_output.o CC drivers/media/v4l2-core/v4l2-device.o CC net/ipv6/addrlabel.o CC drivers/media/v4l2-core/v4l2-fh.o CC drivers/media/v4l2-core/v4l2-event.o CC net/ipv6/route.o CC net/ipv4/ip_sockglue.o CC drivers/media/v4l2-core/v4l2-ctrls.o CC net/ipv4/inet_hashtables.o CC drivers/media/v4l2-core/v4l2-subdev.o CC net/ipv6/ip6_fib.o CC drivers/media/v4l2-core/v4l2-of.o CC drivers/media/v4l2-core/v4l2-common.o CC net/ipv4/inet_timewait_sock.o CC net/ipv6/ipv6_sockglue.o CC drivers/media/v4l2-core/videobuf-core.o CC net/ipv4/inet_connection_sock.o CC net/ipv6/ndisc.o CC drivers/media/v4l2-core/videobuf-vmalloc.o net/ipv6/ndisc.c: In function 'ndisc_router_discovery': net/ipv6/ndisc.c:1289: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] 1289 | 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 net/ipv4/tcp.o LD drivers/media/v4l2-core/videodev.o LD drivers/media/v4l2-core/built-in.o LD drivers/media/built-in.o LD drivers/mfd/built-in.o CC drivers/misc/uid_stat.o LD drivers/misc/carma/built-in.o LD drivers/misc/cb710/built-in.o LD drivers/misc/eeprom/built-in.o CC net/ipv6/udp.o LD drivers/misc/fm_2351/built-in.o CC [M] drivers/misc/fm_2351/sr2351_fm_ctrl.o In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/fm_2351/sr2351_fm_ctrl.c: In function 'fm_seek': drivers/misc/fm_2351/sr2351_fm_ctrl.c:122:48: warning: passing argument 4 of 'sr2351_fm_seek' from incompatible pointer type [-Wincompatible-pointer-types] 122 | sr2351_fm_seek(parm.freq, parm.seekdir, 3000, &parm.freq ); | ^~~~~~~~~~ | | | uint16_t * {aka short unsigned int *} In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: drivers/misc/fm_2351/sr2351_fm_ctrl.h:25:75: note: expected 'u32 *' {aka 'unsigned int *'} but argument is of type 'uint16_t *' {aka 'short unsigned int *'} 25 | extern int sr2351_fm_seek(u32 frequency, u32 seek_dir, u32 time_out, u32 *freq_found); | ~~~~~^~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c: In function 'sr2351_fm_ioctl': drivers/misc/fm_2351/sr2351_fm_ctrl.c:167:6: warning: unused variable 'buf' [-Wunused-variable] 167 | u32 buf[4] = { 0 }; | ^~~ In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.c:12: drivers/misc/fm_2351/sr2351_fm_ctrl.c: In function 'sr2351_fm_parse_dts': drivers/misc/fm_2351/sr2351_fm_ctrl.h:842:10: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 842 | printk("sr2351_fm %s-%d -- "format"\n", \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:557:5: note: in expansion of macro 'SR2351_PRINT' 557 | SR2351_PRINT("fm reg base is 0x%x\n", sr2351_fm_base.fm_base); | ^~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.h:842:10: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 842 | printk("sr2351_fm %s-%d -- "format"\n", \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:570:5: note: in expansion of macro 'SR2351_PRINT' 570 | SR2351_PRINT("apb reg base is 0x%x\n", sr2351_fm_base.apb_base); | ^~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.h:842:10: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 842 | printk("sr2351_fm %s-%d -- "format"\n", \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:583:5: note: in expansion of macro 'SR2351_PRINT' 583 | SR2351_PRINT("pmu reg base is 0x%x\n", sr2351_fm_base.pmu_base); | ^~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.h:842:10: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 842 | printk("sr2351_fm %s-%d -- "format"\n", \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:596:5: note: in expansion of macro 'SR2351_PRINT' 596 | SR2351_PRINT("pmu reg base is 0x%x\n", sr2351_fm_base.aonckg_base); | ^~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.h:842:10: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 842 | printk("sr2351_fm %s-%d -- "format"\n", \ | ^~~~~~~~~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:609:5: note: in expansion of macro 'SR2351_PRINT' 609 | SR2351_PRINT("pin reg base is 0x%x\n", sr2351_fm_base.pin_base); | ^~~~~~~~~~~~ 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 drivers/misc/fm_2351/sr2351_fm_ctrl.c:2: drivers/misc/fm_2351/sr2351_fm_ctrl.c: At top level: include/linux/init.h:306:7: warning: 'cleanup_module' specifies less restrictive attribute than its target 'exit_fm_driver': 'cold' [-Wmissing-attributes] 306 | void cleanup_module(void) __attribute__((alias(#exitfn))); | ^~~~~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:735:1: note: in expansion of macro 'module_exit' 735 | module_exit(exit_fm_driver); | ^~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:729:13: note: 'cleanup_module' target declared here 729 | void __exit exit_fm_driver(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 drivers/misc/fm_2351/sr2351_fm_ctrl.c:2: include/linux/init.h:300:6: warning: 'init_module' specifies less restrictive attribute than its target 'init_fm_driver': 'cold' [-Wmissing-attributes] 300 | int init_module(void) __attribute__((alias(#initfn))); | ^~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:734:1: note: in expansion of macro 'module_init' 734 | module_init(init_fm_driver); | ^~~~~~~~~~~ drivers/misc/fm_2351/sr2351_fm_ctrl.c:705:12: note: 'init_module' target declared here 705 | int __init init_fm_driver(void) | ^~~~~~~~~~~~~~ CC [M] drivers/misc/fm_2351/sr2351_fm_rf.o In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:4, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/fm_2351/sr2351_fm_ctrl.h:6, from drivers/misc/fm_2351/sr2351_fm_rf.c:18: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/fm_2351/sr2351_fm_rf.c: In function 'get_shark_chip_id': drivers/misc/fm_2351/sr2351_fm_rf.c:53:20: warning: assignment to 'unsigned int' from 'rom_callback_func_t *' makes integer from pointer without a cast [-Wint-conversion] 53 | header_phy_addr = (rom_callback_func_t *)(*((unsigned int*)(code_addr +0x20))); | ^ drivers/misc/fm_2351/sr2351_fm_rf.c:58:12: warning: passing argument 1 of '__arm_iounmap' makes pointer from integer without a cast [-Wint-conversion] 58 | iounmap(code_addr); | ^~~~~~~~~ | | | unsigned int In file included from drivers/misc/fm_2351/sr2351_fm_rf.c:13: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:230:50: note: expected 'volatile void *' but argument is of type 'unsigned int' 230 | extern void __arm_iounmap(volatile void __iomem *addr); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/misc/fm_2351/sr2351_fm_rf.c: In function 'sr2351_fm_enter_sleep': drivers/misc/fm_2351/sr2351_fm_rf.c:239:15: warning: unused variable 'chip_ver' [-Wunused-variable] 239 | unsigned int chip_ver=0; | ^~~~~~~~ drivers/misc/fm_2351/sr2351_fm_rf.c: In function 'sr2351_fm_exit_sleep': drivers/misc/fm_2351/sr2351_fm_rf.c:300:18: warning: unused variable 'chip_ver' [-Wunused-variable] 300 | unsigned int chip_ver=0; | ^~~~~~~~ LD [M] drivers/misc/fm_2351/trout_fm.o CC drivers/misc/gpsip/VirtualCom/virt_uart.o CC net/ipv4/tcp_input.o LD drivers/misc/gpsip/VirtualCom/cgvuart.o LD drivers/misc/gpsip/VirtualCom/built-in.o CC drivers/misc/gpsip/cgdriver/CgxDriverLinux.o CC net/ipv6/udplite.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/gpsip/cgdriver/CgxDriverLinux.c: In function 'CGX_IOControl': drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:787:1: warning: the frame size of 1336 bytes is larger than 1024 bytes [-Wframe-larger-than=] 787 | } | ^ CC net/ipv6/raw.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverLinux.c:68: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/misc/gpsip/cgdriver/CgxDriverCore.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCore.c:32: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/gpsip/cgdriver/CgxDriverCore.c: In function 'CgxDriverExecuteSpecific': drivers/misc/gpsip/cgdriver/CgxDriverCore.c:648:4: warning: 'memcpy' forming offset [11, 31] is out of the bounds [0, 11] [-Warray-bounds] 648 | memcpy(pResults->version.buildVersion, gCgDriverVersion.buildVersion, sizeof(pResults->version.buildVersion)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/gpsip/cgdriver/CgxDriverCore.c:649:4: warning: 'memcpy' forming offset [8, 31] is out of the bounds [0, 8] [-Warray-bounds] 649 | memcpy(pResults->version.buildMode, gCgDriverVersion.buildMode, sizeof(pResults->version.buildNumber)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/gpsip/cgdriver/CgxDriverCore.c:650:4: warning: 'memcpy' forming offset [3, 31] is out of the bounds [0, 3] [-Warray-bounds] 650 | memcpy(pResults->version.buildNumber, gCgDriverVersion.buildNumber, sizeof(pResults->version.buildNumber)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/gpsip/cgdriver/CgxDriverCore.c:651:4: warning: 'memcpy' forming offset [9, 31] is out of the bounds [0, 9] [-Warray-bounds] 651 | memcpy(pResults->version.buildTime, gCgDriverVersion.buildTime, sizeof(pResults->version.buildTime)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/misc/gpsip/cgdriver/CgxDriverCore.c:652:4: warning: 'memcpy' forming offset [11, 31] is out of the bounds [0, 11] [-Warray-bounds] 652 | memcpy(pResults->version.buildDate, gCgDriverVersion.buildDate, sizeof(pResults->version.buildDate)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgxDriverCoreCommon.c:28: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/ipv6/icmp.o CC drivers/misc/gpsip/cgdriver/CgCpuLinux.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/CgCpuLinux.c:55: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/misc/gpsip/cgdriver/CgCpu.o CC drivers/misc/gpsip/cgdriver/platform.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/platform.c:35: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/ipv4/tcp_output.o CC drivers/misc/gpsip/cgdriver/gps_gpio.o In file included from drivers/misc/gpsip/cgdriver/gps_gpio.c:36: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/gpsip/cgdriver/gps_gpio.c:36: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/misc/gpsip/cgdriver/gps_gpio.c:36: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | CC drivers/misc/gpsip/cgdriver/gps_dma.o CC net/ipv6/mcast.o In file included from drivers/misc/gpsip/cgdriver/gps_dma.c:17: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/gpsip/cgdriver/gps_dma.c:17: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/misc/gpsip/cgdriver/gps_dma.c:17: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/gpsip/cgdriver/gps_dma.c:18: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/gpsip/cgdriver/gps_dma.c:18: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/gpsip/cgdriver/gps_dma.c:18: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/gpsip/cgdriver/gps_dma.c:18: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/gpsip/cgdriver/gps_dma.c:18: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/misc/gpsip/cgdriver/platform.h:38, from drivers/misc/gpsip/cgdriver/gps_dma.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/misc/gpsip/cgdriver/cgxdrv.o LD drivers/misc/gpsip/cgdriver/built-in.o LD drivers/misc/gpsip/built-in.o LD drivers/misc/lis3lv02d/built-in.o CC drivers/misc/sprd_2351/sprd_2351.o In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/sprd_2351/sprd_2351.c: In function 'sprd_switch_cp2_clk': drivers/misc/sprd_2351/sprd_2351.c:352:6: warning: unused variable 'reg_value' [-Wunused-variable] 352 | int reg_value = 0; | ^~~~~~~~~ drivers/misc/sprd_2351/sprd_2351.c: In function 'rf2351_vddwpa_ctrl_power_enable': drivers/misc/sprd_2351/sprd_2351.c:260:13: warning: ignoring return value of 'regulator_enable' declared with attribute 'warn_unused_result' [-Wunused-result] 260 | regulator_enable(wpa_rf2351); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_2351/sprd_2351.c:7: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_2351/sprd_2351.c:11: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/misc/sprd_2351/built-in.o CC drivers/misc/sprd_cproc/sprd_cproc.o In file included from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/misc/sprd_cproc/sprd_cproc.c:34: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_cproc/sprd_cproc.c:38: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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:361:12: note: in expansion of macro 'KERN_ERR' 361 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:361:52: note: format string is defined here 361 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ~~^ | | | long unsigned int | %x 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:567:11: note: in expansion of macro 'KERN_ERR' 567 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:567:51: note: format string is defined here 567 | printk(KERN_ERR "Unable to map cproc base: 0x%lx\n", addr); | ~~^ | | | long unsigned int | %x drivers/misc/sprd_cproc/sprd_cproc.c:513:8: warning: unused variable 'type' [-Wunused-variable] 513 | char *type = entry->name; | ^~~~ 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_fs_init': 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 */ | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:720:12: note: in expansion of macro 'KERN_ERR' 720 | printk(KERN_ERR, "sprd_cproc: entrys num to small\n"); | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:653:16: warning: unused variable 'm' [-Wunused-variable] 653 | uint8_t i, m, ucnt; | ^ 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 '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:877:2: note: in expansion of macro 'pr_info' 877 | pr_info("sprd_cproc: vmem = 0x%x, iram_addr = 0x%p, iram_size = 0x%x\n", vmem, ctrl->iram_addr, ctrl->iram_size); | ^~~~~~~ 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:877:2: note: in expansion of macro 'pr_info' 877 | pr_info("sprd_cproc: vmem = 0x%x, iram_addr = 0x%p, iram_size = 0x%x\n", vmem, ctrl->iram_addr, ctrl->iram_size); | ^~~~~~~ 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:892:5: note: in expansion of macro 'pr_info' 892 | 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:892:5: note: in expansion of macro 'pr_info' 892 | 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:857:11: warning: unused variable 'value' [-Wunused-variable] 857 | 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_native_dsp_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:1069:3: note: in expansion of macro 'pr_info' 1069 | pr_info("sprd_cproc: agdsp sys shutdown -- reg = %x, mask = %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: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:1076:3: note: in expansion of macro 'pr_info' 1076 | pr_info("sprd_cproc: agdsp core shutdown -- reg = %x, mask = %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: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:1082:3: note: in expansion of macro 'pr_info' 1082 | pr_info("sprd_cproc: sys reset -- reg = %x, mask = %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: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:1088:3: note: in expansion of macro 'pr_info' 1088 | pr_info("sprd_cproc: deep sleep -- reg = %x, mask = %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: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:1095:3: note: in expansion of macro 'pr_info' 1095 | pr_info("sprd_cproc: config protection -- reg = %x, mask = %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: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:1103:3: note: in expansion of macro 'pr_info' 1103 | pr_info("sprd_cproc: config boot addr -- reg = %x, mask = %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: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:1111:3: note: in expansion of macro 'pr_info' 1111 | pr_info("sprd_cproc: config agdsp ctrl1 -- reg = %x, mask = %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: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:1118:3: note: in expansion of macro 'pr_info' 1118 | pr_info("sprd_cproc: config agdsp ctrl -- reg = %x, mask = %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: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:1125:3: note: in expansion of macro 'pr_info' 1125 | pr_info("sprd_cproc: agdsp reset -- reg = %x, mask = %x\n", | ^~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_native_dsp_stop': drivers/misc/sprd_cproc/sprd_cproc.c:1138:11: warning: unused variable 'state' [-Wunused-variable] 1138 | uint32_t state = 0; | ^~~~~ drivers/misc/sprd_cproc/sprd_cproc.c: In function 'sprd_cproc_native_start': drivers/misc/sprd_cproc/sprd_cproc.c:1202:11: warning: unused variable 'type' [-Wunused-variable] 1202 | uint32_t type; | ^~~~ drivers/misc/sprd_cproc/sprd_cproc.c: At top level: drivers/misc/sprd_cproc/sprd_cproc.c:1291:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1291 | .iramdata = &g_common_loader[0], | ^ drivers/misc/sprd_cproc/sprd_cproc.c:1298:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1298 | .iramdata = &g_r5_loader[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 'sprd_cproc_parse_dt': 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:1361:2: note: in expansion of macro 'pr_info' 1361 | 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 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:1388:3: note: in expansion of macro 'pr_info' 1388 | pr_info("sprd_cproc: ctrl->ctrl_reg[%d] = 0x%x\n", i, ctrl->ctrl_reg[i]); | ^~~~~~~ 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 */ | ^~~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1427:10: note: in expansion of macro 'KERN_ERR' 1427 | printk(KERN_ERR "sprd_cproc: get ctrl-mask failed\n", cr_num); | ^~~~~~~~ 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:1492:2: note: in expansion of macro 'pr_info' 1492 | 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:1492:2: note: in expansion of macro 'pr_info' 1492 | pr_info("sprd_cproc: stop callback 0x%x, start callback 0x%x\n", | ^~~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1314:17: warning: unused variable 'offset' [-Wunused-variable] 1314 | uint32_t base, offset; | ^~~~~~ drivers/misc/sprd_cproc/sprd_cproc.c:1314:11: warning: unused variable 'base' [-Wunused-variable] 1314 | uint32_t base, offset; | ^~~~ 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_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:1560:2: note: in expansion of macro 'pr_info' 1560 | pr_info("%s %p %x\n", __func__, pdata->base, pdata->maxsz); | ^~~~~~~ CC net/ipv6/reassembly.o CC net/ipv4/tcp_timer.o LD drivers/misc/sprd_cproc/built-in.o LD drivers/misc/sprd_dwnload/built-in.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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_jpg/sprd_jpg.c:38: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/sprd_jpg/sprd_jpg.c: In function 'jpg_isr': drivers/misc/sprd_jpg/sprd_jpg.c:441:16: warning: passing argument 1 of 'sci_glb_set' makes integer from pointer without a cast [-Wint-conversion] 441 | 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:53:31: note: expected 'long unsigned int' but argument is of type 'void *' 53 | int sci_glb_set(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ drivers/misc/sprd_jpg/sprd_jpg.c:442:16: warning: passing argument 1 of 'sci_glb_clr' makes integer from pointer without a cast [-Wint-conversion] 442 | 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:65:31: note: expected 'long unsigned int' but argument is of type 'void *' 65 | int sci_glb_clr(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ 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_jpg/sprd_jpg.c:14: drivers/misc/sprd_jpg/sprd_jpg.c: In function 'jpg_parse_dt': 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 */ | ^~~~~~~~ drivers/misc/sprd_jpg/sprd_jpg.c:490:9: note: in expansion of macro 'KERN_INFO' 490 | printk(KERN_INFO "sprd_jpg_phys jpg: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ^~~~~~~~~ drivers/misc/sprd_jpg/sprd_jpg.c:490:43: note: format string is defined here 490 | printk(KERN_INFO "sprd_jpg_phys jpg: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ~^ | | | 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_jpg/sprd_jpg.c:14: 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/misc/sprd_jpg/sprd_jpg.c:490:9: note: in expansion of macro 'KERN_INFO' 490 | printk(KERN_INFO "sprd_jpg_phys jpg: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ^~~~~~~~~ drivers/misc/sprd_jpg/sprd_jpg.c:490:50: note: format string is defined here 490 | printk(KERN_INFO "sprd_jpg_phys jpg: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ~^ | | | 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_jpg/sprd_jpg.c:14: drivers/misc/sprd_jpg/sprd_jpg.c: In function 'jpg_nocache_mmap': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/sprd_jpg/sprd_jpg.c:512:12: note: in expansion of macro 'KERN_INFO' 512 | printk(KERN_INFO "@jpg mmap %x,%x,%x,%x\n", (unsigned int)PAGE_SHIFT, | ^~~~~~~~~ drivers/misc/sprd_jpg/sprd_jpg.c:512:43: note: format string is defined here 512 | printk(KERN_INFO "@jpg mmap %x,%x,%x,%x\n", (unsigned int)PAGE_SHIFT, | ~^ | | | unsigned int | %lx LD drivers/misc/sprd_jpg/built-in.o CC drivers/misc/sprd_jpg1/sprd_jpg1.o CC net/ipv4/tcp_ipv4.o CC net/ipv6/tcp_ipv6.o In file included from drivers/misc/sprd_jpg1/sprd_jpg1.c:38: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_jpg1/sprd_jpg1.c:38: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_jpg1/sprd_jpg1.c:38: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/sprd_jpg1/sprd_jpg1.c: In function 'jpg_isr': drivers/misc/sprd_jpg1/sprd_jpg1.c:440:16: warning: passing argument 1 of 'sci_glb_set' makes integer from pointer without a cast [-Wint-conversion] 440 | sci_glb_set((void *)(sprd_jpg_virt+0x4400), BIT(30)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void * In file included from drivers/misc/sprd_jpg1/sprd_jpg1.c:37: include/soc/sprd/sci.h:53:31: note: expected 'long unsigned int' but argument is of type 'void *' 53 | int sci_glb_set(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:441:16: warning: passing argument 1 of 'sci_glb_clr' makes integer from pointer without a cast [-Wint-conversion] 441 | sci_glb_clr((void *)(sprd_jpg_virt+0x4400), BIT(31)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void * In file included from drivers/misc/sprd_jpg1/sprd_jpg1.c:37: include/soc/sprd/sci.h:65:31: note: expected 'long unsigned int' but argument is of type 'void *' 65 | int sci_glb_clr(unsigned long reg, u32 bit); | ~~~~~~~~~~~~~~^~~ 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_jpg1/sprd_jpg1.c:14: drivers/misc/sprd_jpg1/sprd_jpg1.c: In function 'jpg_parse_dt': 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 */ | ^~~~~~~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:488:9: note: in expansion of macro 'KERN_INFO' 488 | printk(KERN_INFO "sprd_jpg_phys jpg1: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ^~~~~~~~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:488:44: note: format string is defined here 488 | printk(KERN_INFO "sprd_jpg_phys jpg1: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ~^ | | | 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_jpg1/sprd_jpg1.c:14: 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/misc/sprd_jpg1/sprd_jpg1.c:488:9: note: in expansion of macro 'KERN_INFO' 488 | printk(KERN_INFO "sprd_jpg_phys jpg1: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ^~~~~~~~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:488:51: note: format string is defined here 488 | printk(KERN_INFO "sprd_jpg_phys jpg1: 0X%x 0x%x\n", sprd_jpg_phys ,sprd_jpg_virt); | ~^ | | | 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_jpg1/sprd_jpg1.c:14: drivers/misc/sprd_jpg1/sprd_jpg1.c: In function 'jpg_nocache_mmap': 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:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:510:12: note: in expansion of macro 'KERN_INFO' 510 | printk(KERN_INFO "@jpg mmap %x,%x,%x,%x\n", (unsigned int)PAGE_SHIFT, | ^~~~~~~~~ drivers/misc/sprd_jpg1/sprd_jpg1.c:510:43: note: format string is defined here 510 | printk(KERN_INFO "@jpg mmap %x,%x,%x,%x\n", (unsigned int)PAGE_SHIFT, | ~^ | | | unsigned int | %lx LD drivers/misc/sprd_jpg1/built-in.o CC drivers/misc/sprd_otp/core.o CC drivers/misc/sprd_otp/otp-helper.o In file included from drivers/misc/sprd_otp/otp-helper.c:19: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ In file included from drivers/misc/sprd_otp/otp-helper.c:19: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ CC drivers/misc/sprd_otp/efuse.o CC net/ipv6/ping.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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/misc/sprd_otp/efuse.c:52: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/misc/sprd_otp/efuse.c: In function 'efuse_uid': drivers/misc/sprd_otp/efuse.c:323:7: warning: unused variable 'bufallid' [-Wunused-variable] 323 | char bufallid[20]; | ^~~~~~~~ In file included from drivers/misc/sprd_otp/efuse.c:51: At top level: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC net/ipv4/tcp_minisocks.o In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/efuse.c:51: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/misc/sprd_otp/efuse.c:52: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ 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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | CC net/ipv6/exthdrs.o In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/misc/sprd_otp/ana_efuse.c:29: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/misc/sprd_otp/otp-bitmap.o LD drivers/misc/sprd_otp/built-in.o CC drivers/misc/sprd_vsp/sprd_vsp_sc8830.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); | ^~~~~~~~~~ In file included from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:43: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/misc/sprd_vsp/sprd_vsp_sc8830.c: In function 'vsp_parse_dt': drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:502:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 502 | 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:522:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 522 | 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:525:16: note: in expansion of macro 'KERN_INFO' 525 | 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:525:66: note: format string is defined here 525 | 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_set_mm_clk': drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:569:17: warning: unused variable 'clk_vsp_axi_eb' [-Wunused-variable] 569 | struct clk *clk_vsp_axi_eb; | ^~~~~~~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:568:17: warning: unused variable 'clk_vsp_mmu_eb' [-Wunused-variable] 568 | struct clk *clk_vsp_mmu_eb; | ^~~~~~~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:567:17: warning: unused variable 'clk_ahb_vsp' [-Wunused-variable] 567 | struct clk *clk_ahb_vsp; | ^~~~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:566:17: warning: unused variable 'clk_vsp_eb' [-Wunused-variable] 566 | struct clk *clk_vsp_eb; | ^~~~~~~~~~ drivers/misc/sprd_vsp/sprd_vsp_sc8830.c: In function 'vsp_suspend': drivers/misc/sprd_vsp/sprd_vsp_sc8830.c:889:9: warning: unused variable 'ret' [-Wunused-variable] 889 | int ret=-1; | ^~~ CC net/ipv4/tcp_cong.o CC drivers/misc/sprd_vsp/vsp_pw_domain.o In file included from drivers/misc/sprd_vsp/vsp_pw_domain.c:10: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_vsp/vsp_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_vsp/vsp_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/misc/sprd_vsp/vsp_pw_domain.c:12: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC net/ipv6/datagram.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_vsp/vsp_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_vsp/vsp_pw_domain.c:10: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/misc/sprd_vsp/built-in.o LD drivers/misc/ti-st/built-in.o CC drivers/misc/uid_cputime.o CC net/ipv4/tcp_metrics.o CC drivers/misc/sprd_7sreset.o In file included from drivers/misc/sprd_7sreset.c:22: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/misc/sprd_7sreset.c:22: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/misc/sprd_7sreset.c:22: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/misc/built-in.o CC drivers/mmc/card/block-sprd.o CC net/ipv6/ip6_flowlabel.o drivers/mmc/card/block-sprd.c: In function 'mmc_blk_issue_rw_rq': drivers/mmc/card/block-sprd.c:1946:2: warning: label 'start_new_req' defined but not used [-Wunused-label] 1946 | start_new_req: | ^~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:1763:34: warning: unused variable 'retry' [-Wunused-variable] 1763 | int ret = 1, disable_multi = 0, retry = 0, type; | ^~~~~ At top level: drivers/mmc/card/block-sprd.c:1657:12: warning: 'mmc_blk_cmd_err' defined but not used [-Wunused-function] 1657 | static int mmc_blk_cmd_err(struct mmc_blk_data *md, struct mmc_card *card, | ^~~~~~~~~~~~~~~ drivers/mmc/card/block-sprd.c:968:12: warning: 'mmc_blk_issue_secdiscard_rq' defined but not used [-Wunused-function] 968 | static int mmc_blk_issue_secdiscard_rq(struct mmc_queue *mq, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/ipv6/inet6_connection_sock.o CC drivers/mmc/card/queue-sprd.o CC net/ipv4/tcp_fastopen.o CC net/ipv4/datagram.o CC net/ipv6/sysctl_net_ipv6.o CC drivers/mmc/card/sdio_card.o CC [M] drivers/mmc/card/mmc_test.o CC net/ipv6/xfrm6_policy.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); | ^~~~~~~~~~~ CC net/ipv4/raw.o 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) | ^~~~~~~~~~~~~ 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 net/ipv6/xfrm6_state.o LD drivers/mmc/card/mmc_block.o LD drivers/mmc/card/built-in.o CC drivers/mmc/core/core-sprd.o drivers/mmc/core/core-sprd.c: In function 'mmc_calc_max_discard': drivers/mmc/core/core-sprd.c:2156:28: warning: unused variable 'max_trim' [-Wunused-variable] 2156 | unsigned int max_discard, max_trim; | ^~~~~~~~ CC net/ipv6/xfrm6_input.o CC net/ipv4/udp.o CC net/ipv6/xfrm6_output.o CC drivers/mmc/core/bus.o CC net/ipv6/netfilter.o CC drivers/mmc/core/host.o CC net/ipv4/udplite.o CC drivers/mmc/core/mmc.o CC net/ipv4/arp.o CC net/ipv6/fib6_rules.o drivers/mmc/core/mmc.c:1436:12: warning: 'mmc_can_sleep' defined but not used [-Wunused-function] 1436 | static int mmc_can_sleep(struct mmc_card *card) | ^~~~~~~~~~~~~ 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 = { | ^~~~~~~~~~~~~~ CC net/ipv6/proc.o CC drivers/mmc/core/mmc_ops.o CC net/ipv4/icmp.o CC net/ipv6/ah6.o CC drivers/mmc/core/sd.o CC net/ipv6/esp6.o CC net/ipv4/devinet.o CC drivers/mmc/core/sd_ops.o CC net/ipv6/ipcomp6.o CC drivers/mmc/core/sdio.o CC net/ipv6/xfrm6_tunnel.o CC drivers/mmc/core/sdio_ops.o CC drivers/mmc/core/sdio_bus.o CC net/ipv4/af_inet.o CC drivers/mmc/core/sdio_cis.o CC net/ipv6/tunnel6.o CC drivers/mmc/core/sdio_io.o CC net/ipv6/xfrm6_mode_transport.o CC drivers/mmc/core/sdio_irq.o CC net/ipv4/igmp.o CC drivers/mmc/core/quirks.o CC net/ipv6/xfrm6_mode_tunnel.o CC drivers/mmc/core/slot-gpio.o CC drivers/mmc/core/debugfs.o CC net/ipv6/xfrm6_mode_beet.o CC net/ipv4/fib_frontend.o LD drivers/mmc/core/mmc_core.o LD drivers/mmc/core/built-in.o CC drivers/mmc/host/sprd/v_30/sdhost_v30.o CC net/ipv6/mip6.o In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:27: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:27: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:27: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:27: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:27: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/mmc/host/sprd/v_30/sdhost_v30.c:29: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:30: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/mmc/host/sprd/v_30/sdhost_v30.c: In function 'sdhost_hw_reset': drivers/mmc/host/sprd/v_30/sdhost_v30.c:1017:16: warning: unused variable 'flags' [-Wunused-variable] 1017 | unsigned long flags; | ^~~~~ In file included from drivers/mmc/host/sprd/v_30/sdhost_v30.c:60: At top level: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ 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/ipv4/fib_semantics.o CC net/ipv6/netfilter/ip6_tables.o CC drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.o In file included from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:16: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:16: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:16: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:16: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:16: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/mmc/host/sprd/v_30/sdhost_debugfs_v30.c:18: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/mmc/host/sprd/v_30/built-in.o LD drivers/mmc/host/built-in.o LD drivers/mmc/built-in.o CC drivers/net/mii.o CC net/ipv4/fib_trie.o CC net/ipv6/netfilter/ip6table_filter.o CC drivers/net/Space.o CC net/ipv6/netfilter/ip6table_mangle.o CC drivers/net/loopback.o CC net/ipv6/netfilter/ip6table_raw.o CC net/ipv4/inet_fragment.o LD drivers/net/ethernet/8390/built-in.o LD drivers/net/ethernet/broadcom/built-in.o LD drivers/net/ethernet/cadence/built-in.o LD drivers/net/ethernet/cirrus/built-in.o CC net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.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/ipv6/netfilter/nf_conntrack_proto_icmpv6.o CC net/ipv4/ping.o CC net/ipv6/netfilter/nf_defrag_ipv6_hooks.o CC net/ipv4/ip_tunnel.o CC net/ipv6/netfilter/nf_conntrack_reasm.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); | ^~~~~~~~~~~~~~~~~~~~~~ CC net/ipv6/netfilter/ip6t_REJECT.o CC drivers/net/ethernet/smsc/smsc911x.o CC net/ipv4/sysctl_net_ipv4.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/ipv4/sysfs_net_ipv4.o CC net/ipv4/proc.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/ip6_tunnel.o CC net/ipv4/fib_rules.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:350, 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 drivers/net/phy/phy_device.o CC net/ipv4/gre.o CC net/ipv6/addrconf_core.o CC drivers/net/phy/mdio_bus.o CC net/ipv4/esp4.o CC net/ipv6/exthdrs_core.o LD drivers/net/phy/libphy.o LD drivers/net/phy/built-in.o CC drivers/net/ppp/ppp_generic.o CC net/ipv4/xfrm4_mode_beet.o CC net/ipv6/ip6_checksum.o CC net/ipv4/tunnel4.o CC net/ipv6/ip6_icmp.o CC net/ipv4/xfrm4_mode_transport.o CC net/ipv6/output_core.o CC drivers/net/ppp/ppp_async.o CC net/ipv4/xfrm4_mode_tunnel.o CC drivers/net/ppp/bsd_comp.o CC net/ipv6/protocol.o CC drivers/net/ppp/ppp_deflate.o CC net/ipv4/netfilter.o CC drivers/net/ppp/ppp_mppe.o CC net/ipv6/ip6_offload.o CC drivers/net/ppp/pppox.o CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o CC net/ipv6/tcpv6_offload.o CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o CC drivers/net/ppp/pppoe.o CC net/ipv6/udp_offload.o CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o CC drivers/net/ppp/pptp.o CC net/ipv6/exthdrs_offload.o CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o CC net/ipv6/inet6_hashtables.o CC drivers/net/ppp/pppolac.o CC net/ipv4/netfilter/nf_nat_proto_icmp.o CC drivers/net/ppp/pppopns.o CC net/ipv4/netfilter/nf_defrag_ipv4.o LD net/ipv6/ipv6.o LD net/ipv6/built-in.o CC net/key/af_key.o LD drivers/net/ppp/built-in.o CC drivers/net/slip/slhc.o CC net/ipv4/netfilter/nf_nat_h323.o CC net/ipv4/netfilter/nf_nat_pptp.o LD drivers/net/slip/built-in.o CC drivers/net/wireless/sc2331/sc2331_mem_alloc/sprdwl_mem_alloc.o LD net/key/built-in.o CC net/l2tp/l2tp_core.o CC net/ipv4/netfilter/nf_nat_proto_gre.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/ipv4/netfilter/ip_tables.o CC net/l2tp/l2tp_ppp.o CC net/ipv4/netfilter/iptable_filter.o LD drivers/net/built-in.o LD net/l2tp/built-in.o LD drivers/nfc/built-in.o CC net/netfilter/core.o CC drivers/of/base.o CC net/ipv4/netfilter/iptable_mangle.o CC drivers/of/fdt.o CC net/ipv4/netfilter/iptable_nat.o CC net/netfilter/nf_log.o CC net/ipv4/netfilter/iptable_raw.o CC drivers/of/address.o CC net/netfilter/nf_queue.o CC net/ipv4/netfilter/ipt_ah.o CC drivers/of/irq.o CC net/ipv4/netfilter/ipt_MASQUERADE.o CC drivers/of/device.o CC net/netfilter/nf_sockopt.o CC drivers/of/platform.o CC net/ipv4/netfilter/ipt_REJECT.o CC net/netfilter/nf_conntrack_core.o CC drivers/of/of_i2c.o CC net/ipv4/netfilter/arp_tables.o CC drivers/of/of_net.o CC drivers/of/of_mdio.o CC net/ipv4/netfilter/arpt_mangle.o CC net/netfilter/nf_conntrack_standalone.o LD drivers/of/built-in.o LD drivers/pinctrl/built-in.o CC drivers/platform/sprd/arch_init.o CC net/ipv4/netfilter/arptable_filter.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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/arch_init.c:16: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC drivers/platform/sprd/arch_misc.o CC net/netfilter/nf_conntrack_expect.o In file included from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/arch_misc.c:36: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/arch_misc.c:39: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD net/ipv4/netfilter/nf_conntrack_ipv4.o In file included from drivers/platform/sprd/arch_misc.c:40: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ 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", | ^~~~~~ In file included from include/linux/kernel.h:13, from drivers/platform/sprd/arch_misc.c:15: drivers/platform/sprd/arch_misc.c:107:12: warning: format '%lx' expects argument of type 'long unsigned int', but argument 5 has type 'pmd_t' {aka 'unsigned int'} [-Wformat=] 107 | pr_debug("%s: pmd %p=%08lx for %08lx ok\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(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:107:28: note: format string is defined here 107 | pr_debug("%s: pmd %p=%08lx for %08lx ok\n", | ~~~~^ | | | long unsigned int | %08x drivers/platform/sprd/arch_misc.c:86:16: warning: unused variable 'pmd_end' [-Wunused-variable] 86 | unsigned long pmd_end; | ^~~~~~~ LD net/ipv4/netfilter/nf_nat_ipv4.o LD net/ipv4/netfilter/built-in.o CC net/ipv4/inet_diag.o CC drivers/platform/sprd/adi.o In file included from drivers/platform/sprd/adi.c:30: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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, | ^ CC net/netfilter/nf_conntrack_helper.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/adi.c:30: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( 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:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/adc.c:29: include/soc/sprd/arch_lock.h:171:13: warning: '__arch_default_unlock' defined but not used [-Wunused-function] 171 | static void __arch_default_unlock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~~~ include/soc/sprd/arch_lock.h:158:13: warning: '__arch_default_lock' defined but not used [-Wunused-function] 158 | static void __arch_default_lock(unsigned int lock_id, unsigned long *flags) | ^~~~~~~~~~~~~~~~~~~ CC net/ipv4/tcp_diag.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/adc.c:28: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/glb.o CC net/netfilter/nf_conntrack_proto.o In file included from drivers/platform/sprd/glb.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/ipv4/tcp_cubic.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/glb.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/boot_mode.o CC drivers/platform/sprd/pin_switch.o In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | CC net/netfilter/nf_conntrack_l3proto_generic.o In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/linux/byteorder/little_endian.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/uapi/asm/byteorder.h:21, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:27, from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: drivers/platform/sprd/pin_switch.c: In function 'pinmap_get': drivers/platform/sprd/pin_switch.c:198:29: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 198 | return readl(SPRD_PIN_BASE + offset); | ~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/uapi/linux/byteorder/little_endian.h:33:51: note: in definition of macro '__le32_to_cpu' 33 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:391:32: note: in expansion of macro 'readl_relaxed' 391 | #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) | ^~~~~~~~~~~~~ drivers/platform/sprd/pin_switch.c:198:9: note: in expansion of macro 'readl' 198 | return readl(SPRD_PIN_BASE + offset); | ^~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: drivers/platform/sprd/pin_switch.c: In function 'pinmap_set': drivers/platform/sprd/pin_switch.c:206:30: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 206 | writel(value, SPRD_PIN_BASE + offset); | ~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/pin_switch.c:206:2: note: in expansion of macro 'writel' 206 | writel(value, SPRD_PIN_BASE + offset); | ^~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pin_switch.c: In function 'sc271x_regulator_event': drivers/platform/sprd/pin_switch.c:379:28: warning: initialization of 'long unsigned int' from 'long unsigned int *' makes integer from pointer without a cast [-Wint-conversion] 379 | unsigned long best_data = (unsigned long *)data; | ^ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cpumask.h:9, from include/linux/smp.h:12, from include/linux/regs_debug.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:31, from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: 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/platform/sprd/pin_switch.c:393:2: note: in expansion of macro 'pr_info' 393 | pr_info("event:0x%x, best_data:0x%x\n", event, best_data); | ^~~~~~~ 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/platform/sprd/pin_switch.c:393:2: note: in expansion of macro 'pr_info' 393 | pr_info("event:0x%x, best_data:0x%x\n", event, best_data); | ^~~~~~~ drivers/platform/sprd/pin_switch.c:376:16: warning: unused variable 'flags' [-Wunused-variable] 376 | unsigned long flags; | ^~~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from include/linux/cpumask.h:9, from include/linux/smp.h:12, from include/linux/regs_debug.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:31, from include/linux/io.h:22, from drivers/platform/sprd/pin_switch.c:4: drivers/platform/sprd/pin_switch.c: In function 'sprd_pin_switch_probe': 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/platform/sprd/pin_switch.c:488:2: note: in expansion of macro 'pr_info' 488 | pr_info("-----SPRD_PIN_BASE:0x%x-----\n", SPRD_PIN_BASE); | ^~~~~~~ CC net/ipv4/xfrm4_policy.o In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/pin_switch.c:11: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/arch_lock.h:21, from drivers/platform/sprd/pin_switch.c:12: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/sys_reset.o In file included from include/soc/sprd/sys_reset.h:19, from drivers/platform/sprd/sys_reset.c:14: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from drivers/platform/sprd/sys_reset.c:14: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from drivers/platform/sprd/sys_reset.c:14: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/sys_reset.h:21, from drivers/platform/sprd/sys_reset.c:14: include/soc/sprd/__hardware-sc7731.h:118: warning: "SPRD_MISC_BASE" redefined 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from include/soc/sprd/sys_reset.h:19, from drivers/platform/sprd/sys_reset.c:14: include/soc/sprd/sci_glb_regs.h:52: note: this is the location of the previous definition 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | CC drivers/platform/sprd/busmonitor.o In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/busmonitor.c:40: include/soc/sprd/pm_debug.h: In function 'get_sys_cnt': include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:18:28: note: in expansion of macro 'SYSCNT_COUNT' 18 | val1 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from include/soc/sprd/pm_debug.h:5, from drivers/platform/sprd/busmonitor.c:40: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/busmonitor.c:40: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:19:28: note: in expansion of macro 'SYSCNT_COUNT' 19 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from include/soc/sprd/pm_debug.h:5, from drivers/platform/sprd/busmonitor.c:40: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/busmonitor.c:40: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:22:33: note: in expansion of macro 'SYSCNT_COUNT' 22 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from include/soc/sprd/pm_debug.h:5, from drivers/platform/sprd/busmonitor.c:40: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/busmonitor.c: In function '__sci_axi_bm_clr_winlen': drivers/platform/sprd/busmonitor.c:318:37: warning: unused variable 'win_len' [-Wunused-variable] 318 | ulong bm_index, base_reg, axi_clk, win_len; | ^~~~~~~ drivers/platform/sprd/busmonitor.c:318:28: warning: unused variable 'axi_clk' [-Wunused-variable] 318 | ulong bm_index, base_reg, axi_clk, win_len; | ^~~~~~~ drivers/platform/sprd/busmonitor.c: In function 'sci_bm_noirq_ctrl': drivers/platform/sprd/busmonitor.c:626:44: warning: unused variable 'bm_int' [-Wunused-variable] 626 | ulong bm_index, rwbw_cnt, bm_chn, bm_reg, bm_int; | ^~~~~~ drivers/platform/sprd/busmonitor.c:626:8: warning: unused variable 'bm_index' [-Wunused-variable] 626 | ulong bm_index, rwbw_cnt, bm_chn, bm_reg, bm_int; | ^~~~~~~~ drivers/platform/sprd/busmonitor.c: In function 'sprd_bm_monitor_cp': drivers/platform/sprd/busmonitor.c:864:10: warning: unused variable 'i' [-Wunused-variable] 864 | int ret,i; | ^ drivers/platform/sprd/busmonitor.c: In function 'sci_bm_axi_dbg_store': drivers/platform/sprd/busmonitor.c:1064:47: warning: unused variable 'bm_index' [-Wunused-variable] 1064 | unsigned long start_addr, end_addr, channel, bm_index; | ^~~~~~~~ drivers/platform/sprd/busmonitor.c: In function 'hrtimer_putlog_handler': drivers/platform/sprd/busmonitor.c:1205:44: warning: unused variable 'bm_int' [-Wunused-variable] 1205 | ulong bm_index, rwbw_cnt, bm_chn, bm_reg, bm_int; | ^~~~~~ drivers/platform/sprd/busmonitor.c:1205:8: warning: unused variable 'bm_index' [-Wunused-variable] 1205 | ulong bm_index, rwbw_cnt, bm_chn, bm_reg, bm_int; | ^~~~~~~~ drivers/platform/sprd/busmonitor.c: In function 'sci_bm_bus_status_show': drivers/platform/sprd/busmonitor.c:1586:17: warning: passing argument 1 of 'sprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1586 | return sprintf(buf, "%s\n", axi_buf); | ^~~ In file included from drivers/platform/sprd/busmonitor.c:13: include/linux/kernel.h:358:41: note: expected 'char *' but argument is of type 'const char *' 358 | 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/platform/sprd/busmonitor.c:15: drivers/platform/sprd/busmonitor.c: At top level: drivers/platform/sprd/busmonitor.c:1691:2: 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 *)' {aka 'int (*)(struct device *, struct device_attribute *, const char *)'} [-Wincompatible-pointer-types] 1691 | sci_bm_bus_status_show, NULL); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/platform/sprd/busmonitor.c:1690:8: note: in expansion of macro 'DEVICE_ATTR' 1690 | static DEVICE_ATTR(bus_status, S_IRUGO | S_IWUSR, | ^~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:1691:2: note: (near initialization for 'dev_attr_bus_status.show') 1691 | sci_bm_bus_status_show, NULL); | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/sysfs.h:74:10: note: in definition of macro '__ATTR' 74 | .show = _show, \ | ^~~~~ drivers/platform/sprd/busmonitor.c:1690:8: note: in expansion of macro 'DEVICE_ATTR' 1690 | static DEVICE_ATTR(bus_status, S_IRUGO | S_IWUSR, | ^~~~~~~~~~~ drivers/platform/sprd/busmonitor.c: In function 'sci_bm_ioctl': drivers/platform/sprd/busmonitor.c:2283:18: warning: unused variable 'tm' [-Wunused-variable] 2283 | struct rtc_time tm; | ^~ drivers/platform/sprd/busmonitor.c:2432:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2432 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:2439:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2439 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:2446:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2446 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:2453:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2453 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:2460:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2460 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/busmonitor.c:2467:4: warning: ignoring return value of 'copy_from_user' declared with attribute 'warn_unused_result' [-Wunused-result] 2467 | copy_from_user(&bm_user, (unsigned long __user *)args, sizeof(unsigned long)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: drivers/platform/sprd/busmonitor.c:955:13: warning: 'sci_bm_def_val_set' defined but not used [-Wunused-function] 955 | static void sci_bm_def_val_set(void) | ^~~~~~~~~~~~~~~~~~ CC net/netfilter/nf_conntrack_proto_generic.o CC net/ipv4/xfrm4_state.o drivers/platform/sprd/busmonitor.c: In function 'sci_bm_continue_show': drivers/platform/sprd/busmonitor.c:1457:1: warning: the frame size of 4896 bytes is larger than 1024 bytes [-Wframe-larger-than=] 1457 | } | ^ drivers/platform/sprd/busmonitor.c: In function 'sci_bm_occur_show': drivers/platform/sprd/busmonitor.c:1431:1: warning: the frame size of 2552 bytes is larger than 1024 bytes [-Wframe-larger-than=] 1431 | } | ^ CC net/netfilter/nf_conntrack_proto_tcp.o CC net/ipv4/xfrm4_input.o CC net/ipv4/xfrm4_output.o CC net/netfilter/nf_conntrack_proto_udp.o In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/busmonitor.c:35: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/busmonitor.c:36: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/timer_sc8830.o In file included from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/timer_sc8830.c:32: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/timer_sc8830.c:32: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/timer_sc8830.c:32: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/timer_sc8830.c:32: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/timer_sc8830.c:32: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/timer_sc8830.c:34: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD net/ipv4/built-in.o CC net/netlink/af_netlink.o CC net/netfilter/nf_conntrack_extend.o CC drivers/platform/sprd/dma_r4p0.o In file included from drivers/platform/sprd/dma_r4p0.c:28: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dma_r4p0.c:28: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dma_r4p0.c:28: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/netfilter/nf_conntrack_acct.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dma_r4p0.c:28: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dma_r4p0.c:28: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/adie_irq.o In file included from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/adie_irq.c:30: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/adie_irq.c:30: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/adie_irq.c:30: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/adie_irq.c:30: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/adie_irq.c:30: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/adie_irq.c:34: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/sprd_debug.o CC net/netfilter/nf_conntrack_ecache.o In file included from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/pm_debug.h: In function 'get_sys_cnt': include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:18:28: note: in expansion of macro 'SYSCNT_COUNT' 18 | val1 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from drivers/platform/sprd/sprd_debug.c:20: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:19:28: note: in expansion of macro 'SYSCNT_COUNT' 19 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from drivers/platform/sprd/sprd_debug.c:20: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:22:33: note: in expansion of macro 'SYSCNT_COUNT' 22 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from drivers/platform/sprd/sprd_debug.c:20: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h: At top level: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/sprd_debug.c:30: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/sprd_debug.c:33: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/netlink/genetlink.o CC drivers/platform/sprd/sprd_debug_dmalog.o In file included from include/linux/kernel.h:7, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/ktime.h:24, from drivers/platform/sprd/sprd_debug_dmalog.c:1: drivers/platform/sprd/sprd_debug_dmalog.c: In function 'dma_history_recording': include/linux/stddef.h:8:14: warning: statement with no effect [-Wunused-value] 8 | #define NULL ((void *)0) | ^ drivers/platform/sprd/sprd_debug_dmalog.c:13:37: note: in expansion of macro 'NULL' 13 | #define dmarec_dbg(format, args...) NULL | ^~~~ drivers/platform/sprd/sprd_debug_dmalog.c:101:2: note: in expansion of macro 'dmarec_dbg' 101 | dmarec_dbg("create a new record_buf\n"); | ^~~~~~~~~~ include/linux/stddef.h:8:14: warning: statement with no effect [-Wunused-value] 8 | #define NULL ((void *)0) | ^ drivers/platform/sprd/sprd_debug_dmalog.c:13:37: note: in expansion of macro 'NULL' 13 | #define dmarec_dbg(format, args...) NULL | ^~~~ drivers/platform/sprd/sprd_debug_dmalog.c:141:2: note: in expansion of macro 'dmarec_dbg' 141 | dmarec_dbg("name[%s] idx<%d> pid<%d> ps<%08x> vs<%08x> pd<%08x> vd<%08x> l<%08x> t<%ld.%ld>\n", | ^~~~~~~~~~ drivers/platform/sprd/sprd_debug_dmalog.c:75:20: warning: unused variable 'list' [-Wunused-variable] 75 | struct list_head *list; | ^~~~ In file included from include/linux/kernel.h:7, from include/linux/cache.h:4, from include/linux/time.h:4, from include/linux/ktime.h:24, from drivers/platform/sprd/sprd_debug_dmalog.c:1: drivers/platform/sprd/sprd_debug_dmalog.c: In function 'dma_record_write': include/linux/stddef.h:8:14: warning: statement with no effect [-Wunused-value] 8 | #define NULL ((void *)0) | ^ drivers/platform/sprd/sprd_debug_dmalog.c:13:37: note: in expansion of macro 'NULL' 13 | #define dmarec_dbg(format, args...) NULL | ^~~~ drivers/platform/sprd/sprd_debug_dmalog.c:188:7: note: in expansion of macro 'dmarec_dbg' 188 | dmarec_dbg("idx<%d> pid<%d> ps<%08x> vs<%08x> pd<%08x> vd<%08x> l<%08x> t<%ld.%ld>\n", | ^~~~~~~~~~ drivers/platform/sprd/sprd_debug_dmalog.c:168:20: warning: unused variable 'list' [-Wunused-variable] 168 | struct list_head *list; | ^~~~ CC net/netfilter/nf_conntrack_h323_main.o CC drivers/platform/sprd/pm.o In file included from drivers/platform/sprd/pm.c:21: include/soc/sprd/pm_debug.h: In function 'get_sys_cnt': include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:18:28: note: in expansion of macro 'SYSCNT_COUNT' 18 | val1 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm.c:17: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm.c:21: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:19:28: note: in expansion of macro 'SYSCNT_COUNT' 19 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm.c:17: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm.c:21: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:22:33: note: in expansion of macro 'SYSCNT_COUNT' 22 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm.c:17: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC drivers/platform/sprd/pm-scx35.o In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #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 drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #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 drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #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 drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #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 drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/system.h:17, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/pm-scx35.c:24: include/soc/sprd/pm_debug.h: In function 'get_sys_cnt': include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:18:28: note: in expansion of macro 'SYSCNT_COUNT' 18 | val1 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm-scx35.c:24: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:19:28: note: in expansion of macro 'SYSCNT_COUNT' 19 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm-scx35.c:24: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:22:33: note: in expansion of macro 'SYSCNT_COUNT' 22 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm-scx35.c:34: include/soc/sprd/arch_misc.h: At top level: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: drivers/platform/sprd/pm-scx35.c: In function 'bak_last_reg': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:59:38: note: in expansion of macro 'SCI_ADDR' 59 | #define REG_PMU_APB_PD_PUB_SYS_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x006C)/*PD_PUB_SYS_CFG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:870:27: note: in expansion of macro 'REG_PMU_APB_PD_PUB_SYS_CFG' 870 | pd_pub_sys = __raw_readl(REG_PMU_APB_PD_PUB_SYS_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:77:42: note: in expansion of macro 'SCI_ADDR' 77 | #define REG_PMU_APB_CP_SLP_STATUS_DBG0 SCI_ADDR(REGS_PMU_APB_BASE, 0x00B4)/*CP_SLP_STATUS_DBG0*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:871:35: note: in expansion of macro 'REG_PMU_APB_CP_SLP_STATUS_DBG0' 871 | cp_slp_status_dbg0 = __raw_readl(REG_PMU_APB_CP_SLP_STATUS_DBG0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:78:42: note: in expansion of macro 'SCI_ADDR' 78 | #define REG_PMU_APB_CP_SLP_STATUS_DBG1 SCI_ADDR(REGS_PMU_APB_BASE, 0x00B8)/*CP_SLP_STATUS_DBG1*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:873:35: note: in expansion of macro 'REG_PMU_APB_CP_SLP_STATUS_DBG1' 873 | cp_slp_status_dbg1 = __raw_readl(REG_PMU_APB_CP_SLP_STATUS_DBG1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:79:39: note: in expansion of macro 'SCI_ADDR' 79 | #define REG_PMU_APB_PWR_STATUS0_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00BC)/*PWR_STATUS0_DBG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:875:26: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS0_DBG' 875 | pwr_stat0 = __raw_readl(REG_PMU_APB_PWR_STATUS0_DBG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:80:39: note: in expansion of macro 'SCI_ADDR' 80 | #define REG_PMU_APB_PWR_STATUS1_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00C0)/*PWR_STATUS1_DBG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:876:26: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS1_DBG' 876 | pwr_stat1 = __raw_readl(REG_PMU_APB_PWR_STATUS1_DBG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:81:39: note: in expansion of macro 'SCI_ADDR' 81 | #define REG_PMU_APB_PWR_STATUS2_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00C4)/*PWR_STATUS2_DBG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:877:26: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS2_DBG' 877 | pwr_stat2 = __raw_readl(REG_PMU_APB_PWR_STATUS2_DBG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:82:39: note: in expansion of macro 'SCI_ADDR' 82 | #define REG_PMU_APB_PWR_STATUS3_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00C8)/*PWR_STATUS3_DBG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:879:26: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS3_DBG' 879 | pwr_stat3 = __raw_readl(REG_PMU_APB_PWR_STATUS3_DBG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:83:35: note: in expansion of macro 'SCI_ADDR' 83 | #define REG_PMU_APB_SLEEP_CTRL SCI_ADDR(REGS_PMU_APB_BASE, 0x00CC)/*SLEEP_CTRL*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:881:27: note: in expansion of macro 'REG_PMU_APB_SLEEP_CTRL' 881 | sleep_ctrl = __raw_readl(REG_PMU_APB_SLEEP_CTRL); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:84:38: note: in expansion of macro 'SCI_ADDR' 84 | #define REG_PMU_APB_DDR_SLEEP_CTRL SCI_ADDR(REGS_PMU_APB_BASE, 0x00D0)/*DDR_SLEEP_CTRL*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:882:31: note: in expansion of macro 'REG_PMU_APB_DDR_SLEEP_CTRL' 882 | ddr_sleep_ctrl = __raw_readl(REG_PMU_APB_DDR_SLEEP_CTRL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:85:36: note: in expansion of macro 'SCI_ADDR' 85 | #define REG_PMU_APB_SLEEP_STATUS SCI_ADDR(REGS_PMU_APB_BASE, 0x00D4)/*SLEEP_STATUS*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:883:29: note: in expansion of macro 'REG_PMU_APB_SLEEP_STATUS' 883 | sleep_status = __raw_readl(REG_PMU_APB_SLEEP_STATUS); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:32:32: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AON_APB_APB_EB0 SCI_ADDR(REGS_AON_APB_BASE, 0x0000)/*AHB_EB0*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:902:24: note: in expansion of macro 'REG_AON_APB_APB_EB0' 902 | apb_eb0 = __raw_readl(REG_AON_APB_APB_EB0); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:33:32: note: in expansion of macro 'SCI_ADDR' 33 | #define REG_AON_APB_APB_EB1 SCI_ADDR(REGS_AON_APB_BASE, 0x0004)/*AHB_EB1*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:903:24: note: in expansion of macro 'REG_AON_APB_APB_EB1' 903 | apb_eb1 = __raw_readl(REG_AON_APB_APB_EB1); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:41:33: note: in expansion of macro 'SCI_ADDR' 41 | #define REG_AON_APB_PWR_CTRL SCI_ADDR(REGS_AON_APB_BASE, 0x0024)/*PWR_CTRL*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:904:25: note: in expansion of macro 'REG_AON_APB_PWR_CTRL' 904 | pwr_ctrl = __raw_readl(REG_AON_APB_PWR_CTRL); | ^~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:32:30: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AP_AHB_AHB_EB SCI_ADDR(REGS_AP_AHB_BASE, 0x0000)/*AHB_EB*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:906:23: note: in expansion of macro 'REG_AP_AHB_AHB_EB' 906 | ahb_eb = __raw_readl(REG_AP_AHB_AHB_EB); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_apb.h:32:30: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AP_APB_APB_EB SCI_ADDR(REGS_AP_APB_BASE, 0x0000)/*AHB_EB*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:908:23: note: in expansion of macro 'REG_AP_APB_APB_EB' 908 | apb_eb = __raw_readl(REG_AP_APB_APB_EB); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:47:33: note: in expansion of macro 'SCI_ADDR' 47 | #define REG_AP_AHB_MCU_PAUSE SCI_ADDR(REGS_AP_AHB_BASE, 0x3004)/*MCU_PAUSE*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:909:26: note: in expansion of macro 'REG_AP_AHB_MCU_PAUSE' 909 | mcu_pause = __raw_readl(REG_AP_AHB_MCU_PAUSE); | ^~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:35:44: note: in expansion of macro 'SCI_ADDR' 35 | #define REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG SCI_ADDR(REGS_AP_AHB_BASE, 0x000C)/*AP_SYS_FORCE_SLEEP_CFG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:910:32: note: in expansion of macro 'REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG' 910 | sys_force_sleep = __raw_readl(REG_AP_AHB_AP_SYS_FORCE_SLEEP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:36:43: note: in expansion of macro 'SCI_ADDR' 36 | #define REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG SCI_ADDR(REGS_AP_AHB_BASE, 0x0010)/*AP_SYS_AUTO_SLEEP_CFG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:911:35: note: in expansion of macro 'REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG' 911 | sys_auto_sleep_cfg = __raw_readl(REG_AP_AHB_AP_SYS_AUTO_SLEEP_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:59:41: note: in expansion of macro 'SCI_ADDR' 59 | #define REG_AP_AHB_CA7_STANDBY_STATUS SCI_ADDR(REGS_AP_AHB_BASE, 0x3034)/*CA7_STANDBY_STATUS*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:916:35: note: in expansion of macro 'REG_AP_AHB_CA7_STANDBY_STATUS' 916 | ca7_standby_status = __raw_readl(REG_AP_AHB_CA7_STANDBY_STATUS); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm-scx35.c:961: drivers/platform/sprd/lowpower_debug.h: At top level: drivers/platform/sprd/lowpower_debug.h:6:26: warning: initializer-string for array of 'char' is too long 6 | #define ASCII_RED_START "\033[0;32;31m" | ^~~~~~~~~~~~~~~ drivers/platform/sprd/lowpower_debug.h:51:122: note: in expansion of macro 'ASCII_RED_START' 51 | char low_power_result_symbol[][20] = {"x", ASCII_RED_START "[v]" ASCII_COLOR_END, ASCII_RED_START "[-]" ASCII_COLOR_END, ASCII_RED_START "Table error" ASCII_COLOR_END, "-", ASCII_GREEN_START "v" ASCII_COLOR_END}; | ^~~~~~~~~~~~~~~ drivers/platform/sprd/lowpower_debug.h:6:26: note: (near initialization for 'low_power_result_symbol[3]') 6 | #define ASCII_RED_START "\033[0;32;31m" | ^~~~~~~~~~~~~~~ drivers/platform/sprd/lowpower_debug.h:51:122: note: in expansion of macro 'ASCII_RED_START' 51 | char low_power_result_symbol[][20] = {"x", ASCII_RED_START "[v]" ASCII_COLOR_END, ASCII_RED_START "[-]" ASCII_COLOR_END, ASCII_RED_START "Table error" ASCII_COLOR_END, "-", ASCII_GREEN_START "v" ASCII_COLOR_END}; | ^~~~~~~~~~~~~~~ In file included from drivers/platform/sprd/pm-scx35.c:961: drivers/platform/sprd/lowpower_debug.h:110:12: warning: function declaration isn't a prototype [-Wstrict-prototypes] 110 | static int low_power_register_show() | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/platform/sprd/pm-scx35.c:961: drivers/platform/sprd/lowpower_debug.h: In function 'low_power_register_show': drivers/platform/sprd/lowpower_debug.h:171:1: warning: no return statement in function returning non-void [-Wreturn-type] 171 | } | ^ drivers/platform/sprd/pm-scx35.c: At top level: drivers/platform/sprd/pm-scx35.c:968:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 968 | extern void dump_lowpower_regs(); | ^~~~~~ drivers/platform/sprd/pm-scx35.c:969:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 969 | extern int cpuidle_debug_get(); | ^~~~~~ drivers/platform/sprd/pm-scx35.c:970:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 970 | extern void cpuidle_debug_reset(); | ^~~~~~ drivers/platform/sprd/pm-scx35.c:971:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 971 | extern void showAPDeepSleepStatus(); | ^~~~~~ drivers/platform/sprd/pm-scx35.c:975:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] 975 | void deepsleep_debug() | ^~~~~~~~~~~~~~~ drivers/platform/sprd/pm-scx35.c: In function 'test_memory': drivers/platform/sprd/pm-scx35.c:1213:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=] 1213 | printk("%s %p %p\n", __func__, vtest, virt_to_phys(vtest)); | ~^ ~~~~~~~~~~~~~~~~~~~ | | | | void * phys_addr_t {aka unsigned int} | %d drivers/platform/sprd/pm-scx35.c:1214:9: warning: assignment to 'long unsigned int *' from 'phys_addr_t' {aka 'unsigned int'} makes pointer from integer without a cast [-Wint-conversion] 1214 | ptest = virt_to_phys(vtest); | ^ drivers/platform/sprd/pm-scx35.c:1218:25: warning: assignment to 'uint32_t' {aka 'unsigned int'} from 'long unsigned int *' makes integer from pointer without a cast [-Wint-conversion] 1218 | sp_pm_reset_vector[64] = ptest; | ^ drivers/platform/sprd/pm-scx35.c: In function 'wait_until_uart1_tx_done': drivers/platform/sprd/pm-scx35.c:1250:19: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 1250 | #define UART_STS1 (SPRD_UART1_BASE + 0x0c) | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/pm-scx35.c:1258:28: note: in expansion of macro 'UART_STS1' 1258 | tx_fifo_val = __raw_readl(UART_STS1); | ^~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm-scx35.c:1250:19: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 1250 | #define UART_STS1 (SPRD_UART1_BASE + 0x0c) | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/pm-scx35.c:1264:29: note: in expansion of macro 'UART_STS1' 1264 | tx_fifo_val = __raw_readl(UART_STS1); | ^~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm-scx35.c:1249:19: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 1249 | #define UART_STS0 (SPRD_UART1_BASE + 0x08) | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/pm-scx35.c:1271:28: note: in expansion of macro 'UART_STS0' 1271 | really_done = __raw_readl(UART_STS0); | ^~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm-scx35.c:1249:19: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 1249 | #define UART_STS0 (SPRD_UART1_BASE + 0x08) | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/pm-scx35.c:1275:29: note: in expansion of macro 'UART_STS0' 1275 | really_done = __raw_readl(UART_STS0); | ^~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: drivers/platform/sprd/pm-scx35.c: In function 'deep_sleep': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:90:35: note: in expansion of macro 'SCI_ADDR' 90 | #define REG_PMU_APB_CA7_C0_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x00E8)/*CA7_C0_CFG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:1414:21: note: in expansion of macro 'REG_PMU_APB_CA7_C0_CFG' 1414 | __raw_writel(0x0, REG_PMU_APB_CA7_C0_CFG); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/soc/sprd/sys_reset.h:19, from include/soc/sprd/system.h:18, from drivers/platform/sprd/pm-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:90:35: note: in expansion of macro 'SCI_ADDR' 90 | #define REG_PMU_APB_CA7_C0_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x00E8)/*CA7_C0_CFG*/ | ^~~~~~~~ drivers/platform/sprd/pm-scx35.c:1483:21: note: in expansion of macro 'REG_PMU_APB_CA7_C0_CFG' 1483 | __raw_writel(0x1, REG_PMU_APB_CA7_C0_CFG); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm-scx35.c: In function 'dcdc_core_ds_config': drivers/platform/sprd/pm-scx35.c:1606:6: warning: unused variable 'dcdc_core_ctl_ds' [-Wunused-variable] 1606 | u32 dcdc_core_ctl_ds = -1; | ^~~~~~~~~~~~~~~~ drivers/platform/sprd/pm-scx35.c:1605:6: warning: unused variable 'val' [-Wunused-variable] 1605 | u32 val = 0; | ^~~ drivers/platform/sprd/pm-scx35.c:1604:6: warning: unused variable 'dcdc_core_ctl_adi' [-Wunused-variable] 1604 | u32 dcdc_core_ctl_adi = 0; | ^~~~~~~~~~~~~~~~~ At top level: drivers/platform/sprd/pm-scx35.c:152:27: warning: 'pd_config' defined but not used [-Wunused-variable] 152 | static struct auto_pd_en pd_config = { | ^~~~~~~~~ LD net/netlink/built-in.o CC net/packet/af_packet.o net/packet/af_packet.c: In function 'packet_set_ring': net/packet/af_packet.c:3685:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 3685 | if (!tx_ring) | ^~ net/packet/af_packet.c:3687:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 3687 | break; | ^~~~~ CC net/netfilter/nf_conntrack_h323_asn1.o In file included from drivers/platform/sprd/pm-scx35.c:961: drivers/platform/sprd/lowpower_debug.h: In function 'low_power_register_show.isra': drivers/platform/sprd/lowpower_debug.h:171:1: warning: the frame size of 1784 bytes is larger than 1024 bytes [-Wframe-larger-than=] 171 | } | ^ CC net/netfilter/nf_nat_core.o AS drivers/platform/sprd/standby-scx35.o In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/standby-scx35.S:11: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/standby-scx35.S:11: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/pm_debug_scx35.o In file included from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/pm_debug.h: In function 'get_sys_cnt': include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:18:28: note: in expansion of macro 'SYSCNT_COUNT' 18 | val1 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:19:28: note: in expansion of macro 'SYSCNT_COUNT' 19 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/pm_debug.h:13:43: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 13 | #define SYSCNT_REG(off) (SPRD_SYSCNT_BASE + (off)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int include/soc/sprd/pm_debug.h:14:25: note: in expansion of macro 'SYSCNT_REG' 14 | #define SYSCNT_COUNT SYSCNT_REG(0x0004) | ^~~~~~~~~~ include/soc/sprd/pm_debug.h:22:33: note: in expansion of macro 'SYSCNT_COUNT' 22 | val2 = __raw_readl(SYSCNT_COUNT); | ^~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h: At top level: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from include/soc/sprd/pm_debug.h:4, from drivers/platform/sprd/pm_debug_scx35.c:23: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/platform/sprd/pm_debug_scx35.c: In function 'hard_irq_set': drivers/platform/sprd/pm_debug_scx35.c:69:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 69 | #define INT_REG(off) (SPRD_INT_BASE + (off)) | ~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:74:32: note: in expansion of macro 'INT_REG' 74 | #define INT_IRQ_STS INT_REG(0x0000) | ^~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:143:33: note: in expansion of macro 'INT_IRQ_STS' 143 | sprd_irqs_sts[0] = __raw_readl(INT_IRQ_STS); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:69:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 69 | #define INT_REG(off) (SPRD_INT_BASE + (off)) | ~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:78:32: note: in expansion of macro 'INT_REG' 78 | #define INT_FIQ_STS INT_REG(0x0020) | ^~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:144:33: note: in expansion of macro 'INT_FIQ_STS' 144 | sprd_irqs_sts[1] = __raw_readl(INT_FIQ_STS); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:70:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 70 | #define INTC0_REG(off) (SPRD_INTC0_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:80:25: note: in expansion of macro 'INTC0_REG' 80 | #define INTCV0_IRQ_RAW INTC0_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:145:27: note: in expansion of macro 'INTCV0_IRQ_RAW' 145 | irq_status = __raw_readl(INTCV0_IRQ_RAW); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:71:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 71 | #define INTC1_REG(off) (SPRD_INTC1_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:85:25: note: in expansion of macro 'INTC1_REG' 85 | #define INTCV1_IRQ_RAW INTC1_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:147:27: note: in expansion of macro 'INTCV1_IRQ_RAW' 147 | irq_status = __raw_readl(INTCV1_IRQ_RAW); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:72:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 72 | #define INTC2_REG(off) (SPRD_INTC2_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:90:25: note: in expansion of macro 'INTC2_REG' 90 | #define INTCV2_IRQ_RAW INTC2_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:149:27: note: in expansion of macro 'INTCV2_IRQ_RAW' 149 | irq_status = __raw_readl(INTCV2_IRQ_RAW); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:73:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 73 | #define INTC3_REG(off) (SPRD_INTC3_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:95:25: note: in expansion of macro 'INTC3_REG' 95 | #define INTCV3_IRQ_RAW INTC3_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:151:27: note: in expansion of macro 'INTCV3_IRQ_RAW' 151 | irq_status = __raw_readl(INTCV3_IRQ_RAW); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:27: drivers/platform/sprd/pm_debug_scx35.c: In function 'print_int_status': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_apb.h:32:30: note: in expansion of macro 'SCI_ADDR' 32 | #define REG_AP_APB_APB_EB SCI_ADDR(REGS_AP_APB_BASE, 0x0000)/*AHB_EB*/ | ^~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:156:40: note: in expansion of macro 'REG_AP_APB_APB_EB' 156 | printk("APB_EB 0x%08x\n", __raw_readl(REG_AP_APB_APB_EB)); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:70:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 70 | #define INTC0_REG(off) (SPRD_INTC0_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:79:27: note: in expansion of macro 'INTC0_REG' 79 | #define INTCV0_IRQ_MSKSTS INTC0_REG(0x0000) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:157:65: note: in expansion of macro 'INTCV0_IRQ_MSKSTS' 157 | printk("INTC0 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV0_IRQ_MSKSTS),__raw_readl(INTCV0_IRQ_RAW), __raw_readl(INTCV0_IRQ_EN)); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:70:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 70 | #define INTC0_REG(off) (SPRD_INTC0_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:80:25: note: in expansion of macro 'INTC0_REG' 80 | #define INTCV0_IRQ_RAW INTC0_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:157:96: note: in expansion of macro 'INTCV0_IRQ_RAW' 157 | printk("INTC0 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV0_IRQ_MSKSTS),__raw_readl(INTCV0_IRQ_RAW), __raw_readl(INTCV0_IRQ_EN)); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:70:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 70 | #define INTC0_REG(off) (SPRD_INTC0_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:81:24: note: in expansion of macro 'INTC0_REG' 81 | #define INTCV0_IRQ_EN INTC0_REG(0x0008) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:157:125: note: in expansion of macro 'INTCV0_IRQ_EN' 157 | printk("INTC0 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV0_IRQ_MSKSTS),__raw_readl(INTCV0_IRQ_RAW), __raw_readl(INTCV0_IRQ_EN)); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:71:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 71 | #define INTC1_REG(off) (SPRD_INTC1_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:84:27: note: in expansion of macro 'INTC1_REG' 84 | #define INTCV1_IRQ_MSKSTS INTC1_REG(0x0000) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:158:65: note: in expansion of macro 'INTCV1_IRQ_MSKSTS' 158 | printk("INTC1 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV1_IRQ_MSKSTS),__raw_readl(INTCV1_IRQ_RAW), __raw_readl(INTCV1_IRQ_EN)); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:71:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 71 | #define INTC1_REG(off) (SPRD_INTC1_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:85:25: note: in expansion of macro 'INTC1_REG' 85 | #define INTCV1_IRQ_RAW INTC1_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:158:96: note: in expansion of macro 'INTCV1_IRQ_RAW' 158 | printk("INTC1 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV1_IRQ_MSKSTS),__raw_readl(INTCV1_IRQ_RAW), __raw_readl(INTCV1_IRQ_EN)); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:71:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 71 | #define INTC1_REG(off) (SPRD_INTC1_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:86:24: note: in expansion of macro 'INTC1_REG' 86 | #define INTCV1_IRQ_EN INTC1_REG(0x0008) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:158:125: note: in expansion of macro 'INTCV1_IRQ_EN' 158 | printk("INTC1 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV1_IRQ_MSKSTS),__raw_readl(INTCV1_IRQ_RAW), __raw_readl(INTCV1_IRQ_EN)); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:72:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 72 | #define INTC2_REG(off) (SPRD_INTC2_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:89:27: note: in expansion of macro 'INTC2_REG' 89 | #define INTCV2_IRQ_MSKSTS INTC2_REG(0x0000) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:159:65: note: in expansion of macro 'INTCV2_IRQ_MSKSTS' 159 | printk("INTC2 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV2_IRQ_MSKSTS),__raw_readl(INTCV2_IRQ_RAW), __raw_readl(INTCV2_IRQ_EN)); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:72:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 72 | #define INTC2_REG(off) (SPRD_INTC2_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:90:25: note: in expansion of macro 'INTC2_REG' 90 | #define INTCV2_IRQ_RAW INTC2_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:159:96: note: in expansion of macro 'INTCV2_IRQ_RAW' 159 | printk("INTC2 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV2_IRQ_MSKSTS),__raw_readl(INTCV2_IRQ_RAW), __raw_readl(INTCV2_IRQ_EN)); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:72:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 72 | #define INTC2_REG(off) (SPRD_INTC2_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:91:24: note: in expansion of macro 'INTC2_REG' 91 | #define INTCV2_IRQ_EN INTC2_REG(0x0008) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:159:125: note: in expansion of macro 'INTCV2_IRQ_EN' 159 | printk("INTC2 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV2_IRQ_MSKSTS),__raw_readl(INTCV2_IRQ_RAW), __raw_readl(INTCV2_IRQ_EN)); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:73:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 73 | #define INTC3_REG(off) (SPRD_INTC3_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:94:27: note: in expansion of macro 'INTC3_REG' 94 | #define INTCV3_IRQ_MSKSTS INTC3_REG(0x0000) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:160:65: note: in expansion of macro 'INTCV3_IRQ_MSKSTS' 160 | printk("INTC3 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV3_IRQ_MSKSTS),__raw_readl(INTCV3_IRQ_RAW), __raw_readl(INTCV3_IRQ_EN)); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:73:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 73 | #define INTC3_REG(off) (SPRD_INTC3_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:95:25: note: in expansion of macro 'INTC3_REG' 95 | #define INTCV3_IRQ_RAW INTC3_REG(0x0004) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:160:96: note: in expansion of macro 'INTCV3_IRQ_RAW' 160 | printk("INTC3 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV3_IRQ_MSKSTS),__raw_readl(INTCV3_IRQ_RAW), __raw_readl(INTCV3_IRQ_EN)); | ^~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:73:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 73 | #define INTC3_REG(off) (SPRD_INTC3_BASE + (off)) | ~~~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:96:24: note: in expansion of macro 'INTC3_REG' 96 | #define INTCV3_IRQ_EN INTC3_REG(0x0008) | ^~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:160:125: note: in expansion of macro 'INTCV3_IRQ_EN' 160 | printk("INTC3 mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INTCV3_IRQ_MSKSTS),__raw_readl(INTCV3_IRQ_RAW), __raw_readl(INTCV3_IRQ_EN)); | ^~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:69:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 69 | #define INT_REG(off) (SPRD_INT_BASE + (off)) | ~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:74:32: note: in expansion of macro 'INT_REG' 74 | #define INT_IRQ_STS INT_REG(0x0000) | ^~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:161:63: note: in expansion of macro 'INT_IRQ_STS' 161 | printk("INT mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INT_IRQ_STS),__raw_readl(INT_IRQ_RAW), __raw_readl(INT_IRQ_ENB)); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:69:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 69 | #define INT_REG(off) (SPRD_INT_BASE + (off)) | ~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:75:31: note: in expansion of macro 'INT_REG' 75 | #define INT_IRQ_RAW INT_REG(0x0004) | ^~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:161:88: note: in expansion of macro 'INT_IRQ_RAW' 161 | printk("INT mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INT_IRQ_STS),__raw_readl(INT_IRQ_RAW), __raw_readl(INT_IRQ_ENB)); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:69:38: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 69 | #define INT_REG(off) (SPRD_INT_BASE + (off)) | ~~~~~~~~~~~~~~~^~~~~~~~ | | | long unsigned int drivers/platform/sprd/pm_debug_scx35.c:76:31: note: in expansion of macro 'INT_REG' 76 | #define INT_IRQ_ENB INT_REG(0x0008) | ^~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:161:114: note: in expansion of macro 'INT_IRQ_ENB' 161 | printk("INT mask:0x%08x raw:0x%08x en:0x%08x\n", __raw_readl(INT_IRQ_STS),__raw_readl(INT_IRQ_RAW), __raw_readl(INT_IRQ_ENB)); | ^~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c: In function 'print_hard_irq_inloop': drivers/platform/sprd/pm_debug_scx35.c:303:54: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 303 | gpio_irq[j]= __raw_readl(SPRD_GPIO_BASE + 0x100*i + REG_GPIO_MIS); In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:304:63: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 304 | gpio_irq[j+1]= __raw_readl(SPRD_GPIO_BASE + 0x100*i + 0x80 + REG_GPIO_MIS); In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:27: drivers/platform/sprd/pm_debug_scx35.c: In function 'print_debug_info': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:85:36: note: in expansion of macro 'SCI_ADDR' 85 | #define REG_PMU_APB_SLEEP_STATUS SCI_ADDR(REGS_PMU_APB_BASE, 0x00D4)/*SLEEP_STATUS*/ | ^~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:537:31: note: in expansion of macro 'REG_PMU_APB_SLEEP_STATUS' 537 | apb_slp_status = __raw_readl(REG_PMU_APB_SLEEP_STATUS); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/pm_debug_scx35.c:27: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:83:35: note: in expansion of macro 'SCI_ADDR' 83 | #define REG_PMU_APB_SLEEP_CTRL SCI_ADDR(REGS_PMU_APB_BASE, 0x00CC)/*SLEEP_CTRL*/ | ^~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:556:41: note: in expansion of macro 'REG_PMU_APB_SLEEP_CTRL' 556 | unsigned long sleep_ctrl = __raw_readl(REG_PMU_APB_SLEEP_CTRL); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/pm_debug_scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/pm_debug_scx35.c:556:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 556 | unsigned long sleep_ctrl = __raw_readl(REG_PMU_APB_SLEEP_CTRL); | ^~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:557:48: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 557 | printk("###---- REG_PMU_APB_SLEEP_CTRL : 0x%08x\n", sleep_ctrl); | ~~~^ ~~~~~~~~~~ | | | | | long unsigned int | unsigned int | %08lx drivers/platform/sprd/pm_debug_scx35.c: In function 'showAPDeepSleepStatus': drivers/platform/sprd/pm_debug_scx35.c:1370:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1370 | if(mcu_deep_sleep_en == 0) | ^~ drivers/platform/sprd/pm_debug_scx35.c:1372:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1372 | if( mcu_deep_sleep_en == 0 ) | ^~ drivers/platform/sprd/pm_debug_scx35.c: In function 'print_debug_info': drivers/platform/sprd/pm_debug_scx35.c:576:2: warning: 'mpll_cfg' is used uninitialized in this function [-Wuninitialized] 576 | printk("###---- REG_AON_APB_MPLL_CFG : 0x%08x\n", mpll_cfg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/pm_debug_scx35.c:577:2: warning: 'dpll_cfg' is used uninitialized in this function [-Wuninitialized] 577 | printk("###---- REG_AON_APB_DPLL_CFG : 0x%08x\n", dpll_cfg); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ LD net/packet/built-in.o CC net/rfkill/core.o CC drivers/platform/sprd/dump_lowpower_regs.o In file included from drivers/platform/sprd/dump_lowpower_regs.c:4: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dump_lowpower_regs.c:4: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dump_lowpower_regs.c:4: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC net/netfilter/nf_nat_proto_unknown.o In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dump_lowpower_regs.c:17: include/soc/sprd/__hardware-sc7731.h:118: warning: "SPRD_MISC_BASE" redefined 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/dump_lowpower_regs.c:4: include/soc/sprd/sci_glb_regs.h:52: note: this is the location of the previous definition 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | drivers/platform/sprd/dump_lowpower_regs.c:19:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 19 | extern void compare_pin_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:20:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 20 | extern void compare_aon_apb_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:21:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 21 | extern void compare_aon_apb_pll_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:22:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 22 | extern void compare_aon_ckg_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:23:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 23 | extern void compare_ap_ahb_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:24:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 24 | extern void compare_ap_ahb_ckg_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:25:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 25 | extern void compare_ap_apb_usb_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:26:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 26 | extern void compare_ap_apb_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:27:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 27 | extern void compare_pmic_glb_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c:28:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 28 | extern void compare_pmu_regs(); | ^~~~~~ drivers/platform/sprd/dump_lowpower_regs.c: In function 'compare_regs': drivers/platform/sprd/dump_lowpower_regs.c:66:59: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 66 | regVal = __raw_readl(SPRD_LPDDR2_BASE+(reg_array[i][0])-SPRD_LPDDR2_PHYS); In file included from drivers/platform/sprd/dump_lowpower_regs.c:3: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/dump_lowpower_regs.c:73:25: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 73 | regVal = __raw_readl(SPRD_DEV_P2V(reg_array[i][0])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from drivers/platform/sprd/dump_lowpower_regs.c:3: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/dump_lowpower_regs.c: In function 'dump_lowpower_reg': drivers/platform/sprd/dump_lowpower_regs.c:113:59: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 113 | regVal = __raw_readl(SPRD_LPDDR2_BASE+(reg_array[i][0])-SPRD_LPDDR2_PHYS); In file included from drivers/platform/sprd/dump_lowpower_regs.c:3: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/dump_lowpower_regs.c:118:25: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 118 | regVal = __raw_readl(SPRD_DEV_P2V(reg_array[i][0])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int In file included from drivers/platform/sprd/dump_lowpower_regs.c:3: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/dump_lowpower_regs.c: At top level: drivers/platform/sprd/dump_lowpower_regs.c:149:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] 149 | void dump_lowpower_regs() | ^~~~~~~~~~~~~~~~~~ CC drivers/platform/sprd/cpufreq-scx35.o In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpufreq-scx35.c:32: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpufreq-scx35.c:32: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpufreq-scx35.c:32: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpufreq-scx35.c:32: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpufreq-scx35.c:32: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/cpufreq-scx35.c:37: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c: In function 'sprd_cpufreq_target': drivers/platform/sprd/cpufreq-scx35.c:1013:16: warning: unused variable 'irq_flags' [-Wunused-variable] 1013 | unsigned long irq_flags; | ^~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1012:6: warning: unused variable 'cur_freq' [-Wunused-variable] 1012 | int cur_freq = 0; | ^~~~~~~~ In file included from drivers/platform/sprd/cpufreq-scx35.c:36: drivers/platform/sprd/cpufreq-scx35.c: In function 'sprd_freq_table_init': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:62:36: note: in expansion of macro 'SCI_ADDR' 62 | #define REG_AON_APB_AON_CHIP_ID SCI_ADDR(REGS_AON_APB_BASE, 0x00FC)/*AON_CHIP_ID*/ | ^~~~~~~~ include/soc/sprd/sci_glb_regs.h:167:29: note: in expansion of macro 'REG_AON_APB_AON_CHIP_ID' 167 | #define REG_AON_APB_CHIP_ID REG_AON_APB_AON_CHIP_ID | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1075:26: note: in expansion of macro 'REG_AON_APB_CHIP_ID' 1075 | #define AON_APB_CHIP_ID REG_AON_APB_CHIP_ID | ^~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1235:25: note: in expansion of macro 'AON_APB_CHIP_ID' 1235 | } else if (__raw_readl(AON_APB_CHIP_ID) == 0x96310000) { | ^~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/cpufreq-scx35.c:25: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:62:36: note: in expansion of macro 'SCI_ADDR' 62 | #define REG_AON_APB_AON_CHIP_ID SCI_ADDR(REGS_AON_APB_BASE, 0x00FC)/*AON_CHIP_ID*/ | ^~~~~~~~ include/soc/sprd/sci_glb_regs.h:167:29: note: in expansion of macro 'REG_AON_APB_AON_CHIP_ID' 167 | #define REG_AON_APB_CHIP_ID REG_AON_APB_AON_CHIP_ID | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1075:26: note: in expansion of macro 'REG_AON_APB_CHIP_ID' 1075 | #define AON_APB_CHIP_ID REG_AON_APB_CHIP_ID | ^~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1241:26: note: in expansion of macro 'AON_APB_CHIP_ID' 1241 | } else if ((__raw_readl(AON_APB_CHIP_ID) == 0x8730d000) || (__raw_readl(AON_APB_CHIP_ID) == | ^~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/cpufreq-scx35.c:25: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpufreq-scx35.c:36: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:62:36: note: in expansion of macro 'SCI_ADDR' 62 | #define REG_AON_APB_AON_CHIP_ID SCI_ADDR(REGS_AON_APB_BASE, 0x00FC)/*AON_CHIP_ID*/ | ^~~~~~~~ include/soc/sprd/sci_glb_regs.h:167:29: note: in expansion of macro 'REG_AON_APB_AON_CHIP_ID' 167 | #define REG_AON_APB_CHIP_ID REG_AON_APB_AON_CHIP_ID | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1075:26: note: in expansion of macro 'REG_AON_APB_CHIP_ID' 1075 | #define AON_APB_CHIP_ID REG_AON_APB_CHIP_ID | ^~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:1241:74: note: in expansion of macro 'AON_APB_CHIP_ID' 1241 | } else if ((__raw_readl(AON_APB_CHIP_ID) == 0x8730d000) || (__raw_readl(AON_APB_CHIP_ID) == | ^~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/cpufreq-scx35.c:25: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/platform/sprd/cpufreq-scx35.c:16: drivers/platform/sprd/cpufreq-scx35.c: In function 'sprd_cpufreq_init': include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 4 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/platform/sprd/cpufreq-scx35.c:1285:3: note: in expansion of macro 'pr_info' 1285 | pr_info("sprd_cpufreq_init:CPU_%d change frequency from %d to %d\n",policy->cpu, policy->cur, new_speed); | ^~~~~~~ drivers/platform/sprd/cpufreq-scx35.c: In function 'dvfs_prop_store': drivers/platform/sprd/cpufreq-scx35.c:1546:16: warning: unused variable 'irq_flags' [-Wunused-variable] 1546 | unsigned long irq_flags; | ^~~~~~~~~ In file included from drivers/platform/sprd/cpufreq-scx35.c:16: drivers/platform/sprd/cpufreq-scx35.c: In function 'cpufreq_max_axi_freq_store': include/linux/kernel.h:349:24: warning: ignoring return value of 'kstrtoul' declared with attribute 'warn_unused_result' [-Wunused-result] 349 | #define strict_strtoul kstrtoul drivers/platform/sprd/cpufreq-scx35.c:1361:2: note: in expansion of macro 'strict_strtoul' 1361 | strict_strtoul(buf, 16, (long unsigned int *)&value); | ^~~~~~~~~~~~~~ At top level: drivers/platform/sprd/cpufreq-scx35.c:732:13: warning: 'dump_clk_setting' defined but not used [-Wunused-function] 732 | static void dump_clk_setting(unsigned int freq) | ^~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:705:13: warning: 'dump_axi_cpu' defined but not used [-Wunused-function] 705 | static void dump_axi_cpu(unsigned int freq) | ^~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:448:34: warning: 'sc7720_cpufreq_table_data' defined but not used [-Wunused-variable] 448 | static struct cpufreq_table_data sc7720_cpufreq_table_data = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:431:34: warning: 'sc9630_1500m_cpufreq_table_data_new' defined but not used [-Wunused-variable] 431 | static struct cpufreq_table_data sc9630_1500m_cpufreq_table_data_new = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:414:34: warning: 'sc9630_cpufreq_table_data' defined but not used [-Wunused-variable] 414 | static struct cpufreq_table_data sc9630_cpufreq_table_data = { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpufreq-scx35.c:258:34: warning: 'sc8830t_cpufreq_table_data_es_1300' defined but not used [-Wunused-variable] 258 | static struct cpufreq_table_data sc8830t_cpufreq_table_data_es_1300 = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC net/netfilter/nf_nat_proto_common.o LD net/rfkill/rfkill.o LD net/rfkill/built-in.o CC net/sched/sch_generic.o CC drivers/platform/sprd/sprd_vibrator_2723.o In file included from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/sprd_vibrator_2723.c:21: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/sprd_vibrator_2723.c:21: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/sprd_vibrator_2723.c:21: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/sprd_vibrator_2723.c:21: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/sprd_vibrator_2723.c:21: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/sprd_vibrator_2723.c:32: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/platform/sprd/sprd_vibrator_2723.c: In function 'set_vibrator': drivers/platform/sprd/sprd_vibrator_2723.c:54:22: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] 54 | printk("v_reg:0x%08x\n",ANA_VIBRATOR_CTRL0); | ~~~^ | | | unsigned int | %08lx CC drivers/platform/sprd/sysdump.o CC net/netfilter/nf_nat_proto_udp.o In file included from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/sysdump.c:37: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/sysdump.c:37: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/sysdump.c:37: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | 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/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/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/mmzone.h:7, from include/linux/gfp.h:4, from include/linux/mm.h:8, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/cacheflush.h:13, from drivers/platform/sprd/sysdump.c:14: drivers/platform/sprd/sysdump.c: In function 'fill_sprd_sysdump_mem': include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH' 7 | #define KERN_EMERG KERN_SOH "0" /* system is unusable */ | ^~~~~~~~ include/linux/printk.h:210:9: note: in expansion of macro 'KERN_EMERG' 210 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/platform/sprd/sysdump.c:341:4: note: in expansion of macro 'pr_emerg' 341 | pr_emerg("sprd_dump_mem[%d].size is0x%lx\n", i, | ^~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH' 7 | #define KERN_EMERG KERN_SOH "0" /* system is unusable */ | ^~~~~~~~ include/linux/printk.h:210:9: note: in expansion of macro 'KERN_EMERG' 210 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/platform/sprd/sysdump.c:364:4: note: in expansion of macro 'pr_emerg' 364 | pr_emerg("sprd_dump_mem[%d].size is0x%lx\n", i, | ^~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/kern_levels.h:7:20: note: in expansion of macro 'KERN_SOH' 7 | #define KERN_EMERG KERN_SOH "0" /* system is unusable */ | ^~~~~~~~ include/linux/printk.h:210:9: note: in expansion of macro 'KERN_EMERG' 210 | printk(KERN_EMERG pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~ drivers/platform/sprd/sysdump.c:393:4: note: in expansion of macro 'pr_emerg' 393 | pr_emerg("sprd_dump_mem[%d].size is0x%lx\n", i, | ^~~~~~~~ drivers/platform/sprd/sysdump.c: In function 'sysdump_fill_crash_content': drivers/platform/sprd/sysdump.c:571:31: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] 571 | snprintf(info->time, 32, "%llu.%06llu", (unsigned long)t, nanosec_rem); | ~~~^ ~~~~~~~~~~~~~~~~ | | | | | long unsigned int | long long unsigned int | %lu CC drivers/platform/sprd/dumpinfo.o CC net/netfilter/nf_nat_proto_tcp.o CC net/sched/sch_mq.o In file included from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/dumpinfo.c:78: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/dumpinfo.c:78: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from include/soc/sprd/sysdump32.h:5, from drivers/platform/sprd/sysdump.h:34, from drivers/platform/sprd/dumpinfo.c:78: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/platform/sprd/dumpinfo.c: In function 'kernel_info_put': drivers/platform/sprd/dumpinfo.c:145:18: warning: unused variable 'nanosec_rem' [-Wunused-variable] 145 | unsigned long nanosec_rem; | ^~~~~~~~~~~ drivers/platform/sprd/dumpinfo.c:144:23: warning: unused variable 't' [-Wunused-variable] 144 | unsigned long long t; | ^ drivers/platform/sprd/dumpinfo.c: In function 'dump_kernel_crash': drivers/platform/sprd/dumpinfo.c:232:22: warning: unused variable 'tsk' [-Wunused-variable] 232 | struct task_struct *tsk = current; | ^~~ drivers/platform/sprd/dumpinfo.c:231:7: warning: unused variable 'buf' [-Wunused-variable] 231 | char buf[64]; | ^~~ drivers/platform/sprd/dumpinfo.c:230:16: warning: unused variable 'flags' [-Wunused-variable] 230 | unsigned long flags; | ^~~~~ drivers/platform/sprd/dumpinfo.c: In function 'dumpinfo_write': drivers/platform/sprd/dumpinfo.c:320:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 320 | char *tmp = buf; | ^~~ In file included from include/linux/kernel.h:13, from drivers/platform/sprd/dumpinfo.c:49: include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 4 | #define KERN_SOH "\001" /* ASCII Start Of Header */ | ^~~~~~ include/linux/printk.h:206:21: note: in definition of macro 'pr_fmt' 206 | #define pr_fmt(fmt) fmt | ^~~ include/linux/printk.h:240:2: note: in expansion of macro 'dynamic_pr_debug' 240 | dynamic_pr_debug(fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~ drivers/platform/sprd/dumpinfo.c:333:2: note: in expansion of macro 'pr_debug' 333 | pr_debug(KERN_INFO "written %d bytes(s) from %d\n", count, p); | ^~~~~~~~ include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH' 13 | #define KERN_INFO KERN_SOH "6" /* informational */ | ^~~~~~~~ drivers/platform/sprd/dumpinfo.c:333:11: note: in expansion of macro 'KERN_INFO' 333 | pr_debug(KERN_INFO "written %d bytes(s) from %d\n", count, p); | ^~~~~~~~~ drivers/platform/sprd/dumpinfo.c:322:23: warning: unused variable 'dev' [-Wunused-variable] 322 | struct dumpinfo_dev *dev = filp->private_data; | ^~~ drivers/platform/sprd/dumpinfo.c: In function 'dumpinfodev_init': drivers/platform/sprd/dumpinfo.c:352:6: warning: unused variable 'i' [-Wunused-variable] 352 | int i; | ^ At top level: drivers/platform/sprd/dumpinfo.c:95:12: warning: 's_dump_length' defined but not used [-Wunused-variable] 95 | static int s_dump_length = 16 * 6; | ^~~~~~~~~~~~~ drivers/platform/sprd/dumpinfo.c: In function 'add_kernel_log': drivers/platform/sprd/dumpinfo.c:208:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=] 208 | } | ^ CC drivers/platform/sprd/cpuidle-scx35.o CC net/netfilter/nf_nat_helper.o In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: drivers/platform/sprd/cpuidle-scx35.c: In function 'sc_cpuidle_debug': include/soc/sprd/__hardware-sc7731.h:29:22: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 29 | #define SCI_IOMAP(x) (SCI_IOMAP_BASE + (x)) include/soc/sprd/__hardware-sc7731.h:98:26: note: in expansion of macro 'SCI_IOMAP' 98 | #define SPRD_LPDDR2_BASE SCI_IOMAP(0x160000) | ^~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:160:27: note: in expansion of macro 'SPRD_LPDDR2_BASE' 160 | __func__, __raw_readl(SPRD_LPDDR2_BASE + 0x03fc) ); | ^~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: drivers/platform/sprd/cpuidle-scx35.c: In function 'sc_cpuidle_light_sleep_en': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:47:33: note: in expansion of macro 'SCI_ADDR' 47 | #define REG_AP_AHB_MCU_PAUSE SCI_ADDR(REGS_AP_AHB_BASE, 0x3004)/*MCU_PAUSE*/ | ^~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:213:39: note: in expansion of macro 'REG_AP_AHB_MCU_PAUSE' 213 | gREG_AP_AHB_MCU_PAUSE = __raw_readl(REG_AP_AHB_MCU_PAUSE); | ^~~~~~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/cpuidle-scx35.c: In function 'sc_fill_cstate': drivers/platform/sprd/cpuidle-scx35.c:384:30: warning: unused variable 'state_usage' [-Wunused-variable] 384 | struct cpuidle_state_usage *state_usage = &dev->states_usage[idx]; | ^~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c: At top level: drivers/platform/sprd/cpuidle-scx35.c:474:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 474 | extern void showAPLightSleepStatus(); | ^~~~~~ drivers/platform/sprd/cpuidle-scx35.c:479:8: warning: type defaults to 'int' in declaration of 'glowpower_debug_count' [-Wimplicit-int] 479 | extern glowpower_debug_count; | ^~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:486:5: warning: function declaration isn't a prototype [-Wstrict-prototypes] 486 | int cpuidle_debug_get(){ | ^~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:490:6: warning: function declaration isn't a prototype [-Wstrict-prototypes] 490 | void cpuidle_debug_reset(){ | ^~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:546:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] 546 | extern void showAPLightSleepStatus(); | ^~~~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: drivers/platform/sprd/cpuidle-scx35.c: In function 'sc_debug_signal_configure': include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:634:20: note: in expansion of macro 'SCI_ADDR' 634 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0230)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:637:20: note: in expansion of macro 'SCI_ADDR' 637 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0230)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC net/sched/sch_api.o In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:640:20: note: in expansion of macro 'SCI_ADDR' 640 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0234)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:643:20: note: in expansion of macro 'SCI_ADDR' 643 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0234)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:645:20: note: in expansion of macro 'SCI_ADDR' 645 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0228)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:648:20: note: in expansion of macro 'SCI_ADDR' 648 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0228)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:650:20: note: in expansion of macro 'SCI_ADDR' 650 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0224)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:653:20: note: in expansion of macro 'SCI_ADDR' 653 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0224)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:655:20: note: in expansion of macro 'SCI_ADDR' 655 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x01DC)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:658:20: note: in expansion of macro 'SCI_ADDR' 658 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x01DC)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:661:20: note: in expansion of macro 'SCI_ADDR' 661 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0128)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:664:20: note: in expansion of macro 'SCI_ADDR' 664 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0128)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:666:20: note: in expansion of macro 'SCI_ADDR' 666 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x012C)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:669:20: note: in expansion of macro 'SCI_ADDR' 669 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x012C)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:671:20: note: in expansion of macro 'SCI_ADDR' 671 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0130)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:674:20: note: in expansion of macro 'SCI_ADDR' 674 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0130)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:120:37: note: in expansion of macro 'SCI_ADDR' 120 | #define REG_PMU_APB_PMU_DEBUG_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0160)/*PMU_DEBUG_CFG*/ | ^~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:677:20: note: in expansion of macro 'REG_PMU_APB_PMU_DEBUG_CFG' 677 | val = __raw_readl(REG_PMU_APB_PMU_DEBUG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:120:37: note: in expansion of macro 'SCI_ADDR' 120 | #define REG_PMU_APB_PMU_DEBUG_CFG SCI_ADDR(REGS_PMU_APB_BASE, 0x0160)/*PMU_DEBUG_CFG*/ | ^~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:678:47: note: in expansion of macro 'REG_PMU_APB_PMU_DEBUG_CFG' 678 | __raw_writel((val&0xfffffff0)|(debug_bus<<0),REG_PMU_APB_PMU_DEBUG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:105:37: note: in expansion of macro 'SCI_ADDR' 105 | #define REG_AON_APB_AON_DEBUG_CFG SCI_ADDR(REGS_AON_APB_BASE, 0x30A8)/*AON_DEBUG_CFG*/ | ^~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:681:20: note: in expansion of macro 'REG_AON_APB_AON_DEBUG_CFG' 681 | val = __raw_readl(REG_AON_APB_AON_DEBUG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_aon_apb.h:105:37: note: in expansion of macro 'SCI_ADDR' 105 | #define REG_AON_APB_AON_DEBUG_CFG SCI_ADDR(REGS_AON_APB_BASE, 0x30A8)/*AON_DEBUG_CFG*/ | ^~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:682:41: note: in expansion of macro 'REG_AON_APB_AON_DEBUG_CFG' 682 | __raw_writel((val&0xfffffff0)|(0x1<<0),REG_AON_APB_AON_DEBUG_CFG); | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:684:20: note: in expansion of macro 'SCI_ADDR' 684 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x0)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:687:20: note: in expansion of macro 'SCI_ADDR' 687 | __raw_writel(data,SCI_ADDR(SPRD_PIN_BASE, 0x0)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:690:20: note: in expansion of macro 'SCI_ADDR' 690 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x10)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:691:42: note: in expansion of macro 'SCI_ADDR' 691 | __raw_writel((val&0xfffeffff)|(0x1<<16),SCI_ADDR(SPRD_PIN_BASE, 0x10)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:694:20: note: in expansion of macro 'SCI_ADDR' 694 | val = __raw_readl(SCI_ADDR(SPRD_PIN_BASE, 0x1c)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int drivers/platform/sprd/cpuidle-scx35.c:695:43: note: in expansion of macro 'SCI_ADDR' 695 | __raw_writel( (val&0xfffeffff)|(0x0<<16),SCI_ADDR(SPRD_PIN_BASE, 0x1c)); | ^~~~~~~~ In file included from include/linux/clocksource.h:19, from include/linux/clockchips.h:27, from drivers/platform/sprd/cpuidle-scx35.c:18: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ At top level: drivers/platform/sprd/cpuidle-scx35.c:241:13: warning: 'idle_into_deep' defined but not used [-Wunused-function] 241 | static void idle_into_deep(void) | ^~~~~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:142:13: warning: 'sc_cpuidle_debug' defined but not used [-Wunused-function] 142 | static void sc_cpuidle_debug(void) | ^~~~~~~~~~~~~~~~ drivers/platform/sprd/cpuidle-scx35.c:115:13: warning: 'set_cpu_pd' defined but not used [-Wunused-function] 115 | static void set_cpu_pd(void *data) | ^~~~~~~~~~ In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/cpuidle-scx35.c:22: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/cpuidle-scx35.c:23: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/irq.o In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/irq.c:27: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/irq.c:27: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/irq.c:29: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/irq.c:27: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/irq.c:24: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/irq.c:27: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/irq.c:27: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | In file included from drivers/platform/sprd/irq.c:29: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ CC drivers/platform/sprd/reserve.o In file included from drivers/platform/sprd/reserve.c:18: include/soc/sprd/board.h:17:46: warning: "CONFIG_MACH_SPWHALE_5MODEA" is not defined, evaluates to 0 [-Wundef] 17 | #if defined (CONFIG_MACH_SPWHALE_5MODEB) || (CONFIG_MACH_SPWHALE_5MODEA) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/platform/sprd/reserve.c:18: include/soc/sprd/board.h:456: warning: "SPRD_ION_MM_SIZE" redefined 456 | #define SPRD_ION_MM_SIZE (0 * SZ_1M) | In file included from include/soc/sprd/board.h:118, from drivers/platform/sprd/reserve.c:18: include/soc/sprd/__board-sp7731ceb.h:112: note: this is the location of the previous definition 112 | #define SPRD_ION_MM_SIZE (52 * SZ_1M) | drivers/platform/sprd/reserve.c: In function '__iomem_reserve_memblock': drivers/platform/sprd/reserve.c:29:6: warning: unused variable 'ret' [-Wunused-variable] 29 | int ret; | ^~~ drivers/platform/sprd/reserve.c: In function 'sci_reserve': drivers/platform/sprd/reserve.c:150:6: warning: unused variable 'ret' [-Wunused-variable] 150 | int ret; | ^~~ At top level: drivers/platform/sprd/reserve.c:62:19: warning: '__fbmem_reserve_memblock' defined but not used [-Wunused-function] 62 | static int __init __fbmem_reserve_memblock(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/platform/sprd/reserve.c:27:19: warning: '__iomem_reserve_memblock' defined but not used [-Wunused-function] 27 | static int __init __iomem_reserve_memblock(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ CC net/netfilter/nfnetlink_queue_core.o CC drivers/platform/sprd/common.o CC drivers/platform/sprd/clock-sc8830_dt.o CC drivers/platform/sprd/io-sc8830.o CC net/sched/sch_blackhole.o In file included from drivers/platform/sprd/io-sc8830.c:23: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ In file included from include/uapi/linux/stddef.h:1, from include/linux/stddef.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/list.h:4, from include/linux/module.h:9, from net/netfilter/nfnetlink_queue_core.c:17: net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_zcopy': net/netfilter/nfnetlink_queue_core.c:264:32: warning: passing argument 1 of 'skb_orphan_frags' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 264 | if (unlikely(skb_orphan_frags(from, GFP_ATOMIC))) { | ^~~~ include/linux/compiler.h:153:42: note: in definition of macro 'unlikely' 153 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from net/netfilter/nfnetlink_queue_core.c:18: include/linux/skbuff.h:1922:52: note: expected 'struct sk_buff *' but argument is of type 'const struct sk_buff *' 1922 | static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) | ~~~~~~~~~~~~~~~~^~~ net/netfilter/nfnetlink_queue_core.c:265:16: warning: passing argument 1 of 'skb_tx_error' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | skb_tx_error(from); | ^~~~ In file included from net/netfilter/nfnetlink_queue_core.c:18: include/linux/skbuff.h:622:42: note: expected 'struct sk_buff *' but argument is of type 'const struct sk_buff *' 622 | extern void skb_tx_error(struct sk_buff *skb); | ~~~~~~~~~~~~~~~~^~~ 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 drivers/platform/sprd/dmc_freq_28nm.o In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/platform/sprd/dmc_freq_28nm.c:509:19: warning: 'emc_early_suspend_init' defined but not used [-Wunused-function] 509 | static int __init emc_early_suspend_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ CC net/sched/cls_api.o CC net/netfilter/nfnetlink.o In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_freq_28nm.c:17: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dmc_freq_28nm.c:20: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/dmc_dfs_test.o In file included from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_dfs_test.c:15: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_dfs_test.c:15: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_dfs_test.c:15: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_dfs_test.c:15: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/dmc_dfs_test.c:15: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/dmc_dfs_test.c:18: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | CC drivers/platform/sprd/platsmp.o In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/platsmp.c:32: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/platsmp.c:32: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/platsmp.c:32: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/platsmp.c:32: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/platsmp.c:32: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | drivers/platform/sprd/platsmp.c: In function 'poweron_cpus': drivers/platform/sprd/platsmp.c:94:54: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 94 | val = (BIT_PD_CA7_C3_AUTO_SHUTDOWN_EN | __raw_readl(poweron)) &~(BIT_PD_CA7_C3_FORCE_SHUTDOWN); | ^~~~~~~ | | | u32 {aka unsigned int} In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/platsmp.c:99:21: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 99 | while((__raw_readl(poweron)&BIT_PD_CA7_C3_FORCE_SHUTDOWN) || | ^~~~~~~ | | | u32 {aka unsigned int} In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_ap_ahb.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_AP_AHB_CA7_RST_SET SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)/*CA7_RST_SET*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:100:17: note: in expansion of macro 'REG_AP_AHB_CA7_RST_SET' 100 | !(__raw_readl(REG_AP_AHB_CA7_RST_SET)&(1 << cpu)) ){ | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/byteorder/little_endian.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/uapi/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/delay.h:10, from drivers/platform/sprd/platsmp.c:19: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/uapi/linux/byteorder/little_endian.h:32:51: note: in definition of macro '__cpu_to_le32' 32 | #define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) | ^ /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:395:36: note: in expansion of macro 'writel_relaxed' 395 | #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) | ^~~~~~~~~~~~~~ drivers/platform/sprd/platsmp.c:102:3: note: in expansion of macro 'writel' 102 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) | (1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~ include/soc/sprd/./chip_x20/__regs_ap_ahb.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_AP_AHB_CA7_RST_SET SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)/*CA7_RST_SET*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:102:23: note: in expansion of macro 'REG_AP_AHB_CA7_RST_SET' 102 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) | (1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:102:3: note: in expansion of macro 'writel' 102 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) | (1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~ include/soc/sprd/./chip_x20/__regs_ap_ahb.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_AP_AHB_CA7_RST_SET SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)/*CA7_RST_SET*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:102:62: note: in expansion of macro 'REG_AP_AHB_CA7_RST_SET' 102 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) | (1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/platsmp.c:103:55: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 103 | val = (BIT_PD_CA7_C3_AUTO_SHUTDOWN_EN | __raw_readl(poweron)) &~(BIT_PD_CA7_C3_FORCE_SHUTDOWN); | ^~~~~~~ | | | u32 {aka unsigned int} In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: drivers/platform/sprd/platsmp.c:104:14: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 104 | writel(val,poweron); | ^~~~~~~ | | | u32 {aka unsigned int} /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:104:3: note: in expansion of macro 'writel' 104 | writel(val,poweron); | ^~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/byteorder/little_endian.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/uapi/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/delay.h:10, from drivers/platform/sprd/platsmp.c:19: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/uapi/linux/byteorder/little_endian.h:32:51: note: in definition of macro '__cpu_to_le32' 32 | #define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) | ^ /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:395:36: note: in expansion of macro 'writel_relaxed' 395 | #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) | ^~~~~~~~~~~~~~ drivers/platform/sprd/platsmp.c:108:2: note: in expansion of macro 'writel' 108 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) & ~(1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~ include/soc/sprd/./chip_x20/__regs_ap_ahb.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_AP_AHB_CA7_RST_SET SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)/*CA7_RST_SET*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:108:22: note: in expansion of macro 'REG_AP_AHB_CA7_RST_SET' 108 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) & ~(1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:108:2: note: in expansion of macro 'writel' 108 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) & ~(1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~ include/soc/sprd/./chip_x20/__regs_ap_ahb.h:34:35: note: in expansion of macro 'SCI_ADDR' 34 | #define REG_AP_AHB_CA7_RST_SET SCI_ADDR(REGS_AP_AHB_BASE, 0x0008)/*CA7_RST_SET*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:108:62: note: in expansion of macro 'REG_AP_AHB_CA7_RST_SET' 108 | writel((__raw_readl(REG_AP_AHB_CA7_RST_SET) & ~(1 << cpu)), REG_AP_AHB_CA7_RST_SET); | ^~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/platform/sprd/platsmp.c: In function 'powerdown_cpus': drivers/platform/sprd/platsmp.c:124:52: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 124 | val = (BIT_PD_CA7_C3_FORCE_SHUTDOWN | __raw_readl(poweron)) &~(BIT_PD_CA7_C3_AUTO_SHUTDOWN_EN); | ^~~~~~~ | | | u32 {aka unsigned int} In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: drivers/platform/sprd/platsmp.c:125:14: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 125 | writel(val, poweron); | ^~~~~~~ | | | u32 {aka unsigned int} /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:125:2: note: in expansion of macro 'writel' 125 | writel(val, poweron); | ^~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'u32' {aka 'unsigned int'} 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from drivers/platform/sprd/platsmp.c:33: include/soc/sprd/sci_glb_regs.h:135:2: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 135 | (phys_addr_t)((phys_addr_t)(x) + (phys_addr_t)(y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int include/soc/sprd/./chip_x20/__regs_pmu_apb.h:79:39: note: in expansion of macro 'SCI_ADDR' 79 | #define REG_PMU_APB_PWR_STATUS0_DBG SCI_ADDR(REGS_PMU_APB_BASE, 0x00BC)/*PWR_STATUS0_DBG*/ | ^~~~~~~~ drivers/platform/sprd/platsmp.c:130:21: note: in expansion of macro 'REG_PMU_APB_PWR_STATUS0_DBG' 130 | if (((__raw_readl(REG_PMU_APB_PWR_STATUS0_DBG) >> (4 * (cpu_logical_map(cpu) + 1))) & 0x0f) == 0x07) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: drivers/platform/sprd/platsmp.c: In function 'boot_secondary_cpus': drivers/platform/sprd/platsmp.c:148:31: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 148 | writel(paddr,(CPU_JUMP_VADDR + (cpu_id << 2))); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ | | | long unsigned int /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:148:2: note: in expansion of macro 'writel' 148 | writel(paddr,(CPU_JUMP_VADDR + (cpu_id << 2))); | ^~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/byteorder/little_endian.h:4, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/uapi/asm/byteorder.h:21, from include/asm-generic/bitops/le.h:5, from /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/bitops.h:308, from include/linux/bitops.h:30, from include/linux/kernel.h:10, from include/linux/delay.h:10, from drivers/platform/sprd/platsmp.c:19: include/soc/sprd/__hardware-sc7731.h:114:42: warning: passing argument 1 of '__raw_readl' makes pointer from integer without a cast [-Wint-conversion] 114 | #define HOLDING_PEN_VADDR (SPRD_AHB_BASE + 0x14) | ~~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int include/uapi/linux/byteorder/little_endian.h:32:51: note: in definition of macro '__cpu_to_le32' 32 | #define __cpu_to_le32(x) ((__force __le32)(__u32)(x)) | ^ /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:395:36: note: in expansion of macro 'writel_relaxed' 395 | #define writel(v,c) ({ __iowmb(); writel_relaxed(v,c); }) | ^~~~~~~~~~~~~~ drivers/platform/sprd/platsmp.c:149:2: note: in expansion of macro 'writel' 149 | writel(readl(HOLDING_PEN_VADDR) | (1 << cpu_id),HOLDING_PEN_VADDR); | ^~~~~~ include/linux/byteorder/generic.h:88:21: note: in expansion of macro '__le32_to_cpu' 88 | #define le32_to_cpu __le32_to_cpu | ^~~~~~~~~~~~~ /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:391:32: note: in expansion of macro 'readl_relaxed' 391 | #define readl(c) ({ u32 __v = readl_relaxed(c); __iormb(); __v; }) | ^~~~~~~~~~~~~ drivers/platform/sprd/platsmp.c:149:9: note: in expansion of macro 'readl' 149 | writel(readl(HOLDING_PEN_VADDR) | (1 << cpu_id),HOLDING_PEN_VADDR); | ^~~~~ drivers/platform/sprd/platsmp.c:149:15: note: in expansion of macro 'HOLDING_PEN_VADDR' 149 | writel(readl(HOLDING_PEN_VADDR) | (1 << cpu_id),HOLDING_PEN_VADDR); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:191:60: note: expected 'const volatile void *' but argument is of type 'long unsigned int' 191 | static inline u32 __raw_readl(const volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: include/soc/sprd/__hardware-sc7731.h:114:42: warning: passing argument 2 of '__raw_writel' makes pointer from integer without a cast [-Wint-conversion] 114 | #define HOLDING_PEN_VADDR (SPRD_AHB_BASE + 0x14) | ~~~~~~~~~~~~~~~^~~~~~~ | | | long unsigned int /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:387:71: note: in definition of macro 'writel_relaxed' 387 | #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) | ^ drivers/platform/sprd/platsmp.c:149:2: note: in expansion of macro 'writel' 149 | writel(readl(HOLDING_PEN_VADDR) | (1 << cpu_id),HOLDING_PEN_VADDR); | ^~~~~~ drivers/platform/sprd/platsmp.c:149:50: note: in expansion of macro 'HOLDING_PEN_VADDR' 149 | writel(readl(HOLDING_PEN_VADDR) | (1 << cpu_id),HOLDING_PEN_VADDR); | ^~~~~~~~~~~~~~~~~ In file included from include/linux/io.h:22, from drivers/platform/sprd/platsmp.c:23: /home/pmos/build/src/kernel_7730-b30390f1645dcf1ebd08148d7d4086a544c56435/arch/arm/include/asm/io.h:171:65: note: expected 'volatile void *' but argument is of type 'long unsigned int' 171 | static inline void __raw_writel(u32 val, volatile void __iomem *addr) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~ CC net/sched/act_api.o LD net/netfilter/nfnetlink_queue.o CC net/netfilter/nfnetlink_log.o AS drivers/platform/sprd/headsmp.o CC drivers/platform/sprd/hotplug.o In file included from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/sci_glb_regs.h:49: warning: "REGS_GLB_BASE" redefined 49 | #define REGS_GLB_BASE SPRD_AONAPB_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/hotplug.c:20: include/soc/sprd/__hardware-sc7731.h:151: note: this is the location of the previous definition 151 | #define REGS_GLB_BASE ( SPRD_GREG_BASE ) | In file included from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/sci_glb_regs.h:51: warning: "REGS_AHB_BASE" redefined 51 | #define REGS_AHB_BASE (SPRD_AHB_BASE + 0x200) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/hotplug.c:20: include/soc/sprd/__hardware-sc7731.h:140: note: this is the location of the previous definition 140 | #define REGS_AHB_BASE ( SPRD_AHB_BASE + 0x200) | In file included from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/sci_glb_regs.h:52: warning: "SPRD_MISC_BASE" redefined 52 | #define SPRD_MISC_BASE SPRD_ADI_BASE | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/hotplug.c:20: include/soc/sprd/__hardware-sc7731.h:118: note: this is the location of the previous definition 118 | #define SPRD_MISC_BASE ((unsigned int)SPRD_ADI_BASE) | In file included from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/sci_glb_regs.h:95: warning: "ANA_REGS_GLB_BASE" redefined 95 | #define ANA_REGS_GLB_BASE (REGS_ADISLAVE_BASE + 0x800) | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/hotplug.c:20: include/soc/sprd/__hardware-sc7731.h:152: note: this is the location of the previous definition 152 | #define ANA_REGS_GLB_BASE ( ANA_CTL_GLB_BASE ) | In file included from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/sci_glb_regs.h:106:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 106 | static inline unsigned long SPRD_DEV_P2V(paddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:119:29: warning: function declaration isn't a prototype [-Wstrict-prototypes] 119 | static inline unsigned long SPRD_DEV_V2P(vaddr) | ^~~~~~~~~~~~ include/soc/sprd/sci_glb_regs.h:134: warning: "SCI_ADDR" redefined 134 | #define SCI_ADDR(x, y) \ | In file included from include/soc/sprd/hardware.h:34, from drivers/platform/sprd/hotplug.c:20: include/soc/sprd/__hardware-sc7731.h:36: note: this is the location of the previous definition 36 | #define SCI_ADDR(_b_, _o_) ( (u32)(_b_) + (_o_) ) | In file included from include/soc/sprd/sci_glb_regs.h:162, from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/./chip_x20/__regs_pmu_apb.h:417: warning: "BIT_GPU_SOFT_RST" redefined 417 | #define BIT_GPU_SOFT_RST ( BIT(4) ) | In file included from include/soc/sprd/sci_glb_regs.h:160, from drivers/platform/sprd/hotplug.c:25: include/soc/sprd/./chip_x20/__regs_gpu_apb_rf.h:38: note: this is the location of the previous definition 38 | #define BIT_GPU_SOFT_RST ( BIT(0) ) | LD drivers/platform/sprd/built-in.o LD drivers/platform/built-in.o CC drivers/power/power_supply_core.o CC drivers/power/power_supply_sysfs.o CC net/sched/sch_fifo.o LD net/netfilter/nf_conntrack.o CC net/netfilter/nf_conntrack_proto_dccp.o CC drivers/power/sprd_2713_power.o In file included from drivers/power/sprd_2713_power.c:39: include/soc/sprd/arch_misc.h:185:8: warning: extra tokens at end of #endif directive [-Wendif-labels] 185 | #endif __SPRD_ARCH_MISC_H | ^~~~~~~~~~~~~~~~~~ drivers/power/sprd_2713_power.c: In function 'sprdbat_chgcurrent_adjust': drivers/power/sprd_2713_power.c:150:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 150 | int i =1,delta = 0; | ^~~ In file included from include/linux/printk.h:6, from include/linux/kernel.h:13, from drivers/power/sprd_2713_power.c:14: drivers/power/sprd_2713_power.c: In function 'sprdbat_store_caliberate': 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/power/sprd_2713_power.c:450:2: note: in expansion of macro 'pr_info' 450 | pr_info("battery calibrate value %lu %lu\n", off, set_value); | ^~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type '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/power/sprd_2713_power.c:48:39: note: in expansion of macro 'pr_info' 48 | #define SPRDBAT_DEBUG(format, arg...) pr_info("sprdbat: " format, ## arg) | ^~~~~~~ drivers/power/sprd_2713_power.c:514:4: note: in expansion of macro 'SPRDBAT_DEBUG' 514 | SPRDBAT_DEBUG("chg_set_cur_state state>0 =>%d ,adjust_chg_flag=%d\n", | ^~~~~~~~~~~~~ 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 */ | ^~~~~~~~ include/linux/printk.h:223:9: note: in expansion of macro 'KERN_INFO' 223 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~ drivers/power/sprd_2713_power.c:48:39: note: in expansion of macro 'pr_info' 48 | #define SPRDBAT_DEBUG(format, arg...) pr_info("sprdbat: " format, ## arg) | ^~~~~~~ drivers/power/sprd_2713_power.c:514:4: note: in expansion of macro 'SPRDBAT_DEBUG' 514 | SPRDBAT_DEBUG("chg_set_cur_state state>0 =>%d ,adjust_chg_flag=%d\n", | ^~~~~~~~~~~~~ include/linux/kern_levels.h:4:18: warning: format '%d' expects argument of type '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/power/sprd_2713_power.c:48:39: note: in expansion of macro 'pr_info' 48 | #define SPRDBAT_DEBUG(format, arg...) pr_info("sprdbat: " format, ## arg) | ^~~~~~~ drivers/power/sprd_2713_power.c:518:4: note: in expansion of macro 'SPRDBAT_DEBUG' 518 | SPRDBAT_DEBUG("chg_set_cur_state state==0 =%d \n",set_value); | ^~~~~~~~~~~~~ drivers/power/sprd_2713_power.c: In function 'print_pdata': drivers/power/sprd_2713_power.c:2048:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 2048 | #define PDATA_LOG(format, arg...) printk("sprdbat pdata: " format, ## arg) | ^~~~~~~~~~~~~~~~~ ...... 2093 | PDATA_LOG("chg_reg_base:%d\n", pdata->chg_reg_base); | ~~~~~~~~~~~~~~~~~~~ | | | long unsigned int drivers/power/sprd_2713_power.c:2093:2: note: in expansion of macro 'PDATA_LOG' 2093 | PDATA_LOG("chg_reg_base:%d\n", pdata->chg_reg_base); | ^~~~~~~~~ drivers/power/sprd_2713_power.c:2048:42: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] 2048 | #define PDATA_LOG(format, arg...) printk("sprdbat pdata: " format, ## arg) | ^~~~~~~~~~~~~~~~~ ...... 2094 | PDATA_LOG("fgu_reg_base:%d\n", pdata->fgu_reg_base); | ~~~~~~~~~~~~~~~~~~~ | | | long unsigned int drivers/power/sprd_2713_power.c:2094:2: note: in expansion of macro 'PDATA_LOG' 2094 | PDATA_LOG("fgu_reg_base:%d\n", pdata->fgu_reg_base); | ^~~~~~~~~ drivers/power/sprd_2713_power.c: At top level: drivers/power/sprd_2713_power.c:2336:49: warning: 'struct usb_hotplug_callback' declared inside parameter list will