tools: add WARN_ON_ONCE

Patch series "Radix tree patches for 4.10", v3.

Mostly these are improvements; the only bug fixes in here relate to
multiorder entries (which are unused in the 4.9 tree).

This patch (of 32):

The radix tree uses its own buggy WARN_ON_ONCE.  Replace it with the
definition from asm-generic/bug.h

Link: http://lkml.kernel.org/r/1480369871-5271-37-git-send-email-mawilcox@linuxonhyperv.com
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Matthew Wilcox 2016-12-14 15:07:56 -08:00 committed by Linus Torvalds
parent 4b4bb46d00
commit ebb9a9aedb
4 changed files with 13 additions and 4 deletions

View file

@ -1 +1 @@
#define WARN_ON_ONCE(x) assert(x)
#include "asm/bug.h"

View file

@ -6,8 +6,6 @@
#define __rcu
#define __read_mostly
#define BITS_PER_LONG (sizeof(long) * 8)
static inline void INIT_LIST_HEAD(struct list_head *list)
{
list->next = list;