* [l1k:spdm-future 16/34] include/crypto/internal/ecc.h:74:34: sparse: sparse: cast to restricted __be64
@ 2024-03-07 21:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-07 21:47 UTC (permalink / raw)
To: Lukas Wunner; +Cc: oe-kbuild-all
tree: https://github.com/l1k/linux spdm-future
head: fde830bd8ee973e5acff536fac518cf4bdb59714
commit: 27df155f5889562ed6dad1352b9c84b4006907e1 [16/34] crypto: ecdsa - Convert byte arrays with key coordinates to digits
config: x86_64-randconfig-121-20240305 (https://download.01.org/0day-ci/archive/20240308/202403080559.b0unHTFI-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240308/202403080559.b0unHTFI-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/202403080559.b0unHTFI-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
crypto/ecdsa.c: note: in included file:
>> include/crypto/internal/ecc.h:74:34: sparse: sparse: cast to restricted __be64
>> include/crypto/internal/ecc.h:74:34: sparse: sparse: cast to restricted __be64
vim +74 include/crypto/internal/ecc.h
58
59 /**
60 * ecc_digits_from_bytes() - Create ndigits-sized digits array from byte array
61 * @in: Input byte array
62 * @nbytes Size of input byte array
63 * @out Output digits array
64 * @ndigits: Number of digits to create from byte array
65 */
66 static inline void ecc_digits_from_bytes(const u8 *in, unsigned int nbytes,
67 u64 *out, unsigned int ndigits)
68 {
69 unsigned int o = nbytes & 7;
70 u64 msd = 0;
71
72 if (o) {
73 memcpy((u8 *)&msd + sizeof(msd) - o, in, o);
> 74 out[--ndigits] = be64_to_cpu(msd);
75 in += o;
76 }
77 ecc_swap_digits(in, out, ndigits);
78 }
79
--
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:[~2024-03-07 21:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 21:47 [l1k:spdm-future 16/34] include/crypto/internal/ecc.h:74:34: sparse: sparse: cast to restricted __be64 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.