Skip to content

Commit 3cd1428

Browse files
Mike Christiemartinkpetersen
authored andcommitted
scsi: target: make transport_init_session_tags static
transport_init_session_tags is only called from target_core_transport.c so make it static. Signed-off-by: Mike Christie <mchristi@redhat.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent aeb5027 commit 3cd1428

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎drivers/target/target_core_transport.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ EXPORT_SYMBOL(transport_alloc_session_tags);
304304
* each command.
305305
* @sup_prot_ops: bitmask that defines which T10-PI modes are supported.
306306
*/
307-
struct se_session *transport_init_session_tags(unsigned int tag_num,
308-
unsigned int tag_size,
309-
enum target_prot_op sup_prot_ops)
307+
static struct se_session *
308+
transport_init_session_tags(unsigned int tag_num, unsigned int tag_size,
309+
enum target_prot_op sup_prot_ops)
310310
{
311311
struct se_session *se_sess;
312312
int rc;
@@ -334,7 +334,6 @@ struct se_session *transport_init_session_tags(unsigned int tag_num,
334334

335335
return se_sess;
336336
}
337-
EXPORT_SYMBOL(transport_init_session_tags);
338337

339338
/*
340339
* Called with spin_lock_irqsave(&struct se_portal_group->session_lock called.

‎include/target/target_core_fabric.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ void transport_init_session(struct se_session *);
119119
struct se_session *transport_alloc_session(enum target_prot_op);
120120
int transport_alloc_session_tags(struct se_session *, unsigned int,
121121
unsigned int);
122-
struct se_session *transport_init_session_tags(unsigned int, unsigned int,
123-
enum target_prot_op);
124122
void __transport_register_session(struct se_portal_group *,
125123
struct se_node_acl *, struct se_session *, void *);
126124
void transport_register_session(struct se_portal_group *,

0 commit comments

Comments
 (0)