Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp858423ybe; Wed, 11 Sep 2019 05:57:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRoqZcb97rfyoEEFXNMbnTeqsQLR3514qu1xVO0bbPsB1dQvAzXIxxZ6hMSmOpsnZkTdqA X-Received: by 2002:a17:906:1d4d:: with SMTP id o13mr29875243ejh.70.1568206663136; Wed, 11 Sep 2019 05:57:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568206663; cv=pass; d=google.com; s=arc-20160816; b=u31es6I/OHb+5j7XnkUqpdkcADtu7F0v22iisQO9to1wCIffM0aGfnKgT3/0ujou+Q poi4KKch+KGcGqggNmr72n9Z0a8TLdb0c5EKI4Jswwy6ZhRlTq2PC0Oj57J3sF29RZQc bWNGFIp2Ln9GUD+ngA2vb46iSv7qnypVm39IbnOmq6DLPk6OJdmVNFtDS2xlBS8Zggat CTcQSjW4CnvQKdVEE/jI19+M9GLpiToE/D0Muyjl1JLdNLF+eBVzT3ZBbId2Lqrozi5D 5W0xiU9+E+1+Jt2fuAMecGSpbVxsbsnJVVFsw0f3/KGSHS9q93FcgkNwfqUZ9DDZzRyP 1alg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:ironport-sdr:dkim-signature; bh=mxx5CNki3IHFe8OFMIZ/K37jVE5tbD0cPTdXfTmj0HA=; b=SLxccfN+FkWUyScdeGoWherKQapMNe5AdY9hrKO06fU4bzzdVJkXjzxJzzuI7BRzLI sfMfunHtWsPfJPqzqMhhWJw2DUV6SQWQcA7oO33WzCPaCIyxLCdZnJjLYW8pS82ALuwC +oPrtXT+kP6nxG6bxq6/cWujkFXarYvcRNEDx8OpoYxueOSFzHn7cfwB7qmGe5VgiBNB ydcFa6FCnUfVzWuCaP5q1NrZPfu9Xmfek/WZ7e5GBHou4oJkTfNrhJUXh2sHZ9teimLn MOuj8soBshw85r5IVUQgVF1/7mUaUitzmOaW1PGXQtbCczJ2vnSMi38Poz6Khsaa7k2Y K1bg== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gRFfgemO; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=YjuW5xnH; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g4si3075104edr.377.2019.09.11.05.57.18; Wed, 11 Sep 2019 05:57:43 -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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gRFfgemO; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=YjuW5xnH; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.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=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728014AbfIKMzO (ORCPT + 99 others); Wed, 11 Sep 2019 08:55:14 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:28295 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727656AbfIKMzO (ORCPT ); Wed, 11 Sep 2019 08:55:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1568206512; x=1599742512; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=mxx5CNki3IHFe8OFMIZ/K37jVE5tbD0cPTdXfTmj0HA=; b=gRFfgemOPPpwJAQkjXgofrWtONJCfeh8sxed8DYgNbv2X5xAWkG+WS+U Qd1/bWaQai0noCmJHl1fJjZ1nIriH9T6qoHLBbxqsPKAhCgDJgV6MGGbb Et5pv9JThNOMIeigru6odoeB1/q8ClV8Of225Enx1uTZqrVeCuBDCKefd 7w9RhoSJRoUZzFdudf0gC3GoVQ8uUoe4nT/0h9pbyU0egFDIZUYrTReWg 12/th00YYqX3QfRXJVd5ZqBDRZX0W16svSYXJXS1qsT4RinkNSSPlP07a c50RmnTlv2RGGQ8MyxjyZmnhfjhV9eIfbcejloPATfe7Ib2wV/OpU0WcB Q==; IronPort-SDR: 59qypxNeGBTp+wrdZ23akAAf4qzIFcUAmzfhAyBbQJzRLwJoOA9n+hzq3/fgE5RJSeuplp8E1G YRjPxhPQyms2my+yPmzNuBBnk6crvT5rxVRwxbCAwYCWsDyHkWafJaCn+aZyebIrgn7geoJLnj jejJZh/HvO/o+y0dymM8LntTuxvpsKkVqNKdSm2YjxmQINKT6icoRs3NmfAxHVAhu2imPasBkx lfGF3JzRDpT0lrDLLcFkm3YtpjCk1ZSCA4sjAnlrxocl58Oqd6xOFE5vAY/BV/NLQsIeZpxVn7 Aeo= X-IronPort-AV: E=Sophos;i="5.64,493,1559491200"; d="scan'208";a="224773197" Received: from mail-by2nam01lp2050.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([104.47.34.50]) by ob1.hgst.iphmx.com with ESMTP; 11 Sep 2019 20:55:10 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IOHRJ7S7VCkIEhhxpb/SCy6cDaZgc0UgWY+5KG7SutYZcf+oqmV7ILyNloqeYstplhMvS9a63c9WCxU58t+aezUZpxX2yWwfBmW8UmCEeBK+AEjZrVseQVAI5tSPz20l1dUmzQJAUf2Hb86oVkkbC7Z4Bj7GM9nnsgUBVqDtLdd1YEn1sI72CWDLHjbsAQ1AUYYEf/c/XYNZxh+qCZV+YV+FmoOQxeikhIBDovG94aFDLXduAMBRDSbNgas6jEbBKw5T5QwCSlz4Q6X9NCrRho3SkRrtiyll48aBa6JEA87wvD9zAqKD2FJUnmGMYStlFInIdRvcVNdNuuZZCMKAGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mxx5CNki3IHFe8OFMIZ/K37jVE5tbD0cPTdXfTmj0HA=; b=KhKnwx0wXQ7VJbCBARpEdnZjn+pUqxEQYBubujer92+tGotMRqz04HPGj8TOgJNWPs+mk8odfq9EdeqMp6wIz/Y/xM09lbb/F6SwiFcg01EYQTP7gi3GwdGbWWBcoi/pnXEWz5LwTEnTRGWXnrYFCPTNoVmxUVrmwQE24TMSAl8Y6xVs9prJ6Ld9slPbUFDCBToHKuRBoMCWouxC66/mwi8wzge3kE9lT+Hlqj+GR3z3d4h24ynIaUUSHRsMSwDDS8FS8EtJOW9ko7W1pAHpXe9CLtG+fytOF+yaGsIkb/Sfuq4FsIav+TiM7wXgf2rL05s+tT0ohmeXLOqBEIekyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mxx5CNki3IHFe8OFMIZ/K37jVE5tbD0cPTdXfTmj0HA=; b=YjuW5xnHDJ50xgqWt1BGYohL7RpOjlm52rObnMC3xAc4TjdaiL6CSOdKY/byd+Q+OpdAhaW3siyzAk7u89E+PH1ATh/HoUlviguGK9QKKW0pf7vaDHRtg5uIFw3rQfaJE2JF7npXmwZVI83tNXio5Mz+pRgjlOKIAr6lRlECPas= Received: from MN2PR04MB6991.namprd04.prod.outlook.com (10.186.144.209) by MN2PR04MB5536.namprd04.prod.outlook.com (20.178.245.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.15; Wed, 11 Sep 2019 12:55:09 +0000 Received: from MN2PR04MB6991.namprd04.prod.outlook.com ([fe80::9c2b:ac1b:67b8:f371]) by MN2PR04MB6991.namprd04.prod.outlook.com ([fe80::9c2b:ac1b:67b8:f371%2]) with mapi id 15.20.2241.018; Wed, 11 Sep 2019 12:55:09 +0000 From: Avri Altman To: Markus Elfring , "linux-scsi@vger.kernel.org" , Alim Akhtar , Allison Randal , Arnd Bergmann , Greg Kroah-Hartman , "James E. J. Bottomley" , Kangjie Lu , Manivannan Sadhasivam , "Martin K. Petersen" , Pedro Sousa , Stanley Chu , Thomas Gleixner , Wei Li CC: LKML , "kernel-janitors@vger.kernel.org" Subject: RE: [PATCH] scsi: ufs-hisi: Use PTR_ERR_OR_ZERO() in ufs_hisi_get_resource() Thread-Topic: [PATCH] scsi: ufs-hisi: Use PTR_ERR_OR_ZERO() in ufs_hisi_get_resource() Thread-Index: AQHVZXjxzhPiQX5u6EWxRGwM6AldQKcmdR3Q Date: Wed, 11 Sep 2019 12:55:09 +0000 Message-ID: References: <9e667f19-434e-ed30-78cb-9ddc6323c51e@web.de> In-Reply-To: <9e667f19-434e-ed30-78cb-9ddc6323c51e@web.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Avri.Altman@wdc.com; x-originating-ip: [212.25.79.133] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cfd1524b-07d9-4627-41ce-08d736b7471d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:MN2PR04MB5536; x-ms-traffictypediagnostic: MN2PR04MB5536: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:153; x-forefront-prvs: 0157DEB61B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(346002)(396003)(39860400002)(136003)(366004)(376002)(189003)(199004)(5660300002)(110136005)(6436002)(81156014)(66476007)(229853002)(9686003)(66066001)(66556008)(76176011)(55016002)(305945005)(53936002)(11346002)(446003)(52536014)(26005)(2171002)(186003)(478600001)(33656002)(102836004)(81166006)(6506007)(14454004)(99286004)(6246003)(4326008)(2906002)(86362001)(3846002)(6116002)(66446008)(7696005)(66946007)(76116006)(2501003)(4744005)(316002)(8676002)(74316002)(7736002)(54906003)(8936002)(256004)(476003)(7416002)(486006)(25786009)(71190400001)(64756008)(71200400001)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:MN2PR04MB5536;H:MN2PR04MB6991.namprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: s72nUB/8H7lwifCv5USx8CCG8WA1RJAvp9SXcTwsDSgA8fRvbexsW5dh0froGc+OB4Ko6SItMnzyyIE0ATlBHJJUptOjw4UZnGFYh5VxHO+aLbbp9bUHEDu0z+CtYse60Srxon73T0NOR5d6cPl8GrCJ2g6v+0BFZ8mAkBpmO8m4Z/B3NnRl/8PBmf1gfiVSuWG8bU+utkoFjefifMNn855Ar4UN9sFf6JF/RhNVl+KQ8dZy2lzOZoLvjVQTeBr32Ma7N9DnOwlLZeKr1y3cyqXIENidrOay+F91awv+F80Qwm9gGbFhe5U/sGSVwcSKDx+4gjYIHlw0JXY1IHswDLatkqYCJK1FPSBGGYgKliP82gbEBIV5Gm/LPZk9LCs77OqTq69ZEb6cKYmBxVN0yX9TZOU9gpd/SBIo3xebz+k= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfd1524b-07d9-4627-41ce-08d736b7471d X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 12:55:09.4838 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NfivUfFHN/AUlMRVBA/58Ow+7157qJtjVLuE47caKe21ldQzXS3RvF5UD9AY3hfj0g4/4z6bgDc6z+AFnZg4Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5536 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiANCj4gRnJvbTogTWFya3VzIEVsZnJpbmcgPGVsZnJpbmdAdXNlcnMuc291cmNlZm9yZ2UubmV0 Pg0KPiBEYXRlOiBTYXQsIDcgU2VwIDIwMTkgMTQ6MjU6MzEgKzAyMDANCj4gDQo+IFNpbXBsaWZ5 IHRoaXMgZnVuY3Rpb24gaW1wbGVtZW50YXRpb24gYnkgdXNpbmcgYSBrbm93biBmdW5jdGlvbi4N Cj4gDQo+IEdlbmVyYXRlZCBieTogc2NyaXB0cy9jb2NjaW5lbGxlL2FwaS9wdH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