Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933810AbbHLJvm (ORCPT ); Wed, 12 Aug 2015 05:51:42 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37679 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753989AbbHLJvj (ORCPT ); Wed, 12 Aug 2015 05:51:39 -0400 From: Maxime Lorrillere To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Maxime Lorrillere Subject: [PATCH 1/2] staging: lustre: fix static declarations in libcfs Date: Wed, 12 Aug 2015 11:51:04 +0200 Message-Id: <1439373065-11020-1-git-send-email-maxime.lorrillere@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1396 Lines: 33 This patch fix the following sparse warnings in libcfs/linux/linux-debug.c: >>> linux-debug.c:64:6: warning: symbol 'lnet_upcall' was not declared. Should it be static? >>> linux-debug.c:65:6: warning: symbol 'lnet_debug_log_upcall' was not declared. Should it be static? Signed-off-by: Maxime Lorrillere --- drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c index 4545d54..f0331fa 100644 --- a/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c +++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-debug.c @@ -61,8 +61,9 @@ #include -char lnet_upcall[1024] = "/usr/lib/lustre/lnet_upcall"; -char lnet_debug_log_upcall[1024] = "/usr/lib/lustre/lnet_debug_log_upcall"; +static char lnet_upcall[1024] = "/usr/lib/lustre/lnet_upcall"; +static char lnet_debug_log_upcall[1024] = + "/usr/lib/lustre/lnet_debug_log_upcall"; /** * Upcall function once a Lustre log has been dumped. -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/