All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: oe-kbuild-all@lists.linux.dev, devel@driverdev.osuosl.org
Subject: [driver-core:class_cleanup 105/105] drivers/char/dsp56k.c:509:31: error: 'dsp45k_class' undeclared; did you mean 'dsp56k_class'?
Date: Fri, 31 Mar 2023 18:11:31 +0800	[thread overview]
Message-ID: <202303311810.ETd3fMAl-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-03-31 10:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202303311810.ETd3fMAl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.