From: Ivan Kokshaysky Date: Thu, 15 Jan 2009 21:51:17 +0000 (-0800) Subject: alpha: nautilus - fix compile failure with gcc-4.3 X-Git-Tag: v2.6.29-rc2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b66cbfd3316b792a855cb9a2574e85f1a63d0f;p=pandora-kernel.git 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 for detailed analysis of the problem. Signed-off-by: Ivan Kokshaysky Cc: Richard Henderson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed