Re: [PATCH] fs/proc/task_mmu.c: fix uninitalized variable warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 25, 2019 at 12:34:19AM +0000, Alakesh Haloi wrote:
> On Thu, Apr 18, 2019 at 03:34:59PM -0700, Andrew Morton wrote:
> > On Thu, 18 Apr 2019 01:20:12 +0000 Alakesh Haloi <alakesh.haloi@xxxxxxxxx> wrote:
> > 
> > > This patch fixes the following uninitialized variable warning
> > > 
> > > fs/proc/task_mmu.c: In function 'show_smap.isra.33':
> > > fs/proc/task_mmu.c:761:7: warning: 'last_vma' may be used uninitialized in this function [-Wmaybe-uninitialized]
> > >   bool last_vma;
> > >        ^~~~~~~~
> > 
> > I can't immediately find a kernel tree to which this is applicable. 
> > What kernel are you patching?
> > 
> This is for 4.14 stable tree. Corresponding commit does not exist in
> mainline as the code has changed.

I suggest updating your compiler to a sane one, I do not see this
warning at all in the 4.14.y tree.

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux