Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751431AbbGLPBC (ORCPT ); Sun, 12 Jul 2015 11:01:02 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:34471 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258AbbGLPBA (ORCPT ); Sun, 12 Jul 2015 11:01:00 -0400 From: Larry Finger To: Arnd Bergmann Cc: Larry Finger , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bug: Fix build error in V4.2-RC1 Date: Sun, 12 Jul 2015 10:00:36 -0500 Message-Id: <1436713236-26445-1-git-send-email-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1304 Lines: 37 If CONFIG_BUG is not defined, then macro __WARN is not defined. This shows as the following build error: CC [M] drivers/media/v4l2-core/videobuf2-core.o drivers/media/v4l2-core/videobuf2-core.c: In function ‘vb2_warn_zero_bytesused’: drivers/media/v4l2-core/videobuf2-core.c:1253:2: error: implicit declaration of function ‘__WARN’ [-Werror=implicit-function-declaration] __WARN(); ^ This problem has been bisected to commit 77a3c6fd90c94f635edb00d4a65f485687538791. Signed-off-by: Larry Finger Cc: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- include/asm-generic/bug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 630dd23..c1cb4b3 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -137,6 +137,7 @@ extern void warn_slowpath_null(const char *file, const int line); }) #else /* !CONFIG_BUG */ +#define __WARN() do {} while (1) #ifndef HAVE_ARCH_BUG #define BUG() do {} while (1) #endif -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/