From patchwork Wed Dec 20 17:21:51 2017 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: 10126077 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 1F9B160245 for ; Wed, 20 Dec 2017 17:29:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A8EC2873F for ; Wed, 20 Dec 2017 17:29:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F37C729204; Wed, 20 Dec 2017 17:29:05 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=unavailable 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 67DBB2873F for ; Wed, 20 Dec 2017 17:29:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755846AbdLTR2T (ORCPT ); Wed, 20 Dec 2017 12:28:19 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36241 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755888AbdLTRW0 (ORCPT ); Wed, 20 Dec 2017 12:22:26 -0500 Received: by mail-wm0-f65.google.com with SMTP id b76so11235473wmg.1 for ; Wed, 20 Dec 2017 09:22:25 -0800 (PST) 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=17iKdSsd0jKxNbkc5GXY0vlUiTfAcdiGIzV7IQGJq4k=; b=E+F5S1SUiEqP91QK+AyacCmfa5tOdExRKIZMZKCybMaiKgCG1WNW4DkFCs8yENsPPG fxIk96IzjyUMDzUkBwCz5T6S0yzoIvW4NtPeTO9ND9pKT6vovPF58UEabBR/NO2AZ4MR jQMEbDepCUxxe0GqMO2rWNKRe+CKaWJUluTRs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=17iKdSsd0jKxNbkc5GXY0vlUiTfAcdiGIzV7IQGJq4k=; b=AAWth5kVSQ0xpT1C7lnDP0XZvTMOhSiDFq4lM2pnUGYK79owdszTI7We1UlWxPSjLQ IMwhsmFpj1xxJ1PpSVhVIzPdTRYlaglunlFSaxHfWVBUdY2P5RipzoF8IUIXDzobEHTO jKFfq42R6wnZo4wTJIvBkDi1V7Y8QLAH7ZCWmxrSg71+u0bFfG5tokoaZzs0yjYXZdPa N0isBNSHPKdTfMYzjIU155B2jaHpFcy+g/xQ6F0O0oGA5RzlQdTxoi0q5C/YKiRBWjp6 yHMW4QwFxDIe+jB/R/4r1NWVp8s30gSUJjC2Pfaj6C8t40bKV3c7H/oAILeglG5L5vJn RzbA== X-Gm-Message-State: AKGB3mIwxHa6FxoF2Pw/R8x5FdjSM62clQzLAwH7EA8oH9COKgBGaXgB m3SuuFr7iCLuuYUbixQNMnDDaDIu X-Google-Smtp-Source: ACJfBotXmCnnli/xi1Ge3vRnKZKW1S77YyV5iwEDZ6lG6SnKs8LrrFG2T+X3MoxCveWwMqzVxOZRjw== X-Received: by 10.80.157.134 with SMTP id w6mr6693862ede.151.1513790544665; Wed, 20 Dec 2017 09:22:24 -0800 (PST) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id 26sm15339120eds.67.2017.12.20.09.22.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Dec 2017 09:22:23 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 11/25] lightnvm: pblk: remove pblk_for_each_lun helper Date: Wed, 20 Dec 2017 18:21:51 +0100 Message-Id: <20171220172205.26464-12-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171220172205.26464-1-m@bjorling.me> References: <20171220172205.26464-1-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: Javier González Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h index b62790e..7b09fb2 100644 --- a/drivers/lightnvm/pblk.h +++ b/drivers/lightnvm/pblk.h @@ -51,10 +51,6 @@ #define NR_PHY_IN_LOG (PBLK_EXPOSED_PAGE_SIZE / PBLK_SECTOR) -#define pblk_for_each_lun(pblk, rlun, i) \ - for ((i) = 0, rlun = &(pblk)->luns[0]; \ - (i) < (pblk)->nr_luns; (i)++, rlun = &(pblk)->luns[(i)]) - /* Static pool sizes */ #define PBLK_GEN_WS_POOL_SIZE (2)