Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2830455pxu; Mon, 7 Dec 2020 17:33:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5a+K1VktAjeeFWcJ+Ct03mWFcbr0mCGU2SOeUyyoBP02f1kFg6md0qArHhH8HNjlcCYXW X-Received: by 2002:a17:906:b793:: with SMTP id dt19mr21417196ejb.120.1607391197330; Mon, 07 Dec 2020 17:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607391197; cv=none; d=google.com; s=arc-20160816; b=RX6o4ePHlLgbx2DG+b1OCNPJqvXmWP/3qRWzuCI1K9mGY6UwSK70tM0zcbBQ5qDydN 2qtcPcHnmm/xD1H2+Vy614sDM5vbzG0xII1EZyysob2mCXk3hVX4CanURyWd36uixNXg 3uG2+1mVIHa4PMS5z/+PIgA2xQlqkrJcOuvT9ZIiLIljFTdS23ntH/oMb3lJbcHW17k3 3z0DkfAWHcHAYoXDP6L7NdDIi+dBZ3kZRZEX0hIvuiYzmcteGU/9DNDZxIxKI0QGkEI1 OEi55wWsk+wmgj17ooEj7JcQPqNHmB88EpU1S6kdNwCSolCTJFL5kkMktmlXwtjoRuWM yplQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:date:references :message-id:organization:from:subject:cc:to:dkim-signature; bh=sYcP+zt4qLnmC4XoPneH40sjSPVxmZGxQb7RF5dynPI=; b=CEcood/Wp2hTIR2KnUR0v/0FhqBwpAeboKPpJe48WiJWNl1KeEo/8go+6WJQYQUYuK j/9T2RFM74gE10LSonXPm0hH5+1jhAmn1ZiPbvzhOePufyzTnCLz4U/WFoxlbI8Ekwm5 qeIC8jFIt9LF7Gc6rgr2/AbuDkJZFMt1SOEp3Z+FL8YkpgbX+/+lcXeMIQ530qdgd8iw KW36sK5KPHq9xn7EfWOziNYUdCnIztQxVZm2RnYNPl+FE43FmltT1O2ugE5fGAHTiBQM ox38ZaMSbmDFsetHKHCHX2nv/goWjMejPgLX7U6Utg+/fN0cKaxLrkwP7pvLZONm6mHn ChSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="wEuk4/W9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t27si7844272ejb.240.2020.12.07.17.32.55; Mon, 07 Dec 2020 17:33:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="wEuk4/W9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726506AbgLHBb0 (ORCPT + 99 others); Mon, 7 Dec 2020 20:31:26 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:56208 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbgLHBb0 (ORCPT ); Mon, 7 Dec 2020 20:31:26 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B81TGqD103681; Tue, 8 Dec 2020 01:30:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : message-id : references : date : in-reply-to : mime-version : content-type; s=corp-2020-01-29; bh=sYcP+zt4qLnmC4XoPneH40sjSPVxmZGxQb7RF5dynPI=; b=wEuk4/W9/KHjkBAuQd4MQJz39HGqb3qumTThlwxmnMux4UqbXKUuiNRORZc8wjvxvDTb IGXA5NHe+VmpgbuWS2nWlmM1fXjtgaR5CWOJKk3IoEe+XyDZ6D0hFAPg8lOQKDe8b+8o jvMFRPQhwCIWIfi20ZcPemMW+ykCecsqplO43wsbEBJKQ5mFNn3dhK5rh++nr5/uriA7 Xjx55QgmycYnGJrdVugRL8wz3AQKJtfX5dMJ0oLGcqF1iqf1+oK5cYtjVw2szYEwfu4J DzefTqJrzvRx/tOnaf7BwaYf9TrqviCQka+9cy/rGwaOEj8gJDijNmdBy2v5/cUf9SRJ mA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 357yqbrhcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 08 Dec 2020 01:30:25 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B81TfcN117394; Tue, 8 Dec 2020 01:30:25 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 358m4x2kw8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 08 Dec 2020 01:30:24 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B81UI2C004546; Tue, 8 Dec 2020 01:30:18 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 07 Dec 2020 17:30:17 -0800 To: Arnd Bergmann Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Nathan Chancellor , Nick Desaulniers , Jaegeuk Kim , Arnd Bergmann , Alim Akhtar , Avri Altman , Stanley Chu , Can Guo , Asutosh Das , Bean Huo , Bart Van Assche , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH] ufshcd: fix Wsometimes-uninitialized warning From: "Martin K. Petersen" Organization: Oracle Corporation Message-ID: References: <20201203223137.1205933-1-arnd@kernel.org> Date: Mon, 07 Dec 2020 20:30:14 -0500 In-Reply-To: <20201203223137.1205933-1-arnd@kernel.org> (Arnd Bergmann's message of "Thu, 3 Dec 2020 23:31:26 +0100") MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9828 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 suspectscore=1 bulkscore=0 malwarescore=0 phishscore=0 adultscore=0 mlxlogscore=975 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080006 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9828 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 mlxlogscore=987 clxscore=1011 malwarescore=0 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012080006 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd, > clang complains about a possible code path in which a variable is > used without an initialization: > > drivers/scsi/ufs/ufshcd.c:7690:3: error: variable 'sdp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > BUG_ON(1); > ^~~~~~~~~ Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering