From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757581AbbBENT0 (ORCPT ); Thu, 5 Feb 2015 08:19:26 -0500 Received: from blu004-omc1s25.hotmail.com ([65.55.116.36]:55592 "EHLO BLU004-OMC1S25.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752989AbbBENTY (ORCPT ); Thu, 5 Feb 2015 08:19:24 -0500 X-Greylist: delayed 300 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Feb 2015 08:19:24 EST X-TMN: [yztuyhzPViIRV/1LIrKcCakLN/I5SSIz] X-Originating-Email: [weixiangx.chen@outlook.com] Message-ID: Date: Thu, 5 Feb 2015 21:13:09 +0800 From: Chen Weixiang To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Peng Tao , Hema Prathaban , Jiayi Ye , Rickard Strandqvist , Chen Weixiang , Luca Ceresoli , Greg Donald , Joe Perches , Julia Lawall CC: HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: lustre: lustre: libcfs: define symbols as static Mail-Followup-To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Peng Tao , Hema Prathaban , Jiayi Ye , Rickard Strandqvist , Luca Ceresoli , Greg Donald , Joe Perches , Julia Lawall , HPDD-discuss@lists.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.5.23 (b8a63730c848) (2014-03-12) X-OriginalArrivalTime: 05 Feb 2015 13:13:14.0155 (UTC) FILETIME=[7F8277B0:01D04145] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline -- Best regards, Chen Weixiang (Alex) --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="0001-staging-lustre-lustre-libcfs-define-symbols-as-stati.patch" >>From 8de8c7f65f4529e3febb384402344d062f64230b Mon Sep 17 00:00:00 2001 From: Chen Weixiang Date: Thu, 5 Feb 2015 20:07:02 +0800 Subject: [PATCH] staging: lustre: lustre: libcfs: define symbols as static This patch fixes the following warning using sparse - warning: symbol 'libcfs_debug_mb' was not declared. Should it be static? - warning: symbol 'portal_enter_debugger' was not declared. Should it be static? Signed-off-by: Chen Weixiang --- drivers/staging/lustre/lustre/libcfs/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/debug.c b/drivers/staging/lustre/lustre/libcfs/debug.c index 7170088..76c62e8 100644 --- a/drivers/staging/lustre/lustre/libcfs/debug.c +++ b/drivers/staging/lustre/lustre/libcfs/debug.c @@ -57,7 +57,7 @@ module_param(libcfs_debug, int, 0644); MODULE_PARM_DESC(libcfs_debug, "Lustre kernel debug mask"); EXPORT_SYMBOL(libcfs_debug); -unsigned int libcfs_debug_mb = 0; +static unsigned int libcfs_debug_mb; module_param(libcfs_debug_mb, uint, 0644); MODULE_PARM_DESC(libcfs_debug_mb, "Total debug buffer size."); EXPORT_SYMBOL(libcfs_debug_mb); @@ -93,7 +93,7 @@ EXPORT_SYMBOL(libcfs_debug_binary); unsigned int libcfs_stack = 3 * THREAD_SIZE / 4; EXPORT_SYMBOL(libcfs_stack); -unsigned int portal_enter_debugger; +static unsigned int portal_enter_debugger; EXPORT_SYMBOL(portal_enter_debugger); unsigned int libcfs_catastrophe; -- 2.2.2 --0OAP2g/MAC+5xKAE--