All of lore.kernel.org
 help / color / mirror / Atom feed
* [miquelraynal:nvmem-layouts-and-of-cleanup 33/35] include/linux/of_device.h:107:19: error: conflicting types for 'of_device_uevent'; have 'int(struct device *, struct kobj_uevent_env *)'
@ 2023-03-08  1:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-08  1:32 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: oe-kbuild-all

tree:   https://github.com/miquelraynal/linux-0day.git nvmem-layouts-and-of-cleanup
head:   d8752324726fdde6bb205a5aa95ae8ff7d84eff7
commit: 576fd27b398772cd60c431ee26e40051d7bbbce0 [33/35] of: module: Mutate of_device_uevent() into two helpers
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20230308/202303080902.bQK5UwtJ-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/miquelraynal/linux-0day/commit/576fd27b398772cd60c431ee26e40051d7bbbce0
        git remote add miquelraynal https://github.com/miquelraynal/linux-0day.git
        git fetch --no-tags miquelraynal nvmem-layouts-and-of-cleanup
        git checkout 576fd27b398772cd60c431ee26e40051d7bbbce0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=um SUBARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303080902.bQK5UwtJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/cpufreq.h:18,
                    from drivers/base/core.c:12:
>> include/linux/of_device.h:107:19: error: conflicting types for 'of_device_uevent'; have 'int(struct device *, struct kobj_uevent_env *)'
     107 | static inline int of_device_uevent(struct device *dev, struct kobj_uevent_env *env)
         |                   ^~~~~~~~~~~~~~~~
   include/linux/of_device.h:81:20: note: previous definition of 'of_device_uevent' with type 'void(const struct device *, struct kobj_uevent_env *)'
      81 | static inline void of_device_uevent(const struct device *dev,
         |                    ^~~~~~~~~~~~~~~~
   drivers/base/core.c: In function 'dev_uevent':
   drivers/base/core.c:2530:26: warning: passing argument 1 of 'of_device_uevent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    2530 |         of_device_uevent(dev, env);
         |                          ^~~
   In file included from include/linux/cpufreq.h:18,
                    from drivers/base/core.c:12:
   include/linux/of_device.h:107:51: note: expected 'struct device *' but argument is of type 'const struct device *'
     107 | static inline int of_device_uevent(struct device *dev, struct kobj_uevent_env *env)
         |                                    ~~~~~~~~~~~~~~~^~~
--
   In file included from include/linux/cpufreq.h:18,
                    from include/trace/events/power.h:8,
                    from drivers/base/syscore.c:12:
>> include/linux/of_device.h:107:19: error: conflicting types for 'of_device_uevent'; have 'int(struct device *, struct kobj_uevent_env *)'
     107 | static inline int of_device_uevent(struct device *dev, struct kobj_uevent_env *env)
         |                   ^~~~~~~~~~~~~~~~
   include/linux/of_device.h:81:20: note: previous definition of 'of_device_uevent' with type 'void(const struct device *, struct kobj_uevent_env *)'
      81 | static inline void of_device_uevent(const struct device *dev,
         |                    ^~~~~~~~~~~~~~~~


vim +107 include/linux/of_device.h

   106	
 > 107	static inline int of_device_uevent(struct device *dev, struct kobj_uevent_env *env)
   108	{
   109		return -ENODEV;
   110	}
   111	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-08  1:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08  1:32 [miquelraynal:nvmem-layouts-and-of-cleanup 33/35] include/linux/of_device.h:107:19: error: conflicting types for 'of_device_uevent'; have 'int(struct device *, struct kobj_uevent_env *)' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.