[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210180424.kSTG8CfH-lkp@intel.com>
Date: Tue, 18 Oct 2022 04:23:15 +0800
From: kernel test robot <lkp@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:dlink-dwl-8610ap 10/10]
drivers/mtd/parsers/parser_trx.c:37:35: warning: cast from pointer to
integer of different size
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git dlink-dwl-8610ap
head: 62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
commit: 62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf [10/10] mtd: parsers: trx: Rewrite partition parsing
config: alpha-randconfig-r013-20221017
compiler: alpha-linux-gcc (GCC) 12.1.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
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator dlink-dwl-8610ap
git checkout 62098df7fe45a7d3a4dd358d0ebe9ba9f862eabf
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash arch/alpha/kernel/ drivers/block/mtip32xx/ drivers/char/agp/ drivers/comedi/drivers/ drivers/crypto/qat/qat_dh895xccvf/ drivers/i2c/busses/ drivers/iommu/ drivers/mmc/host/ drivers/mtd/parsers/ drivers/staging/sm750fb/ drivers/staging/vme_user/ drivers/tty/serial/ drivers/video/console/ drivers/watchdog/ kernel/ lib/ security/integrity/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:29,
from include/linux/cpumask.h:10,
from include/linux/mm_types_task.h:14,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from drivers/mtd/parsers/parser_trx.c:9:
drivers/mtd/parsers/parser_trx.c: In function 'parser_trx_dump_trx':
>> drivers/mtd/parsers/parser_trx.c:37:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
37 | pr_debug("TRX at %08x\n", (u32)trx);
| ^
include/linux/printk.h:436:33: note: in definition of macro 'printk_index_wrap'
436 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:131:17: note: in expansion of macro 'printk'
131 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/printk.h:594:9: note: in expansion of macro 'no_printk'
594 | no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~
drivers/mtd/parsers/parser_trx.c:37:9: note: in expansion of macro 'pr_debug'
37 | pr_debug("TRX at %08x\n", (u32)trx);
| ^~~~~~~~
vim +37 drivers/mtd/parsers/parser_trx.c
34
35 static void parser_trx_dump_trx(struct trx_header *trx)
36 {
> 37 pr_debug("TRX at %08x\n", (u32)trx);
38 pr_debug(" MAGIC %08x\n", trx->magic);
39 pr_debug(" LENGTH %08x\n", trx->length);
40 pr_debug(" CRC32 %08x\n", trx->crc32);
41 pr_debug(" FLAGS %04x\n", trx->flags);
42 pr_debug(" VERSION %04x\n", trx->version);
43 pr_debug(" OFFSET[0] %08x\n", trx->offset[0]);
44 pr_debug(" OFFSET[1] %08x\n", trx->offset[1]);
45 pr_debug(" OFFSET[2] %08x\n", trx->offset[2]);
46 }
47
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (100139 bytes)
Powered by blists - more mailing lists