From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A2F9C10F03 for ; Thu, 25 Apr 2019 06:47:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E929C218AD for ; Thu, 25 Apr 2019 06:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556174866; bh=lDn+eN2102wEUH/FJm9Udtl6csGNt6mG8FmLRdqoUoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=gR8jbF0Oc9TJ2rUkS5E/Aob39UoInvk9N1x3/RxFgkewhA7PCfV1bkwFHZgrhF15P S4xLTisP0D+cD7oFmQAa4S7ndak7VI+R/nMLvjHwS5/4vajZfW4GoLky9ecAhhbYlE lMm4PW6582qJjOaZ0SPZc20JUHFILubXoUruU05M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbfDYGrp (ORCPT ); Thu, 25 Apr 2019 02:47:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbfDYGrp (ORCPT ); Thu, 25 Apr 2019 02:47:45 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3D265217FA; Thu, 25 Apr 2019 06:47:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556174864; bh=lDn+eN2102wEUH/FJm9Udtl6csGNt6mG8FmLRdqoUoc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=duNpjUwHcwGfX0Gz1RLvIlYt6YEC8RUdc6waqoj4pXqubiIzqcFhgxhGYPg5GIuOF MxRt0ZfIUqwKOZPkB6n1BN7e+s8Fij7QTX/C6EJNIbxcDbNrZS6PxnOKfAQ5EYE0pM J6/Lr0nnT7CxrVftE80spadhyt8hIB8IHTCAwUUE= Date: Thu, 25 Apr 2019 08:47:41 +0200 From: Greg Kroah-Hartman To: Alakesh Haloi Cc: Andrew Morton , stable@vger.kernel.org, Vlastimil Babka , Huang Ying , Sasha Levin , Sandeep Patil Subject: Re: [PATCH] fs/proc/task_mmu.c: fix uninitalized variable warning Message-ID: <20190425064741.GA20123@kroah.com> References: <20190418012012.GA4296@ip-172-31-25-235.us-west-2.compute.internal> <20190418153459.50ee6fbea2bb6041040cbeb5@linux-foundation.org> <20190425003419.GA10192@ip-172-31-29-54.us-west-2.compute.internal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190425003419.GA10192@ip-172-31-29-54.us-west-2.compute.internal> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 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