From patchwork Sat Sep 17 13:24:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76441 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp158459qgf; Sat, 17 Sep 2016 06:24:44 -0700 (PDT) X-Received: by 10.98.21.85 with SMTP id 82mr30315171pfv.81.1474118684662; Sat, 17 Sep 2016 06:24:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si15504921paz.150.2016.09.17.06.24.44; Sat, 17 Sep 2016 06:24:44 -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 S1751726AbcIQNYd (ORCPT + 27 others); Sat, 17 Sep 2016 09:24:33 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35050 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbcIQNYc (ORCPT ); Sat, 17 Sep 2016 09:24:32 -0400 Received: by mail-pf0-f177.google.com with SMTP id z123so36015290pfz.2 for ; Sat, 17 Sep 2016 06:24:32 -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=LFJpZN7Nc+c6SeBnjns8V1K5ceBNqVINsVI5r1rVEY0=; b=INDznIyeCu0/fthoElWopNVoOtwwVg9GvVVmTJXkrmUPwuqYVdQSgZ7n5r7H8S298z edMdBdGhZtMQ+yd1zx/PrYrSWQ5FyWE5dujB2K4/07BeM/OkU0WoALoWMdgzUGjME1Q2 osN6XyZiT9mN//UpjAUtY2NBYn0PYHeSDGRdI= 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=LFJpZN7Nc+c6SeBnjns8V1K5ceBNqVINsVI5r1rVEY0=; b=W4VprJ9V4QyYSEhklF2rOmIqxki3k+bdpMYZ4VG4+IvWe8IVMpg6IFpXwmP1BSAj+Y w7Mus4+4UMtAMsSAZi34upPhMDQvGuCKw7rUKerF+NBOVLq+b+Wq5325cCYOZ0gyqU8y E/j0h1HBHsPqK77Q+UlyMCgSYwGuK+TwVyg6Wy2hFbLWwYWcUYnmVFWqUfRLKKdK/+jH bvBniHTq/1J3Fd7jNLx2mP6zegVIiMdA47rjxZcnEfFUug2K41T9wkKi+fGufWqcoHVG 4mGM8x3X4rZMKUoMVj75sxamuW5YeGvrZtrwrnyO5ZK576FH7dK7n9S6a+RcOoz9EsSM X9+A== X-Gm-Message-State: AE9vXwPg8jUNl0WFj6epNUIndJ4y8iAYNvN5B8kdABCB5zG4tEnxJ0jpRrQCgMzH7oNXmXfi X-Received: by 10.98.48.4 with SMTP id w4mr503015pfw.86.1474118671986; Sat, 17 Sep 2016 06:24:31 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.112]) by smtp.gmail.com with ESMTPSA id n7sm59336999pfg.45.2016.09.17.06.24.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Sep 2016 06:24:31 -0700 (PDT) From: Baoyou Xie To: oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org, jinshan.xiong@intel.com, john.hammond@intel.com, bobijam.xu@intel.com, lai.siyao@intel.com, mike.rapoport@gmail.com, shivanib134@gmail.com, shraddha.6596@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 cl_io.c up Date: Sat, 17 Sep 2016 21:24:08 +0800 Message-Id: <1474118648-27446-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/cl_page.c:488:6: warning: no previous prototype for 'cl_page_disown0' [-Wmissing-prototypes] In fact, this function is declared in drivers/staging/lustre/lustre/obdclass/cl_io.c, but should be removed in a header file. thus can be recognized in other file. So this patch moves the declaration into drivers/staging/lustre/lustre/include/cl_object.h. Signed-off-by: Baoyou Xie --- drivers/staging/lustre/lustre/include/cl_object.h | 2 ++ drivers/staging/lustre/lustre/obdclass/cl_io.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/lustre/lustre/include/cl_object.h b/drivers/staging/lustre/lustre/include/cl_object.h index 5e63a27..41e0801 100644 --- a/drivers/staging/lustre/lustre/include/cl_object.h +++ b/drivers/staging/lustre/lustre/include/cl_object.h @@ -2254,6 +2254,8 @@ void cl_page_unassume(const struct lu_env *env, struct cl_io *io, struct cl_page *pg); void cl_page_disown(const struct lu_env *env, struct cl_io *io, struct cl_page *page); +void cl_page_disown0(const struct lu_env *env, + struct cl_io *io, struct cl_page *pg); int cl_page_is_owned(const struct cl_page *pg, const struct cl_io *io); /** @} ownership */ diff --git a/drivers/staging/lustre/lustre/obdclass/cl_io.c b/drivers/staging/lustre/lustre/obdclass/cl_io.c index 4516fff..6643e78 100644 --- a/drivers/staging/lustre/lustre/obdclass/cl_io.c +++ b/drivers/staging/lustre/lustre/obdclass/cl_io.c @@ -936,8 +936,6 @@ void cl_page_list_splice(struct cl_page_list *list, struct cl_page_list *head) } EXPORT_SYMBOL(cl_page_list_splice); -void cl_page_disown0(const struct lu_env *env, - struct cl_io *io, struct cl_page *pg); /** * Disowns pages in a queue.