diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-05-21 02:36:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 22:28:30 +0300 |
commit | 802a87fd5be9cac1d05879bcdae2620e46b0dbe6 (patch) | |
tree | e726e5174d9cf92180b65fa2813069674938f3df /drivers/base | |
parent | dc7dfcd838985947ee1a66cdaa41c4968404e0ed (diff) | |
download | linux-802a87fd5be9cac1d05879bcdae2620e46b0dbe6.tar.xz |
driver-core: make __device_attach() static
It is only used within dd.c and thus need not be global.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-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 39292535c74e..42e97d90a59a 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -517,7 +517,7 @@ static void __device_attach_async_helper(void *_dev, async_cookie_t cookie) put_device(dev); } -int __device_attach(struct device *dev, bool allow_async) +static int __device_attach(struct device *dev, bool allow_async) { int ret = 0; |