tools: Provide a definition of WARN_ON
authorMatthew Wilcox <mawilcox@microsoft.com>
Mon, 19 Dec 2016 16:07:17 +0000 (11:07 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Sat, 28 Jan 2017 02:29:39 +0000 (21:29 -0500)
commitb246a9d2671f4f6cfab3f98199568e0b3028f6e5
treeb8ae5d681acf9e8bf66ff49143440fd34f5cdd5c
parentc68a2aab3300df4106f368568bd7361d6f465993
tools: Provide a definition of WARN_ON

The definition of WARN_ON being used by the radix tree test suite was
deficient in two ways: it did not provide a return value, and it stopped
execution instead of continuing.  This version of WARN_ON tells you
which file & line the assertion was triggered in.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
tools/include/asm/bug.h
tools/testing/radix-tree/linux/kernel.h