From: Andy Lutomirski Date: Wed, 30 Jul 2014 21:59:49 +0000 (-0700) Subject: x86/vdso: Fix vdso2c's special_pages[] error checking X-Git-Tag: fixes-against-v3.18-rc2~84^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f12c1f9002d27374fd205f6e692891116ca22272;p=pandora-kernel.git x86/vdso: Fix vdso2c's special_pages[] error checking Stephen Rothwell's compiler did something amazing: it unrolled a loop, discovered that one iteration of that loop contained an always-true test, and emitted a warning that will IMO only serve to convince people to disable the warning. That bogus warning caused me to wonder what prompted such an absurdity from his compiler, and I discovered that the code in question was, in fact, completely wrong -- I was looking things up in the wrong array. This affects 3.16 as well, but the only effect is to screw up the error checking a bit. vdso2c's output is unaffected. Reported-by: Stephen Rothwell Signed-off-by: Andy Lutomirski Signed-off-by: Andrew Morton Cc: "H. Peter Anvin" Cc: Peter Zijlstra Cc: Linus Torvalds Link: http://lkml.kernel.org/r/53d96ad5.80ywqrbs33ZBCQej%25akpm@linux-foundation.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed