diff options
author | Christoph Hellwig <hch@lst.de> | 2022-10-30 10:22:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-10 18:31:04 +0100 |
commit | 189a87f8ef8ceed16b2a230dc0ce65117068ac30 (patch) | |
tree | ad47713f3350738ef2a4078a1cc9f28f9bde22e3 /drivers/base/dd.c | |
parent | 0f0605d550ed986279030d452c7ed10df34da449 (diff) | |
download | lwn-189a87f8ef8ceed16b2a230dc0ce65117068ac30.tar.gz lwn-189a87f8ef8ceed16b2a230dc0ce65117068ac30.zip |
driver core: mark driver_allows_async_probing static
driver_allows_async_probing is only used in drivers/base/dd.c, so mark
it static and remove the declaration in drivers/base/base.h.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030092255.872280-1-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 3dda62503102..4001e22617ab 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -843,7 +843,7 @@ static int __init save_async_options(char *buf) } __setup("driver_async_probe=", save_async_options); -bool driver_allows_async_probing(struct device_driver *drv) +static bool driver_allows_async_probing(struct device_driver *drv) { switch (drv->probe_type) { case PROBE_PREFER_ASYNCHRONOUS: |