Re: [PATCH -next] of/platform: Fix sparc:allmodconfig build

2015-03-13 Thread Rob Herring
On Tue, Mar 10, 2015 at 10:31 PM, Guenter Roeck  wrote:
> sparc:allmodconfig fails to build with:
>
> drivers/built-in.o: In function `platform_bus_init':
> (.init.text+0x3684): undefined reference to 
> `of_platform_register_reconfig_notifier'
>
> of_platform_register_reconfig_notifier is only declared if both OF_ADDRESS
> and OF_DYNAMIC are configured. Yet, the include file only declares a dummy
> function if OF_DYNAMIC is not configured. The sparc architecture does not
> configure OF_ADDRESS, but does configure OF_DYNAMIC, causing above error.
>
> Fixes: 801d728c10db ("of/reconfig: Add OF_DYNAMIC notifier for 
> platform_bus_type")
> Cc: Pantelis Antoniou 
> Signed-off-by: Guenter Roeck 

Applied for 4.0. Thanks.

Rob

> ---
>  include/linux/of_platform.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
> index 8a860f0..611a691 100644
> --- a/include/linux/of_platform.h
> +++ b/include/linux/of_platform.h
> @@ -84,7 +84,7 @@ static inline int of_platform_populate(struct device_node 
> *root,
>  static inline void of_platform_depopulate(struct device *parent) { }
>  #endif
>
> -#ifdef CONFIG_OF_DYNAMIC
> +#if defined(CONFIG_OF_DYNAMIC) && defined(CONFIG_OF_ADDRESS)
>  extern void of_platform_register_reconfig_notifier(void);
>  #else
>  static inline void of_platform_register_reconfig_notifier(void) { }
> --
> 2.1.0
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH -next] of/platform: Fix sparc:allmodconfig build

2015-03-13 Thread Rob Herring
On Tue, Mar 10, 2015 at 10:31 PM, Guenter Roeck li...@roeck-us.net wrote:
 sparc:allmodconfig fails to build with:

 drivers/built-in.o: In function `platform_bus_init':
 (.init.text+0x3684): undefined reference to 
 `of_platform_register_reconfig_notifier'

 of_platform_register_reconfig_notifier is only declared if both OF_ADDRESS
 and OF_DYNAMIC are configured. Yet, the include file only declares a dummy
 function if OF_DYNAMIC is not configured. The sparc architecture does not
 configure OF_ADDRESS, but does configure OF_DYNAMIC, causing above error.

 Fixes: 801d728c10db (of/reconfig: Add OF_DYNAMIC notifier for 
 platform_bus_type)
 Cc: Pantelis Antoniou pantelis.anton...@konsulko.com
 Signed-off-by: Guenter Roeck li...@roeck-us.net

Applied for 4.0. Thanks.

Rob

 ---
  include/linux/of_platform.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

 diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
 index 8a860f0..611a691 100644
 --- a/include/linux/of_platform.h
 +++ b/include/linux/of_platform.h
 @@ -84,7 +84,7 @@ static inline int of_platform_populate(struct device_node 
 *root,
  static inline void of_platform_depopulate(struct device *parent) { }
  #endif

 -#ifdef CONFIG_OF_DYNAMIC
 +#if defined(CONFIG_OF_DYNAMIC)  defined(CONFIG_OF_ADDRESS)
  extern void of_platform_register_reconfig_notifier(void);
  #else
  static inline void of_platform_register_reconfig_notifier(void) { }
 --
 2.1.0

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH -next] of/platform: Fix sparc:allmodconfig build

2015-03-10 Thread Guenter Roeck
sparc:allmodconfig fails to build with:

drivers/built-in.o: In function `platform_bus_init':
(.init.text+0x3684): undefined reference to 
`of_platform_register_reconfig_notifier'

of_platform_register_reconfig_notifier is only declared if both OF_ADDRESS
and OF_DYNAMIC are configured. Yet, the include file only declares a dummy
function if OF_DYNAMIC is not configured. The sparc architecture does not
configure OF_ADDRESS, but does configure OF_DYNAMIC, causing above error.

Fixes: 801d728c10db ("of/reconfig: Add OF_DYNAMIC notifier for 
platform_bus_type")
Cc: Pantelis Antoniou 
Signed-off-by: Guenter Roeck 
---
 include/linux/of_platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 8a860f0..611a691 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -84,7 +84,7 @@ static inline int of_platform_populate(struct device_node 
*root,
 static inline void of_platform_depopulate(struct device *parent) { }
 #endif
 
-#ifdef CONFIG_OF_DYNAMIC
+#if defined(CONFIG_OF_DYNAMIC) && defined(CONFIG_OF_ADDRESS)
 extern void of_platform_register_reconfig_notifier(void);
 #else
 static inline void of_platform_register_reconfig_notifier(void) { }
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH -next] of/platform: Fix sparc:allmodconfig build

2015-03-10 Thread Guenter Roeck
sparc:allmodconfig fails to build with:

drivers/built-in.o: In function `platform_bus_init':
(.init.text+0x3684): undefined reference to 
`of_platform_register_reconfig_notifier'

of_platform_register_reconfig_notifier is only declared if both OF_ADDRESS
and OF_DYNAMIC are configured. Yet, the include file only declares a dummy
function if OF_DYNAMIC is not configured. The sparc architecture does not
configure OF_ADDRESS, but does configure OF_DYNAMIC, causing above error.

Fixes: 801d728c10db (of/reconfig: Add OF_DYNAMIC notifier for 
platform_bus_type)
Cc: Pantelis Antoniou pantelis.anton...@konsulko.com
Signed-off-by: Guenter Roeck li...@roeck-us.net
---
 include/linux/of_platform.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 8a860f0..611a691 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -84,7 +84,7 @@ static inline int of_platform_populate(struct device_node 
*root,
 static inline void of_platform_depopulate(struct device *parent) { }
 #endif
 
-#ifdef CONFIG_OF_DYNAMIC
+#if defined(CONFIG_OF_DYNAMIC)  defined(CONFIG_OF_ADDRESS)
 extern void of_platform_register_reconfig_notifier(void);
 #else
 static inline void of_platform_register_reconfig_notifier(void) { }
-- 
2.1.0

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/