linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mcgrof-next:20210708-block-fixes-v2 19/89] drivers/block/z2ram.c:339:3: error: implicit declaration of function 'blk_cleaup_disk'; did you mean 'blk_cleanup_disk'?
Date: Thu, 15 Jul 2021 19:37:18 +0800	[thread overview]
Message-ID: <202107151913.0f9lTlOF-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2335 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210708-block-fixes-v2
head:   db0174e39de7dc941f158ce53ee3af95b1635b62
commit: 9a3284fe5f9c6d8eb4f86f92329edcdb5921c8f8 [19/89] z2ram: add error handling support for add_disk()
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.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/mcgrof/linux-next.git/commit/?id=9a3284fe5f9c6d8eb4f86f92329edcdb5921c8f8
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20210708-block-fixes-v2
        git checkout 9a3284fe5f9c6d8eb4f86f92329edcdb5921c8f8
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/block/z2ram.c: In function 'z2ram_register_disk':
>> drivers/block/z2ram.c:339:3: error: implicit declaration of function 'blk_cleaup_disk'; did you mean 'blk_cleanup_disk'? [-Werror=implicit-function-declaration]
     339 |   blk_cleaup_disk(disk);
         |   ^~~~~~~~~~~~~~~
         |   blk_cleanup_disk
   cc1: some warnings being treated as errors


vim +339 drivers/block/z2ram.c

   317	
   318	static int z2ram_register_disk(int minor)
   319	{
   320		struct gendisk *disk;
   321		int err;
   322	
   323		disk = blk_mq_alloc_disk(&tag_set, NULL);
   324		if (IS_ERR(disk))
   325			return PTR_ERR(disk);
   326	
   327		disk->major = Z2RAM_MAJOR;
   328		disk->first_minor = minor;
   329		disk->minors = 1;
   330		disk->fops = &z2_fops;
   331		if (minor)
   332			sprintf(disk->disk_name, "z2ram%d", minor);
   333		else
   334			sprintf(disk->disk_name, "z2ram");
   335	
   336		z2ram_gendisk[minor] = disk;
   337		err = add_disk(disk);
   338		if (err)
 > 339			blk_cleaup_disk(disk);
   340		return err;
   341	}
   342	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60801 bytes --]

                 reply	other threads:[~2021-07-15 11:37 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=202107151913.0f9lTlOF-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).