OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc7dfcd
)
driver-core: make __device_attach() static
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 20 May 2015 23:36:31 +0000
(16:36 -0700)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/base/dd.c
b/drivers/base/dd.c
index
3929253
..
42e97d9
100644
(file)
--- 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;