[dm-devel] [dm:for-next 26/26] drivers/md/dm-crypt.c:3068:2: error: 't' undeclared

kbuild test robot lkp at intel.com
Fri Aug 10 20:05:43 UTC 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head:   08575fd060d7f88f674509461b32d86b272093d9
commit: 08575fd060d7f88f674509461b32d86b272093d9 [26/26] dm crypt: don't decrease device limits
config: openrisc-allyesconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 08575fd060d7f88f674509461b32d86b272093d9
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   drivers/md/dm-crypt.c: In function 'crypt_io_hints':
>> drivers/md/dm-crypt.c:3068:2: error: 't' undeclared (first use in this function)
     t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
     ^
   drivers/md/dm-crypt.c:3068:2: note: each undeclared identifier is reported only once for each function it appears in

vim +/t +3068 drivers/md/dm-crypt.c

  3051	
  3052	static void crypt_io_hints(struct dm_target *ti, struct queue_limits *limits)
  3053	{
  3054		struct crypt_config *cc = ti->private;
  3055	
  3056		/*
  3057		 * Unfortunate constraint that is required to avoid the potential
  3058		 * for exceeding underlying device's max_segments limits -- due to
  3059		 * crypt_alloc_buffer() possibly allocating pages for the encryption
  3060		 * bio that are not as physically contiguous as the original bio.
  3061		 */
  3062		limits->max_segment_size = PAGE_SIZE;
  3063	
  3064		limits->logical_block_size =
  3065			max_t(unsigned short, limits->logical_block_size, cc->sector_size);
  3066		limits->physical_block_size =
  3067			max_t(unsigned, limits->physical_block_size, cc->sector_size);
> 3068		t->io_min = max_t(unsigned, limits->io_min, cc->sector_size);
  3069	}
  3070	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 45575 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20180811/84ac29fa/attachment.gz>


More information about the dm-devel mailing list