Commit 56ad1740 authored by Jens Axboe's avatar Jens Axboe

block: make the end_io functions be non-GPL exports

Prior to the change for more sane end_io functions, we exported
the helpers with the normal EXPORT_SYMBOL(). That got changed
to _GPL() for the new interface. Revert that particular change,
on the basis that this is basic functionality and doesn't dip
into internal structures. If these exports can't be non-GPL,
then we may as well make EXPORT_SYMBOL() imply GPL for
everything.
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 3839e4b2
...@@ -2136,7 +2136,7 @@ bool blk_end_request(struct request *rq, int error, unsigned int nr_bytes) ...@@ -2136,7 +2136,7 @@ bool blk_end_request(struct request *rq, int error, unsigned int nr_bytes)
{ {
return blk_end_bidi_request(rq, error, nr_bytes, 0); return blk_end_bidi_request(rq, error, nr_bytes, 0);
} }
EXPORT_SYMBOL_GPL(blk_end_request); EXPORT_SYMBOL(blk_end_request);
/** /**
* blk_end_request_all - Helper function for drives to finish the request. * blk_end_request_all - Helper function for drives to finish the request.
...@@ -2157,7 +2157,7 @@ void blk_end_request_all(struct request *rq, int error) ...@@ -2157,7 +2157,7 @@ void blk_end_request_all(struct request *rq, int error)
pending = blk_end_bidi_request(rq, error, blk_rq_bytes(rq), bidi_bytes); pending = blk_end_bidi_request(rq, error, blk_rq_bytes(rq), bidi_bytes);
BUG_ON(pending); BUG_ON(pending);
} }
EXPORT_SYMBOL_GPL(blk_end_request_all); EXPORT_SYMBOL(blk_end_request_all);
/** /**
* blk_end_request_cur - Helper function to finish the current request chunk. * blk_end_request_cur - Helper function to finish the current request chunk.
...@@ -2175,7 +2175,7 @@ bool blk_end_request_cur(struct request *rq, int error) ...@@ -2175,7 +2175,7 @@ bool blk_end_request_cur(struct request *rq, int error)
{ {
return blk_end_request(rq, error, blk_rq_cur_bytes(rq)); return blk_end_request(rq, error, blk_rq_cur_bytes(rq));
} }
EXPORT_SYMBOL_GPL(blk_end_request_cur); EXPORT_SYMBOL(blk_end_request_cur);
/** /**
* __blk_end_request - Helper function for drivers to complete the request. * __blk_end_request - Helper function for drivers to complete the request.
...@@ -2194,7 +2194,7 @@ bool __blk_end_request(struct request *rq, int error, unsigned int nr_bytes) ...@@ -2194,7 +2194,7 @@ bool __blk_end_request(struct request *rq, int error, unsigned int nr_bytes)
{ {
return __blk_end_bidi_request(rq, error, nr_bytes, 0); return __blk_end_bidi_request(rq, error, nr_bytes, 0);
} }
EXPORT_SYMBOL_GPL(__blk_end_request); EXPORT_SYMBOL(__blk_end_request);
/** /**
* __blk_end_request_all - Helper function for drives to finish the request. * __blk_end_request_all - Helper function for drives to finish the request.
...@@ -2215,7 +2215,7 @@ void __blk_end_request_all(struct request *rq, int error) ...@@ -2215,7 +2215,7 @@ void __blk_end_request_all(struct request *rq, int error)
pending = __blk_end_bidi_request(rq, error, blk_rq_bytes(rq), bidi_bytes); pending = __blk_end_bidi_request(rq, error, blk_rq_bytes(rq), bidi_bytes);
BUG_ON(pending); BUG_ON(pending);
} }
EXPORT_SYMBOL_GPL(__blk_end_request_all); EXPORT_SYMBOL(__blk_end_request_all);
/** /**
* __blk_end_request_cur - Helper function to finish the current request chunk. * __blk_end_request_cur - Helper function to finish the current request chunk.
...@@ -2234,7 +2234,7 @@ bool __blk_end_request_cur(struct request *rq, int error) ...@@ -2234,7 +2234,7 @@ bool __blk_end_request_cur(struct request *rq, int error)
{ {
return __blk_end_request(rq, error, blk_rq_cur_bytes(rq)); return __blk_end_request(rq, error, blk_rq_cur_bytes(rq));
} }
EXPORT_SYMBOL_GPL(__blk_end_request_cur); EXPORT_SYMBOL(__blk_end_request_cur);
void blk_rq_bio_prep(struct request_queue *q, struct request *rq, void blk_rq_bio_prep(struct request_queue *q, struct request *rq,
struct bio *bio) struct bio *bio)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment