driver-core: make __device_attach() static
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 May 2015 23:36:31 +0000 (16:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:28:30 +0000 (12:28 -0700)
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>
drivers/base/dd.c

index 39292535c74e1a9efa33d043a8d5a62c92ca157d..42e97d90a59a9dbd762730289771b3e802c099e2 100644 (file)
@@ -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;