From patchwork Wed Feb 21 09:26:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 10231617 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 1FA1960392 for ; Wed, 21 Feb 2018 09:29:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28A4428AA2 for ; Wed, 21 Feb 2018 09:29:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D1C828AA6; Wed, 21 Feb 2018 09:29:07 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 A5EFB28AA2 for ; Wed, 21 Feb 2018 09:29:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753352AbeBUJ1k (ORCPT ); Wed, 21 Feb 2018 04:27:40 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36468 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932230AbeBUJ1i (ORCPT ); Wed, 21 Feb 2018 04:27:38 -0500 Received: by mail-wr0-f193.google.com with SMTP id u15so2455848wrg.3 for ; Wed, 21 Feb 2018 01:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yzbFn8rLvrpe06HgI1m2qt0BSzgT+ii1GrrbPtLpKA4=; b=rBo6LyIRlhdqs3cgsRmHd32GspjOYMVvYXBjOjDsaj8ftdoMNcsoYKFntDwKDoaQ2N 9pY9NpaDEr+IGVRNlng5A1jqYt1itHIBV0GtVhW5OqvfD73BdOSIjHJdhW6ebGaDMlas oSDd2G4MP4j2lsPBt9zxZxi4ZOopEXw+K6NYHeiIUse5Et4D1DuJ4ip7avZx+naqDF7d y+/DbIqsaIb7gEvxOpfjNiQAfRlX0m3q7wQg6bnZcNHs2mJUDu30B2CGe9QjHeZbjOwT VW0ZbBPxvBG8DNczYlQfULnJzbfxFKV2CAt3jAy25tXNGbpKRZtGhSDZEOPYV39IkZyj YtIQ== 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=yzbFn8rLvrpe06HgI1m2qt0BSzgT+ii1GrrbPtLpKA4=; b=No5JVMTVhKxocPltGPTHZL71iAZXOMUJAZ2SZNUSM1wPVkDjPqt+C935Q8d8eNG9Eg WdQjuHlzUraSUju1tvZwrmBUBFeK6+SwFyPbnLVegei7i4E3m3Gn9pgZ1ilj7sVqa3+S jMxav0l0xwHPWaIcRJ5PW+7wnF0OsYYyuJY3Hn8yUEq6wJn240IaBL4laccwFjSWh4ab Lz423P/Q/iuUT98VWyXpS+xDqlA4D+MaOAlijfgrenXeP3DlzIb/0k2I3pJeFwaipJHb 1yC09IwiA6hYmPbRBYpL/E17QiiJl5lINCn8Wx67DY1GXzRz0QH5lLeix3pqMpk+M6e+ iOuw== X-Gm-Message-State: APf1xPCzPY/97hbz0cATV8V7rpWJRaSsdbxccQVFOuEPZxMhsWc0F/ct knLl9d0UAqkCju9UVBc9OGgOwQ== X-Google-Smtp-Source: AH8x225syDN6xtQ0F6UmsndL2+Ppq7P2BDKJkre5ouRGLjDZJ1PiXRkoFiodDvguTG8JNVB+OTuDsA== X-Received: by 10.80.201.76 with SMTP id p12mr4110714edh.199.1519205256858; Wed, 21 Feb 2018 01:27:36 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id a17sm3389955eda.42.2018.02.21.01.27.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 01:27:36 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 15/20] nvme: make nvme_get_log_ext available Date: Wed, 21 Feb 2018 10:26:53 +0100 Message-Id: <1519205218-26994-16-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519205218-26994-1-git-send-email-javier@cnexlabs.com> References: <1519205218-26994-1-git-send-email-javier@cnexlabs.com> 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 Make nvme_get_log_ext available outside of core.c. This is in preparation for using it in lightnvm.c Signed-off-by: Javier González --- drivers/nvme/host/nvme.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 1ca08f4993ba..505f797f8c6c 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -396,6 +396,9 @@ int nvme_reset_ctrl(struct nvme_ctrl *ctrl); int nvme_delete_ctrl(struct nvme_ctrl *ctrl); int nvme_delete_ctrl_sync(struct nvme_ctrl *ctrl); +int nvme_get_log_ext(struct nvme_ctrl *ctrl, struct nvme_ns *ns, + u8 log_page, void *log, size_t size, size_t offset); + extern const struct attribute_group nvme_ns_id_attr_group; extern const struct block_device_operations nvme_ns_head_ops;