summaryrefslogtreecommitdiff
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-05-20 16:36:31 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 12:28:30 -0700
commit802a87fd5be9cac1d05879bcdae2620e46b0dbe6 (patch)
treee726e5174d9cf92180b65fa2813069674938f3df /drivers/base/dd.c
parentdc7dfcd838985947ee1a66cdaa41c4968404e0ed (diff)
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/dd.c')
-rw-r--r--drivers/base/dd.c2
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;