From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752650AbdKGCdP (ORCPT ); Mon, 6 Nov 2017 21:33:15 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9962 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751839AbdKGCdO (ORCPT ); Mon, 6 Nov 2017 21:33:14 -0500 From: Mengting Zhang To: , , CC: , , Subject: [PATCH] lockdep: Add missing declaration of 'pr_cont()' Date: Tue, 7 Nov 2017 10:24:20 +0800 Message-ID: <1510021460-27615-1-git-send-email-zhangmengting@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020204.5A011B66.00CA,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 1d3a5fb9f120231aef8c77f3ee328b0e Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org An annoying compile warning due to missing declaration is shown below: In file included from lockdep.c:27:0: ../../../kernel/locking/lockdep.c: In function 'print_unlock_imbalance_bug' : ../../../kernel/locking/lockdep.c:3544:2: warning: implicit declaration of function 'pr_cont' [-Wimplicit-function-declaration] pr_cont(") at:\n"); ^ Adding the declaration of 'pr_cont' fixes the problem. Signed-off-by: Mengting Zhang --- tools/include/linux/lockdep.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h index 8da3e8e..ae716ad 100644 --- a/tools/include/linux/lockdep.h +++ b/tools/include/linux/lockdep.h @@ -47,6 +47,7 @@ static inline int debug_locks_off(void) #define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__) #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) #define pr_warn pr_err +#define pr_cont pr_err #define list_del_rcu list_del -- 1.7.12.4