All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:keys-pqc 2/8] crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse: sparse: incorrect type in argument 3 (different base types)
@ 2025-11-10 17:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-10 17:15 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-pqc
head:   445b842b50b449ceb18cbbfc72dc28bc25fa8b08
commit: 7ae730f92709e7f54f560e4ca88b10ef1aeb6c22 [2/8] crypto: Add ML-DSA/Dilithium verify support
config: mips-randconfig-r134-20251110 (https://download.01.org/0day-ci/archive/20251111/202511110107.cresrLdf-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 93d445cba39f4dd3dcda4fa1433eca825cf8fc09)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251111/202511110107.cresrLdf-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511110107.cresrLdf-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   crypto/ml_dsa/dilithium_44.c: note: in included file (through crypto/ml_dsa/dilithium_signature_c.c):
>> crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned short [addressable] [usertype] nonce @@     got restricted __le16 [usertype] @@
   crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse:     expected unsigned short [addressable] [usertype] nonce
   crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse:     got restricted __le16 [usertype]
>> crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected unsigned short [addressable] [usertype] nonce @@     got restricted __le16 [usertype] @@
   crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse:     expected unsigned short [addressable] [usertype] nonce
   crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse:     got restricted __le16 [usertype]

vim +41 crypto/ml_dsa/dilithium_polyvec_c.h

    21	
    22	/*
    23	 * @brief expand_mat - Implementation of ExpandA. Generates matrix A with
    24	 *		       uniformly random coefficients a_{i,j} by performing
    25	 *		       rejection sampling on the output stream of
    26	 *		       SHAKE128(rho|j|i).
    27	 *
    28	 * @param [out] mat output matrix
    29	 * @param [in] rho byte array containing seed rho
    30	 */
    31	static inline void
    32	polyvec_matrix_expand(polyvecl mat[DILITHIUM_K],
    33			      const uint8_t rho[DILITHIUM_SEEDBYTES], void *ws_buf)
    34	{
    35		unsigned int i, j;
    36	
    37		for (i = 0; i < DILITHIUM_K; ++i)
    38			for (j = 0; j < DILITHIUM_L; ++j)
    39				poly_uniform(
    40					&mat[i].vec[j], rho,
  > 41					cpu_to_le16((uint16_t)(i << 8) + (uint16_t)j),
    42					ws_buf);
    43	}
    44	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-11-10 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 17:15 [dhowells-fs:keys-pqc 2/8] crypto/ml_dsa/dilithium_polyvec_c.h:41:33: sparse: sparse: incorrect type in argument 3 (different base types) 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.