diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-03-07 13:50:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-08 07:17:30 +0800 |
commit | 7791c623b3826ab9dac6fe0bca770776a5e6c4ce (patch) | |
tree | 6006430ee481932154c8162f18b7dcd5e5abc2d7 | |
parent | e9f5b8145af9a0ee34e98cf01dcd3afb87225538 (diff) | |
download | blackbird-op-linux-7791c623b3826ab9dac6fe0bca770776a5e6c4ce.tar.gz blackbird-op-linux-7791c623b3826ab9dac6fe0bca770776a5e6c4ce.zip |
staging: zcache/debug: compiler failure on PPC64 and revert commit.
On PPC64 we get this:
In file included from drivers/staging/zcache/debug.c:2:
drivers/staging/zcache/debug.h: In function 'dec_zcache_obj_count':
drivers/staging/zcache/debug.h:16: error: implicit declaration of function 'BUG_ON'
This simple patch adds the appropiate header file to finish
the compile and reverts
"staging: zcache: disable ZCACHE_DEBUG due to build error"
(5db5a20a50cfd078c78b13a988f237cca81aedc5)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/zcache/Kconfig | 1 | ||||
-rw-r--r-- | drivers/staging/zcache/debug.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/zcache/Kconfig b/drivers/staging/zcache/Kconfig index ad47b4b8f04b..2da6cc444c7e 100644 --- a/drivers/staging/zcache/Kconfig +++ b/drivers/staging/zcache/Kconfig @@ -13,7 +13,6 @@ config ZCACHE config ZCACHE_DEBUG bool "Enable debug statistics" depends on DEBUG_FS && ZCACHE - depends on BROKEN default n help This is used to provide an debugfs directory with counters of diff --git a/drivers/staging/zcache/debug.h b/drivers/staging/zcache/debug.h index eef67dbe78d8..4bbe49b73d49 100644 --- a/drivers/staging/zcache/debug.h +++ b/drivers/staging/zcache/debug.h @@ -1,3 +1,5 @@ +#include <linux/bug.h> + #ifdef CONFIG_ZCACHE_DEBUG /* we try to keep these statistics SMP-consistent */ |