Message ID | 1387439515-8926-2-git-send-email-jlee@suse.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBDEMZNPSTIMBB4WLZKKQKGQEYHL5M7I@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-gg0-x23f.google.com (mail-gg0-x23f.google.com [IPv6:2607:f8b0:4002:c02::23f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A86E92C0086 for <incoming@patchwork.ozlabs.org>; Thu, 19 Dec 2013 18:53:25 +1100 (EST) Received: by mail-gg0-f191.google.com with SMTP id h1sf122926ggn.8 for <incoming@patchwork.ozlabs.org>; Wed, 18 Dec 2013 23:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=m7XbOg3D3lg2FDqXXFZx7VezUX6UsbmWw2OPNA5l7kQ=; b=Om70GCeNlvTvDMsehxXHTbJkBpCQUdgX6D5N21GTEYjcXyU1DTP3sZ+V6s9l77yU+C q0WpGZu1DG0qScZIHkj7a65L0ztNxkAvcmA5ySdmkt/DFCJ9umyKVXC+PYNyuQexpJ+R oXtHngXIaq5xYqr5L+UO1YZQsTNoPHdJlMuD1CSRZnkMtR34mPn9vsFPL2SG/l3PtdrC BWdRcszaDzFct+/3C+FF0KG6WJyR+TrdM/2zRqcLZCqodmk2GsCLlfTbWRI/ZHp26A22 oNihQ/kLhW7GW6aPDm2kRqHP2/T9yTrd+GcdAyFtuHI5BPyabB2fNuOPoRAQRglFGhfC +k3w== X-Received: by 10.182.113.194 with SMTP id ja2mr617obb.31.1387439602378; Wed, 18 Dec 2013 23:53:22 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.182.232.198 with SMTP id tq6ls228264obc.39.gmail; Wed, 18 Dec 2013 23:53:22 -0800 (PST) X-Received: by 10.182.153.68 with SMTP id ve4mr5642obb.39.1387439602023; Wed, 18 Dec 2013 23:53:22 -0800 (PST) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [2607:f8b0:400e:c03::22b]) by gmr-mx.google.com with ESMTPS id d9si952104yhl.2.2013.12.18.23.53.21 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 23:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of joeyli.kernel@gmail.com designates 2607:f8b0:400e:c03::22b as permitted sender) client-ip=2607:f8b0:400e:c03::22b; Received: by mail-pa0-f43.google.com with SMTP id bj1so823570pad.2 for <rtc-linux@googlegroups.com>; Wed, 18 Dec 2013 23:53:21 -0800 (PST) X-Received: by 10.66.156.106 with SMTP id wd10mr38997200pab.125.1387439601190; Wed, 18 Dec 2013 23:53:21 -0800 (PST) Received: from localhost.localdomain ([130.57.30.250]) by mx.google.com with ESMTPSA id qp15sm5173154pbb.2.2013.12.18.23.53.12 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 23:53:20 -0800 (PST) From: "Lee, Chun-Yi" <joeyli.kernel@gmail.com> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Alessandro Zummo <a.zummo@towertech.it>, "H. Peter Anvin" <hpa@zytor.com>, Matt Fleming <matt@console-pimps.org>, Matthew Garrett <matthew.garrett@nebula.com> Cc: Elliott@hp.com, samer.el-haj-mahmoud@hp.com, Oliver Neukum <oneukum@suse.de>, werner@suse.com, trenn@suse.de, JBeulich@suse.com, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, x86@kernel.org, "linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>, linux-acpi@vger.kernel.org, "Lee, Chun-Yi" <jlee@suse.com> Subject: [rtc-linux] [PATCH 01/14] rtc-efi: fix decrease day twice when computing year days Date: Thu, 19 Dec 2013 15:51:42 +0800 Message-Id: <1387439515-8926-2-git-send-email-jlee@suse.com> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1387439515-8926-1-git-send-email-jlee@suse.com> References: <1387439515-8926-1-git-send-email-jlee@suse.com> X-Original-Sender: joeyli.kernel@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of joeyli.kernel@gmail.com designates 2607:f8b0:400e:c03::22b as permitted sender) smtp.mail=joeyli.kernel@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 |
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 797aa02..c4c3843 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -35,7 +35,7 @@ static inline int compute_yday(efi_time_t *eft) { /* efi_time_t.month is in the [1-12] so, we need -1 */ - return rtc_year_days(eft->day - 1, eft->month - 1, eft->year); + return rtc_year_days(eft->day, eft->month - 1, eft->year); } /* * returns day of the week [0-6] 0=Sunday