From patchwork Mon Feb 26 13:17:13 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: 10242311 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 AA3FC60386 for ; Mon, 26 Feb 2018 13:22:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65B2329260 for ; Mon, 26 Feb 2018 13:22:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A7E6292DF; Mon, 26 Feb 2018 13:22:56 +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=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 F300D29267 for ; Mon, 26 Feb 2018 13:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753303AbeBZNWy (ORCPT ); Mon, 26 Feb 2018 08:22:54 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35533 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753280AbeBZNRp (ORCPT ); Mon, 26 Feb 2018 08:17:45 -0500 Received: by mail-wm0-f68.google.com with SMTP id x7so14833794wmc.0 for ; Mon, 26 Feb 2018 05:17:45 -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=YJ4NoCMd3CXaVdtj1poveq6us1fJdvsofkEhcENtG+CH41WZiR1VOvnMyDa2FGKvDK 5gVawOTQ8ozToX7s6hkA1K6GXeKljPa83DB/NBUtxCu6S73w6KpPFmSx44GOJa2/Ibat L6/HJ4F1VIGsWH37iaPRpV3mD3Io5bE9RM4mQ4AHtHdCNj5tN5lDk6lcacY+GVR4VNfV VNhTmN1CUmT/yTa6J6o6finiNLuTHWxpdybSD69ufvCKMO6EknXpiAhPHTpRgHkSgaqQ 5KbNRtlsaC5AjWkm87yValpUO5jfykBqdzs6UU9dC18HtEvH4zTsiScBbZx+NClnRMKe Oodg== 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=nJODo3nXi/rzLZdrtERJSwC+CTSDA5TcCgSt7+FxmMsp8T6Oo2aQAdHSNs+8HV9m97 u3vtMpojSdcc60gJ+7PozI2s5dupuFQz2F3G9kw2/MvxR6H8mrozsD73KwDaDQH/DFau dBtx09GsWqZr9G9/leUOD4gRa7dDMctvsy3WqU8AqrIEq8hRocdU+ZMTVzIpq9HSG6tM 23/xNMm0P8W3mj7R9d5PT9iEKcaubMiEpXM8N8STRrUzL7ljjgkRXSjYT0/JB1G6MUlN Xjxr1z+SwQfcpNAElcN3LZ3I0Tcl4YhJev3Xy76u2+Qfeado1cVU0REL/Sxq1iwQ7izc soJw== X-Gm-Message-State: APf1xPB/03nPZO68eXMoMunU0oTFwSEbKQZYL+Bo6vQ8VtK6fNas6NUW GTBon9n2w8QjzGWWrYlU0G2dhM17 X-Google-Smtp-Source: AH8x2265KZYm1oQgUjIE7ZAb+lWhPIsMxDwPGQSw4wHGGhSTA3qEnh1fRNd8PPdlhZO/6JqfpvFyrQ== X-Received: by 10.80.182.245 with SMTP id f50mr14578198ede.157.1519651064477; Mon, 26 Feb 2018 05:17:44 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id g59sm7097451ede.19.2018.02.26.05.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 05:17:43 -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 14/19] nvme: make nvme_get_log_ext available Date: Mon, 26 Feb 2018 14:17:13 +0100 Message-Id: <1519651038-16845-15-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519651038-16845-1-git-send-email-javier@cnexlabs.com> References: <1519651038-16845-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;