From 00bbe59204ff9087e8700283dcf2c71a1043878f Mon Sep 17 00:00:00 2001 From: Cesar Eduardo Barros Date: Mon, 14 Dec 2009 18:00:13 -0800 Subject: [PATCH] --- yaml --- r: 176327 b: refs/heads/master c: 42f247c83aeb52d2ee7a9fe23fb57e22317f18fd h: refs/heads/master i: 176325: b930462e47d2297aab85439ffb23f1f93eb88dd1 176323: 4716178f4c4b3d83f31327bf9abb6f61a06f5bb7 176319: 350c46303e91198db62b3960d10c7664a4c1258c v: v3 --- [refs] | 2 +- trunk/include/asm-generic/bug.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 186d74a8b8a5..6e51aad2b43c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6613c5e8603bc41741487828f48c6a4d701f7814 +refs/heads/master: 42f247c83aeb52d2ee7a9fe23fb57e22317f18fd diff --git a/trunk/include/asm-generic/bug.h b/trunk/include/asm-generic/bug.h index 4b6755984d24..18c435d7c082 100644 --- a/trunk/include/asm-generic/bug.h +++ b/trunk/include/asm-generic/bug.h @@ -113,22 +113,22 @@ extern void warn_slowpath_null(const char *file, const int line); #endif #define WARN_ON_ONCE(condition) ({ \ - static int __warned; \ + static bool __warned; \ int __ret_warn_once = !!(condition); \ \ if (unlikely(__ret_warn_once)) \ if (WARN_ON(!__warned)) \ - __warned = 1; \ + __warned = true; \ unlikely(__ret_warn_once); \ }) #define WARN_ONCE(condition, format...) ({ \ - static int __warned; \ + static bool __warned; \ int __ret_warn_once = !!(condition); \ \ if (unlikely(__ret_warn_once)) \ if (WARN(!__warned, format)) \ - __warned = 1; \ + __warned = true; \ unlikely(__ret_warn_once); \ })