All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-block:cdrom-ioctl 2/4] fs/hfsplus/wrapper.c:144:7: error: implicit declaration of function 'cdrom_read_tocentry'
Date: Fri, 03 Apr 2020 23:50:25 +0800	[thread overview]
Message-ID: <202004032323.ZlooKFaF%lkp@intel.com> (raw)

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

tree:   git://git.infradead.org/users/hch/block.git cdrom-ioctl
head:   d92a395a2879e4d28a0df8b364d6a9420aa6718e
commit: a289f4fa69b55d7722a2c17d5d4e296076677f4b [2/4] hfsplus: stop using ioctl_by_bdev
config: s390-randconfig-a001-20200403 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a289f4fa69b55d7722a2c17d5d4e296076677f4b
        # save the attached .config to linux build tree
        GCC_VERSION=9.3.0 make.cross ARCH=s390 

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

All errors (new ones prefixed by >>):

   fs/hfsplus/wrapper.c: In function 'hfsplus_get_last_session':
>> fs/hfsplus/wrapper.c:144:7: error: implicit declaration of function 'cdrom_read_tocentry' [-Werror=implicit-function-declaration]
     144 |   if (cdrom_read_tocentry(cdi, &te) ||
         |       ^~~~~~~~~~~~~~~~~~~
>> fs/hfsplus/wrapper.c:154:7: error: implicit declaration of function 'cdrom_multisession' [-Werror=implicit-function-declaration]
     154 |   if (cdrom_multisession(cdi, &ms_info) == 0 && ms_info.xa_flag)
         |       ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/cdrom_read_tocentry +144 fs/hfsplus/wrapper.c

   126	
   127	static int hfsplus_get_last_session(struct super_block *sb,
   128					    sector_t *start, sector_t *size)
   129	{
   130		struct cdrom_device_info *cdi = disk_to_cdi(sb->s_bdev->bd_disk);
   131	
   132		/* default values */
   133		*start = 0;
   134		*size = i_size_read(sb->s_bdev->bd_inode) >> 9;
   135	
   136		if (HFSPLUS_SB(sb)->session >= 0) {
   137			struct cdrom_tocentry te;
   138	
   139			if (!cdi)
   140				return -EINVAL;
   141	
   142			te.cdte_track = HFSPLUS_SB(sb)->session;
   143			te.cdte_format = CDROM_LBA;
 > 144			if (cdrom_read_tocentry(cdi, &te) ||
   145			    (te.cdte_ctrl & CDROM_DATA_TRACK) != 4) {
   146				pr_err("invalid session number or type of track\n");
   147				return -EINVAL;
   148			}
   149			*start = (sector_t)te.cdte_addr.lba << 2;
   150		} else if (cdi) {
   151			struct cdrom_multisession ms_info;
   152	
   153			ms_info.addr_format = CDROM_LBA;
 > 154			if (cdrom_multisession(cdi, &ms_info) == 0 && ms_info.xa_flag)
   155				*start = (sector_t)ms_info.addr.lba << 2;
   156		}
   157	
   158		return 0;
   159	}
   160	

---
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: 23671 bytes --]

                 reply	other threads:[~2020-04-03 15:50 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=202004032323.ZlooKFaF%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 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.