lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 18 Nov 2012 21:28:09 -0800
From:	Josh Triplett <josh@...htriplett.org>
To:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org
Cc:	Josh Triplett <josh@...htriplett.org>
Subject: [PATCH 30/58] block: Eliminate unused function kblockd_schedule_delayed_work

Commit e43473b7f223ec866f7db273697e76c337c390f9 in September 2010
("blkio: Core implementation of throttle policy") re-added the
previously removed function kblockd_schedule_delayed_work, and added a
single call from throtl_schedule_delayed_work in block/blk-throttle.c.

Commit 450adcbe518ab3a3953d8475309525d22de77cba in March 2011
("blk-throttle: Do not use kblockd workqueue for throtl work")
eliminated that one and only call from throtl_schedule_delayed_work in
favor of a separate workqueue.

No other callers have come into existence since then.

Eliminate kblockd_schedule_delayed_work once again.

This also eliminates a warning from gcc (-Wmissing-prototypes) and from
Sparse (-Wdecl).

block/blk-core.c:2820:5: warning: no previous prototype for ‘kblockd_schedule_delayed_work’ [-Wmissing-prototypes]

Signed-off-by: Josh Triplett <josh@...htriplett.org>
---
 block/blk-core.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index a33870b..f338553 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2817,13 +2817,6 @@ int kblockd_schedule_work(struct request_queue *q, struct work_struct *work)
 }
 EXPORT_SYMBOL(kblockd_schedule_work);
 
-int kblockd_schedule_delayed_work(struct request_queue *q,
-			struct delayed_work *dwork, unsigned long delay)
-{
-	return queue_delayed_work(kblockd_workqueue, dwork, delay);
-}
-EXPORT_SYMBOL(kblockd_schedule_delayed_work);
-
 #define PLUG_MAGIC	0x91827364
 
 /**
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ