From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753232AbbDGCCf (ORCPT ); Mon, 6 Apr 2015 22:02:35 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:33509 "EHLO mail-qk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752774AbbDGCCa (ORCPT ); Mon, 6 Apr 2015 22:02:30 -0400 Date: Mon, 6 Apr 2015 22:02:27 -0400 From: Nickolaus Woodruff To: olegdrokin@intel.com, andreasdilger@intel.com, gregkh@linuxfoundation.org Cc: HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: lustre: Make cfs_sched_rehash static Message-ID: <20150407020227.GA1500@Caladan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following sparse warning: CHECK drivers/staging/lustre/lustre/libcfs/hash.c drivers/staging/lustre/lustre/libcfs/hash.c:119:21: warning: symbol 'cfs_sched_rehash' was not declared. Should it be static? Signed-off-by: Nickolaus Woodruff --- drivers/staging/lustre/lustre/libcfs/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index a55567e..a4920a2 100644 --- a/drivers/staging/lustre/lustre/libcfs/hash.c +++ b/drivers/staging/lustre/lustre/libcfs/hash.c @@ -116,7 +116,7 @@ module_param(warn_on_depth, uint, 0644); MODULE_PARM_DESC(warn_on_depth, "warning when hash depth is high."); #endif -struct cfs_wi_sched *cfs_sched_rehash; +static struct cfs_wi_sched *cfs_sched_rehash; static inline void cfs_hash_nl_lock(union cfs_hash_lock *lock, int exclusive) {} -- 1.9.1