[driver-core:class_cleanup 105/105] drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared; did you mean 'dsp56k_class'?

[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 class_cleanup
head:   14c5a0d89561a3a5b20f1b2216395161444208a9
commit: 14c5a0d89561a3a5b20f1b2216395161444208a9 [105/105] driver core: convert class_create() to class_register()
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20230331/202303311810.ETd3fMAl-lkp@xxxxxxxxx/config)
compiler: m68k-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=14c5a0d89561a3a5b20f1b2216395161444208a9
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core class_cleanup
        git checkout 14c5a0d89561a3a5b20f1b2216395161444208a9
        # 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=m68k olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/char/

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/202303311810.ETd3fMAl-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/char/dsp56k.c: In function 'dsp56k_init_driver':
>> drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared (first use in this function); did you mean 'dsp56k_class'?
     509 |         err = class_register(&dsp45k_class);
         |                               ^~~~~~~~~~~~
         |                               dsp56k_class
   drivers/char/dsp56k.c:509:31: note: each undeclared identifier is reported only once for each function it appears in


vim +509 drivers/char/dsp56k.c

   495	
   496	static int __init dsp56k_init_driver(void)
   497	{
   498		int err;
   499	
   500		if(!MACH_IS_ATARI || !ATARIHW_PRESENT(DSP56K)) {
   501			printk("DSP56k driver: Hardware not present\n");
   502			return -ENODEV;
   503		}
   504	
   505		if(register_chrdev(DSP56K_MAJOR, "dsp56k", &dsp56k_fops)) {
   506			printk("DSP56k driver: Unable to register driver\n");
   507			return -ENODEV;
   508		}
 > 509		err = class_register(&dsp45k_class);
   510		if (err)
   511			goto out_chrdev;
   512		device_create(&dsp56k_class, NULL, MKDEV(DSP56K_MAJOR, 0), NULL,
   513			      "dsp56k");
   514	
   515		printk(banner);
   516		goto out;
   517	
   518	out_chrdev:
   519		unregister_chrdev(DSP56K_MAJOR, "dsp56k");
   520	out:
   521		return err;
   522	}
   523	module_init(dsp56k_init_driver);
   524	

-- 
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