All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] block: Mark function as static in blk-lib.c
@ 2014-02-08 16:24 Rashika Kheria
  2014-02-08 16:26 ` [PATCH 2/2] block: Mark function as static in blk-throttle.c Rashika Kheria
  2014-02-08 18:37 ` [PATCH 1/2] block: Mark function as static in blk-lib.c Josh Triplett
  0 siblings, 2 replies; 4+ messages in thread
From: Rashika Kheria @ 2014-02-08 16:24 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens Axboe, josh

Mark function as static in blk-lib.c because it is not used outside this
file.

This eliminates the following warning in blk-lib.c:
block/blk-lib.c:221:5: warning: no previous prototype for ‘__blkdev_issue_zeroout’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 block/blk-lib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-lib.c b/block/blk-lib.c
index 2da76c9..332e7a9 100644
--- a/block/blk-lib.c
+++ b/block/blk-lib.c
@@ -218,7 +218,7 @@ EXPORT_SYMBOL(blkdev_issue_write_same);
  *  Generate and issue number of bios with zerofiled pages.
  */
 
-int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
+static int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
 			sector_t nr_sects, gfp_t gfp_mask)
 {
 	int ret;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] block: Mark function as static in blk-throttle.c
  2014-02-08 16:24 [PATCH 1/2] block: Mark function as static in blk-lib.c Rashika Kheria
@ 2014-02-08 16:26 ` Rashika Kheria
  2014-02-08 18:38   ` Josh Triplett
  2014-02-08 18:37 ` [PATCH 1/2] block: Mark function as static in blk-lib.c Josh Triplett
  1 sibling, 1 reply; 4+ messages in thread
From: Rashika Kheria @ 2014-02-08 16:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jens Axboe, josh

Mark functions as static in blk-throttle.c because it is not used
outside this file.

This eliminates the following warning in blk-throttle.c:
block/blk-throttle.c:1261:6: warning: no previous prototype for ‘blk_throtl_dispatch_work_fn’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 block/blk-throttle.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 1474c3a..0face33 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1258,7 +1258,7 @@ out_unlock:
  * of throtl_data->service_queue.  Those bio's are ready and issued by this
  * function.
  */
-void blk_throtl_dispatch_work_fn(struct work_struct *work)
+static void blk_throtl_dispatch_work_fn(struct work_struct *work)
 {
 	struct throtl_data *td = container_of(work, struct throtl_data,
 					      dispatch_work);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] block: Mark function as static in blk-lib.c
  2014-02-08 16:24 [PATCH 1/2] block: Mark function as static in blk-lib.c Rashika Kheria
  2014-02-08 16:26 ` [PATCH 2/2] block: Mark function as static in blk-throttle.c Rashika Kheria
@ 2014-02-08 18:37 ` Josh Triplett
  1 sibling, 0 replies; 4+ messages in thread
From: Josh Triplett @ 2014-02-08 18:37 UTC (permalink / raw)
  To: Rashika Kheria; +Cc: linux-kernel, Jens Axboe

On Sat, Feb 08, 2014 at 09:54:44PM +0530, Rashika Kheria wrote:
> Mark function as static in blk-lib.c because it is not used outside this
> file.
> 
> This eliminates the following warning in blk-lib.c:
> block/blk-lib.c:221:5: warning: no previous prototype for ‘__blkdev_issue_zeroout’ [-Wmissing-prototypes]
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  block/blk-lib.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/blk-lib.c b/block/blk-lib.c
> index 2da76c9..332e7a9 100644
> --- a/block/blk-lib.c
> +++ b/block/blk-lib.c
> @@ -218,7 +218,7 @@ EXPORT_SYMBOL(blkdev_issue_write_same);
>   *  Generate and issue number of bios with zerofiled pages.
>   */
>  
> -int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
> +static int __blkdev_issue_zeroout(struct block_device *bdev, sector_t sector,
>  			sector_t nr_sects, gfp_t gfp_mask)
>  {
>  	int ret;
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] block: Mark function as static in blk-throttle.c
  2014-02-08 16:26 ` [PATCH 2/2] block: Mark function as static in blk-throttle.c Rashika Kheria
@ 2014-02-08 18:38   ` Josh Triplett
  0 siblings, 0 replies; 4+ messages in thread
From: Josh Triplett @ 2014-02-08 18:38 UTC (permalink / raw)
  To: Rashika Kheria; +Cc: linux-kernel, Jens Axboe

On Sat, Feb 08, 2014 at 09:56:21PM +0530, Rashika Kheria wrote:
> Mark functions as static in blk-throttle.c because it is not used
> outside this file.
> 
> This eliminates the following warning in blk-throttle.c:
> block/blk-throttle.c:1261:6: warning: no previous prototype for ‘blk_throtl_dispatch_work_fn’ [-Wmissing-prototypes]
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  block/blk-throttle.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/blk-throttle.c b/block/blk-throttle.c
> index 1474c3a..0face33 100644
> --- a/block/blk-throttle.c
> +++ b/block/blk-throttle.c
> @@ -1258,7 +1258,7 @@ out_unlock:
>   * of throtl_data->service_queue.  Those bio's are ready and issued by this
>   * function.
>   */
> -void blk_throtl_dispatch_work_fn(struct work_struct *work)
> +static void blk_throtl_dispatch_work_fn(struct work_struct *work)
>  {
>  	struct throtl_data *td = container_of(work, struct throtl_data,
>  					      dispatch_work);
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-08 18:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-08 16:24 [PATCH 1/2] block: Mark function as static in blk-lib.c Rashika Kheria
2014-02-08 16:26 ` [PATCH 2/2] block: Mark function as static in blk-throttle.c Rashika Kheria
2014-02-08 18:38   ` Josh Triplett
2014-02-08 18:37 ` [PATCH 1/2] block: Mark function as static in blk-lib.c Josh Triplett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.