linux-next: build failure after merge of the driver-core tree

Stephen Rothwell
2015-05-21T07:52:13Z

[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]

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@canb.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@canb.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@canb.auug.org.au

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]