Thread (35 messages) 35 messages, 5 authors, 2015-04-02

Re: [PATCH net-next V3 13/23] ptp: igb: convert to the 64 bit get/set time methods.

From: Richard Cochran <richardcochran@gmail.com>
Date: 2015-03-31 21:53:28
Also in: lkml

On Sun, Mar 29, 2015 at 11:12:03PM +0200, Richard Cochran wrote:
quoted hunk ↗ jump to hunk
@@ -627,11 +628,11 @@ static void igb_ptp_overflow_check(struct work_struct *work)
 {
 	struct igb_adapter *igb =
 		container_of(work, struct igb_adapter, ptp_overflow_work.work);
-	struct timespec ts;
+	struct timespec64 ts;
 
-	igb->ptp_caps.gettime(&igb->ptp_caps, &ts);
+	igb->ptp_caps.gettime64(&igb->ptp_caps, &ts);
 
-	pr_debug("igb overflow check at %ld.%09lu\n", ts.tv_sec, ts.tv_nsec);
+	pr_debug("igb overflow check at %lld.%09lu\n", ts.tv_sec, ts.tv_nsec);
For a 64 bit build, this produces the same warning as e1000e.

What is the best way to deal with this warning?

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help