Received: by 10.223.164.197 with SMTP id h5csp441446wrb; Sat, 4 Nov 2017 14:54:36 -0700 (PDT) X-Google-Smtp-Source: ABhQp+ShM96iB8XOG2lyuUHf6i4HAGcpbrjzqUww7jXhkq1fYk2Pte+9xj+iOwMZR5pxNgsGkm/q X-Received: by 10.159.252.11 with SMTP id n11mr10844738pls.172.1509832476732; Sat, 04 Nov 2017 14:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509832476; cv=none; d=google.com; s=arc-20160816; b=OlA8e38NlnpmYYwAJJcO95tGB6z3joni6yLERT5a5QJXRk5ODw+6RKx8u+gPSZNQgP 77leumVbekPbrouxAPkUphli40bJ0weQcfBWBU7k/EKHad+ldiPpYfRGaQc6qXpXtWED fXb21KEkZhpuZvpH0L+OOoSKRfDoLzoBE0+UM+5Ape4WN8wOh4u1P1D15OqeLQ5k7DqZ 2YGuxP3IWal55rAXHffcko8EdI9G5H3IuDnW3nhU16MSiDXlqejVaOexDv0fKwvXjtbF /wiTLg3I2HiFzSDOObBnuB/LdgRcf1lnu3fM6SMI4h8fxPaTVZxlPRWMbrNbz7XZeMsl vGbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=z/v2g443483Ux+aCyH1YxQESMbazIahn3VFNyiD587Q=; b=lKSUvf5S7+Nb0b2fvuWa9/7iFr478Bc3o8jPgUWvZ/R26HFRn8UcGZZUbSJLaqWyp9 2PHF4iWpZHzuL3XIi2O/ziQ4DmYkWZscYKX0YIp2wuizYfwO2xn7jV3Zd03fxewgPXzb RlVeMppJoAo/31HqZHCyyssXkHAlA/GImTPUApmKTma3Su90p0CZleyfzfHV2AXXi8NT OoRegF0VTmoaxckp8idykNR5xlKMgtK4FVX0kM9vLDGUW/tWmnI4Zpd1RUGrmcsoI6Oj wSzWUrISSc4SDLG8MLOTExQKENfsmzx+EYqXPswtWh4bxuaGIWdoxgGry32Fu9NAxe9r S58w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CEU1wM1y; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5si8194533plr.221.2017.11.04.14.54.23; Sat, 04 Nov 2017 14:54:36 -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=@gmail.com header.s=20161025 header.b=CEU1wM1y; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467AbdKDVxQ (ORCPT + 94 others); Sat, 4 Nov 2017 17:53:16 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:47395 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883AbdKDVxP (ORCPT ); Sat, 4 Nov 2017 17:53:15 -0400 Received: by mail-pg0-f65.google.com with SMTP id r25so5299756pgn.4; Sat, 04 Nov 2017 14:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=z/v2g443483Ux+aCyH1YxQESMbazIahn3VFNyiD587Q=; b=CEU1wM1ynJN2GU8kYN0nZEIFCafG5EBbnWK4IiSSILKESYjB3CCFzhPgxdEaoQ2eTf 2g2qcpfUSoh45Bdwntl9dvOvxNaEl3LipMdCUnQ33u06cN7OnN8YEqAbSXf9sNVrcBAh Tp3Q3MWMmhp2SJZ2Q/bCyxbsLpWbeK32JC520QvWK8inF953rUVtXX5xsTYNaaukiTvP NGIYqVkwOjPvSuIcrrxQVvUZRhwJpFxNsvG4tSAHKZ91mDP6h0Ac1InxtrfvzbjqiZAE MWELL+OF8Exs4cb203V+hEl5e20WP2PjUMlql/t+hvWe/pJ479PqdA89qUZYmDtdjREA 0SLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=z/v2g443483Ux+aCyH1YxQESMbazIahn3VFNyiD587Q=; b=WEOTqCUxJz0YM4c0pjP3WephfHOXFEcw4ojP+Uw+3STEL+VdXWsieI/FLFHk++VqSJ QH5Vw5GFIJVM/xMsH7s82HL7JnhEm+hExFYFQyblxKzu2ryuxBZF8XiYkwr1fY73iPrq zLz4ANjqo77CGLFdluDVQKl/G4ZO1cej8zOhpyMEWiX+NbuI0fF6zV4uySc4rlh7FI5s BYUUuzZ8VH+bVKxL/jqkwpVukguKAKYEOWTzQjxP9jzdldHjgT8RFNp5cfdgEzVxyItG +l/YPa/W7yiI3FeLKvI+6ieEgMpdD10k3cBI8n5pICBaPC3CMiXv+xm3BM0J+aZrsLLI y5pg== X-Gm-Message-State: AMCzsaUjM6EiSV2QlW8KF14Iq9/W8Wlkvc1K8GbVKbJ5YWDVhquAQzkE U4J8H0UInjY+XPkZVGymj+GD/Q== X-Received: by 10.101.69.6 with SMTP id n6mr10919775pgq.290.1509832394644; Sat, 04 Nov 2017 14:53:14 -0700 (PDT) Received: from localhost.localdomain ([103.46.195.129]) by smtp.gmail.com with ESMTPSA id o19sm14202782pgn.0.2017.11.04.14.53.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 04 Nov 2017 14:53:13 -0700 (PDT) From: Himanshu Jha To: hverkuil@xs4all.nl Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, mcgrof@kernel.org, Himanshu Jha Subject: [PATCH] [media] pulse8-cec: Eliminate use of time_t and time_to_tm Date: Sun, 5 Nov 2017 03:23:01 +0530 Message-Id: <1509832381-1243-1-git-send-email-himanshujha199640@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eliminate the use of time_t type and time_to_tm functions as they are deprecated due to y2038 problem. Use the 64-Bit type interface instead. Signed-off-by: Himanshu Jha --- drivers/media/usb/pulse8-cec/pulse8-cec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/pulse8-cec/pulse8-cec.c b/drivers/media/usb/pulse8-cec/pulse8-cec.c index 50146f2..3506358 100644 --- a/drivers/media/usb/pulse8-cec/pulse8-cec.c +++ b/drivers/media/usb/pulse8-cec/pulse8-cec.c @@ -329,7 +329,7 @@ static int pulse8_setup(struct pulse8 *pulse8, struct serio *serio, u8 cmd[2]; int err; struct tm tm; - time_t date; + time64_t date; pulse8->vers = 0; @@ -349,7 +349,7 @@ static int pulse8_setup(struct pulse8 *pulse8, struct serio *serio, if (err) return err; date = (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3]; - time_to_tm(date, 0, &tm); + time64_to_tm(date, 0, &tm); dev_info(pulse8->dev, "Firmware build date %04ld.%02d.%02d %02d:%02d:%02d\n", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec); -- 2.7.4 From 1583013474048094160@xxx Fri Nov 03 03:21:32 +0000 2017 X-GM-THRID: 1583013474048094160 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread