From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933589AbbBIQQN (ORCPT ); Mon, 9 Feb 2015 11:16:13 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:35561 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933352AbbBIQQL (ORCPT ); Mon, 9 Feb 2015 11:16:11 -0500 From: Mohammad Jamal To: oleg.drokin@intel.com, andreas.dilger@intel.com, gregkh@linuxfoundation.org, sudipm.mukherjee@gmail.com, joe@perches.com, devel@driverdev.osuosl.org, HPDD-discuss@ml01.01.org, linux-kernel@vger.kernel.org Cc: Mohammad Jamal Subject: [PATCH] staging: lustre: lnet: lnet: lip-ptl:fix sparse warning of static declaration Date: Mon, 9 Feb 2015 21:45:55 +0530 Message-Id: <1423498556-18703-1-git-send-email-md.jamalmohiuddin@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a static keyword to variable portal_rotor to suppress the sparse warning of static declaration Signed-off-by: Mohammad Jamal --- drivers/staging/lustre/lnet/lnet/lib-ptl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-ptl.c b/drivers/staging/lustre/lnet/lnet/lib-ptl.c index 19ed696..6652036 100644 --- a/drivers/staging/lustre/lnet/lnet/lib-ptl.c +++ b/drivers/staging/lustre/lnet/lnet/lib-ptl.c @@ -39,7 +39,7 @@ #include "../../include/linux/lnet/lib-lnet.h" /* NB: add /proc interfaces in upcoming patches */ -int portal_rotor = LNET_PTL_ROTOR_HASH_RT; +static int portal_rotor = LNET_PTL_ROTOR_HASH_RT; module_param(portal_rotor, int, 0644); MODULE_PARM_DESC(portal_rotor, "redirect PUTs to different cpu-partitions"); -- 1.7.9.5