This website requires JavaScript.
Explore
Help
Register
Sign In
leandrof
/
linux
Watch
1
Star
0
Fork
0
You've already forked linux
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
ad7014b394
linux
/
drivers
/
mmc
/
core
/
block.h
2 lines
65 B
C
Raw
Normal View
History
Unescape
Escape
mmc: card: do away with indirection pointer We have enough vtables in the kernel as it is, we don't need this one to create even more artificial separation of concerns. As is proved by the Makefile: obj-$(CONFIG_MMC_BLOCK) += mmc_block.o mmc_block-objs := block.o queue.o block.c and queue.c are baked into the same mmc_block.o object. So why would one of these objects access a function in the other object by dereferencing a pointer? Create a new block.h header file for the single shared function from block to queue and remove the function pointer and just call the queue request function. Apart from making the code more readable, this also makes link optimizations possible and probably speeds up the call as well. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2016-09-20 09:34:38 +00:00
int
mmc_blk_issue_rq
(
struct
mmc_queue
*
mq
,
struct
request
*
req
)
;
Reference in New Issue
Copy Permalink