From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757530AbbBENZA (ORCPT ); Thu, 5 Feb 2015 08:25:00 -0500 Received: from blu004-omc1s1.hotmail.com ([65.55.116.12]:57577 "EHLO BLU004-OMC1S1.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757241AbbBENY7 (ORCPT ); Thu, 5 Feb 2015 08:24:59 -0500 X-TMN: [uEOTN9cxYkYngKUZYeAqckc9ofy9xSWa] X-Originating-Email: [weixiangx.chen@outlook.com] Message-ID: From: Chen Weixiang To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Peng Tao , Hema Prathaban , Julia Lawall , Luca Ceresoli , Chen Weixiang , Joe Perches , Greg Donald 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 Date: Thu, 5 Feb 2015 21:24:41 +0800 X-Mailer: git-send-email 2.2.2 X-OriginalArrivalTime: 05 Feb 2015 13:24:57.0845 (UTC) FILETIME=[22F10A50:01D04147] MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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