From patchwork Sun Sep 18 11:39:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76462 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp492491qgf; Sun, 18 Sep 2016 04:40:46 -0700 (PDT) X-Received: by 10.66.157.166 with SMTP id wn6mr6767881pab.42.1474198845999; Sun, 18 Sep 2016 04:40:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si22468490pas.279.2016.09.18.04.40.45; Sun, 18 Sep 2016 04:40:45 -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 S932392AbcIRLkn (ORCPT + 27 others); Sun, 18 Sep 2016 07:40:43 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33707 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755540AbcIRLkf (ORCPT ); Sun, 18 Sep 2016 07:40:35 -0400 Received: by mail-pa0-f45.google.com with SMTP id hm5so7329386pac.0 for ; Sun, 18 Sep 2016 04:40:34 -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=X9m8rlm5nZfPooeE2L0xRTJ12DzyMvlu4TBhjVJ6asc=; b=SLdaliem1ZW3dYfRIJD2DOF3ObKW4yM1bA7IAt32Ww9bId/HumoJDrSSO305Ye9hhj 3cngQv5PXpYGvZ0b37sYVV6NDU/fnoOnS0/cjepeR3+DkZ0mP43gi24SLT0dkM+WW56k mhsd0P91l0q0CEV+rVv9XLKzqdf8WIeJJpvX8= 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=X9m8rlm5nZfPooeE2L0xRTJ12DzyMvlu4TBhjVJ6asc=; b=jyYEyOsfU8PbzbbKdImVJ7M0svc6HmjGYb5NhC/tFSQM3SJVRp47vGT5Xs2lOEfvrc wcjeHINnQPaO4DbD7KJDHOyAUOVqTYpek0v9amCK6NHXV5K3yYxgMwYtVS1+VvC9JQtV /gJT3zA0lwyJwozvZInHI2exEnD8OnacY75EDmvS1Py7KfJQL3LZheMl/6WwE5vU24hk gUbWYyLaV0sP4NSel9FIRYpWoSE9cgZq3KJzmYaWLZ3KVjIxx+rD5Kx8kREbaENPo476 fdXXDltmweQ/GNpEguB7ZanqYmhy6eH4H+s+cDiLE7/rgQnhPleUNfg7tqCp18gSvoOM CcvQ== X-Gm-Message-State: AE9vXwNDsDICckUkNAZJXmqkOu74c4NLtOwXzl5Kc3pyRCdEI36mfH5VS0pEgCbwmAG3oH5Q X-Received: by 10.66.76.225 with SMTP id n1mr28027842paw.122.1474198834352; Sun, 18 Sep 2016 04:40:34 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.27]) by smtp.gmail.com with ESMTPSA id b64sm64119595pfa.82.2016.09.18.04.40.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 04:40:33 -0700 (PDT) From: Baoyou Xie To: oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org, di.wang@intel.com, john.hammond@intel.com, fan.yong@intel.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: lmv: add missing function declaration Date: Sun, 18 Sep 2016 19:39:53 +0800 Message-Id: <1474198793-25108-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/lmv/lmv_obd.c:2774:5: warning: no previous prototype for 'lmv_pack_md' [-Wmissing-prototypes] In fact, this function is not declared in any file,but should be declared in a header file, thus can be recognized in other file. So this patch adds the declarations into drivers/staging/lustre/lustre/include/lustre_lmv.h. Signed-off-by: Baoyou Xie --- drivers/staging/lustre/lustre/include/lustre_lmv.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/drivers/staging/lustre/lustre/include/lustre_lmv.h b/drivers/staging/lustre/lustre/include/lustre_lmv.h index 085e596..21302c7 100644 --- a/drivers/staging/lustre/lustre/include/lustre_lmv.h +++ b/drivers/staging/lustre/lustre/include/lustre_lmv.h @@ -119,3 +119,5 @@ static inline void lmv_le_to_cpu(union lmv_mds_md *lmv_dst, } +int lmv_pack_md(union lmv_mds_md **lmmp, const struct lmv_stripe_md *lsm, + int stripe_count); #endif