Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751438AbaK0XFg (ORCPT ); Thu, 27 Nov 2014 18:05:36 -0500 Received: from www.linutronix.de ([62.245.132.108]:59207 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbaK0XFg (ORCPT ); Thu, 27 Nov 2014 18:05:36 -0500 Date: Fri, 28 Nov 2014 00:05:34 +0100 (CET) From: Thomas Gleixner To: Xunlei Pang cc: linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, Alessandro Zummo , Sven Schnelle , John Stultz , Arnd Bergmann Subject: Re: [RFC PATCH 2/4] rtc: Convert rtc_class_ops.set_mmss() to use time64_t In-Reply-To: <1417089760-26848-3-git-send-email-pang.xunlei@linaro.org> Message-ID: References: <1417089760-26848-1-git-send-email-pang.xunlei@linaro.org> <1417089760-26848-3-git-send-email-pang.xunlei@linaro.org> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Nov 2014, Xunlei Pang wrote: > -static int coh901331_set_mmss(struct device *dev, unsigned long secs) > +static int coh901331_set_mmss(struct device *dev, time64_t secs) > { > struct coh901331_port *rtap = dev_get_drvdata(dev); > > clk_enable(rtap->clk); > + /* > + * y2106 issue: > + * On 32bit systems the time64_t secs value gets cast to > + * a 32bit long, and thus we can only write a maximum value > + * of y2016 That really makes a lot of sense. Before that patch the driver was safe up to 2038. Now it is facing the y2016 problem. > + /* > + * y2106 issue: > + * On 32bit systems the time64_t secs value gets cast to > + * a 32bit long, and thus we can only write a maximum value > + * of y2016 Copy and paste is wonderful, right? Sigh, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/