tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git class_cleanup head: 0a691d3e4ee7c40089125d7643399d5ec1edf340 commit: 0a691d3e4ee7c40089125d7643399d5ec1edf340 [104/104] driver core: convert class_create() to class_register() config: m68k-defconfig (https://download.01.org/0day-ci/archive/20230330/202303301809.zlocAixw-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=0a691d3e4ee7c40089125d7643399d5ec1edf340 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 0a691d3e4ee7c40089125d7643399d5ec1edf340 # 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/202303301809.zlocAixw-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/char/dsp56k.c:104:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 104 | static const struct class dsp56k_class { | ^ drivers/char/dsp56k.c: In function 'dsp56k_init_driver': >> drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared (first use in this function) 509 | err = class_register(&dsp45k_class); | ^~~~~~~~~~~~ drivers/char/dsp56k.c:509:31: note: each undeclared identifier is reported only once for each function it appears in >> drivers/char/dsp56k.c:512:24: error: 'dsp56k_class' undeclared (first use in this function); did you mean 'dsp56k_fops'? 512 | device_create(&dsp56k_class, NULL, MKDEV(DSP56K_MAJOR, 0), NULL, | ^~~~~~~~~~~~ | dsp56k_fops drivers/char/dsp56k.c: In function 'dsp56k_cleanup_driver': drivers/char/dsp56k.c:527:25: error: 'dsp56k_class' undeclared (first use in this function); did you mean 'dsp56k_fops'? 527 | device_destroy(&dsp56k_class, MKDEV(DSP56K_MAJOR, 0)); | ^~~~~~~~~~~~ | dsp56k_fops vim +104 drivers/char/dsp56k.c 103 > 104 static const struct class dsp56k_class { 105 .name = "dsp56k", 106 }; 107 -- 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