summaryrefslogtreecommitdiffstats
path: root/include/net/netrom.h
diff options
context:
space:
mode:
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>2009-01-15 22:51:17 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-16 01:39:40 +0100
commit70b66cbfd3316b792a855cb9a2574e85f1a63d0f (patch)
tree10fef9a200c0d104bc7afd4e8b14092e4a12a232 /include/net/netrom.h
parentrevert "mm: vmalloc use mutex for purge" (diff)
downloadlinux-70b66cbfd3316b792a855cb9a2574e85f1a63d0f.tar.xz
linux-70b66cbfd3316b792a855cb9a2574e85f1a63d0f.zip
alpha: nautilus - fix compile failure with gcc-4.3
init_srm_irq() deals with irq's #16 and above, but size of irq_desc array on nautilus and some other system types is 16. So gcc-4.3 complains that "array subscript is above array bounds", even though this function is never called on those systems. This adds a check for NR_IRQS <= 16, which effectively optimizes init_srm_irq() code away on problematic platforms. Thanks to Daniel Drake <dsd@gentoo.org> for detailed analysis of the problem. Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/net/netrom.h')
0 files changed, 0 insertions, 0 deletions