From patchwork Thu Sep 21 06:18:08 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: 113195 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1641491qgf; Wed, 20 Sep 2017 23:19:06 -0700 (PDT) X-Received: by 10.98.76.70 with SMTP id z67mr4661747pfa.78.1505974746035; Wed, 20 Sep 2017 23:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505974746; cv=none; d=google.com; s=arc-20160816; b=XWleGjGZk/+HbriYuC0Z46GvpYV7zEO+W4HxuzSUcRXaG08q8SNMahga+eP/TOBC6X knMYVlBTOh47RvJF8NJ88Ukb98zc/sVvqjviRGnUjFw7Dbm40/F6FuN+DmJsgIn0igjh ZGkvy54yTUzYja31xOiqQWAMQtwgrpxw7YfSCx1Ld4nZYmTbsPpeaDvefqxwB9c/cOfp 8vwxNJXxqQrLBOPCh+qQwmaL09Y9WeIPD/jHD8y+WLVTMrDPJbkk59XfCUYyqslU26Ig fPqWV0lwyLGHdGPqFVFOeAzpDAA815Wyx2EvRxxdg4lgIItlJjVj4knXWAPt6aU9eOl7 AlAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=hqQlmYft16Py82zVPENySRlvYUvy2LphLnOwzFzB0aU=; b=i7iiVIhV1/4v1x2gScBsXyQx7D+0FGq2c38UNzWwDq/YySZXMG5PoGfr8mfzZ1NT64 FpLOyvpCLn7pCJip21K7qQrH+ULwW/yyH9GoUuwhACb7q4fVBpI+QCsMT5whp11kOzTo eFnONdYg5pEqUyMZEHQ0PpeboNRHQtckWA8gt1j4n4SqVuEOaQ1YEZ641RZ7TwuYzwSi 39xbPDSgk9RZVxQ4pyNBpPcQ42+Te2aeWrQy9g7ubGwMOGSMY/1GTOFeDFmxybi3yKQf ynbmjBPJWRR/LoZRTBZj7ibQR/5hYHaGGCxvZHrtj/D8jWamjuEcT+n7QCKOHcxvwREo iMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BonFcXlG; 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 i3si562739pli.293.2017.09.20.23.19.05; Wed, 20 Sep 2017 23:19:06 -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=BonFcXlG; 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 S1751845AbdIUGTE (ORCPT + 26 others); Thu, 21 Sep 2017 02:19:04 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:46139 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751743AbdIUGTC (ORCPT ); Thu, 21 Sep 2017 02:19:02 -0400 Received: by mail-pg0-f52.google.com with SMTP id i130so3018544pgc.3 for ; Wed, 20 Sep 2017 23:19:02 -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:in-reply-to:references :in-reply-to:references; bh=hqQlmYft16Py82zVPENySRlvYUvy2LphLnOwzFzB0aU=; b=BonFcXlGFRaSwY3BSZ2Zaca5fzx1JYi7h2GBmBDZr+zT2CefsQcCqa6LC9yR3h4LNj P/Dl4D5N6GuHNUz08aUqHrHVavPLlU5IL7BXfSoWJIqABLC5KbbFrsTPtXDjg0q8WgRx OT/qkg/UJdfgLBw3oNflzgz9/AXOjygbXvQok= 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:in-reply-to :references:in-reply-to:references; bh=hqQlmYft16Py82zVPENySRlvYUvy2LphLnOwzFzB0aU=; b=bFZWVsyizsBVBCBsOb5PpwIjK2lFpRtIXTYp+l9XFJZUYeGgli8bd7/nyQR6AO3oSv pjO23bGorgZ8WshRHGFaUUvAACxAbHIWmxe3motQdqFJt+bSDlg8P5tzWjBNGlw1S1jK Q+/XSuuC0aRaxmLqTTYJpw23VOm/7NFLmBau4JY4xC1WnQQ+KjcaOZ9qBf2NdWVTKWaZ MobYsotiY26aca0FZBq/ygKD/lvi0MJqq+iLTQwRdkuDC0f4M1VU68US2Wod6jwugtJE bOsrIuIUG7G7kg+3Zz+1TUHoKekQ2U/J+QYUl0GAJf51e+41ZwjyHriG/OXkJbdEmLUQ zHSw== X-Gm-Message-State: AHPjjUjfM+opTpo34kI5X5iMys5YMYm4YqtNURqaHm2uSqoUE1OvdQnj NWnGD0BlGAsOLIkASSF9vy9inA== X-Google-Smtp-Source: AOwi7QDC4t6/0RUwsEXYhJsXiZEX3siLhp70j5bcYOWBmp1MousQ3QT1SwWPRwgTZdvPnzz3GuNBnA== X-Received: by 10.101.81.135 with SMTP id h7mr4753564pgq.48.1505974741977; Wed, 20 Sep 2017 23:19:01 -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.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Sep 2017 23:19:01 -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 6/7] uapi: sound: Avoid using timespec for struct snd_ctl_elem_value Date: Thu, 21 Sep 2017 14:18:08 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct snd_ctl_elem_value will use 'timespec' type variables to record timestamp, which is not year 2038 safe on 32bits system. Since there are no drivers will implemented the tstamp member of the struct snd_ctl_elem_value, and also the stucture size will not be changed if we change timespec to s64 for tstamp member of struct snd_ctl_elem_value. Thus we can simply change timespec to s64 for tstamp member to avoid using the type which is not year 2038 safe on 32bits system. Signed-off-by: Baolin Wang --- include/uapi/sound/asound.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.7.9.5 diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h index 1949923..71bce52 100644 --- a/include/uapi/sound/asound.h +++ b/include/uapi/sound/asound.h @@ -943,8 +943,8 @@ struct snd_ctl_elem_value { } bytes; struct snd_aes_iec958 iec958; } value; /* RO */ - struct timespec tstamp; - unsigned char reserved[128-sizeof(struct timespec)]; + struct { s64 tv_sec; s64 tv_nsec; } tstamp; + unsigned char reserved[128-sizeof(struct { s64 tv_sec; s64 tv_nsec; })]; }; struct snd_ctl_tlv {