]> git.baikalelectronics.ru Git - kernel.git/commit
IRQ: Change __softirq_pending to unsigned int in asm-generic/hardirq.h.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 9 Oct 2009 10:41:30 +0000 (12:41 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Oct 2009 20:38:21 +0000 (13:38 -0700)
commit49ab0024589531a6ebcdb12fdea58cca2c164e81
treeee687703df992aaf826d3c1452ae300cb2c18887
parente929d6b3ebacbbb36d9c0d047efa890a6c637d6c
IRQ: Change __softirq_pending to unsigned int in asm-generic/hardirq.h.

Since the beginnings in 46e946e135cc960747cb5a2220b2f8291f3a3296
("asm-generic: add generic versions of common headers") the generic
version of <asm/hardirq.h> defined __softirq_pending as unsigned long.

Which is different from other architectures for no apparent good reason
and was causing the following warning:

  kernel/time/tick-sched.c: In function 'tick_nohz_stop_sched_tick':
  kernel/time/tick-sched.c:261: warning: format '%02x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'

Reported and initial patch by Wu Zhangjin <wuzhangjin@gmail.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
[ Arnd points out that we really should make sure parisc and alpha are
  ok with this, since they have also been converted to use the generic
  hardirq.h file. But neither seems to use it, although parisc does
  build a IRQSTAT_SIRQ_PEND #define into asm-offsets - but that also
  appears unused..    - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/hardirq.h