scst_lib: Make __scst_ext_blocking_done() static

Since __scst_ext_blocking_done() is only called from inside scst_lib.c,
declare that function static.

This patch doesn't change any functionality.
This commit is contained in:
Gleb Chesnokov
2023-06-20 09:53:50 +03:00
parent 2c5c12c017
commit be1574d80e
2 changed files with 8 additions and 6 deletions
+8 -5
View File
@@ -14854,14 +14854,18 @@ static inline void scst_ext_blocker_put(struct scst_ext_blocker *b)
}
/* Must be called under dev_lock and BHs off. Might release it, then reacquire. */
void __scst_ext_blocking_done(struct scst_device *dev)
static void __scst_ext_blocking_done(struct scst_device *dev)
__releases(&dev->dev_lock)
__acquires(&dev->dev_lock)
{
bool stop;
TRACE_ENTRY();
lockdep_assert_held(&dev->dev_lock);
TRACE_BLOCK("Notifying ext blockers for dev %s (ext_blocks_cnt %d)",
dev->virt_name, dev->ext_blocks_cnt);
dev->virt_name, dev->ext_blocks_cnt);
stop = list_empty(&dev->ext_blockers_list);
while (!stop) {
@@ -14870,8 +14874,8 @@ void __scst_ext_blocking_done(struct scst_device *dev)
b = list_first_entry(&dev->ext_blockers_list, typeof(*b),
ext_blockers_list_entry);
TRACE_DBG("Notifying async ext blocker %p (cnt %d)", b,
dev->ext_blocks_cnt);
TRACE_DBG("Notifying async ext blocker %p (cnt %d)",
b, dev->ext_blocks_cnt);
list_del(&b->ext_blockers_list_entry);
@@ -14890,7 +14894,6 @@ void __scst_ext_blocking_done(struct scst_device *dev)
}
TRACE_EXIT();
return;
}
static void scst_ext_blocking_done_fn(struct work_struct *work)
-1
View File
@@ -615,7 +615,6 @@ int scst_sync_ext_block_dev(struct scst_device *dev);
int scst_ext_block_dev(struct scst_device *dev, ext_blocker_done_fn_t done_fn,
const void *priv, size_t priv_len, bool block_stpg);
void scst_ext_unblock_dev(struct scst_device *dev, bool stpg);
void __scst_ext_blocking_done(struct scst_device *dev);
void scst_ext_blocking_done(struct scst_device *dev);
int scst_get_suspend_count(void);