Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp745107img; Fri, 22 Mar 2019 07:42:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZW+43mxFnaYF2u6uIKc6RrU2plnYv9Er2lQIn3VDKsbvscRQkLm32zhGp6QNJX8wBnvjH X-Received: by 2002:a17:902:b20e:: with SMTP id t14mr9746495plr.97.1553265778770; Fri, 22 Mar 2019 07:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553265778; cv=none; d=google.com; s=arc-20160816; b=DTXWha5QUYy9aPQU7NTNdnpkuUnaap7LP9aGnk0yHEOjkG3YtZ8BhzHFLbfUsF5pRB lIqrq0hAj9bT+31vi+yWIECsy2NL2MHPfQVWa4hf1dUMupEZPK3yOd/YwtkP97UWc0Pm UOrtefes0hML669zdg5TF0O+83Qkjp4KARXY61vQ65hNz7gohCZyTHRG+KgjentRNfln hA1FiC1ljdsbZf8hpj49RCy1VT6ggsrVTdF1wD11SV2ZdT/+kH0poRmdSwQjivNByWVY AZTGgl3WBU0jVHaW1YcBLh70gVlJ+zF4ORNLEg4NpZBHWqm1st4pCbh2RpAsjUtKg0Vl zTkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=SAZthBdcBsSCeNrj9qHL/j2MkHrbr4dN4Wqy55oWWY4=; b=ivXnaSvAPg7WErSr9xJf87HiPF2e/eXVo2AiB/Y1c4Vak7GQzPa8FTQDZMvuR5bwMU XxCcdPtt+PRwJuhXmWgdwcCtRL+YJfDu3HTAaB3zMNLPZHiMXyF13VkUrpZamDImo1/r F7ZVkWC4ZhVQJNoYKtN5zByFP2UrOoycPJa6OzR2FcGIW3aE4behq1HtckEvS4bLnMI5 Xwk61jLuxVvx/DRX1BB1l51pBk4MiWdRRrd0sv8entpP2n6pRj0O2eQ6UBhqNpoOTecM IqDwt4xdKJ1ZuaDtrKPDQFChF2JBz9i1dlcqjao+4eu5m6Ex2MopTA6EGyDl3g9lpJbB lrtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=SLzfnumF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q20si7182086plr.136.2019.03.22.07.42.40; Fri, 22 Mar 2019 07:42:58 -0700 (PDT) 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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=SLzfnumF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728952AbfCVOln (ORCPT + 99 others); Fri, 22 Mar 2019 10:41:43 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:57138 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727719AbfCVOln (ORCPT ); Fri, 22 Mar 2019 10:41:43 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2MEd0Bx147264; Fri, 22 Mar 2019 14:41:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=SAZthBdcBsSCeNrj9qHL/j2MkHrbr4dN4Wqy55oWWY4=; b=SLzfnumFJqsM3jfiwm5S8GSrOTfbcIlJBjP1XWB9FcIUd/os7uHNXHcK9INsYVQ8joZz zNtk36MpHHL2Fnm3VJFG87XLOS91t4ZBiCkHr24leIPwUIfowaCRgpaTt7CrBD5oI7VO 2S7TXLhW9vz4JZ7F6WuXcAH1CO2EUXn8bzVuchaikUvfLcsnNs83B2LFr+SvRV8mmG+a VrR2ZCStTkUkqxbkWubIlCmwRS13W5AqrBsKeEteA7pLXFDxmYfFgyJWMKhMzpJN5nKL UZJrqDjgAsTIv85YbMfp5XgI+UKRkpyvVyHa/R0XBLn7v0DA9d6yjCCJu7DU0BYckZP2 HQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2r8ssrxacw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Mar 2019 14:41:23 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2MEfM9k011243 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Mar 2019 14:41:22 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2MEfMgG006321; Fri, 22 Mar 2019 14:41:22 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 22 Mar 2019 07:41:22 -0700 Subject: Re: [PATCH] jfs: fix bogus variable self-initialization To: Arnd Bergmann , Dave Kleikamp Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , jfs-discussion@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20190322141922.691391-1-arnd@arndb.de> From: Dave Kleikamp Openpgp: preference=signencrypt Autocrypt: addr=dave.kleikamp@oracle.com; prefer-encrypt=mutual; keydata= mQINBE7VCEMBEAC3kywrdIxxL/I9maTCxaWTBiHZFNhT5K8QZGLUfW3uFrW89PdAtloSEc1W ScC9O+D2Ygqwx46ZVA7qMXHxpNQ6IZp8he88gQ9lilWD8OJ/T3OKyT6ITdkmsgv6G08QdGCP 0+mCpETv79kcj+Z4pzKLN5QyKW40R3LGcJ6a+0AG5As5/ZkmhceSffdSyDS6zKff3c6cgfQH zl+ugygdKItr3UGIfxuzF3b9uYicsVStwIxyuyzY8i1yYYnnXZtWkI9ZwxT+00PqjCvfVioy xswoscukLQntlkfd4gwM8t56RIxqEo4iNmFwmBYHlSd7C+8SrvPAOgvOtr1vjzJhEsJ2uJNW O2pgZc8xMxe8vhyZK1Nih67hbtzSIpFij06zHwAt4AY3sCbWslOExb8JboINWhI89QcgNmMK uwLHag3D/zZQXQIBvC5H27T49NA6scA92j2qFO6Beks3n/HW6TJni/S9sUXRghRiGDdc/pFr 20R3ivRzKyYBoSWl/3Syo0JcWdEpqq6ti/5MTRFZ+HQjwgUGZ5w+Xu2ttq/q9MyjD4odfKuF WoXk3bF+9LozDNkRi+JxCNT9+D4lsm3kdFTUXHf/qU/iHTPjwYZd6UQeCHJPN6fpjiXolF+u qIwOed8g8nXEXKGafIl3zsAzXBeXKZwECi9VPOxT4vrGHnlTHwARAQABtDZEYXZpZCBLbGVp a2FtcCAoQUtBIFNoYWdneSkgPGRhdmUua2xlaWthbXBAb3JhY2xlLmNvbT6JAjgEEwECACIF Ak7VCEMCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEDaohF61QIxkpSsP/3DtjVT0 4vPPB7WWGWapnIb8INUvMJX84y4jziAk9dSESdPavYguES9KLOTXmAGIVwuZj5UtUNie4Q3V fZp7Mc7Lb3sf9r2fIlVJXVhQwMFjPYkPLbQBAtHlnt8TClkF2te47tVWuDqI4R0pwACKhUht lQRXpJy7/8pHdNfHyB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8LsZ5qq3BGUDB0DLHtMVu3r9x2327QSp/q2CgwPn2XzelQ0yNolAt 6wjbQwZXTGIGQGlpAFk7UOED/je8ANKYCkE0ZdqQigyoQFEZtyjYxzIzJRWLl4lJjhBSar1v TiSreQARAQABiQIfBBgBAgAJBQJO1QhDAhsMAAoJEDaohF61QIxk/DsP/RjCZHGEsiX0uHxu JzPglNp9mjgG5dGmgYn0ERSat4bcTQV5iJN2Qcn1hP5fJxKg55T8+cFYhFJ1dSvyBVvatee7 /A2IcNAIBBTYCPYcBC771KAU/JOokYu2lkrGM2SXq4XxpfDzohOS3LDGif47TYpEKWbP4AHq vcIl9CYvnhnbV+B/SxqhH7iYB6q2bqY6ki7fsk2lK65FFhlkkgsKyeOiuaVNEv3tmPCMAY/v oMAsCTLK63Wsd9pUY2SGt2ACIy7pTq+k1b09cqlTM2vux8/R0HNzQBXNcFiKKz+JNVObP30N /hsLs0+Ko9f/2OcixfkGjdih8I+FnRdS6wAO7k6g+tTBOj/sbSbH+eZbxWwANkiFkykOASGA /4RzIDie72NiM8lKzpyrlaruSFxuj9/wZuCT7jaYIaiOMPy7Y0Lpisy/hRhwDCNlKU6Hcr7k hQ1cIx4CB40fwqjbK61tWrqZR47pDKShl5DBRdeX/1a+WHXzDLVE4sfax5xL2wjiCUfEyH7x 9YJoKXbnOlKuzjsm9lZIwVwqw07Qi1uFmzJopHW0H3P6zUlujM0buDmaio+Q8znJchizOrQ3 58pn7BNKx3mmswoyZlDtukab9QGF7BZBMjwmafn1RuEVGdlSB52F8TShLgKUM+0dkFmI2yf/ rnNNL3zBkwD3nWcTxFnX Message-ID: <85746d06-fdf9-6438-17f6-06d65608e2ac@oracle.com> Date: Fri, 22 Mar 2019 09:41:21 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <20190322141922.691391-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9202 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903220108 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/19 9:19 AM, Arnd Bergmann wrote: > A statement was originally added in 2006 to shut up a gcc warning, > now but now clang warns about it: > > fs/jfs/jfs_txnmgr.c:1932:15: error: variable 'pxd' is uninitialized when used within its own initialization > [-Werror,-Wuninitialized] > pxd_t pxd = pxd; /* truncated extent of xad */ > ~~~ ^~~ > > Modern versions of gcc are fine without the silly assignment, so just > drop it. Tested with gcc-4.6 (released 2011), 4.7, 4.8, and 4.9. Thanks Arnd. Will push it upstream. Shaggy > > Fixes: c9e3ad6021e5 ("JFS: Get rid of "may be used uninitialized" warnings") > Signed-off-by: Arnd Bergmann Signed-off-by: Dave Kleikamp > --- > fs/jfs/jfs_txnmgr.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c > index a5663cb621d8..78789c5ed36b 100644 > --- a/fs/jfs/jfs_txnmgr.c > +++ b/fs/jfs/jfs_txnmgr.c > @@ -1928,8 +1928,7 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, > * header ? > */ > if (tlck->type & tlckTRUNCATE) { > - /* This odd declaration suppresses a bogus gcc warning */ > - pxd_t pxd = pxd; /* truncated extent of xad */ > + pxd_t pxd; /* truncated extent of xad */ > int twm; > > /* >