From 9fff6bc1f0ef156c3766fc6490e0d15c42062786 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 10 Nov 2018 17:48:33 +0000 Subject: [PATCH] iscsi-scst: Declare cmnd_alloc() static This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7808 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 4 ++-- iscsi-scst/kernel/iscsi.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index fbc8ca277..3ddedb1f4 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -336,8 +336,8 @@ void iscsi_cmnd_init(struct iscsi_conn *conn, struct iscsi_cmnd *cmnd, } EXPORT_SYMBOL(iscsi_cmnd_init); -struct iscsi_cmnd *cmnd_alloc(struct iscsi_conn *conn, - struct iscsi_cmnd *parent) +static struct iscsi_cmnd *cmnd_alloc(struct iscsi_conn *conn, + struct iscsi_cmnd *parent) { struct iscsi_cmnd *cmnd; diff --git a/iscsi-scst/kernel/iscsi.h b/iscsi-scst/kernel/iscsi.h index 554b64cba..76a4e23a1 100644 --- a/iscsi-scst/kernel/iscsi.h +++ b/iscsi-scst/kernel/iscsi.h @@ -547,8 +547,6 @@ extern struct kmem_cache *iscsi_conn_cache; extern struct kmem_cache *iscsi_sess_cache; /* iscsi.c */ -extern struct iscsi_cmnd *cmnd_alloc(struct iscsi_conn *conn, - struct iscsi_cmnd *parent); extern int cmnd_rx_start(struct iscsi_cmnd *cmnd); extern int cmnd_rx_continue(struct iscsi_cmnd *req); extern void cmnd_rx_end(struct iscsi_cmnd *cmnd);