Skip to content

Commit

Permalink
staging: zcache/debug: compiler failure on PPC64 and revert commit.
Browse files Browse the repository at this point in the history
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"
(5db5a20)

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>
  • Loading branch information
Konrad Rzeszutek Wilk authored and Greg Kroah-Hartman committed Mar 7, 2013
1 parent e9f5b81 commit 7791c62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/zcache/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions drivers/staging/zcache/debug.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <linux/bug.h>

#ifdef CONFIG_ZCACHE_DEBUG

/* we try to keep these statistics SMP-consistent */
Expand Down

0 comments on commit 7791c62

Please sign in to comment.