Message ID | 20090302145145.ee3fafc1.akpm@linux-foundation.org |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <grbounce-34fr-AUAAABuoFD808Q5bCfSIuTXKCcH=incoming=patchwork.ozlabs.org@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from wf-out-1516.google.com (wf-out-1516.google.com [209.85.200.163]) by ozlabs.org (Postfix) with ESMTP id E6579DDEED for <incoming@patchwork.ozlabs.org>; Tue, 3 Mar 2009 09:52:22 +1100 (EST) Received: by wf-out-1516.google.com with SMTP id n22so664400wfa.41 for <incoming@patchwork.ozlabs.org>; Mon, 02 Mar 2009 14:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received-spf:authentication-results:received :received:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:x-spam-status :x-spam-checker-version:x-mimedefang-filter:x-scanned-by:reply-to :sender:precedence:x-google-loop:mailing-list:list-id:list-post :list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=36YmSTu+B+F9/mk86reX2EOh/ak56Glv0ZTyaQ/u+vQ=; b=q/hJ3lSABIuT6SCjiXDiZHyjzH2VXVRKPe8UmiQazY76TKGXYQZLefZqRDkprdRzX2 vJesS7LVkoaNyRJhix1O5iasL4rlE8aIKtYKT5UjKki4QSsxIrSpP0WcVfiZJ1EJ3fFI 3E4LwwlD8zDIOUUB2Vyw2IwUCS9+OkZaH8q64= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results:date :from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:x-spam-status:x-spam-checker-version :x-mimedefang-filter:x-scanned-by:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; b=cQZ/9nHvKZ9y2U60AhEWD090wG3n0GwCwEFx1xubzNF0v3SA0iEXVnLh/Nh6eMVELn qQCzw/RgfZuYbIsL/TCH6J9+Iz38ovf80o/j2b6vOCEvIQN/Fq1gW3Nsr2v0krNvemsf e0w22rcVTseH6ksC9m62a1q6T9eKYba2NX4qE= Received: by 10.142.246.19 with SMTP id t19mr492565wfh.1.1236034337861; Mon, 02 Mar 2009 14:52:17 -0800 (PST) Received: by 10.106.129.7 with SMTP id b7gr1968prd.0; Mon, 02 Mar 2009 14:52:17 -0800 (PST) X-Sender: akpm@linux-foundation.org X-Apparently-To: rtc-linux@googlegroups.com Received: by 10.143.155.4 with SMTP id h4mr941216wfo.27.1236034335621; Mon, 02 Mar 2009 14:52:15 -0800 (PST) Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) by mx.google.com with ESMTP id k19si26095waf.0.2009.03.02.14.52.15; Mon, 02 Mar 2009 14:52:15 -0800 (PST) Received-SPF: pass (google.com: domain of akpm@linux-foundation.org designates 140.211.169.13 as permitted sender) client-ip=140.211.169.13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of akpm@linux-foundation.org designates 140.211.169.13 as permitted sender) smtp.mail=akpm@linux-foundation.org Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id n22Mpkvc020467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Mar 2009 14:51:47 -0800 Received: from akpm.corp.google.com (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with SMTP id n22MpjjS030958; Mon, 2 Mar 2009 14:51:45 -0800 Date: Mon, 2 Mar 2009 14:51:45 -0800 From: Andrew Morton <akpm@linux-foundation.org> To: Roel Kluin <roel.kluin@gmail.com> Cc: a.zummo@towertech.it, rtc-linux@googlegroups.com Subject: [rtc-linux] Re: [PATCH] rtc: test before subtraction on unsigned Message-Id: <20090302145145.ee3fafc1.akpm@linux-foundation.org> In-Reply-To: <49ABF020.3070705@gmail.com> References: <49ABF020.3070705@gmail.com> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Status: No, hits=-4.952 required=5 tests=AWL, BAYES_00, OSDL_HEADER_SUBJECT_BRACKETED, PATCH_SUBJECT_OSDL X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 Reply-To: rtc-linux@googlegroups.com Sender: rtc-linux@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rtc-linux@googlegroups.com; contact rtc-linux+owner@googlegroups.com List-Id: <rtc-linux.googlegroups.com> List-Post: <mailto:rtc-linux@googlegroups.com> List-Help: <mailto:rtc-linux+help@googlegroups.com> List-Unsubscribe: <http://googlegroups.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+unsubscribe@googlegroups.com> X-BeenThere-Env: rtc-linux@googlegroups.com X-BeenThere: rtc-linux@googlegroups.com |
--- a/drivers/rtc/rtc-ds1374.c~rtc-test-before-subtraction-on-unsigned-fix +++ a/drivers/rtc/rtc-ds1374.c @@ -228,7 +228,7 @@ static int ds1374_set_alarm(struct devic * (i.e. not something that we'd rather the caller know about via * an error), and the alarm is set to go off as soon as possible. */ - if (new_alarm <= itime) + if (time_before_eq(new_alarm, itime)) new_alarm = 1; else new_alarm -= itime;