[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1449641498-5761-1-git-send-email-bamvor.zhangjian@linaro.org>
Date: Wed, 9 Dec 2015 14:11:36 +0800
From: Bamvor Jian Zhang <bamvor.zhangjian@...aro.org>
To: linux-kernel@...r.kernel.org
Cc: y2038@...ts.linaro.org, gregkh@...uxfoundation.org, arnd@...db.de,
sudipm.mukherjee@...il.com, broonie@...nel.org,
Bamvor Jian Zhang <bamvor.zhangjian@...aro.org>
Subject: [PATCH 0/2] Convert ppdev to y2038 safe
These series of patches try to convert parport device(ppdev) to
y2038 safe, and support y2038 safe and unsafe application at the
same time. There were some discussions in y2038 mailing list[1].
An y2038 safe application/kernel use 64bit time_t(aka time64_t)
to avoid 32-bit time types broken in the year 2038. Given that
some time relative struct(e.g. timeval in ppdev.c) is mainly the
offset of the real time, the old 32bit time_t in such application
is safe. We need to handle the 32bit time_t and 64bit time_t
application at the same time. My approach here is handle them as
different ioctl command for different size of timeval.
Build successful on arm64 and arm.
[1] https://lists.linaro.org/pipermail/y2038/
Bamvor Jian Zhang (2):
ppdev: convert to y2038 safe
ppdev: add support for compat ioctl
drivers/char/ppdev.c | 86 ++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 66 insertions(+), 20 deletions(-)
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists