Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5314679imm; Tue, 26 Jun 2018 09:11:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpemN1tUQwHnsfrhMV5VLfKsudntZtwKqKakoNMMeqd+oU/HiYSgKKAoQlCh6Jw4iqfVleky X-Received: by 2002:a62:5843:: with SMTP id m64-v6mr2207972pfb.93.1530029464816; Tue, 26 Jun 2018 09:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530029464; cv=none; d=google.com; s=arc-20160816; b=qWYhBchWJZe8kwiP7nNU4+pb1l2YNrHH0CJCZWa9NGz8kb2Ajj/FMno9fRTSghwA/u 7txFPmKUR+kS42b8URMhprFbLYDfx7sd4reAjBlH+xFsa0BZZNXI3VVgPceUjPm/UQl5 jRxY0/XswBe19IvYnAJ6ZevdKIoTdJmHrOCoaIojMHBsuWM2u9afGkKFCHyiXqhiGroz DYdbrVOFhn3225Qu0Whzg+Qw6MPCcj93h3CCXCRwmLel9nPRUSkeKQqpvpYh9pc1bryc ZX23/CkwaasKxSqTDKvOsfynmrs1gKURlVzBXZy/64SHvnZYzIZTTvbB128mVrv68BuL PBEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature:arc-authentication-results; bh=DgWiyR2H+ABpuS1gRaaIM8ZIiZGmS6s9mIXKgchRqqI=; b=Vpjc46vvk2U2Lov2i+uknyjrLLZ/xnGGgOfMgsm5bZ+YV59IvndOqaK6d7O2VwiZzI ENaMmEvuN3bVdFaPZI2LWNPeX5Z0+Hx+ZilEeTo5GtDBDfOrWLwLUm1nZPB4nk31Etls 5qGQgZvOELkyxMYYUL54nh5wRTrOkjKtH6qAzRA221WPkNglTRCvFy1R//L7Bn43LLFE nXht5GTQkMrfC+Sb2AQfHuw5QAvK0sCTg0fHEOK1KZm0R82xkOLrLESqu/KeSgn5zfOq AHnB6TOK4NIUSsWwsevIU+2ZBHlzY/TxqwPAOS82994e+4LNX1UIsGTahlpurZ7AtaqZ n62g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Dn2sZPEM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10-v6si1552325pgt.552.2018.06.26.09.10.49; Tue, 26 Jun 2018 09:11:04 -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=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Dn2sZPEM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391AbeFZP6A (ORCPT + 99 others); Tue, 26 Jun 2018 11:58:00 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:54320 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751450AbeFZP57 (ORCPT ); Tue, 26 Jun 2018 11:57:59 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5QFsjn9139448; Tue, 26 Jun 2018 15:57:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2017-10-26; bh=DgWiyR2H+ABpuS1gRaaIM8ZIiZGmS6s9mIXKgchRqqI=; b=Dn2sZPEM5EQzMXc3HTNRIh4/zhrNB+On0Bh3ueXP4ZYxvtWF0f1HZY+GBPnFDPh4NIXa JezcUS6D2bevJ9RTnPiNPaRDAzGiKUCZ1iXUBHOibW0XfIi1VRgZaLIEhvqju+PMmJnc w6z8xH7gpYBQduz5yJgnjMN+psDknB3aQYRm1ZvAJ+Vzfd50Lzpb9FUCGWFA7StAZUwc WK0GD0yDuAjl0ffVcJccrX8XqzLHFxbwY6v5B4ClS8hrOLt3OT7SP8+c7f1E4wavTB51 GlcUfY4mtPn26Xel6GcA6RQ0XK0+F5TL8UFmOnXPNcdVysnTgItwcKr5DTdTLnsx95Xv Xw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2jum57s748-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Jun 2018 15:57:50 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5QFvoK5020703 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Jun 2018 15:57:50 GMT 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 w5QFvm3N027745; Tue, 26 Jun 2018 15:57:49 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 Jun 2018 08:57:48 -0700 To: Arnd Bergmann Cc: Adaptec OEM Raid Solutions , "James E.J. Bottomley" , "Martin K. Petersen" , y2038@lists.linaro.org, "Guilherme G. Piccoli" , Raghava Aditya Renukunta , Dave Carroll , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] aacraid: stop using deprated get_seconds() From: "Martin K. Petersen" Organization: Oracle Corporation References: <20180618152734.1705907-1-arnd@arndb.de> Date: Tue, 26 Jun 2018 11:57:45 -0400 In-Reply-To: <20180618152734.1705907-1-arnd@arndb.de> (Arnd Bergmann's message of "Mon, 18 Jun 2018 17:26:47 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8935 signatures=668703 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=301 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806260179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd, > get_seconds() can overflow on 32-bit architectures and is deprecated > because of that. The use in the aacraid driver has the same problem > due to a limited firmware interface, it also overflows in the year > 2106. > > This changes all calls to get_seconds() to the non-deprecated > ktime_get_real_seconds(), which unfortunately doesn't solve that > problem but gets rid of one user of the deprecated interface. Applied to 4.19/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering