On Tue, Apr 01, 2008 at 02:09:46AM -0700, Andrew Morton wrote:Ok, here my modifications: diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c index 34b3b22..d75c8c8 100644 --- a/drivers/pps/kapi.c +++ b/drivers/pps/kapi.c @@ -245,7 +245,7 @@ void pps_event(int source, int event, void *data) return; pr_debug("PPS event on source %d at %llu.%06u\n", - pps->id, ts.sec, ts.nsec); + pps->id, (unsigned long long) ts.sec, ts.nsec); spin_lock_irqsave(&pps->lock, flags); diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c index a82b1d8..5cbfeb9 100644 --- a/drivers/pps/pps.c +++ b/drivers/pps/pps.c @@ -164,7 +164,8 @@ static int pps_cdev_ioctl(struct inode *inode, struct file * err = wait_event_interruptible(pps->queue, pps->go); else { pr_debug("timeout %lld.%09d\n", - fdata.timeout.sec, fdata.timeout.nsec); + (long long) fdata.timeout.sec, + fdata.timeout.nsec); ticks = fdata.timeout.sec * HZ; ticks += fdata.timeout.nsec / (NSEC_PER_SEC / HZ); diff --git a/drivers/pps/sysfs.c b/drivers/pps/sysfs.c index 3af773a..0520f62 100644 --- a/drivers/pps/sysfs.c +++ b/drivers/pps/sysfs.c @@ -38,7 +38,7 @@ static ssize_t pps_show_assert(struct device *dev, return 0; return sprintf(buf, "%lld.%09d#%d\n", - pps->assert_tu.sec, pps->assert_tu.nsec, + (long long) pps->assert_tu.sec, pps->assert_tu.nsec, pps->assert_sequence); } DEVICE_ATTR(assert, S_IRUGO, pps_show_assert, NULL); @@ -52,7 +52,7 @@ static ssize_t pps_show_clear(struct device *dev, return 0; return sprintf(buf, "%lld.%09d#%d\n", - pps->clear_tu.sec, pps->clear_tu.nsec, + (long long) pps->clear_tu.sec, pps->clear_tu.nsec, pps->clear_sequence); } DEVICE_ATTR(clear, S_IRUGO, pps_show_clear, NULL); This compile clearly on x86. I'm going to propose a new patch ASAP. Thanks, Rodolfo -- GNU/Linux Solutions e-mail: giometti@enneenne.com Linux Device Driver giometti@gnudd.com Embedded Systems giometti@linux.it UNIX programming phone: +39 349 2432127 --
| Chuck Ebbert | Wanted: simple, safe x86 stack overflow detection |
| Alan Cox | Re: ndiswrapper and GPL-only symbols redux |
| Yinghai Lu | [PATCH 03/42] x86: remove irq_vectors_limits |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| しらいしななこ | Re: [ANNOUNCE] GIT 1.5.4 |
| Jan Wielemaker | git filter-branch --subdirectory-filter, still a mistery |
| Pierre Habouzit | [PATCH] guilt(1): Obvious bashisms fixed. |
| Christopher Faylor | Re: First cut at git port to Cygwin |
| Thilo Pfennig | OpenBSD project goals |
| Marco Peereboom | Re: Real men don't attack straw men |
| Daniel Hazelton | Re: Wasting our Freedom |
| Luke Bakken | Re: No Blob without Puffy |
| Julius Volz | [PATCHv3 19/24] IVPS: Disable sync daemon for IPv6 connections |
| Paul Moore | [RFC PATCH v4 04/14] selinux: Fix missing calls to netlbl_skbuff_err() |
| Dave Jones | odd RTL8139 quirk. |
| Patrick McHardy | [NET_SCHED 04/15]: act_api: use nlmsg_parse |
