[driver-core:kobject-const-2 71/78] drivers/sh/intc/userimask.c:67:46: error: 'struct bus_type' has no member named 'dev_root'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const-2
head:   0be8abebbd476395ee73f4a83d4988dc9958f83c
commit: 7389911cf9a8bc346a6aa2662645298627c44cb6 [71/78] driver core: bus: move dev_root out of struct bus_type
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20230210/202302100648.6stAb27m-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=7389911cf9a8bc346a6aa2662645298627c44cb6
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core kobject-const-2
        git checkout 7389911cf9a8bc346a6aa2662645298627c44cb6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sh SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/sh/intc/userimask.c: In function 'userimask_sysdev_init':
>> drivers/sh/intc/userimask.c:67:46: error: 'struct bus_type' has no member named 'dev_root'
      67 |         return device_create_file(intc_subsys.dev_root, &dev_attr_userimask);
         |                                              ^
   drivers/sh/intc/userimask.c:68:1: error: control reaches end of non-void function [-Werror=return-type]
      68 | }
         | ^
   cc1: some warnings being treated as errors


vim +67 drivers/sh/intc/userimask.c

2be6bb0c79c7fb Paul Mundt  2010-10-05  57  
f4e73bfcd9cca0 Kay Sievers 2011-12-21  58  static DEVICE_ATTR(userimask, S_IRUSR | S_IWUSR,
2be6bb0c79c7fb Paul Mundt  2010-10-05  59  		   show_intc_userimask, store_intc_userimask);
2be6bb0c79c7fb Paul Mundt  2010-10-05  60  
2be6bb0c79c7fb Paul Mundt  2010-10-05  61  
2be6bb0c79c7fb Paul Mundt  2010-10-05  62  static int __init userimask_sysdev_init(void)
2be6bb0c79c7fb Paul Mundt  2010-10-05  63  {
2be6bb0c79c7fb Paul Mundt  2010-10-05  64  	if (unlikely(!uimask))
2be6bb0c79c7fb Paul Mundt  2010-10-05  65  		return -ENXIO;
2be6bb0c79c7fb Paul Mundt  2010-10-05  66  
f4e73bfcd9cca0 Kay Sievers 2011-12-21 @67  	return device_create_file(intc_subsys.dev_root, &dev_attr_userimask);
2be6bb0c79c7fb Paul Mundt  2010-10-05  68  }
2be6bb0c79c7fb Paul Mundt  2010-10-05  69  late_initcall(userimask_sysdev_init);
2be6bb0c79c7fb Paul Mundt  2010-10-05  70  

:::::: The code at line 67 was first introduced by commit
:::::: f4e73bfcd9cca0b64cc8096175852936fb1d111f sh: intc - convert sysdev_class to a regular subsystem

:::::: TO: Kay Sievers <kay.sievers@xxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux