Skip to contentSkip to conversation

kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_offset

PATCH In review Fengguang Wu 2 participants 3 messages Jul 13, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 12/14 kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_offset

Hi John,

There are new compile warnings show up in

tree:   git://git.linaro.org/people/jstultz/linux.git fortglx/3.6/time
head:   a752ef2bd4724278f5bba89707f3dc7506657d27
commit: 895abac0b725ee38b746dfd548fcb30375819747 [12/14] time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

All warnings:

kernel/time/timekeeping.c: In function 'getnstime_raw_and_real':
kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_offset' [-Wunused-variable]

vim +374 kernel/time/timekeeping.c
371 WARN_ON_ONCE(timekeeping_suspended);
372
373 do {

Quoted 1 line

374 u32 arch_offset;

375
376 seq = read_seqbegin(&timekeeper.lock);
377

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation

#1 lore raw

Re: [time:fortglx/3.6/time 12/14] kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_of

Quoted 4 lines · Fengguang Wu

Hi John,

There are new compile warnings show up in

Quoted 9 lines
tree:   git://git.linaro.org/people/jstultz/linux.git fortglx/3.6/time
head:   a752ef2bd4724278f5bba89707f3dc7506657d27
commit: 895abac0b725ee38b746dfd548fcb30375819747 [12/14] time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

All warnings:

kernel/time/timekeeping.c: In function 'getnstime_raw_and_real':
kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_offset' [-Wunused-variable]

Cool! I was just about to send that set out. Will update and fix this before I do!

Thanks so much!
-john

#2 lore raw

Re: [time:fortglx/3.6/time 12/14] kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_of

In reply to Fengguang Wu
Quoted 11 lines · John Stultz
Quoted 10 lines · Fengguang Wu

Hi John,

There are new compile warnings show up in

tree:   git://git.linaro.org/people/jstultz/linux.git fortglx/3.6/time
head:   a752ef2bd4724278f5bba89707f3dc7506657d27
commit: 895abac0b725ee38b746dfd548fcb30375819747 [12/14] time: Move arch_gettimeoffset() usage into timekeeping_get_ns()

All warnings:

Quoted 8 lines
Quoted 3 lines

kernel/time/timekeeping.c: In function 'getnstime_raw_and_real':
kernel/time/timekeeping.c:374:7: warning: unused variable 'arch_offset' [-Wunused-variable]

Cool! I was just about to send that set out. Will update and fix this before I do!

Thanks so much!

I'm glad to know it helped. You are welcome :)

Thanks,
Fengguang