* [PATCH 06/15] target: make transport_init_session_tags static
@ 2018-07-15 23:16 Mike Christie
2018-07-18 22:21 ` Bart Van Assche
2018-07-19 20:41 ` Christoph Hellwig
0 siblings, 2 replies; 3+ messages in thread
From: Mike Christie @ 2018-07-15 23:16 UTC (permalink / raw)
To: target-devel
transport_init_session_tags is only called from target_core_transport.c
so make it static.
Signed-off-by: Mike Christie <mchristi@redhat.com>
---
drivers/target/target_core_transport.c | 7 +++----
include/target/target_core_fabric.h | 2 --
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 97a1ee5..586f5a6b 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -322,9 +322,9 @@ EXPORT_SYMBOL(transport_alloc_session_tags);
* each command.
* @sup_prot_ops: bitmask that defines which T10-PI modes are supported.
*/
-struct se_session *transport_init_session_tags(unsigned int tag_num,
- unsigned int tag_size,
- enum target_prot_op sup_prot_ops)
+static struct se_session *
+transport_init_session_tags(unsigned int tag_num, unsigned int tag_size,
+ enum target_prot_op sup_prot_ops)
{
struct se_session *se_sess;
int rc;
@@ -352,7 +352,6 @@ struct se_session *transport_init_session_tags(unsigned int tag_num,
return se_sess;
}
-EXPORT_SYMBOL(transport_init_session_tags);
/*
* Called with spin_lock_irqsave(&struct se_portal_group->session_lock called.
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h
index 899da38..5964bc4 100644
--- a/include/target/target_core_fabric.h
+++ b/include/target/target_core_fabric.h
@@ -118,8 +118,6 @@ void transport_init_session(struct se_session *);
struct se_session *transport_alloc_session(enum target_prot_op);
int transport_alloc_session_tags(struct se_session *, unsigned int,
unsigned int);
-struct se_session *transport_init_session_tags(unsigned int, unsigned int,
- enum target_prot_op);
void __transport_register_session(struct se_portal_group *,
struct se_node_acl *, struct se_session *, void *);
void transport_register_session(struct se_portal_group *,
--
2.7.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 06/15] target: make transport_init_session_tags static
2018-07-15 23:16 [PATCH 06/15] target: make transport_init_session_tags static Mike Christie
@ 2018-07-18 22:21 ` Bart Van Assche
2018-07-19 20:41 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Bart Van Assche @ 2018-07-18 22:21 UTC (permalink / raw)
To: target-devel
On Sun, 2018-07-15 at 18:16 -0500, Mike Christie wrote:
+AD4- transport+AF8-init+AF8-session+AF8-tags is only called from target+AF8-core+AF8-transport.c
+AD4- so make it static.
Reviewed-by: Bart Van Assche +ADw-bart.vanassche+AEA-wdc.com+AD4-
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 06/15] target: make transport_init_session_tags static
2018-07-15 23:16 [PATCH 06/15] target: make transport_init_session_tags static Mike Christie
2018-07-18 22:21 ` Bart Van Assche
@ 2018-07-19 20:41 ` Christoph Hellwig
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-07-19 20:41 UTC (permalink / raw)
To: target-devel
On Sun, Jul 15, 2018 at 06:16:22PM -0500, Mike Christie wrote:
> transport_init_session_tags is only called from target_core_transport.c
> so make it static.
>
> Signed-off-by: Mike Christie <mchristi@redhat.com>
Looks fine by itself:
Reviewed-by: Christoph Hellwig <hch@lst.de>
Although folding it into the only caller would be even better.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-19 20:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-15 23:16 [PATCH 06/15] target: make transport_init_session_tags static Mike Christie
2018-07-18 22:21 ` Bart Van Assche
2018-07-19 20:41 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).