All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-block:cdrom-ioctl 2/4] fs/hfsplus/wrapper.c:144:7: error: implicit declaration of function 'cdrom_read_tocentry'
@ 2020-04-03 15:50 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-04-03 15:50 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-03 15:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 15:50 [hch-block:cdrom-ioctl 2/4] fs/hfsplus/wrapper.c:144:7: error: implicit declaration of function 'cdrom_read_tocentry' kbuild 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.