From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753039AbbHYFUA (ORCPT ); Tue, 25 Aug 2015 01:20:00 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:22132 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbbHYFT6 (ORCPT ); Tue, 25 Aug 2015 01:19:58 -0400 From: Sasha Levin To: mingo@kernel.org Cc: linux-kernel@vger.kernel.org, Sasha Levin Subject: [PATCH 2/3] tools/liblockdep: correct macro for WARN Date: Tue, 25 Aug 2015 01:19:44 -0400 Message-Id: <1440479985-6696-2-git-send-email-sasha.levin@oracle.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440479985-6696-1-git-send-email-sasha.levin@oracle.com> References: <1440479985-6696-1-git-send-email-sasha.levin@oracle.com> X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Peter Zijlstra pointed out, the varargs for WARN() are optional, so we need to correctly handle the case where they don't exist. This would cause a compilation error. Signed-off-by: Sasha Levin --- tools/lib/lockdep/uinclude/linux/kernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/lockdep/uinclude/linux/kernel.h b/tools/lib/lockdep/uinclude/linux/kernel.h index cd2cc59..276c7a8 100644 --- a/tools/lib/lockdep/uinclude/linux/kernel.h +++ b/tools/lib/lockdep/uinclude/linux/kernel.h @@ -23,7 +23,7 @@ #define WARN_ON(x) (x) #define WARN_ON_ONCE(x) (x) #define likely(x) (x) -#define WARN(x, y, z) (x) +#define WARN(x, y...) (x) #define uninitialized_var(x) x #define __init #define noinline -- 2.1.4