Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3815187img; Mon, 25 Mar 2019 19:19:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH8t5abRII8hWaPTd/B2Cc44YNFy/93Md+FNlikSaNpQw2cIfxaIBEIpPuSpJIaK9nODa7 X-Received: by 2002:a63:6fc1:: with SMTP id k184mr14114155pgc.239.1553566755506; Mon, 25 Mar 2019 19:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553566755; cv=none; d=google.com; s=arc-20160816; b=wpBsvqiKE8DJjYfhbhgYOpPk+jHZmiosIJXyIFssYjKmGri2hz0QHZRXCus5WCTZkx nz75X17Y8ufk/mEWWOo34qooFqcgbE55/LrfOLOuQGL5jbnyqsR7UHQQs9xf60jOD6L5 OZTfVeeWgj+2Xngf2deXgkJys0epcbtdfRpnw9iHzHOWHoM4GmZoWLUb/HvVTekHCY1w Mv0l2Awd7SrfEf1ljBNpvhncudpRoFthLX3cIT9esxZToYUP41r8eFlUg2DrK7wNANyY bbnAilqal3b7v6pub2iCJg9zXUDllzmoQCAfU8RHxB+8VtIbsjNC4XRIHtxqzsJa/jn9 6w8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=xsHwC9oNYJjf/Hw5vkJQiO4kWrvRi0CA7gv9FiiMK00=; b=zjW1j3UBn5141Y4Q2GHQJRRYhT9eWBZcU7rr5uMSA1416Zo/SqRZa8+FCjyc574dei FZ/CXpK1Fzj+9sogvO9ZSId9IenXq8yL9ah/6Rf2UPQKd74dvofhyykBv/W68gKS9HNi E3nhnHc6sT8C3xDhnLqqIIeSb5APSktgsYShMRVfCVqJv0vO8A7p9ApOuz/U+qOzTolK 90USqZn/mrmyjX4cW1cAtdVubjEpMLKeMnGypniXK2M/fqwLjvblKOQ+dI6j+U299hzR E3ujD5rsdzI1aB5/QU4PO/I0oEaVsSqX0U0sBKv4eloyhFmsbv/ad5TmLpM5mHoJZkDa gHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=Wyehcn+4; 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 bj1si15189780plb.15.2019.03.25.19.19.00; Mon, 25 Mar 2019 19:19:15 -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=Wyehcn+4; 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 S1731029AbfCZCSI (ORCPT + 99 others); Mon, 25 Mar 2019 22:18:08 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:47874 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730691AbfCZCSI (ORCPT ); Mon, 25 Mar 2019 22:18:08 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2Q2E08Y062966; Tue, 26 Mar 2019 02:17:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2018-07-02; bh=xsHwC9oNYJjf/Hw5vkJQiO4kWrvRi0CA7gv9FiiMK00=; b=Wyehcn+4qaPLQUKwJgGZvIh10yVRBJhSUT7fipddv6k96UIR6jxucta0A8gE1ZhNXzV5 uWtCoQT1SPJdlQsMZtAD5JRCKMiIPXauUe5efYNqQcYNYsygvEW3iZSbfqU6w1sNxuRw nveJ8CLTU5QnYBqlKC7t5kyJU9nEwk8wSrxcx0v69GyUrEOHD82KP8t7z7WsmqLsHthB 4TRSVqZew5JFajkipLHbT/982Cs0TXog0EbCsDwuHHQViSVKN3FXUSYoso2RbRxwaH5v wg0alHC7BeqpNzO2Xw/bRxhs0laoGZpSUFX/o3WZRlcJOKvcLu0w1krsBCeXjI9SBFLl Fw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2re6g0qkah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Mar 2019 02:17:57 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x2Q2HuPm017792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Mar 2019 02:17:57 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2Q2HtlM003514; Tue, 26 Mar 2019 02:17:55 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Mar 2019 19:17:54 -0700 To: Arnd Bergmann Cc: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: lpfc: avoid uninitialized variable warning From: "Martin K. Petersen" Organization: Oracle Corporation References: <20190322142557.929966-1-arnd@arndb.de> Date: Mon, 25 Mar 2019 22:17:52 -0400 In-Reply-To: <20190322142557.929966-1-arnd@arndb.de> (Arnd Bergmann's message of "Fri, 22 Mar 2019 15:25:49 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9206 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=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=688 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903260015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd, > clang -Wuninitialized incorrectly sees a variable being used without > initialization: > > drivers/scsi/lpfc/lpfc_nvme.c:2102:37: error: variable 'localport' is uninitialized when used here > [-Werror,-Wuninitialized] > lport = (struct lpfc_nvme_lport *)localport->private; > ^~~~~~~~~ > drivers/scsi/lpfc/lpfc_nvme.c:2059:38: note: initialize the variable 'localport' to silence this warning > struct nvme_fc_local_port *localport; > ^ > = NULL > 1 error generated. Applied to 5.2/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering