Received: by 10.223.164.202 with SMTP id h10csp433186wrb; Wed, 8 Nov 2017 19:59:10 -0800 (PST) X-Google-Smtp-Source: ABhQp+RAcLkRoQPHgwMwK//Vff3nTMsxnZ1fJ9WF47AHJX4kjzrx8rIoW1erWMj4TVwARawebJ0j X-Received: by 10.98.70.78 with SMTP id t75mr2786703pfa.6.1510199950637; Wed, 08 Nov 2017 19:59:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510199950; cv=none; d=google.com; s=arc-20160816; b=m3F59jhlPLm2WDPIWhW4/FkZr1WLwwvGAJrL3UlsBtpvFqTLTbYRVudCwc1dCiUmXs f3Yecetx30Eaph5N2WH+XsuIqIMVZpQrEk+dnjGkKEoVWQQJHqQrjn9juE6tC091BhNU pmNn7MiXV7pu6QRsia+WX/hmVrDLRECUl6jSKM0g1dMMLcXWyNFT45eAZEXVKd0FuWpp SlBLHQTtEPzGMBnuelHplyVhe71rQLCsJBf55JrRGnTtfn+If6R28yVYIWCXzfYOR9xt OCx+wf2NI6k4R70oS1EZV55FwXC6yxEEoHzXLrHBr5gc518IKZ2nheZZjyPIK3cR9vHK lqCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=w021V2ctI8hlScyV3d61TedOm7Ojy4UgTkvbAnVNVPI=; b=sJnHxYkB9sMVjRkLY0TLT5hLXGd5cfqn7k84YvLFhByfjhk7MEkq+5pv75fo5jXYle bbQYsrKOWilrjsnenQpEL96xQ7V8Ip1J/nXWZokt8nPzE5I8NvUMOCcNm//gnMs95a5B 3PEUkVuuybLdEvIWxOtPAxqe/OsAmco65rR3KqAx6/s5amENeYNvelSektl5qy7MIe3H QzXqf/LlTBuklUM8Jr3aP6Hsi3zKKtlK7ZJLZ18fiVcYXEhScvCvTsoZwQUlBYMHvSMN hGexuhUSpa04jBLi1MqbfjuEmZHeMRTZ6x1/wE6aLPDkUag2ph0pMXFhznnBCDBjNKe5 JkXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si5248676ple.274.2017.11.08.19.58.57; Wed, 08 Nov 2017 19:59:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751885AbdKID6U (ORCPT + 82 others); Wed, 8 Nov 2017 22:58:20 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46944 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751472AbdKID6T (ORCPT ); Wed, 8 Nov 2017 22:58:19 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA93sZOm022882 for ; Wed, 8 Nov 2017 22:58:18 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e4bnf9dyu-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 08 Nov 2017 22:58:18 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Nov 2017 03:58:17 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 9 Nov 2017 03:58:15 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA93wERb41746654; Thu, 9 Nov 2017 03:58:14 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 173B2A4040; Thu, 9 Nov 2017 03:53:14 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE867A4055; Thu, 9 Nov 2017 03:53:13 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.72.108]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 9 Nov 2017 03:53:13 +0000 (GMT) From: Chandan Rajendra To: Miklos Szeredi Cc: Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warning after merge of the overlayfs tree Date: Thu, 09 Nov 2017 09:29:14 +0530 In-Reply-To: <20171109093306.178c9ad2@canb.auug.org.au> References: <20171109093306.178c9ad2@canb.auug.org.au> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-TM-AS-GCONF: 00 x-cbid: 17110903-0020-0000-0000-000003CA390B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110903-0021-0000-0000-0000425F542C Message-Id: <2083901.R5B31B2umx@localhost.localdomain> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-09_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711090055 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, November 9, 2017 4:03:06 AM IST Stephen Rothwell wrote: > Hi Miklos, > > After merging the overlayfs tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/overlayfs/super.c: In function 'ovl_fill_super': > fs/overlayfs/super.c:1070:25: warning: 'numlower' may be used uninitialized in this function [-Wmaybe-uninitialized] > unsigned int stacklen, numlower, i; > ^ > fs/overlayfs/super.c:1069:15: warning: 'stack' may be used uninitialized in this function [-Wmaybe-uninitialized] > struct path *stack; > ^ > > The following trivial patch resolves the warnings, diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index fd11c05..602e686 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -1066,8 +1066,8 @@ static struct ovl_entry *ovl_get_lowerstack(struct super_block *sb, { int err; char *lowertmp, *lower; - struct path *stack; - unsigned int stacklen, numlower, i; + struct path *stack = NULL; + unsigned int stacklen, numlower = 0, i; bool remote = false; struct ovl_entry *oe; -- chandan From 1583539002149278154@xxx Wed Nov 08 22:34:35 +0000 2017 X-GM-THRID: 1583539002149278154 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread