* [driver-core:class_cleanup 105/105] drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared; did you mean 'dsp56k_class'?
@ 2023-03-31 10:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-31 10:11 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: oe-kbuild-all, devel
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@intel.com/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@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303311810.ETd3fMAl-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-31 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-31 10:11 [driver-core:class_cleanup 105/105] drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared; did you mean 'dsp56k_class'? 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.