From patchwork Tue Sep 11 00:40:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 10594945 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 620256CB for ; Tue, 11 Sep 2018 00:41:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D07628FC4 for ; Tue, 11 Sep 2018 00:41:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41CB528FD2; Tue, 11 Sep 2018 00:41:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EE9A028FC4 for ; Tue, 11 Sep 2018 00:41:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id B169321962301; Mon, 10 Sep 2018 17:41:09 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=lkp@intel.com; receiver=linux-nvdimm@lists.01.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 277DF21127CC7 for ; Mon, 10 Sep 2018 17:41:08 -0700 (PDT) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 17:41:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,358,1531810800"; d="scan'208";a="69864081" Received: from bee.sh.intel.com (HELO lkp-server01) ([10.239.97.14]) by fmsmga008.fm.intel.com with ESMTP; 10 Sep 2018 17:41:06 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1fzWjp-0001av-G9; Tue, 11 Sep 2018 08:41:05 +0800 Date: Tue, 11 Sep 2018 08:40:16 +0800 From: kbuild test robot To: Ocean He Subject: [RFC PATCH] libnvdimm, region_devs: nd_region_detach_and_reset() can be static Message-ID: <20180911004016.GA26156@lkp-wsm-ep1> References: <1536560508-24564-4-git-send-email-oceanhehy@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1536560508-24564-4-git-send-email-oceanhehy@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-nvdimm@lists.01.org, Ocean He , linux-kernel@vger.kernel.org, kbuild-all@01.org, zwisler@kernel.org Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 39ac5d361db2 ("libnvdimm, region_devs: reset related seeds when fail to create namespace") Signed-off-by: kbuild test robot --- region_devs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/region_devs.c b/drivers/nvdimm/region_devs.c index 4c46fb6..a2f667e 100644 --- a/drivers/nvdimm/region_devs.c +++ b/drivers/nvdimm/region_devs.c @@ -707,7 +707,7 @@ void nd_mapping_free_labels(struct nd_mapping *nd_mapping) * To ensure pfn_seed/dax_seed and namespace_seed are ready for * next namespace creation, here to do detach and reset. */ -void nd_region_detach_and_reset(struct device *dev, +static void nd_region_detach_and_reset(struct device *dev, struct nd_region *nd_region) { /* Only nd_pmem has been verified, fix me for other dev type. */