Content-Type: multipart/mixed; boundary="===============7090247556039207882==" MIME-Version: 1.0 From: Xianting TIan To: kbuild-all@lists.01.org Subject: Re: [PATCH v6 1/2] tty: hvc: pass DMA capable memory to put_chars() Date: Fri, 13 Aug 2021 14:04:02 +0800 Message-ID: <854daaf0-4d8f-82fa-a584-0b0830349a53@linux.alibaba.com> In-Reply-To: <0c808001-7643-fdcf-66ba-738654ec0c21@kernel.org> List-Id: --===============7090247556039207882== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable =E5=9C=A8 2021/8/13 =E4=B8=8B=E5=8D=881:53, Jiri Slaby =E5=86=99=E9=81=93: > Hi, > > On 12. 08. 21, 14:26, kernel test robot wrote: >>>> drivers/tty/hvc/hvc_console.c:190:26: warning: variable 'hp' is = >>>> uninitialized when used here [-Wuninitialized] >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 spin_= unlock_irqrestore(&hp->c_lock, flags); >> =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=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~ >> =C2=A0=C2=A0=C2=A0 drivers/tty/hvc/hvc_console.c:149:23: note: initializ= e the = >> variable 'hp' to silence this warning >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struc= t hvc_struct *hp; >> =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=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=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=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=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 =3D NULL > > So you clearly didn't test your change as it would crash quite = > instantly. I wonder, where do you intend to get hp from in the = > console::print() hook? I am very sorry for the inconvenience caused. This is caused by my carelessness:( I take it for granted that there is no problem when I just switch to use = array(cons_outbuf[]). sorry agin. > > thanks, --===============7090247556039207882==--