From: Steven Rostedt Date: Fri, 25 Jul 2008 08:45:25 +0000 (-0700) Subject: locking: add typecheck on irqsave and friends for correct flags X-Git-Tag: v2.6.27-rc1~497 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f307891ce0e7b0438c432af1aacd656a092ff45;p=pandora-kernel.git locking: add typecheck on irqsave and friends for correct flags There haave been several areas in the kernel where an int has been used for flags in local_irq_save() and friends instead of a long. This can cause some hard to debug problems on some architectures. This patch adds a typecheck inside the irqsave and restore functions to flag these cases. [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: build fix] Signed-off-by: Steven Rostedt Cc: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed