[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150521175206.4659cbad@canb.auug.org.au>
Date: Thu, 21 May 2015 17:52:06 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Greg KH <greg@...ah.com>
Cc: linux-next@...r.kernel.org, linux-kernel@...r.kernel.org,
"Luis R. Rodriguez" <mcgrof@...e.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>
Subject: linux-next: build failure after merge of the driver-core tree
Hi Greg,
After merging the driver-core tree, today's linux-next build (powerpc
allnoconfig) failed like this:
drivers/base/dd.c: In function 'driver_allows_async_probing':
drivers/base/dd.c:430:31: error: dereferencing pointer to incomplete type
if (drv->owner && drv->owner->async_probe_requested)
^
Caused by commit f2411da74698 ("driver-core: add driver module
asynchronous probe support").
I have applied the following fix patch for today:
From: Stephen Rothwell <sfr@...b.auug.org.au>
Date: Thu, 21 May 2015 17:44:10 +1000
Subject: [PATCH] driver-core: add driver module asynchronous probe support fix
struct module is not defined if CONFIG_MODULES is not set.
Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
---
drivers/base/dd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 39292535c74e..12e120ddbc34 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -427,8 +427,10 @@ bool driver_allows_async_probing(struct device_driver *drv)
return false;
default:
+#ifdef CONFIG_MODULES
if (drv->owner && drv->owner->async_probe_requested)
return true;
+#endif
return false;
}
--
2.1.4
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists