From patchwork Fri Jun 17 14:30:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102162 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp311079qgy; Fri, 17 Jun 2016 07:29:53 -0700 (PDT) X-Received: by 10.36.41.16 with SMTP id p16mr4000567itp.60.1466173793419; Fri, 17 Jun 2016 07:29:53 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tp1si4925829pac.137.2016.06.17.07.29.53; Fri, 17 Jun 2016 07:29:53 -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 S1753152AbcFQO3u (ORCPT + 30 others); Fri, 17 Jun 2016 10:29:50 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:63776 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbcFQO3t (ORCPT ); Fri, 17 Jun 2016 10:29:49 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue003) with ESMTPA (Nemesis) id 0LgtBS-1biMIZ1QHu-00oBXz; Fri, 17 Jun 2016 16:28:33 +0200 From: Arnd Bergmann To: Jaroslav Kysela , Takashi Iwai Cc: Arnd Bergmann , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] oss: avoid time_t usage Date: Fri, 17 Jun 2016 16:30:03 +0200 Message-Id: <20160617143020.3151017-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:THkaFvCBG4GTJVD7KRtiDVxfTzs4GGKirWP0c+eziM5o1h0wAkX gqiJyuI5vysn48oo5lNML9TQZq7cBbp3+W4EqOEDtgbbHhjsMnfNDsKMlwMrKLx3zmx9ls6 Dk3Xb49LxJO6vJgcvK+lFss5ESgM9ZEgn1nydOeRMWhkQrhg+Z5xIvvfTw5XjZi//gvYdDx GgpAhW+zSQo+Au9Ns0/oQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:jJNHVl0Svyk=:Q/7uwM0L3y/zx8hmH1vREd 9ReXM9YlotDs7f4hnqSR9cMuXztDSg+KxpLZG5iTTIvxUJhGd640o3ShOFZed3Ep3TJWG/au2 F1rAqJ279Czl/JAB27+NgFDVqkX4Kl0M/sLfv2eBfPxAg+jeJ7FuOWUnWL+UGHoYRa4GZKOJk 4wqEMq2TvZSSS14t+2bdbdp84TEBdjgRor0h1UErq6YdRsqjgJ6CL4m9zBm9w9z7w61PEXmp+ +fo22M3D3zWprbodYc2++HM9SePNunF5mnIrjlMVbrXwHHUieUG5A8Rc6TdinAsWRYXNWRMX3 kRvExsKu+BrN6ir53jIEkK6G1rSNc8IJOLN7WuM7Ni1qwGWJGATWTmQ9lx5CSnCI9D2fTUA/6 K/Xh5Q0xBkH6RrQvctmi8A60UG4M6KKjD63DCBUkZOIgxuwuKngHNsS/A9DLtumE3zKun0QiR 159KeuiprSdg3VeaguEaaz4HYtrVJp8ICtoGccLbnSwpsObXYVbx2CzxOf6CRBx+Dag168IwH JTC/1hXJcXxzxN6wmAO02scajC2sv6sX/LuWEfy+6NYZcvgnyK2QGz+YluPNihAJWWboHPRhP wqQjd2rDkttF9oywLPiH96olhVQie8clqLXp4kvXpxqqy0Zhw5A5nOi94uWn7aEp9gIbJb3Tn AdoaUODpLkktjFUVl0P7IxlUIWg4bvB1vkv7q37+7ukr6/rRT0t6oH2vPKKuNntKG454= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We want to remove all time_t users from the kernel because of y2038 compatibility. This particular instance does not even use time_t to store a seconds value, so we can simply use 'unsigned int', which seems more fitting anywhere. The same code is used in two OSS files. Signed-off-by: Arnd Bergmann --- sound/oss/sound_timer.c | 2 +- sound/oss/sys_timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/sound/oss/sound_timer.c b/sound/oss/sound_timer.c index 8021c85f076d..3a444a6f10eb 100644 --- a/sound/oss/sound_timer.c +++ b/sound/oss/sound_timer.c @@ -17,7 +17,7 @@ #include "sound_config.h" static volatile int initialized, opened, tmr_running; -static volatile time_t tmr_offs, tmr_ctr; +static volatile unsigned int tmr_offs, tmr_ctr; static volatile unsigned long ticks_offs; static volatile int curr_tempo, curr_timebase; static volatile unsigned long curr_ticks; diff --git a/sound/oss/sys_timer.c b/sound/oss/sys_timer.c index 2226dda0eff0..d17019d25b99 100644 --- a/sound/oss/sys_timer.c +++ b/sound/oss/sys_timer.c @@ -19,7 +19,7 @@ #include "sound_config.h" static volatile int opened, tmr_running; -static volatile time_t tmr_offs, tmr_ctr; +static volatile unsigned int tmr_offs, tmr_ctr; static volatile unsigned long ticks_offs; static volatile int curr_tempo, curr_timebase; static volatile unsigned long curr_ticks;