From patchwork Sat Sep 17 13:37:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76443 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp162986qgf; Sat, 17 Sep 2016 06:37:51 -0700 (PDT) X-Received: by 10.98.50.2 with SMTP id y2mr31659174pfy.138.1474119471706; Sat, 17 Sep 2016 06:37:51 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f70si15953978pfd.15.2016.09.17.06.37.51; Sat, 17 Sep 2016 06:37:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbcIQNht (ORCPT + 27 others); Sat, 17 Sep 2016 09:37:49 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33645 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751027AbcIQNhj (ORCPT ); Sat, 17 Sep 2016 09:37:39 -0400 Received: by mail-pf0-f173.google.com with SMTP id 21so25353925pfy.0 for ; Sat, 17 Sep 2016 06:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=9XBNPoxzU/Aa6hwF6ZP1MwdvVErt1qYkW/CoHCSauk4=; b=atKGFd8Yy8xFxzBn2xTDPpCJspQR9umAi+h8LwgJTygIRpWa5CuNV/IFASY+4/uVYh qkSj4zIxymk8enKmOUpV3kQ4faxizgb7WHkSMaovSuorJEvf4t75rz5wj72QDH8dWpix 6ZAZlI5R9aoNg9sNg7f6nIxFBM8hQzpMFEtas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9XBNPoxzU/Aa6hwF6ZP1MwdvVErt1qYkW/CoHCSauk4=; b=XDXlwpH1KOsQYauhVSmCs/09hV/vUyJR5Pg0MqfJsBmKQ5NxpvL7UCZ5ZaJWXdYHbk 7RlWEnGiU+KUKOlqqt/HtfhnBWfBNMGWzWyybSmpdN33bZVKFRg9GOEbCeNT0lALBc5H jnGn3t6rpKltb7g9X2sCfBJ8ospfOq5SbNM9l24RoHItpykz2RgxXTupJL2CCn57HAYi 1/z6wJVOtZaEAw8YvSkz4wFplV5fxKxoRciTruFInIV0kgiefeh3PZDz6A3KhaZv3r5y 8Hvo+Mq0QDlACgQew+gijqsw/PZjRaVbnMUapQV4khYRi5tKZ+h5wSNbVfBZO0S4IZ+h nfVw== X-Gm-Message-State: AE9vXwMes7kYQcl4p1Tmi+KAQgAHpmJpzVr2bNycPTotagAuwV3Br31RGwSVveo92zdcVS2y X-Received: by 10.98.149.149 with SMTP id c21mr11599977pfk.33.1474119458938; Sat, 17 Sep 2016 06:37:38 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.112]) by smtp.gmail.com with ESMTPSA id cu2sm19367393pad.18.2016.09.17.06.37.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Sep 2016 06:37:38 -0700 (PDT) From: Baoyou Xie To: oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org, arnd@arndb.de, shraddha.6596@gmail.com, mike.rapoport@gmail.com, ksenija.stanojevic@gmail.com, gregoire.pichon@bull.net, john.hammond@intel.com, fan.yong@intel.com Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] staging/lustre: clean function declaration in super25.c up Date: Sat, 17 Sep 2016 21:37:03 +0800 Message-Id: <1474119423-11723-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/staging/lustre/lustre/obdclass/obd_config.c:719:6: warning: no previous prototype for 'lustre_register_client_process_config' [-Wmissing-prototypes] In fact, this function is declared in drivers/staging/lustre/lustre/llite/super25.c, but should be moved into a header file, thus can be recognized in other file. So this patch moves the declaration into drivers/staging/lustre/lustre/include/lprocfs_status.h. Signed-off-by: Baoyou Xie --- drivers/staging/lustre/lustre/include/lprocfs_status.h | 3 +++ drivers/staging/lustre/lustre/llite/super25.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h index ff35e63..6768ecc 100644 --- a/drivers/staging/lustre/lustre/include/lprocfs_status.h +++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h @@ -363,6 +363,9 @@ static inline void s2dhms(struct dhms *ts, time64_t secs64) #define JOBSTATS_PROCNAME_UID "procname_uid" #define JOBSTATS_NODELOCAL "nodelocal" +/* obd_config.c */ +void lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg)); + int lprocfs_write_frac_helper(const char __user *buffer, unsigned long count, int *val, int mult); int lprocfs_read_frac_helper(char *buffer, unsigned long count, diff --git a/drivers/staging/lustre/lustre/llite/super25.c b/drivers/staging/lustre/lustre/llite/super25.c index 883084e..24c79c2 100644 --- a/drivers/staging/lustre/lustre/llite/super25.c +++ b/drivers/staging/lustre/lustre/llite/super25.c @@ -83,8 +83,6 @@ struct super_operations lustre_super_operations = { }; MODULE_ALIAS_FS("lustre"); -void lustre_register_client_process_config(int (*cpc)(struct lustre_cfg *lcfg)); - static int __init lustre_init(void) { lnet_process_id_t lnet_id;