Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1775087imm; Thu, 19 Jul 2018 07:41:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdOWSPBsHL9ODiCx8DsFXA2ug27CWrYMlCBbVKcEsysyChK2OiMHBhDCYFt1KFPjrQ/NZvr X-Received: by 2002:a17:902:6acc:: with SMTP id i12-v6mr10385514plt.278.1532011300723; Thu, 19 Jul 2018 07:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011300; cv=none; d=google.com; s=arc-20160816; b=f0kGFBYt9DYXzdRYUlbx2YH8DSGXQZ8D6X/GLGajVIZ77z+NsZxW2gwRfayIlXvNZo R+qIzwB8aRSN6ockFkx4/qNEUSziTtMG2y6G6P1Ku0eiIl7DBuNOlaYSS4zAUrFdq84Z rEFUtzCuB5LEgourlrAcbKbClE9sYumMLhFkoF4L4WWpoaRgB+ZuBoaoWJItPduOQQDx iHyO775BVS5vn1ZfKIVZyQqtLt4ME4usDIoEFCmbt8Zo8TS09y4FQXLeUQA0Lg81D6RT tngCslpA5KaTZZeIYT2A/nIjTJ4JNNE87fQaNeEj0tnN6YMkEW57gaKdxiPrnweMlNj7 8HAg== 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:message-id :mime-version:references:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=UVb9JcNeSZvzBrBdyn4CXzqbu+1cLtHB3FMkdhIBlUs=; b=aj2uFlTqTIuaruT/PK4jOgeVb3ox++OPEvYtY0QoLfwX7JQ82x/dZ2rZyAbaZEAspJ ClO5eONBLw4IBOfE4nr6vrSZmFlKY4SvNsDrsCGmXNsMW9V9z+nj6InAoU44OSqKW6NW iDg2uPKKtdgqpU9leMOXMRqaFDUeCLBMdmzGDZgRZgVJiw9QQEq9jXmeehZsE/Ed3xjy ym1GkDL6GwG62Wpwp7LSlUROOWi4UrLmTtu05Oo6cVevkdpuUQ37xbW1F1Kl1E90z4cy cTd8CyV8DETqnEuP6L61v5BocFRB8W941dEtQjY9xRfhJUa2+rUR+5aNTpGonLXl9PXP yu/g== ARC-Authentication-Results: i=1; mx.google.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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2-v6si5820535pgh.396.2018.07.19.07.41.25; Thu, 19 Jul 2018 07:41:40 -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; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731645AbeGSPYT (ORCPT + 99 others); Thu, 19 Jul 2018 11:24:19 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46936 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730919AbeGSPYT (ORCPT ); Thu, 19 Jul 2018 11:24:19 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6JEd7QA061164 for ; Thu, 19 Jul 2018 10:40:49 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kau2xmwj6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 19 Jul 2018 10:40:49 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Jul 2018 15:40:47 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 19 Jul 2018 15:40:45 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6JEeiLb41156622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Jul 2018 14:40:44 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6369CAE045; Thu, 19 Jul 2018 17:40:58 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2461FAE059; Thu, 19 Jul 2018 17:40:58 +0100 (BST) Received: from mschwideX1 (unknown [9.152.212.148]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 19 Jul 2018 17:40:58 +0100 (BST) Date: Thu, 19 Jul 2018 16:40:42 +0200 From: Martin Schwidefsky To: "Gustavo A. R. Silva" Cc: Harald Freudenberger , Heiko Carstens , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390/ap_bus: replace PTR_RET with PTR_ERR_OR_ZERO In-Reply-To: <20180719044205.GA24764@embeddedor.com> References: <20180719044205.GA24764@embeddedor.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-TM-AS-GCONF: 00 x-cbid: 18071914-0012-0000-0000-0000028C2C74 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18071914-0013-0000-0000-000020BDF626 Message-Id: <20180719164042.0bcc6e33@mschwideX1> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-19_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807190157 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jul 2018 23:42:05 -0500 "Gustavo A. R. Silva" wrote: > PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/s390/crypto/ap_bus.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c > index c0a6723..bf27fc4 100644 > --- a/drivers/s390/crypto/ap_bus.c > +++ b/drivers/s390/crypto/ap_bus.c > @@ -474,7 +474,7 @@ static int ap_poll_thread_start(void) > return 0; > mutex_lock(&ap_poll_thread_mutex); > ap_poll_kthread = kthread_run(ap_poll_thread, NULL, "appoll"); > - rc = PTR_RET(ap_poll_kthread); > + rc = PTR_ERR_OR_ZERO(ap_poll_kthread); > if (rc) > ap_poll_kthread = NULL; > mutex_unlock(&ap_poll_thread_mutex); > @@ -1242,7 +1242,7 @@ static int __init ap_module_init(void) > > /* Create /sys/devices/ap. */ > ap_root_device = root_device_register("ap"); > - rc = PTR_RET(ap_root_device); > + rc = PTR_ERR_OR_ZERO(ap_root_device); > if (rc) > goto out_bus; > Applied to the s390/linux tree for the next merge window. Thanks. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.