Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbbERSfO (ORCPT ); Mon, 18 May 2015 14:35:14 -0400 Received: from mail-wg0-f65.google.com ([74.125.82.65]:34605 "EHLO mail-wg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754460AbbERSfJ (ORCPT ); Mon, 18 May 2015 14:35:09 -0400 From: Adrian Remonda Cc: Adrian Remonda , Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , Julia Lawall , Aya Mahfouz , Melike Yurtoglu , Greg Donald , Joe Perches , Omar Sandoval , HPDD-discuss@ml01.01.org (moderated list:STAGING - LUSTRE...), devel@driverdev.osuosl.org (open list:STAGING SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/4] Staging: lustre: sparse static warning fix Date: Mon, 18 May 2015 20:34:48 +0200 Message-Id: <1431974091-26363-2-git-send-email-adrianremonda@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431974091-26363-1-git-send-email-adrianremonda@gmail.com> References: <1431974091-26363-1-git-send-email-adrianremonda@gmail.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 49 This patch clears the warning given by sparse that the function should be static. Done by moving the declaration of the structure 'nrs_conf_fifo' into the header 'ptlrpc_internal.h' modified: drivers/staging/lustre/lustre/ptlrpc/nrs.c modified: drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h Signed-off-by: Adrian Remonda --- drivers/staging/lustre/lustre/ptlrpc/nrs.c | 4 ---- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/nrs.c b/drivers/staging/lustre/lustre/ptlrpc/nrs.c index 63a05f4a902d..159db41c53a0 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/nrs.c +++ b/drivers/staging/lustre/lustre/ptlrpc/nrs.c @@ -1698,10 +1698,6 @@ out: return rc; } - -/* ptlrpc/nrs_fifo.c */ -extern struct ptlrpc_nrs_pol_conf nrs_conf_fifo; - /** * Adds all policies that ship with the ptlrpc module, to NRS core's list of * policies \e nrs_core.nrs_policies. diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h index a66dc3c6da41..e07e2aacc62c 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h +++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h @@ -309,4 +309,8 @@ static inline void ptlrpc_reqset_put(struct ptlrpc_request_set *set) if (atomic_dec_and_test(&set->set_refcount)) OBD_FREE_PTR(set); } + +/* ptlrpc/nrs_fifo.c */ +extern struct ptlrpc_nrs_pol_conf nrs_conf_fifo; + #endif /* PTLRPC_INTERNAL_H */ -- 2.1.4 -- 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/