All of lore.kernel.org
 help / color / mirror / Atom feed
* [mbroz-linux:dm-cryptsetup 1/1] drivers/md/dm-crypt.c:781:24: sparse: sparse: cast to restricted __le32
@ 2020-01-02  1:19 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-02  1:19 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mbroz/linux.git dm-cryptsetup
head:   dbaf92c13e49c15073044bc9670135efcd117567
commit: dbaf92c13e49c15073044bc9670135efcd117567 [1/1] dm-crypt: Implement Elephant diffuser for Bitlocker compatibility
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-129-g341daf20-dirty
        git checkout dbaf92c13e49c15073044bc9670135efcd117567
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> drivers/md/dm-crypt.c:781:24: sparse: sparse: cast to restricted __le32
   drivers/md/dm-crypt.c:789:22: sparse: sparse: incorrect type in assignment (different base types)
>> drivers/md/dm-crypt.c:789:22: sparse:    expected unsigned int [usertype]
>> drivers/md/dm-crypt.c:789:22: sparse:    got restricted __le32 [usertype]

vim +781 drivers/md/dm-crypt.c

   775	
   776	static void diffuser_disk_to_cpu(u32 *d, size_t n)
   777	{
   778		int i;
   779	
   780		for (i = 0; i < n; i++)
 > 781			d[i] = le32_to_cpu(d[i]);
   782	}
   783	
   784	static void diffuser_cpu_to_disk(u32 *d, size_t n)
   785	{
   786		int i;
   787	
   788		for (i = 0; i < n; i++)
 > 789			d[i] = cpu_to_le32(d[i]);
   790	}
   791	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

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

only message in thread, other threads:[~2020-01-02  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02  1:19 [mbroz-linux:dm-cryptsetup 1/1] drivers/md/dm-crypt.c:781:24: sparse: sparse: cast to restricted __le32 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.