From: Dmitry Torokhov Date: Wed, 20 May 2015 23:36:31 +0000 (-0700) Subject: driver-core: make __device_attach() static X-Git-Tag: firefly_0821_release~176^2~1546^2~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=802a87fd5be9cac1d05879bcdae2620e46b0dbe6;p=firefly-linux-kernel-4.4.55.git driver-core: make __device_attach() static It is only used within dd.c and thus need not be global. Reported-by: kbuild test robot Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- 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;