Skip to content

Commit

Permalink
driver-core: make __device_attach() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed May 24, 2015
1 parent dc7dfcd commit 802a87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 802a87f

Please sign in to comment.