All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Shaomin Deng <dengshaomin@cdjrlc.com>,
	agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com,
	linux-kernel@vger.kernel.org
Cc: Shaomin Deng <dengshaomin@cdjrlc.com>,
	llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [dm-devel] [PATCH] dm: Remove the unneeeded variable
Date: Sun, 28 Aug 2022 03:46:18 +0800	[thread overview]
Message-ID: <202208280313.Avg378Ql-lkp@intel.com> (raw)
In-Reply-To: <20220827163848.24296-1-dengshaomin@cdjrlc.com>

Hi Shaomin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v6.0-rc2]
[also build test ERROR on linus/master next-20220826]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Shaomin-Deng/dm-Remove-the-unneeeded-variable/20220828-004044
base:    1c23f9e627a7b412978b4e852793c5e3c3efc555
config: riscv-randconfig-r003-20220828 (https://download.01.org/0day-ci/archive/20220828/202208280313.Avg378Ql-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project a2100daf12fb980a29fd1a9c85ccf8eaaaf79730)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/intel-lab-lkp/linux/commit/fd20974ffc753b102401c766eb62117c276a1527
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Shaomin-Deng/dm-Remove-the-unneeeded-variable/20220828-004044
        git checkout fd20974ffc753b102401c766eb62117c276a1527
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/md/

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

All errors (new ones prefixed by >>):

>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
                   DMEMIT("3 %s %s %c", log->type->name, lc->log_dev->name,
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
                   DMEMIT("%s %u %s %u ", log->type->name,
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
                   DMEMIT_SYNC;
                   ^
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   12 errors generated.


vim +/sz +810 drivers/md/dm-log.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  802  
416cd17b198221 Heinz Mauelshagen  2008-04-24  803  static int disk_status(struct dm_dirty_log *log, status_type_t status,
^1da177e4c3f41 Linus Torvalds     2005-04-16  804  		       char *result, unsigned int maxlen)
^1da177e4c3f41 Linus Torvalds     2005-04-16  805  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  806  	struct log_c *lc = log->context;
^1da177e4c3f41 Linus Torvalds     2005-04-16  807  
^1da177e4c3f41 Linus Torvalds     2005-04-16  808  	switch(status) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  809  	case STATUSTYPE_INFO:
315dcc226f066c Jonathan E Brassow 2007-05-09 @810  		DMEMIT("3 %s %s %c", log->type->name, lc->log_dev->name,
64b30c46e866bb Mikulas Patocka    2009-12-10  811  		       lc->log_dev_flush_failed ? 'F' :
64b30c46e866bb Mikulas Patocka    2009-12-10  812  		       lc->log_dev_failed ? 'D' :
64b30c46e866bb Mikulas Patocka    2009-12-10  813  		       'A');
^1da177e4c3f41 Linus Torvalds     2005-04-16  814  		break;
^1da177e4c3f41 Linus Torvalds     2005-04-16  815  
^1da177e4c3f41 Linus Torvalds     2005-04-16  816  	case STATUSTYPE_TABLE:
^1da177e4c3f41 Linus Torvalds     2005-04-16  817  		DMEMIT("%s %u %s %u ", log->type->name,
315dcc226f066c Jonathan E Brassow 2007-05-09  818  		       lc->sync == DEFAULTSYNC ? 2 : 3, lc->log_dev->name,
^1da177e4c3f41 Linus Torvalds     2005-04-16  819  		       lc->region_size);
^1da177e4c3f41 Linus Torvalds     2005-04-16  820  		DMEMIT_SYNC;
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  821  		break;
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  822  
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  823  	case STATUSTYPE_IMA:
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  824  		*result = '\0';
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  825  		break;
^1da177e4c3f41 Linus Torvalds     2005-04-16  826  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  827  
fd20974ffc753b Shaomin Deng       2022-08-27  828  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  829  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  830  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Shaomin Deng <dengshaomin@cdjrlc.com>,
	agk@redhat.com, snitzer@kernel.org, dm-devel@redhat.com,
	linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Shaomin Deng <dengshaomin@cdjrlc.com>
Subject: Re: [PATCH] dm: Remove the unneeeded variable
Date: Sun, 28 Aug 2022 03:46:18 +0800	[thread overview]
Message-ID: <202208280313.Avg378Ql-lkp@intel.com> (raw)
In-Reply-To: <20220827163848.24296-1-dengshaomin@cdjrlc.com>

Hi Shaomin,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v6.0-rc2]
[also build test ERROR on linus/master next-20220826]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Shaomin-Deng/dm-Remove-the-unneeeded-variable/20220828-004044
base:    1c23f9e627a7b412978b4e852793c5e3c3efc555
config: riscv-randconfig-r003-20220828 (https://download.01.org/0day-ci/archive/20220828/202208280313.Avg378Ql-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project a2100daf12fb980a29fd1a9c85ccf8eaaaf79730)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/intel-lab-lkp/linux/commit/fd20974ffc753b102401c766eb62117c276a1527
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Shaomin-Deng/dm-Remove-the-unneeeded-variable/20220828-004044
        git checkout fd20974ffc753b102401c766eb62117c276a1527
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/md/

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

All errors (new ones prefixed by >>):

>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
                   DMEMIT("3 %s %s %c", log->type->name, lc->log_dev->name,
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
>> drivers/md/dm-log.c:810:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
                   DMEMIT("%s %u %s %u ", log->type->name,
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
   drivers/md/dm-log.c:817:3: error: use of undeclared identifier 'sz'
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
                   DMEMIT_SYNC;
                   ^
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:615:22: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                        ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:615:30: note: expanded from macro 'DMEMIT'
   #define DMEMIT(x...) sz += ((sz >= maxlen) ? \
                                ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:616:29: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                    ^
   drivers/md/dm-log.c:820:3: error: use of undeclared identifier 'sz'
   drivers/md/dm-log.c:776:3: note: expanded from macro 'DMEMIT_SYNC'
                   DMEMIT("%ssync ", lc->sync == NOSYNC ? "no" : "")
                   ^
   include/linux/device-mapper.h:616:42: note: expanded from macro 'DMEMIT'
                             0 : scnprintf(result + sz, maxlen - sz, x))
                                                                 ^
   12 errors generated.


vim +/sz +810 drivers/md/dm-log.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  802  
416cd17b198221 Heinz Mauelshagen  2008-04-24  803  static int disk_status(struct dm_dirty_log *log, status_type_t status,
^1da177e4c3f41 Linus Torvalds     2005-04-16  804  		       char *result, unsigned int maxlen)
^1da177e4c3f41 Linus Torvalds     2005-04-16  805  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  806  	struct log_c *lc = log->context;
^1da177e4c3f41 Linus Torvalds     2005-04-16  807  
^1da177e4c3f41 Linus Torvalds     2005-04-16  808  	switch(status) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  809  	case STATUSTYPE_INFO:
315dcc226f066c Jonathan E Brassow 2007-05-09 @810  		DMEMIT("3 %s %s %c", log->type->name, lc->log_dev->name,
64b30c46e866bb Mikulas Patocka    2009-12-10  811  		       lc->log_dev_flush_failed ? 'F' :
64b30c46e866bb Mikulas Patocka    2009-12-10  812  		       lc->log_dev_failed ? 'D' :
64b30c46e866bb Mikulas Patocka    2009-12-10  813  		       'A');
^1da177e4c3f41 Linus Torvalds     2005-04-16  814  		break;
^1da177e4c3f41 Linus Torvalds     2005-04-16  815  
^1da177e4c3f41 Linus Torvalds     2005-04-16  816  	case STATUSTYPE_TABLE:
^1da177e4c3f41 Linus Torvalds     2005-04-16  817  		DMEMIT("%s %u %s %u ", log->type->name,
315dcc226f066c Jonathan E Brassow 2007-05-09  818  		       lc->sync == DEFAULTSYNC ? 2 : 3, lc->log_dev->name,
^1da177e4c3f41 Linus Torvalds     2005-04-16  819  		       lc->region_size);
^1da177e4c3f41 Linus Torvalds     2005-04-16  820  		DMEMIT_SYNC;
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  821  		break;
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  822  
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  823  	case STATUSTYPE_IMA:
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  824  		*result = '\0';
8ec456629d0bf0 Tushar Sugandhi    2021-07-12  825  		break;
^1da177e4c3f41 Linus Torvalds     2005-04-16  826  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  827  
fd20974ffc753b Shaomin Deng       2022-08-27  828  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  829  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  830  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

  parent reply	other threads:[~2022-08-27 19:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-27 16:38 [dm-devel] [PATCH] dm: Remove the unneeeded variable Shaomin Deng
2022-08-27 16:38 ` Shaomin Deng
2022-08-27 18:35 ` [dm-devel] " kernel test robot
2022-08-27 18:35   ` kernel test robot
2022-08-27 19:46 ` kernel test robot [this message]
2022-08-27 19:46   ` kernel test robot

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=202208280313.Avg378Ql-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=agk@redhat.com \
    --cc=dengshaomin@cdjrlc.com \
    --cc=dm-devel@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=snitzer@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 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.