linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Naresh Kamboju <naresh.kamboju@linaro.org>
To: open list <linux-kernel@vger.kernel.org>,
	 Linux-Next Mailing List <linux-next@vger.kernel.org>,
	regressions@lists.linux.dev,  lkft-triage@lists.linaro.org,
	linux-mm <linux-mm@kvack.org>
Cc: Rolf Eike Beer <eb@emlix.com>, Andrew Morton <akpm@linux-foundation.org>
Subject: [next] mm/pagewalk.c:318:12: error: variable 'err' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
Date: Tue, 23 Aug 2022 15:44:06 +0530	[thread overview]
Message-ID: <CA+G9fYsm_2WZncWJbwkJkbnOJFvnC76jQdUWkHhyih4GRKjMGg@mail.gmail.com> (raw)

x86_64 defconfig builds failed on Linux next-20220823 tag with clang toolchain.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Regressions found on x86_64:
   - build-clang-13-x86_64_defconfig
   - build-clang-14-lkftconfig-kcsan
   - build-clang-nightly-lkftconfig
   - build-clang-11-x86_64_defconfig
   - build-clang-14-lkftconfig
   - build-clang-nightly-x86_64_defconfig
   - build-clang-14-x86_64_defconfig
   - build-clang-13-lkftconfig
   - build-clang-12-x86_64_defconfig
   - build-clang-12-lkftconfig

Regressions found on i386:
   - build-clang-11-defconfig
   - build-clang-nightly-lkftconfig
   - build-clang-nightly-defconfig
   - build-clang-14-lkftconfig
   - build-clang-14-defconfig
   - build-clang-12-defconfig
   - build-clang-13-lkftconfig
   - build-clang-13-defconfig
   - build-clang-12-lkftconfig

make --silent --keep-going --jobs=8 O=/home/tux   -
build-.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 ARCH=x86_64
CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
clang' olddefconfig
.config:5286:warning: override: UNWINDER_FRAME_POINTER changes choice state
make --silent --keep-going --jobs=8 O=/home/tux   -
build-.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 ARCH=x86_64
CROSS_COMPILE=x86_64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
clang'

mm/pagewalk.c:318:12: error: variable 'err' is used uninitialized
whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
                else if (ops->pte_hole)
                         ^~~~~~~~~~~~~
mm/pagewalk.c:321:7: note: uninitialized use occurs here
                if (err)
                    ^~~
mm/pagewalk.c:318:8: note: remove the 'if' if its condition is always true
                else if (ops->pte_hole)
                     ^~~~~~~~~~~~~~~~~~
mm/pagewalk.c:311:10: note: initialize the variable 'err' to silence
this warning
                int err;
                       ^
                        = 0
1 error generated.

metadata:
Build: https://builds.tuxbuild.com/2DkF28RfJ2VeMSGwDNhsXXu3dbo/
config: https://builds.tuxbuild.com/2DkF28RfJ2VeMSGwDNhsXXu3dbo/config
git_describe: next-20220823
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: 05477f3653b82d8b3bcf39d2937d9893124976db
git_short_log: 05477f3653b8 ("Add linux-next specific files for 20220823")
toolchain: clang

Steps to reproduce:
------------------------
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
# Original tuxmake command with fragments listed below.

# tuxmake --runtime podman --target-arch x86_64 --toolchain clang-14
--kconfig x86_64_defconfig LLVM=1 LLVM_IAS=1

--
Linaro LKFT
https://lkft.linaro.org


                 reply	other threads:[~2022-08-23 10:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+G9fYsm_2WZncWJbwkJkbnOJFvnC76jQdUWkHhyih4GRKjMGg@mail.gmail.com \
    --to=naresh.kamboju@linaro.org \
    --cc=akpm@linux-foundation.org \
    --cc=eb@emlix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-next@vger.kernel.org \
    --cc=lkft-triage@lists.linaro.org \
    --cc=regressions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox