From: David Howells Date: Thu, 19 Jul 2007 08:49:09 +0000 (-0700) Subject: FRV: work around a possible compiler bug X-Git-Tag: v2.6.23-rc1~356 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea02e3dde3509ffa7fda7f8de9c8a366e03f7bbd;p=pandora-kernel.git FRV: work around a possible compiler bug Work around a possible bug in the FRV compiler. What appears to be happening is that gcc resolves the __builtin_constant_p() in kmalloc() to true, but then fails to reduce the therefore constant conditions in the if-statements it guards to constant results. When compiling with -O2 or -Os, one single spurious error crops up in cpuup_callback() in mm/slab.c. This can be avoided by making the memsize variable const. Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed