From patchwork Thu Jul 7 07:54:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 9218075 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A217660B16 for ; Thu, 7 Jul 2016 07:58:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9707128794 for ; Thu, 7 Jul 2016 07:58:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BA1C28799; Thu, 7 Jul 2016 07:58:29 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2861728795 for ; Thu, 7 Jul 2016 07:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730AbcGGH60 (ORCPT ); Thu, 7 Jul 2016 03:58:26 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33397 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756469AbcGGHyj (ORCPT ); Thu, 7 Jul 2016 03:54:39 -0400 Received: by mail-wm0-f65.google.com with SMTP id n127so997100wme.0 for ; Thu, 07 Jul 2016 00:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Tfp4BFYImCZ6Z1IjziLD4Um0pfWQkFJN4K8reNCGFyY=; b=ikKovqjTH3BzE9OM0QIM7NqwXSAgp2aH6PDpUSGs/9VH3bYsFiuCeCOQRdDje0nAHE t2rJRM/ykDEiPGTKAtkgLRWq5/1mUsU/Wg0eR2tXQYu1sG1jxkHVgQu673qc3x1BN6Yx xCai4n/p4VrNReUnr53LJQY/KUm7j4NUSDiio= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Tfp4BFYImCZ6Z1IjziLD4Um0pfWQkFJN4K8reNCGFyY=; b=UB13D04D434Iu36wFWXpSB/dWRCgu6ixJ2hZu+H8jj6ED9jGAHEfpgHuFZu8/m8CfV ng7tJJXiBcuLNOrEEa0druyZVFIThH/Tb7PymUmVd9Fz5PAoQMp6xa/rhnswNX13x+lL D9v//1SxYTWgPnhypKb/2o9luCPxF4qdV+7uDPzrTLNm4dYn2Cqsiadv/QLCF0Ar+9bp 6R8pZUTIRqekm042H1GUiiXxLqXc4YtDSG+LFrEyKJI1dCUkpNkM6nPz2q0prL11EDUC OzJSjvkGVGoNJvCS2dUnX2CXYXf7+i5S441o8lEZvXwfOaFZZBPSoZobMBZ7wHaTaMn+ sZ5A== X-Gm-Message-State: ALyK8tLkYnrJlVAvBcr5ZwV3luArUbx4gGkRG2hP+3a5I88zCKvRd9wUkrWiMZswJpnotg== X-Received: by 10.28.11.79 with SMTP id 76mr1380462wml.91.1467878078491; Thu, 07 Jul 2016 00:54:38 -0700 (PDT) Received: from Macroninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id i74sm1654796wmg.21.2016.07.07.00.54.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 00:54:38 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com Cc: Johannes Thumshirn , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 05/17] lightnvm: Make functions not used by ouside static Date: Thu, 7 Jul 2016 09:54:11 +0200 Message-Id: <1467878063-22919-6-git-send-email-m@bjorling.me> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1467878063-22919-1-git-send-email-m@bjorling.me> References: <1467878063-22919-1-git-send-email-m@bjorling.me> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Johannes Thumshirn Mark functions not used by ouside of thier implementing file as static. Signed-off-by: Johannes Thumshirn Signed-off-by: Matias Bjørling --- drivers/lightnvm/core.c | 2 +- drivers/lightnvm/sysblk.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index 13993c9..8beb9c0 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -110,7 +110,7 @@ static struct nvmm_type *nvm_find_mgr_type(const char *name) return NULL; } -struct nvmm_type *nvm_init_mgr(struct nvm_dev *dev) +static struct nvmm_type *nvm_init_mgr(struct nvm_dev *dev) { struct nvmm_type *mt; int ret; diff --git a/drivers/lightnvm/sysblk.c b/drivers/lightnvm/sysblk.c index 994697a..a75bd28 100644 --- a/drivers/lightnvm/sysblk.c +++ b/drivers/lightnvm/sysblk.c @@ -39,7 +39,8 @@ static inline int scan_ppa_idx(int row, int blkid) return (row * MAX_BLKS_PR_SYSBLK) + blkid; } -void nvm_sysblk_to_cpu(struct nvm_sb_info *info, struct nvm_system_block *sb) +static void nvm_sysblk_to_cpu(struct nvm_sb_info *info, + struct nvm_system_block *sb) { info->seqnr = be32_to_cpu(sb->seqnr); info->erase_cnt = be32_to_cpu(sb->erase_cnt); @@ -48,7 +49,8 @@ void nvm_sysblk_to_cpu(struct nvm_sb_info *info, struct nvm_system_block *sb) info->fs_ppa.ppa = be64_to_cpu(sb->fs_ppa); } -void nvm_cpu_to_sysblk(struct nvm_system_block *sb, struct nvm_sb_info *info) +static void nvm_cpu_to_sysblk(struct nvm_system_block *sb, + struct nvm_sb_info *info) { sb->magic = cpu_to_be32(NVM_SYSBLK_MAGIC); sb->seqnr = cpu_to_be32(info->seqnr); @@ -86,7 +88,7 @@ static int nvm_setup_sysblks(struct nvm_dev *dev, struct ppa_addr *sysblk_ppas) return nr_rows; } -void nvm_setup_sysblk_scan(struct nvm_dev *dev, struct sysblk_scan *s, +static void nvm_setup_sysblk_scan(struct nvm_dev *dev, struct sysblk_scan *s, struct ppa_addr *sysblk_ppas) { memset(s, 0, sizeof(struct sysblk_scan));