From patchwork Fri Jan 5 13:16:07 2018 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: 10146529 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 28ABA601A1 for ; Fri, 5 Jan 2018 13:21:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 177B326E97 for ; Fri, 5 Jan 2018 13:21:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B60C27E01; Fri, 5 Jan 2018 13:21: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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI 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 8172026E97 for ; Fri, 5 Jan 2018 13:21:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbeAENVI (ORCPT ); Fri, 5 Jan 2018 08:21:08 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35049 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751726AbeAENQv (ORCPT ); Fri, 5 Jan 2018 08:16:51 -0500 Received: by mail-wm0-f68.google.com with SMTP id a79so2426620wma.0 for ; Fri, 05 Jan 2018 05:16:51 -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=Uraq6f2mLxpUt1WVWGJvokUdEISXl+fLVcHfFNf2iIo=; b=K1zBIKMplSaWuh5qrwRYPa1QfCSV9Nr0nciApmqvJrCe9o5H9W4IlErjGueNZBnebY VYOX+rGporh0HggNmdE455c0BHjtY9bJcLm0rGi1L2d5UQcgWHAry5Zkj3kCSD90INzZ 7+NdXHrWRinUMCiLkTqQ88BcJL9JKYOyVk0No= 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=Uraq6f2mLxpUt1WVWGJvokUdEISXl+fLVcHfFNf2iIo=; b=fCHa+0qp/dtGmoNzv0gHyS5/1fjLmdSnQtRCCW1Eed7y7YzKZH8BdK6zNzIu19Wyqg zAADhMir4j2Wm8YIBNjIaQPDTfuLegY/sDWNjMl5QXZd8cJ6LjzNk7aw1syX0zLTVkwU TqT2t8DWgje40f9llqE6ejYDmRXirU7Dafe3BYOxe6btsHc6H51sXcamNECSL4L7C9eP 9wpMjUoVqoecNs/O0DsyScDqd5apXtBPWVYOhLeFWLqTObUHPIEPm/y69ODzZgkD05MP OyeO72slu6YgMaJRPvafToIyiLrkzHC2VtC72Om9QsWnvqd2H7YflzPp/y5BHZtGXg/3 Mibg== X-Gm-Message-State: AKGB3mLdSitEP8ZiZBPzUepn0tQI1LrQV3CRiOWTvA7ZJVA50bx1Uc0Z N+pyLIxSrnj9KbZk7uc+5p1+cD1p X-Google-Smtp-Source: ACJfBov8tZyWuG977K6ZEy6F7YfgOR7n1PJY2UAVvpI14AyHbI1qLnG5IZiHY4JXFWNOQVBwRf5B7w== X-Received: by 10.80.163.145 with SMTP id s17mr4174698edb.221.1515158210622; Fri, 05 Jan 2018 05:16:50 -0800 (PST) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id e46sm4228940edb.93.2018.01.05.05.16.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 05:16:49 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 11/25] lightnvm: pblk: remove pblk_for_each_lun helper Date: Fri, 5 Jan 2018 14:16:07 +0100 Message-Id: <20180105131621.20808-12-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180105131621.20808-1-m@bjorling.me> References: <20180105131621.20808-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 d68a94d..1dbb0bf 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)