Content-Type: multipart/mixed; boundary="===============1342333402070109692==" MIME-Version: 1.0 From: Lakshmi Ramasubramanian To: kbuild-all@lists.01.org Subject: Re: [kbuild] [robh:for-next 7/57] arch/powerpc/kexec/elf_64.c:153 elf64_load() error: uninitialized symbol 'fdt'. Date: Thu, 15 Apr 2021 10:05:55 -0700 Message-ID: <3e1b1c49-26ee-887c-b86a-6a0e9c5b0638@linux.microsoft.com> In-Reply-To: <4d9c3a87-b6ff-660f-c506-7f291253e70b@linux.microsoft.com> List-Id: --===============1342333402070109692== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 4/9/21 7:43 AM, Lakshmi Ramasubramanian wrote: Hi Rob, > = >> tree: = >> https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git=C2=A0 for= -next >> head:=C2=A0=C2=A0 8d3a1cb32124eaeb3f2efe4889de214d3b658d8d >> commit: 3c985d31ad661a2cc0ad0a55105046fc56a7b1fd [7/57] powerpc: Use = >> common of_kexec_alloc_and_setup_fdt() >> config: powerpc-randconfig-m031-20210403 (attached as .config) >> compiler: powerpc64-linux-gcc (GCC) 9.3.0 >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kernel test robot >> Reported-by: Dan Carpenter >> >> smatch warnings: >> arch/powerpc/kexec/elf_64.c:153 elf64_load() error: uninitialized = >> symbol 'fdt'. > = > This is a good catch. Thanks for reporting it. > = >> >> vim +/fdt +153 arch/powerpc/kexec/elf_64.c >> >> a0458284f0625a arch/powerpc/kernel/kexec_elf_64.c Thiago Jung = >> Bauermann 2016-11-29=C2=A0=C2=A0 30=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unsigned long cmdline_len) >> a0458284f0625a arch/powerpc/kernel/kexec_elf_64.c Thiago Jung = >> Bauermann 2016-11-29=C2=A0=C2=A0 31=C2=A0 { >> a0458284f0625a arch/powerpc/kernel/kexec_elf_64.c Thiago Jung = >> Bauermann 2016-11-29=C2=A0=C2=A0 32=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 int re= t; >> 3be3f61d25e04e arch/powerpc/kernel/kexec_elf_64.c Philipp = >> Rudo=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2018-04-13=C2= =A0=C2=A0 33=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unsigned long kernel_load_addr; >> a0458284f0625a arch/powerpc/kernel/kexec_elf_64.c Thiago Jung = >> Bauermann 2016-11-29=C2=A0=C2=A0 34=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 unsign= ed long initrd_load_addr =3D 0, = >> fdt_load_addr; >> a0458284f0625a arch/powerpc/kernel/kexec_elf_64.c Thiago Jung = >> Bauermann 2016-11-29=C2=A0=C2=A0 35=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 void *= fdt; > = > Initialize "fdt" to NULL here. > = > Rob - Please let me know which branch I should use to base the fix. I = > will post the patch shortly. > = Please let me know if I can post a patch to fix this issue using your = for-next branch? thanks, -lakshmi --===============1342333402070109692==--