[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1326345104-6919-1-git-send-email-jengelh@medozas.de>
Date: Thu, 12 Jan 2012 06:11:44 +0100
From: Jan Engelhardt <jengelh@...ozas.de>
To: paulmck@...ux.vnet.ibm.com
Cc: laijs@...fujitsu.com, manfred@...orfullife.com,
dhowells@...hat.com, josh@...htriplett.org,
linux-kernel@...r.kernel.org, jengelh@...ozas.de
Subject: [PATCH] rcu: avoid checking for constant
When compiling kernel or module code with -O0, "offset" is no longer
considered a constant, and therefore always triggers the build error
that BUILD_BUG_ON is defined to yield.
What is the rationale between the forced constant check,
introduced in 9ab1544eb4196ca8d05c433b2eb56f74496b1ee3?
Signed-off-by: Jan Engelhardt <jengelh@...ozas.de>
---
include/linux/rcupdate.h | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h
index 2cf4226..38c5ba5 100644
--- a/include/linux/rcupdate.h
+++ b/include/linux/rcupdate.h
@@ -805,8 +805,6 @@ void __kfree_rcu(struct rcu_head *head, unsigned long offset)
{
typedef void (*rcu_callback)(struct rcu_head *);
- BUILD_BUG_ON(!__builtin_constant_p(offset));
-
/* See the kfree_rcu() header comment. */
BUILD_BUG_ON(!__is_kfree_rcu_offset(offset));
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists