Received: by 10.223.164.202 with SMTP id h10csp1509253wrb; Wed, 8 Nov 2017 05:28:40 -0800 (PST) X-Google-Smtp-Source: ABhQp+TQ2i1/1USllFoAnmyL/UR1X8KtpHGN85oqwoonjG+5GXTAgmYqWxNMlE637YQOyPeEfYuU X-Received: by 10.98.210.129 with SMTP id c123mr540800pfg.77.1510147720145; Wed, 08 Nov 2017 05:28:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510147720; cv=none; d=google.com; s=arc-20160816; b=ymnJ/CJ+NVFMRG+wRmw9U2yfz+w+EvT37OXrD6ri9/AzqQWLMkHErDszCfzGr5tqyf OjYMUQxFMNE7gr9y6zqYB1Fp4cN0WJByBKgK6pG8Gti7rNtdzL5Rtq4rDJMxo2OTAHdm FdRpRUc6/nMtHNWee6B2LQXObmtlHkfEY5F503r9r/RbejhP6d85txumG8r6gFYenvue Ss9q4cZGKHg1S7ssgG5CoQA1uBgKv0obRfPhMoLFJ9i4g/wFzO+Jw7Imoa6yPYFMNgjM MJZkzWBgpYdsaTgAXihCC+oA18kLbaYnByos3q9rZQo1KIx32f/yJLzFyE2VM1bkdT7C Uoog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=qjDXqAiyYZXNFnlQgufXuM1OYmSleSyiG1MFLiYxfUY=; b=jtKH3FFWXv1dRb/GbBx5dgzMMLeF4yE/CI6Kt1eLpobEaWXKSg3LylD1bCfW4/rbo4 P4lXkjQQgpTmatvTbXYwh5A4PwHnfWo2kjPzmt6Ri6WG6Pw5ZOihB4FLYDwvCtxeNluz LgwmPlm97Op2WT2jMHRbXIDkYJugftE83hZQlFHH5utA9mJ6FGPS7reiRNdBoFVU/SCd VqH9K99MiC/KEGA0KFkmTeDv3Q+ocjy/oWCY7kpW8OwuERRqw7mGRLj2oHspLvCIgKK5 bhXcdEmaJzLAps8Wup2ORdFtA/Xfk9ebz0DNYnjFItPhifgoD0DLvbIHKnya3TghXcxR RBbg== 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 z28si3897055pgc.445.2017.11.08.05.28.28; Wed, 08 Nov 2017 05:28:40 -0800 (PST) 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 S1752488AbdKHN1r (ORCPT + 82 others); Wed, 8 Nov 2017 08:27:47 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48452 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751674AbdKHN1p (ORCPT ); Wed, 8 Nov 2017 08:27:45 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA8DONg7118246 for ; Wed, 8 Nov 2017 08:27:45 -0500 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e41kem7w7-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 08 Nov 2017 08:27:44 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 8 Nov 2017 13:27:42 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 8 Nov 2017 13:27:40 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA8DRd6I36569090; Wed, 8 Nov 2017 13:27:39 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7102342052; Wed, 8 Nov 2017 13:22:43 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 20CC64203F; Wed, 8 Nov 2017 13:22:43 +0000 (GMT) Received: from [9.152.212.131] (unknown [9.152.212.131]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 8 Nov 2017 13:22:43 +0000 (GMT) Subject: Re: [PATCH] s390/dasd: avoid calling do_gettimeofday() To: Arnd Bergmann , Jan Hoeppner , Martin Schwidefsky , Heiko Carstens Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171106140328.1498644-1-arnd@arndb.de> From: Stefan Haberland Date: Wed, 8 Nov 2017 14:27:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171106140328.1498644-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB X-TM-AS-GCONF: 00 x-cbid: 17110813-0016-0000-0000-000004FEF173 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110813-0017-0000-0000-0000283A956D Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-08_03:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1711080186 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06.11.2017 15:02, Arnd Bergmann wrote: > do_gettimeofday() is deprecated because it's not y2038-safe on > 32-bit architectures. Since it is basically a wrapper around > ktime_get_real_ts64(), we can just call that function directly > instead. > > Signed-off-by: Arnd Bergmann > --- > drivers/s390/block/dasd_eer.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c > index 4630782b5456..5169c717c9d6 100644 > --- a/drivers/s390/block/dasd_eer.c > +++ b/drivers/s390/block/dasd_eer.c > @@ -296,7 +296,7 @@ static void dasd_eer_write_standard_trigger(struct dasd_device *device, > { > struct dasd_ccw_req *temp_cqr; > int data_size; > - struct timeval tv; > + struct timespec64 ts64; ... > + ktime_get_real_ts64(&ts); > + header.tv_sec = ts.tv_sec; > + header.tv_usec = ts.tv_nsec / NSEC_PER_USEC; > I renamed ts64 to ts to match the usage below and fix the compile error. Beside of this, applied. Thanks for the patch. From 1583325737432497172@xxx Mon Nov 06 14:04:50 +0000 2017 X-GM-THRID: 1583325737432497172 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread