[dm-devel] [dm:dm-4.10 22/27] drivers/md/dm-cache-target.c:3583:3: error: 'else' without a previous 'if'

kbuild test robot fengguang.wu at intel.com
Fri Nov 18 06:11:04 UTC 2016


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-4.10
head:   7d343dd89451f88b1e38e3f076fd3da3fc72067e
commit: 76829ab72b51923497512a166050345fe748bb5b [22/27] dm cache metadata: add "separate_dirty_bits" feature
config: x86_64-kexec (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 76829ab72b51923497512a166050345fe748bb5b
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/md/dm-cache-target.c: In function 'cache_status':
>> drivers/md/dm-cache-target.c:3583:3: error: 'else' without a previous 'if'
      else {
      ^~~~

vim +3583 drivers/md/dm-cache-target.c

76829ab7 Joe Thornber 2016-09-22  3577  
76829ab7 Joe Thornber 2016-09-22  3578  		if (cache->features.metadata_features.separate_dirty_bits)
76829ab7 Joe Thornber 2016-09-22  3579  			DMEMIT("separate_dirty_bits ");
76829ab7 Joe Thornber 2016-09-22  3580  		else
76829ab7 Joe Thornber 2016-09-22  3581  			DMEMIT("combined_dirty_bits ");
2ee57d58 Joe Thornber 2013-10-24  3582  
2ee57d58 Joe Thornber 2013-10-24 @3583  		else {
b61d9509 Mike Snitzer 2015-04-22  3584  			DMERR("%s: internal error: unknown io mode: %d",
b61d9509 Mike Snitzer 2015-04-22  3585  			      cache_device_name(cache), (int) cache->features.io_mode);
2ee57d58 Joe Thornber 2013-10-24  3586  			goto err;

:::::: The code at line 3583 was first introduced by commit
:::::: 2ee57d587357f0d752af6c2e3e46434a74b1bee3 dm cache: add passthrough mode

:::::: TO: Joe Thornber <ejt at redhat.com>
:::::: CC: Mike Snitzer <snitzer at redhat.com>

---
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: 24231 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20161118/8b79a4ef/attachment.gz>


More information about the dm-devel mailing list