From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753451AbaDDWFD (ORCPT ); Fri, 4 Apr 2014 18:05:03 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:52557 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752847AbaDDWFA (ORCPT ); Fri, 4 Apr 2014 18:05:00 -0400 Message-ID: <533f2c8a.69a1420a.0866.1d58@mx.google.com> From: Mike Sampson To: Greg Kroah-Hartman CC: Peng Tao CC: Masanari Iida CC: Andreas Dilger CC: Kees Cook CC: devel@driverdev.osuosl.org CC: linux-kernel@vger.kernel.org CC: trivial@kernel.org CC: mike@sambodata.com Date: Fri, 5 Apr 2014 09:01:25 +1100 Subject: [PATCH v3] Staging: lustre: mark a variable static in workitem.c Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes a sparse warning: warning: symbol 'cfs_wi_data' was not declared. Should it be static? Signed-off-by: Mike Sampson --- v3: updated the changelog drivers/staging/lustre/lustre/libcfs/workitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libcfs/workitem.c b/drivers/staging/lustre/lustre/libcfs/workitem.c index ba16fd5..0a03bf7 100644 --- a/drivers/staging/lustre/lustre/libcfs/workitem.c +++ b/drivers/staging/lustre/lustre/libcfs/workitem.c @@ -75,7 +75,7 @@ typedef struct cfs_wi_sched { char ws_name[CFS_WS_NAME_LEN]; } cfs_wi_sched_t; -struct cfs_workitem_data { +static struct cfs_workitem_data { /** serialize */ spinlock_t wi_glock; /** list of all schedulers */ -- 1.9.1