* [linux-next:master 3809/4499] drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: non size-preserving pointer to integer cast
@ 2021-05-22 17:23 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-22 17:23 UTC (permalink / raw)
To: Joe Thornber; +Cc: kbuild-all, Linux Memory Management List, Mike Snitzer
[-- Attachment #1: Type: text/plain, Size: 2926 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8dca2cd055ffb78b37f52f0bf0bd20c249619c4d
commit: def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36 [3809/4499] dm space maps: improve performance with inc/dec on ranges of blocks
config: arm-randconfig-s031-20210522 (attached as .config)
compiler: arm-linux-gnueabi-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
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: cast to restricted __le64
>> drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: non size-preserving pointer to integer cast
vim +578 drivers/md/persistent-data/dm-array.c
6513c29f44f2cc Joe Thornber 2013-03-01 566
6513c29f44f2cc Joe Thornber 2013-03-01 567 /*
6513c29f44f2cc Joe Thornber 2013-03-01 568 * These are the value_type functions for the btree elements, which point
6513c29f44f2cc Joe Thornber 2013-03-01 569 * to array blocks.
6513c29f44f2cc Joe Thornber 2013-03-01 570 */
def6a7a9a7f0e7 Joe Thornber 2021-04-13 571 static void block_inc(void *context, const void *value, unsigned count)
6513c29f44f2cc Joe Thornber 2013-03-01 572 {
def6a7a9a7f0e7 Joe Thornber 2021-04-13 573 const __le64 *block_le = value;
6513c29f44f2cc Joe Thornber 2013-03-01 574 struct dm_array_info *info = context;
def6a7a9a7f0e7 Joe Thornber 2021-04-13 575 unsigned i;
6513c29f44f2cc Joe Thornber 2013-03-01 576
def6a7a9a7f0e7 Joe Thornber 2021-04-13 577 for (i = 0; i < count; i++, block_le++)
6513c29f44f2cc Joe Thornber 2013-03-01 @578 dm_tm_inc(info->btree_info.tm, le64_to_cpu(block_le));
6513c29f44f2cc Joe Thornber 2013-03-01 579 }
6513c29f44f2cc Joe Thornber 2013-03-01 580
:::::: The code at line 578 was first introduced by commit
:::::: 6513c29f44f2cc970c0e9fecfe5a6526c3e73025 dm persistent data: add transactional array
:::::: TO: Joe Thornber <ejt@redhat.com>
:::::: CC: Alasdair G Kergon <agk@redhat.com>
---
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: 34208 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 3809/4499] drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: non size-preserving pointer to integer cast
@ 2021-05-22 17:23 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-22 17:23 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2980 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 8dca2cd055ffb78b37f52f0bf0bd20c249619c4d
commit: def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36 [3809/4499] dm space maps: improve performance with inc/dec on ranges of blocks
config: arm-randconfig-s031-20210522 (attached as .config)
compiler: arm-linux-gnueabi-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
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout def6a7a9a7f0e7e3886fb77cf45c4a48e7e71c36
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: cast to restricted __le64
>> drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: non size-preserving pointer to integer cast
vim +578 drivers/md/persistent-data/dm-array.c
6513c29f44f2cc Joe Thornber 2013-03-01 566
6513c29f44f2cc Joe Thornber 2013-03-01 567 /*
6513c29f44f2cc Joe Thornber 2013-03-01 568 * These are the value_type functions for the btree elements, which point
6513c29f44f2cc Joe Thornber 2013-03-01 569 * to array blocks.
6513c29f44f2cc Joe Thornber 2013-03-01 570 */
def6a7a9a7f0e7 Joe Thornber 2021-04-13 571 static void block_inc(void *context, const void *value, unsigned count)
6513c29f44f2cc Joe Thornber 2013-03-01 572 {
def6a7a9a7f0e7 Joe Thornber 2021-04-13 573 const __le64 *block_le = value;
6513c29f44f2cc Joe Thornber 2013-03-01 574 struct dm_array_info *info = context;
def6a7a9a7f0e7 Joe Thornber 2021-04-13 575 unsigned i;
6513c29f44f2cc Joe Thornber 2013-03-01 576
def6a7a9a7f0e7 Joe Thornber 2021-04-13 577 for (i = 0; i < count; i++, block_le++)
6513c29f44f2cc Joe Thornber 2013-03-01 @578 dm_tm_inc(info->btree_info.tm, le64_to_cpu(block_le));
6513c29f44f2cc Joe Thornber 2013-03-01 579 }
6513c29f44f2cc Joe Thornber 2013-03-01 580
:::::: The code at line 578 was first introduced by commit
:::::: 6513c29f44f2cc970c0e9fecfe5a6526c3e73025 dm persistent data: add transactional array
:::::: TO: Joe Thornber <ejt@redhat.com>
:::::: CC: Alasdair G Kergon <agk@redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34208 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-22 17:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 17:23 [linux-next:master 3809/4499] drivers/md/persistent-data/dm-array.c:578:48: sparse: sparse: non size-preserving pointer to integer cast kernel test robot
2021-05-22 17:23 ` kernel 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.