Re: drivers/crypto/sa2ul.c:1349:33: warning: cast from pointer to integer of different size

From: Geert Uytterhoeven
Date: Sun Aug 09 2020 - 03:38:05 EST


On Sun, Aug 9, 2020 at 2:49 AM kernel test robot <lkp@xxxxxxxxx> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
> commit: 2dc53d0047458e28ed05b4548844ba78199857bf crypto: sa2ul - add sha1/sha256/sha512 support
> date: 2 weeks ago
> config: m68k-randconfig-r002-20200809 (attached as .config)
> compiler: m68k-linux-gcc (GCC) 9.3.0
> 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
> git checkout 2dc53d0047458e28ed05b4548844ba78199857bf
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k

> In file included from include/linux/device.h:15,
> from include/linux/dmaengine.h:8,
> from drivers/crypto/sa2ul.c:12:
> drivers/crypto/sa2ul.c: In function 'sa_sha_init':
> >> drivers/crypto/sa2ul.c:1349:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> 1349 | crypto_ahash_digestsize(tfm), (u64)rctx);
> | ^
> include/linux/dev_printk.h:123:47: note: in definition of macro 'dev_dbg'
> 123 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
> | ^~~~~~~~~~~

Fix available since last Tuesday:
https://lore.kernel.org/linux-crypto/20200804092927.7417-1-geert@xxxxxxxxxxxxxx/

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds