lkml.org 
[lkml]   [2012]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] block: blk-ioc.c: local functions should not be exposed globally
Date
The function ioc_set_icq_flags is only referenced in this file and
should be marked static to prevent it from being exposed globally.

This quiets the sparse warning:

warning: symbol 'ioc_set_icq_flags' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Jens Axboe <axboe@kernel.dk>

---

diff --git a/block/blk-ioc.c b/block/blk-ioc.c
index fb95dd2..167bae0 100644
--- a/block/blk-ioc.c
+++ b/block/blk-ioc.c
@@ -382,7 +382,7 @@ struct io_cq *ioc_create_icq(struct request_queue *q, gfp_t gfp_mask)
return icq;
}

-void ioc_set_icq_flags(struct io_context *ioc, unsigned int flags)
+static void ioc_set_icq_flags(struct io_context *ioc, unsigned int flags)
{
struct io_cq *icq;
struct hlist_node *n;

\
 
 \ /
  Last update: 2012-04-13 00:39    [W:1.509 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site