• Ralf Baechle's avatar
    IRQ: Change __softirq_pending to unsigned int in asm-generic/hardirq.h. · cc9b0b9b
    Ralf Baechle authored
    Since the beginnings in aafe4dbe
    ("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: default avatarRalf Baechle <ralf@linux-mips.org>
    Acked-by: default avatarArnd 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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cc9b0b9b
hardirq.h 493 Bytes