提交 2989ddbd 编写于 作者: N NeilBrown 提交者: Linus Torvalds

[PATCH] md: make a couple of names in md.c static

.. because they aren't used outside md.c
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f188593e
...@@ -144,7 +144,7 @@ static int start_readonly; ...@@ -144,7 +144,7 @@ static int start_readonly;
* start array, stop array, error, add device, remove device, * start array, stop array, error, add device, remove device,
* start build, activate spare * start build, activate spare
*/ */
DECLARE_WAIT_QUEUE_HEAD(md_event_waiters); static DECLARE_WAIT_QUEUE_HEAD(md_event_waiters);
static atomic_t md_event_count; static atomic_t md_event_count;
void md_new_event(mddev_t *mddev) void md_new_event(mddev_t *mddev)
{ {
...@@ -279,7 +279,7 @@ static inline void mddev_unlock(mddev_t * mddev) ...@@ -279,7 +279,7 @@ static inline void mddev_unlock(mddev_t * mddev)
md_wakeup_thread(mddev->thread); md_wakeup_thread(mddev->thread);
} }
mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr) static mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr)
{ {
mdk_rdev_t * rdev; mdk_rdev_t * rdev;
struct list_head *tmp; struct list_head *tmp;
......
...@@ -263,8 +263,6 @@ static inline char * mdname (mddev_t * mddev) ...@@ -263,8 +263,6 @@ static inline char * mdname (mddev_t * mddev)
return mddev->gendisk ? mddev->gendisk->disk_name : "mdX"; return mddev->gendisk ? mddev->gendisk->disk_name : "mdX";
} }
extern mdk_rdev_t * find_rdev_nr(mddev_t *mddev, int nr);
/* /*
* iterates through some rdev ringlist. It's safe to remove the * iterates through some rdev ringlist. It's safe to remove the
* current 'rdev'. Dont touch 'tmp' though. * current 'rdev'. Dont touch 'tmp' though.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册