From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754406AbbETXgj (ORCPT ); Wed, 20 May 2015 19:36:39 -0400 Received: from mail-ig0-f181.google.com ([209.85.213.181]:33965 "EHLO mail-ig0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753640AbbETXgg (ORCPT ); Wed, 20 May 2015 19:36:36 -0400 Date: Wed, 20 May 2015 16:36:31 -0700 From: Dmitry Torokhov To: Greg Kroah-Hartman Cc: fengguang.wu@intel.com, linux-kernel@vger.kernel.org Subject: [PATCH] driver-core: make __device_attach() static Message-ID: <20150520233631.GA19303@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is only used within dd.c and thus need not be global. Reported-by: kbuild test robot Signed-off-by: Dmitry Torokhov --- drivers/base/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 3929253..42e97d9 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; -- 2.2.0.rc0.207.ga3a616c -- Dmitry