From patchwork Thu Sep 21 06:18:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 113189 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1641070qgf; Wed, 20 Sep 2017 23:18:28 -0700 (PDT) X-Received: by 10.98.236.150 with SMTP id e22mr4644415pfm.203.1505974708717; Wed, 20 Sep 2017 23:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505974708; cv=none; d=google.com; s=arc-20160816; b=oE8ZCdLYTAGN2H9z8O/hEdTMgEp3uNCIH10MKZp4MEQnSfNPB5+BjQiPW49/nRxI4Z n6aZfXAyhwoAW3tWpnySt4z/AReLjxdm8E3i60iVa2gKyS4/UWI0l9ubUSt7Q+ZXPQlE uWw+aE4QUpPqH3MkbLIxrYpcdi5FP01i1EHRi40xwDRvMY0whcaEsxQQY/DFXJxRbdLL ZYvL7jVKRpD4H3hsyxmck7N2kLvJehNs4KESDqEGnlFmRshXkr6zXMBUcVOHRaASfuTX Bsk+k4lF0PikdGTh+J9QHvjOdrhAXJY5h83Yx6u3RwhqlywezeFYMUb5lWJGQS1ZYxrP ZSyA== 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=xzqtzfS0VNUDO2wCT1cw2jcmWecQsBUp1EQ9m46jY3g=; b=vvzQvPeIrSYVMrnahcReE8gvTaRD2qqWyW/G96qOGDqay2xpgihtU1y3P44UK6rTdx vVHqbvq+RVgRz1YPMl6nwJDUvdXFt+6EsQjYw3A38prFPq4WZOFIO/NRQe+wybVMx8lP AJebZ1n9mmskUQDJQvD1UOIOUwsjj6UOM2tze1BC7aNTtys91q31fY/BnxnTJHiLYE3d JQca+vSNK3/OnmdmncxwRmMZzpzOCwYv7jwgnDgF+Ty91HSq7eF7VRhKovf7qOMFNYWf QkwK22J65jnkLfDglbIv3YQrDfp89Eywqo63mfnB5vtq4ZtuaMBPlkvCXO5bcyxxFZ3j D5jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M8qyFakD; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si575921plj.369.2017.09.20.23.18.28; Wed, 20 Sep 2017 23:18:28 -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=@linaro.org header.s=google header.b=M8qyFakD; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751640AbdIUGSZ (ORCPT + 26 others); Thu, 21 Sep 2017 02:18:25 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:53911 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750912AbdIUGSY (ORCPT ); Thu, 21 Sep 2017 02:18:24 -0400 Received: by mail-pf0-f171.google.com with SMTP id x78so2740588pff.10 for ; Wed, 20 Sep 2017 23:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xzqtzfS0VNUDO2wCT1cw2jcmWecQsBUp1EQ9m46jY3g=; b=M8qyFakD7vQbCMFUB0YmIMRomzT5Zcu0FtiGHxo8Nwi0+DIxuGTqLYls0+hq9oBq1l 4OFQ0mqsyYNLcp+1dwGW0BDsIWwLRnqHyQIqM7kRM+1IaPms59PS2voTYSI5sRxiUdhA DFXBx5MkDm1Q+Bg9KR91w/F/11G31AV+nJeC4= 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=xzqtzfS0VNUDO2wCT1cw2jcmWecQsBUp1EQ9m46jY3g=; b=WK1trI3rGJIGrrl/Zkt/zb1fPlEY0586e0w99uWsihrusFB9WXH3bSUnbrzF8GmBVJ Dnr6GhdFWSt9wZ5GOYuNMYW28c1ubemOR/BvrgxmkAnB/sQhzvIdFjJnl987P/YpNvGW tyuw4YhDyn7RX6iny5xr9kWzMeGELqdw41ndTF56T4HFGS802BVXJy41okfuYUnT9UHb 8iSOEEykrlppOiy2s956fHJQDP+QEs9ZaEexc3PPQKCit/llBXN1/abeXQelRgSk6dJS qVSrFb4ldTGtc3Vv5nVCaSgPem2zVccBhqqkglhaDMOW62C4qRlvwDTldZIxClHhvrY3 auFw== X-Gm-Message-State: AHPjjUgalK+eVcFJFBQkLoWDDjpQz6fq+wpMu+yELjYRxQplv4L+Pj/m euha2v7b4Qs20vSw34nlPozEgQ== X-Google-Smtp-Source: AOwi7QBSc9InoEW3b7+JDiCyx2lNFSmZUz/YUk2Q7KdB+OEEaS9J4Gha6Z6i3RJYmE/DtEQyPobKEA== X-Received: by 10.98.23.10 with SMTP id 10mr4674170pfx.339.1505974704307; Wed, 20 Sep 2017 23:18:24 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id q23sm1037773pfk.182.2017.09.20.23.18.18 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 23:18:23 -0700 (PDT) From: Baolin Wang To: perex@perex.cz, tiwai@suse.com Cc: lgirdwood@gmail.com, mingo@kernel.org, o-takashi@sakamocchi.jp, elfring@users.sourceforge.net, dan.carpenter@oracle.com, jeeja.kp@intel.com, vinod.koul@intel.com, dharageswari.r@intel.com, guneshwor.o.singh@intel.com, bhumirks@gmail.com, gudishax.kranthikumar@intel.com, naveen.m@intel.com, hardik.t.shah@intel.com, arvind.yadav.cs@gmail.com, fabf@skynet.be, arnd@arndb.de, broonie@kernel.org, deepa.kernel@gmail.com, baolin.wang@linaro.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/7] Fix year 2038 issue for sound subsystem Date: Thu, 21 Sep 2017 14:18:02 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since many structures will use timespec type variables to record time stamp in uapi/asound.h, which are not year 2038 safe on 32bit system. This patchset tries to introduce new structures removing timespec type to compatible native mode and compat mode. Moreover this patchset also converts the internal structrures to use timespec64 type and related APIs. Baolin Wang (7): sound: Replace timespec with timespec64 sound: core: Avoid using timespec for struct snd_pcm_status sound: core: Avoid using timespec for struct snd_pcm_sync_ptr sound: core: Avoid using timespec for struct snd_rawmidi_status sound: core: Avoid using timespec for struct snd_timer_status uapi: sound: Avoid using timespec for struct snd_ctl_elem_value sound: core: Avoid using timespec for struct snd_timer_tread include/sound/pcm.h | 113 ++++++++- include/sound/timer.h | 4 +- include/uapi/sound/asound.h | 15 +- sound/core/pcm.c | 14 +- sound/core/pcm_compat.c | 466 +++++++++++++++++++++++++++++-------- sound/core/pcm_lib.c | 33 +-- sound/core/pcm_native.c | 227 ++++++++++++++---- sound/core/rawmidi.c | 74 +++++- sound/core/rawmidi_compat.c | 90 +++++-- sound/core/timer.c | 247 ++++++++++++++++---- sound/core/timer_compat.c | 25 +- sound/pci/hda/hda_controller.c | 10 +- sound/soc/intel/skylake/skl-pcm.c | 4 +- 13 files changed, 1046 insertions(+), 276 deletions(-) -- 1.7.9.5