Hi Anshuman,

[auto build test ERROR on v4.8-rc2]
[also build test ERROR on next-20160822]
[cannot apply to glikely/devicetree/next]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for 
convenience) to record what (public, well-known) commit your patch series was 
built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    
https://github.com/0day-ci/linux/commits/Anshuman-Gupta/populate-platform-device-at-late-init/20160819-124221
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget 
https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross
 -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   In file included from arch/sparc/include/asm/openprom.h:14:0,
                    from arch/sparc/include/asm/oplib_64.h:11,
                    from arch/sparc/include/asm/oplib.h:4,
                    from arch/sparc/kernel/traps_64.c:28:
>> include/linux/of.h:327:12: error: conflicting types for 'of_set_property'
    extern int of_set_property(const struct device_node *node,
               ^
   In file included from include/linux/of.h:232:0,
                    from arch/sparc/include/asm/openprom.h:14,
                    from arch/sparc/include/asm/oplib_64.h:11,
                    from arch/sparc/include/asm/oplib.h:4,
                    from arch/sparc/kernel/traps_64.c:28:
   arch/sparc/include/asm/prom.h:40:5: note: previous declaration of 
'of_set_property' was here
    int of_set_property(struct device_node *node, const char *name, void *val, 
int len);
        ^
--
   In file included from arch/sparc/kernel/prom_common.c:22:0:
>> include/linux/of.h:327:12: error: conflicting types for 'of_set_property'
    extern int of_set_property(const struct device_node *node,
               ^
   In file included from include/linux/of.h:232:0,
                    from arch/sparc/kernel/prom_common.c:22:
   arch/sparc/include/asm/prom.h:40:5: note: previous declaration of 
'of_set_property' was here
    int of_set_property(struct device_node *node, const char *name, void *val, 
int len);
        ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from arch/sparc/kernel/prom_common.c:17:
>> arch/sparc/kernel/prom_common.c:102:15: error: conflicting types for 
>> 'of_set_property'
    EXPORT_SYMBOL(of_set_property);
                  ^
   include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;     \
                        ^
   arch/sparc/kernel/prom_common.c:102:1: note: in expansion of macro 
'EXPORT_SYMBOL'
    EXPORT_SYMBOL(of_set_property);
    ^
   arch/sparc/kernel/prom_common.c:54:5: note: previous definition of 
'of_set_property' was here
    int of_set_property(struct device_node *dp, const char *name, void *val, 
int len)
        ^
--
   In file included from arch/sparc/include/asm/openprom.h:14:0,
                    from arch/sparc/include/asm/device.h:9,
                    from include/linux/device.h:30,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from drivers/of/base.c:25:
>> include/linux/of.h:327:12: error: conflicting types for 'of_set_property'
    extern int of_set_property(const struct device_node *node,
               ^
   In file included from include/linux/of.h:232:0,
                    from arch/sparc/include/asm/openprom.h:14,
                    from arch/sparc/include/asm/device.h:9,
                    from include/linux/device.h:30,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from drivers/of/base.c:25:
   arch/sparc/include/asm/prom.h:40:5: note: previous declaration of 
'of_set_property' was here
    int of_set_property(struct device_node *node, const char *name, void *val, 
int len);
        ^
>> drivers/of/base.c:321:5: error: conflicting types for 'of_set_property'
    int of_set_property(const struct device_node *np, const char *name,
        ^
   In file included from include/linux/of.h:232:0,
                    from arch/sparc/include/asm/openprom.h:14,
                    from arch/sparc/include/asm/device.h:9,
                    from include/linux/device.h:30,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from drivers/of/base.c:25:
   arch/sparc/include/asm/prom.h:40:5: note: previous declaration of 
'of_set_property' was here
    int of_set_property(struct device_node *node, const char *name, void *val, 
int len);
        ^
   In file included from include/linux/linkage.h:6:0,
                    from include/linux/kernel.h:6,
                    from include/linux/list.h:8,
                    from include/linux/kobject.h:20,
                    from include/linux/device.h:17,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from drivers/of/base.c:25:
   drivers/of/base.c:340:15: error: conflicting types for 'of_set_property'
    EXPORT_SYMBOL(of_set_property);
                  ^
   include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL'
     extern typeof(sym) sym;     \
                        ^
   drivers/of/base.c:340:1: note: in expansion of macro 'EXPORT_SYMBOL'
    EXPORT_SYMBOL(of_set_property);
    ^
   In file included from include/linux/of.h:232:0,
                    from arch/sparc/include/asm/openprom.h:14,
                    from arch/sparc/include/asm/device.h:9,
                    from include/linux/device.h:30,
                    from include/linux/node.h:17,
                    from include/linux/cpu.h:16,
                    from drivers/of/base.c:25:
   arch/sparc/include/asm/prom.h:40:5: note: previous declaration of 
'of_set_property' was here
    int of_set_property(struct device_node *node, const char *name, void *val, 
int len);
        ^

vim +/of_set_property +327 include/linux/of.h

   321                                        const char *const *compat);
   322  extern bool of_device_is_available(const struct device_node *device);
   323  extern bool of_device_is_big_endian(const struct device_node *device);
   324  extern const void *of_get_property(const struct device_node *node,
   325                                  const char *name,
   326                                  int *lenp);
 > 327  extern int of_set_property(const struct device_node *node,
   328                                  const char *name, const void *val,
   329                                  int len);
   330  extern struct device_node *of_get_cpu_node(int cpu, unsigned int 
*thread);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data

Reply via email to