Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4041257imm; Mon, 18 Jun 2018 08:13:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIV3sJnjh8hM5nroRfjsIQFG0Kh9F0RyxIQRVKbiU7HPC94ntSPLX0QlwAqqv01g5x+7VfM X-Received: by 2002:a62:830e:: with SMTP id h14-v6mr14171029pfe.64.1529334796325; Mon, 18 Jun 2018 08:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529334796; cv=none; d=google.com; s=arc-20160816; b=XIbX00T1vIwF4Oh26aoMOYxOuBSi3vKd7kxhbji4TGPczO5OSy0K3uJ2kXeAwTavB4 f4hsSQK/lee+MnAQJRdwrgp4+81JzwlM1waTe18STeHB0XEqeCQNeeP8BVdnsQCy7GAq Oxk9w2AZs+A5cAs5XX1/gOCavtidbBB4muR5Q+eGhHGEqIQG4bvY809LBVfnTwUUt8hC rHGxYKRFM8TGrimH/MzBnNbctOOgcTtJlulsmWcwhPgQX5sKD9QB6u+FEUOE4O6TTKg3 kdwYk8xWmY1mXVr0npp7n4P8hsP8UyjllKDj5jJlCRSDTjlb0E9fXy0keIrFJ7d+nyVK fmgQ== 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 s7-v6si12220169pgq.230.2018.06.18.08.13.01; Mon, 18 Jun 2018 08:13:16 -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 S933258AbeFRPMQ (ORCPT + 99 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(-) 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; -- 2.9.0