From patchwork Mon Jun 18 15:11:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 138989 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4069519lji; Mon, 18 Jun 2018 08:12:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDPHXO7OMEN+hDP5RfkESeI3zgJRkkXJTUbKstrzzK/hktjtmktju3L49XJnoez3fb6J0o X-Received: by 2002:a62:50d6:: with SMTP id g83-v6mr13914519pfj.31.1529334738208; Mon, 18 Jun 2018 08:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529334738; cv=none; d=google.com; s=arc-20160816; b=DvQFnA8oshEVEh94JBXk1gakjQstMc3uPZbvG6wMmDSe95vybfdu6KY+O8+OYI46I1 icyheYqcivhmZElIZY9PKaQ/eJir5IedR1N9HDqi+OXxbXGu1yOA6Lq0bkqB1lMqmGHa 9ezI2Xot4RWmBGjEcjo18Zrm+Ry4bTuAT8v4lUJ5Y6IBrcfP/3W1bPUOqx9q7QP7Orw7 drsM3djOp2yGqjLHcp/gw4JP02Jsf0NIZT++vXKx1jvWtb7Wx/Rno/SRSa3oo5OnFJ+9 zYokHwZnV97f/6BwDAgADD3rfyqF0aEClXoFaU4Cycpw/wbANOUKyVUnuAFRNDxygEeK oJoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bQu25eHjmcrYPZ9S1sWQlOJPoSp/6UretJWQFe88Xg4=; b=xbJ6xXPUcrLKS7d4D7hqm90dfjeupNYyTOUo2DJRJ6frqetw3+mA3JhzDQoZmqlTy+ f9eTLECFc0AupQn8sSUUn8n+CYJVjS8tBi/aWNiyI1tciPXV7X54dYUT3g7Mus1Z3RNx n6/1uuU+B9i5dZVTpQvP7hrfOD9w9f+EFeOWFJEJGJ/2D6JYcuTrA77sRtgTacJmW4y+ npM7evMKld/dF7ZE7IfZE36Y8zSsWXnFcw1OxTlYeg9IzHBh/kXOXrqvgwcMfMWXdyVU iCGpWdPOIknHnL+ENLR/zuNaJLlYozQ0KDscUOGfHsRk1DsCLhYnGN1vQC9nmDwMj4Pl jlVg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g28-v6si17162950plj.307.2018.06.18.08.12.17; Mon, 18 Jun 2018 08:12:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933389AbeFRPMQ (ORCPT + 30 others); Mon, 18 Jun 2018 11:12:16 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:42417 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754321AbeFRPMM (ORCPT ); Mon, 18 Jun 2018 11:12:12 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LnBO9-1g9EC42oKD-00hJhV; Mon, 18 Jun 2018 17:12:01 +0200 From: Arnd Bergmann To: Daniel Drake , Ulrich Kunitz , Kalle Valo , "David S. Miller" Cc: y2038@lists.linaro.org, Arnd Bergmann , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] zd1211rw: stop using deprecated get_seconds() Date: Mon, 18 Jun 2018 17:11:15 +0200 Message-Id: <20180618151142.1214422-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180618151142.1214422-1-arnd@arndb.de> References: <20180618151142.1214422-1-arnd@arndb.de> X-Provags-ID: V03:K1:Ei5MIm6yM4wBsY2O+tJ/g5PyqDStFsygF1ivgCfqqi7iSma4DY5 4UQbV5zVhaqZqCNKF32kEw5I+oxDsSl4JZG4oZGHySAV3Jieq/bdMjpIPG0qXgqHKGdyVO3 5VYRz09thRudlwHvElmJ6fFmVdwgQNldNNHDJ1Mla16/PVkFf74rVYiUooaLH4OchChi2qh ByBy32xRrTDaiJJpIMTEQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:f57maYKLt48=:kvjviJDgce0N1adDqxaBZI TUNW9Ab4AyhcGqinN5u8QqWjiNRpXQFUQUrFFvt3MrWVuOthCEc272I9/5K2bPNOuTUJf6k1D majueNK/ZNoMUeBzAJCq4wjjCLfZVpH7Uxz4d0ksUqY4Q6v4xcmWiXSHCkwh0CyncMznps5F6 8A/33iwiRYNZilunbz5PjDWcT49owwxUZoEfIte5vguPPiObhVIXIgO8TVTfLxqXmwnpI4AIg gBYBF6ACFkBAfnWRW2Ua4SL2gWS+4XdWcfTUboMk6Ny1U5O9KMD0Ngvhx1NT/mMpiLjLXAum1 CD0h6L3Piz2YaLnJH0Lj7cHqpSrkKrXvSigOGpFhXksydVVZIGVftQOe2vqmBvuSLx+0RDrT3 0piie7q7Q63e+afKqN+LRr4PSKfSHsy1GGe9l9fQZmZ6A3MsbEkcXIcMhtJw7PS+2mtj4NPXj 1jzO+gqQCQ3xxEifiut9RlXY1HlwEYGiEwsJHsdr4Uq0tLrGnPWry7dt1tkUCTF6BVVx+eQTT lMXY+PUsmYX5+NlUwJHkkZq8sfULC7JB8qO7LgQ24e5hE+sXS/pKeFC68dFc6QTxQKsr+OdkW u3f64Ptt/neRwraS0aHjbPNVo7269P1sjt7n4baENUNzchnpGimmYnv0ZZBnSVcfOpGmf2GOO JlvUWXfHM/WojsvuSbkDNk+BeX9O/pgznyeO5NeqjgsHAVU0XqFPniqaSlz2GBsmlbi8= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The get_seconds() function is deprecated because of the y2038 overflow. In zd1211rw we don't even care about the absolute value, so this is not a problem, but it's equally trivial to change to the non-deprecated ktime_get_seconds(). Signed-off-by: Arnd Bergmann --- drivers/net/wireless/zydas/zd1211rw/zd_chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/net/wireless/zydas/zd1211rw/zd_chip.c b/drivers/net/wireless/zydas/zd1211rw/zd_chip.c index 07b94eda9604..dd6a86b899eb 100644 --- a/drivers/net/wireless/zydas/zd1211rw/zd_chip.c +++ b/drivers/net/wireless/zydas/zd1211rw/zd_chip.c @@ -1341,7 +1341,7 @@ int zd_chip_control_leds(struct zd_chip *chip, enum led_status status) case ZD_LED_SCANNING: ioreqs[0].value = FW_LINK_OFF; ioreqs[1].value = v[1] & ~other_led; - if (get_seconds() % 3 == 0) { + if ((u32)ktime_get_seconds() % 3 == 0) { ioreqs[1].value &= ~chip->link_led; } else { ioreqs[1].value |= chip->link_led;