From patchwork Sat Sep 17 13:41:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76444 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp164440qgf; Sat, 17 Sep 2016 06:42:19 -0700 (PDT) X-Received: by 10.66.10.170 with SMTP id j10mr31540281pab.3.1474119739405; Sat, 17 Sep 2016 06:42:19 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn10si16533616pab.94.2016.09.17.06.42.19; Sat, 17 Sep 2016 06:42:19 -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 S1751129AbcIQNmR (ORCPT + 27 others); Sat, 17 Sep 2016 09:42:17 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34676 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbcIQNmI (ORCPT ); Sat, 17 Sep 2016 09:42:08 -0400 Received: by mail-pf0-f171.google.com with SMTP id p64so36108264pfb.1 for ; Sat, 17 Sep 2016 06:42:08 -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=/F7hlUKkrIqLnwQgCGJd6KEOXsVQjFOVEXWOjeDiJww=; b=jFHEJ0rh+ow0LAJ91c8gjWW9ju/DBcz+1KopQwl0pJnYZycchlR3LaQC+f9rN0IN98 g+2reJmBNXMNqb5oibPwiL0ZXZjV78US96WfTLif4k996Jnseh/88J7f9FLiKcOqYUXS /h97rcYw28u5vgRJROwlWxb/xlWOhEerigHoE= 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=/F7hlUKkrIqLnwQgCGJd6KEOXsVQjFOVEXWOjeDiJww=; b=g8kdo1rosnyJ9KxmaFkUh74tFEE1Lb/rRJTgSXK60rPBK5sILppDPJNRPmGQe1KYx/ Zaybiawpj41yGUeUqBXOLF7VMH4dY3o/ysogkN6gmbo1XKIMQFIo+HzjDNrWv4CZ8EsS gM0jEWIdYork7iSlT1VhAOWWcXSEGNM/RJaaMGec++ANbhIfxukHwpIeudMLo+MzHO1W Mul86hsF4RVGU2esZM74sQ7aeeZ/2TADDiT3zzvZB24CF25TFL9f4xz1xywuTobWv9xa 7ij+bmyBBVLCj8IJhemT3Yi4V/HyvGagm3dP64y9N52ydKMujhZQ2hVWMv5aeUJVx/vg wmRQ== X-Gm-Message-State: AE9vXwMFEPqRKEZO1XVnJa/W4DpvJgZmvpnELCk2RCSsi+DsJZ8+9FAbquY5p5RW/MMe+fOs X-Received: by 10.98.202.17 with SMTP id n17mr17677130pfg.173.1474119727762; Sat, 17 Sep 2016 06:42:07 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.112]) by smtp.gmail.com with ESMTPSA id r77sm7663952pfg.16.2016.09.17.06.41.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Sep 2016 06:42:07 -0700 (PDT) From: Baoyou Xie To: oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org, dmitry.eremin@intel.com, fzago@cray.com, shivanib134@gmail.com, bhumirks@gmail.com, mike.rapoport@gmail.com Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, arnd@arndb.de, 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:41:39 +0800 Message-Id: <1474119699-4965-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/lnet/selftest/conctl.c:804:1: warning: no previous prototype for 'lstcon_ioctl_entry' [-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/lnet/selftest/console.h Signed-off-by: Baoyou Xie --- drivers/staging/lustre/lnet/selftest/console.c | 2 -- drivers/staging/lustre/lnet/selftest/console.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c index 4c33621..a0fcbf3 100644 --- a/drivers/staging/lustre/lnet/selftest/console.c +++ b/drivers/staging/lustre/lnet/selftest/console.c @@ -1993,8 +1993,6 @@ static void lstcon_init_acceptor_service(void) lstcon_acceptor_service.sv_wi_total = SFW_FRWK_WI_MAX; } -extern int lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr); - static DECLARE_IOCTL_HANDLER(lstcon_ioctl_handler, lstcon_ioctl_entry); /* initialize console */ diff --git a/drivers/staging/lustre/lnet/selftest/console.h b/drivers/staging/lustre/lnet/selftest/console.h index 78b1477..78388a6 100644 --- a/drivers/staging/lustre/lnet/selftest/console.h +++ b/drivers/staging/lustre/lnet/selftest/console.h @@ -184,6 +184,7 @@ lstcon_id2hash(lnet_process_id_t id, struct list_head *hash) return &hash[idx]; } +int lstcon_ioctl_entry(unsigned int cmd, struct libcfs_ioctl_hdr *hdr); int lstcon_console_init(void); int lstcon_console_fini(void); int lstcon_session_match(lst_sid_t sid);