From: Ian Munsie Date: Thu, 3 Feb 2011 03:27:21 +0000 (+1100) Subject: tracing/syscalls: Convert redundant syscall_nr checks into WARN_ON X-Git-Tag: v2.6.39-rc1~510^2~63^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3773b389b6927595512558594d040c1edba46f36;p=pandora-kernel.git tracing/syscalls: Convert redundant syscall_nr checks into WARN_ON With the ftrace events now checking if the syscall_nr is valid upon initialisation it should no longer be possible to register or unregister a syscall event without a valid syscall_nr since they should not be created. This adds a WARN_ON_ONCE in the register and unregister functions to locate potential regressions in the future. Signed-off-by: Ian Munsie LKML-Reference: <1296703645-18718-3-git-send-email-imunsie@au1.ibm.com> Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed