Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4148460pxu; Wed, 9 Dec 2020 09:29:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnlQD04TUkhn7v7/lIAFBSSRg3n8A+bHVrd+VxC6xSLqujkY9xYI52UURjzRtRpC/leiKE X-Received: by 2002:a17:906:77dc:: with SMTP id m28mr2928828ejn.64.1607534991056; Wed, 09 Dec 2020 09:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607534991; cv=none; d=google.com; s=arc-20160816; b=UF7dvroGdzNlm4YUCmjCZo6Jqe+5eNIL6riu2zryJLb/Do3mEUxFUIOIcxafas6KEt xSSs2dy6TZYn0jEqwq5xAtEfHQQ+uR3PHPGHEkn6I3oDKPEQMCWddLSoeI4R6NuQBpcU Icch0EQJG2DFq6P/AZrJMmIFi4a8Kb+LgxWpWnxa1VTGf0qxT3thA9p9NFCv5AXJJE9G w3kWy+7WHUeD/AvFgNveHc9nk/pUjMt3hc9vrvfOKPGoK20YKh4ZfeQNar3dyQ4p4bVc eRCnT9HWFD018xRNwkFMFuQ6byOXtzOgULo+PRKrIn7SuYCXWW+IPGBAcfm4VB1v5Agx YZ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5Zx6gGYBv1twjEiZEeKE229v8R8lxWyd3YNzIzSTGe8=; b=qlO+meS7KOqEyXGSQVAcXKRkQloOG3GFWRszUoeTbCfpYx9SEM9U0Gh/Or5NZb3jH5 MwM4f+fR/Fj2uJMmE4zxxWousOYiNpJhisavnBGmObBi0vhMvRA8daxK8lb4T4R27G31 UcicI/HZRh3OyOu7Y811h2SKNIpPp3hJMyHtvABacEQMeJPxuZ8DiLkKkFZRxnPXLzMo 43aKLJrZgMnrHmpOx5n4zybw5d1yhgh4f4uPjKSDrG1L3i4cSjGGDoDU5LJKaZZPPLpU +0S6NEv9XU3k4xxn5tqNwNUxYsod1yKIBWM0LW6kH9tmaTiXjbVLhgAaFrzV2+WQPKDa sEBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b="o/Z8E/8S"; 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 qh18si1118000ejb.374.2020.12.09.09.29.27; Wed, 09 Dec 2020 09:29:51 -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="o/Z8E/8S"; 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 S1729855AbgLIRYx (ORCPT + 99 others); Wed, 9 Dec 2020 12:24:53 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:53338 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732200AbgLIRYe (ORCPT ); Wed, 9 Dec 2020 12:24:34 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B9HJwqh078310; Wed, 9 Dec 2020 17:23:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=5Zx6gGYBv1twjEiZEeKE229v8R8lxWyd3YNzIzSTGe8=; b=o/Z8E/8SIokqQNm3FpLY5FJGw7p2FGzO0fuhkvfNKGHo5PNjeU02Z2D9khoYXnP7Kzo5 L2djXwmomP8h0EDpLtm20KKHKSFy8qseWEc85i/QdHLca6SkmQV8yHf6jTL8BHKYlAWk BO942WWATQh6JUFVFXO/nbJwqJ65Kxd1VXk/SreNTXrvd1O88/gq2swMuywGxD/EIPeH bGLjOoaVxbo/at+OnCrQk+LeznE3bKeYofSTi2KeCz04LJ+UwCFjGXplwOoOWgK6rJ0Z b6HGwmSX/Ybl2xZDnOgH1MJvSwBHxGic4C23V8h4y2PIyI1IAQiVxf8SkerFXaKGzoV9 ag== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 3581mr1a3g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 09 Dec 2020 17:23:34 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0B9HKqhf099961; Wed, 9 Dec 2020 17:23:34 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 358ksqdjms-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 09 Dec 2020 17:23:33 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0B9HNUEM017666; Wed, 9 Dec 2020 17:23:30 GMT Received: from ca-mkp.ca.oracle.com (/10.156.108.201) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 09 Dec 2020 09:23:29 -0800 From: "Martin K. Petersen" To: Nathan Chancellor , Jaegeuk Kim , Nick Desaulniers , "James E.J. Bottomley" , Arnd Bergmann Cc: "Martin K . Petersen" , Stanley Chu , Asutosh Das , clang-built-linux@googlegroups.com, Can Guo , Avri Altman , Bean Huo , Bart Van Assche , linux-kernel@vger.kernel.org, Alim Akhtar , linux-scsi@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH] ufshcd: fix Wsometimes-uninitialized warning Date: Wed, 9 Dec 2020 12:23:14 -0500 Message-Id: <160753457755.14816.4979467058172336849.b4-ty@oracle.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201203223137.1205933-1-arnd@kernel.org> References: <20201203223137.1205933-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9829 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 bulkscore=0 malwarescore=0 phishscore=0 mlxscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012090122 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9829 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=999 clxscore=1015 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012090122 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Dec 2020 23:31:26 +0100, Arnd Bergmann wrote: > 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); > ^~~~~~~~~ > include/asm-generic/bug.h:63:36: note: expanded from macro 'BUG_ON' > #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) > ^~~~~~~~~~~~~~~~~~~ > > [...] Applied to 5.11/scsi-queue, thanks! [1/1] ufshcd: fix Wsometimes-uninitialized warning https://git.kernel.org/mkp/scsi/c/4c60244dc372 -- Martin K. Petersen Oracle Linux Engineering