lkml.org 
[lkml]   [2012]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] block: Fix sparse warning
Date
blk_drain_queue is only used in this file, so should be marked static.

Fixes following sparse warning.

block/blk-core.c:361:6: warning: symbol 'blk_drain_queue' was not
declared. Should it be static?

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
---
block/blk-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index a8b1527..5db63eb 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -358,7 +358,7 @@ EXPORT_SYMBOL(blk_put_queue);
* If not, only ELVPRIV requests are drained. The caller is responsible
* for ensuring that no new requests which need to be drained are queued.
*/
-void blk_drain_queue(struct request_queue *q, bool drain_all)
+static void blk_drain_queue(struct request_queue *q, bool drain_all)
{
int i;

--
1.7.4.1


\
 
 \ /
  Last update: 2012-11-19 13:01    [W:0.029 / U:1.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site