From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [PATCH] zcache/debug: compiler failure on PPC64. Date: Wed, 6 Mar 2013 19:13:36 -0500 Message-ID: <1362615216-12293-1-git-send-email-konrad.wilk@oracle.com> Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:47974 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755232Ab3CGANv (ORCPT ); Wed, 6 Mar 2013 19:13:51 -0500 Sender: linux-next-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, greg@kroah.com Cc: Konrad Rzeszutek Wilk 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. Reported-by: Stephen Rothwell Signed-off-by: Konrad Rzeszutek Wilk --- drivers/staging/zcache/debug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/zcache/debug.h b/drivers/staging/zcache/debug.h index eef67db..0d9c6b4 100644 --- a/drivers/staging/zcache/debug.h +++ b/drivers/staging/zcache/debug.h @@ -1,5 +1,6 @@ #ifdef CONFIG_ZCACHE_DEBUG +#include /* we try to keep these statistics SMP-consistent */ static ssize_t zcache_obj_count; static atomic_t zcache_obj_atomic = ATOMIC_INIT(0); -- 1.8.0.2