* PPS build warning
@ 2011-02-02 1:31 john stultz
2011-02-08 23:31 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: john stultz @ 2011-02-02 1:31 UTC (permalink / raw)
To: Rodolfo Giometti; +Cc: lkml
Hey Rodolfo,
Just ran into the following:
drivers/pps/kapi.c: In function ‘pps_event’:
drivers/pps/kapi.c:196: warning: ‘ts_real.flags’ may be used uninitialized in this function
Looks like you don't set the flags value in timespec_to_pps_ktime when
you initialize the rest of the structure.
thanks
-john
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: PPS build warning
2011-02-02 1:31 PPS build warning john stultz
@ 2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Andrew Morton @ 2011-02-08 23:31 UTC (permalink / raw)
To: john stultz; +Cc: Rodolfo Giometti, lkml, Alexander Gordeev
(cc Alexander)
On Tue, 01 Feb 2011 17:31:33 -0800
john stultz <johnstul@us.ibm.com> wrote:
> Hey Rodolfo,
> Just ran into the following:
>
> drivers/pps/kapi.c: In function 'pps_event':
> drivers/pps/kapi.c:196: warning: 'ts_real.flags' may be used uninitialized in this function
>
> Looks like you don't set the flags value in timespec_to_pps_ktime when
> you initialize the rest of the structure.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/2] fix two minor PPS issues
2011-02-08 23:31 ` Andrew Morton
@ 2011-02-25 14:11 ` Alexander Gordeev
2011-02-25 14:11 ` [PATCH 1/2] pps: initialize ts_real properly Alexander Gordeev
2011-02-25 14:11 ` [PATCH 2/2] pps: remove unreachable code Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
These patches fix two minor issues in PPS. The first is reported in
this thread and the second I found myself.
Alexander Gordeev (2):
pps: initialize ts_real properly
pps: remove unreachable code
drivers/pps/generators/pps_gen_parport.c | 5 -----
drivers/pps/kapi.c | 2 +-
2 files changed, 1 insertions(+), 6 deletions(-)
--
1.7.2.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] pps: initialize ts_real properly
2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
@ 2011-02-25 14:11 ` Alexander Gordeev
2011-02-25 14:11 ` [PATCH 2/2] pps: remove unreachable code Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
Initialize ts_real.flags to fix compiler warning about possible
uninitialized use of this field.
Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
---
drivers/pps/kapi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c
index cba1b43..a4e8eb9 100644
--- a/drivers/pps/kapi.c
+++ b/drivers/pps/kapi.c
@@ -168,7 +168,7 @@ void pps_event(struct pps_device *pps, struct pps_event_time *ts, int event,
{
unsigned long flags;
int captured = 0;
- struct pps_ktime ts_real;
+ struct pps_ktime ts_real = { .sec = 0, .nsec = 0, .flags = 0 };
/* check event type */
BUG_ON((event & (PPS_CAPTUREASSERT | PPS_CAPTURECLEAR)) == 0);
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] pps: remove unreachable code
2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
2011-02-25 14:11 ` [PATCH 1/2] pps: initialize ts_real properly Alexander Gordeev
@ 2011-02-25 14:11 ` Alexander Gordeev
2 siblings, 0 replies; 5+ messages in thread
From: Alexander Gordeev @ 2011-02-25 14:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: john stultz, Rodolfo Giometti, lkml, Alexander Gordeev
Remove code enabled only when CONFIG_PREEMPT_RT is turned on because it
is not used in the vanilla kernel.
Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
---
drivers/pps/generators/pps_gen_parport.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/drivers/pps/generators/pps_gen_parport.c b/drivers/pps/generators/pps_gen_parport.c
index b93af3e..dcd39fb 100644
--- a/drivers/pps/generators/pps_gen_parport.c
+++ b/drivers/pps/generators/pps_gen_parport.c
@@ -216,11 +216,6 @@ static void parport_attach(struct parport *port)
hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
device.timer.function = hrtimer_event;
-#ifdef CONFIG_PREEMPT_RT
- /* hrtimer interrupt will run in the interrupt context with this */
- device.timer.irqsafe = 1;
-#endif
-
hrtimer_start(&device.timer, next_intr_time(&device), HRTIMER_MODE_ABS);
return;
--
1.7.2.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-25 14:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02 1:31 PPS build warning john stultz
2011-02-08 23:31 ` Andrew Morton
2011-02-25 14:11 ` [PATCH 0/2] fix two minor PPS issues Alexander Gordeev
2011-02-25 14:11 ` [PATCH 1/2] pps: initialize ts_real properly Alexander Gordeev
2011-02-25 14:11 ` [PATCH 2/2] pps: remove unreachable code Alexander Gordeev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.