Re: [PATCH v9 05/25] dept: Tie to Lockdep and IRQ tracing

From: kernel test robot
Date: Tue Jan 31 2023 - 21:28:52 EST


Hi Byungchul,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/locking/core]
[also build test WARNING on tip/sched/core drm-misc/drm-misc-next linus/master v6.2-rc6 next-20230131]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Byungchul-Park/llist-Move-llist_-head-node-definition-to-types-h/20230131-164632
patch link: https://lore.kernel.org/r/1675154394-25598-6-git-send-email-max.byungchul.park%40gmail.com
patch subject: [PATCH v9 05/25] dept: Tie to Lockdep and IRQ tracing
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230201/202302011038.V1juoXv1-lkp@xxxxxxxxx/config)
compiler: arceb-elf-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://github.com/intel-lab-lkp/linux/commit/ee619b0e7faff81e8b794e2adcdf9102d5bc83e8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Byungchul-Park/llist-Move-llist_-head-node-definition-to-types-h/20230131-164632
git checkout ee619b0e7faff81e8b794e2adcdf9102d5bc83e8
# 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=arc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/iommu/ drivers/scsi/qla2xxx/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from include/linux/atomic.h:80,
from drivers/iommu/io-pgtable-arm.c:12:
drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_install_table':
include/linux/atomic/atomic-arch-fallback.h:60:32: error: implicit declaration of function 'arch_cmpxchg64'; did you mean 'arch_cmpxchg'? [-Werror=implicit-function-declaration]
60 | #define arch_cmpxchg64_relaxed arch_cmpxchg64
| ^~~~~~~~~~~~~~
include/linux/atomic/atomic-instrumented.h:1968:9: note: in expansion of macro 'arch_cmpxchg64_relaxed'
1968 | arch_cmpxchg64_relaxed(__ai_ptr, __VA_ARGS__); \
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/iommu/io-pgtable-arm.c:330:15: note: in expansion of macro 'cmpxchg64_relaxed'
330 | old = cmpxchg64_relaxed(ptep, curr, new);
| ^~~~~~~~~~~~~~~~~
drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_do_selftests':
>> drivers/iommu/io-pgtable-arm.c:1296:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
1296 | }
| ^
cc1: some warnings being treated as errors


vim +1296 drivers/iommu/io-pgtable-arm.c

fe4b991dcd84e0 Will Deacon 2014-11-17 1256
fe4b991dcd84e0 Will Deacon 2014-11-17 1257 static int __init arm_lpae_do_selftests(void)
fe4b991dcd84e0 Will Deacon 2014-11-17 1258 {
9062c1d0bedacf Christophe JAILLET 2019-09-09 1259 static const unsigned long pgsize[] __initconst = {
fe4b991dcd84e0 Will Deacon 2014-11-17 1260 SZ_4K | SZ_2M | SZ_1G,
fe4b991dcd84e0 Will Deacon 2014-11-17 1261 SZ_16K | SZ_32M,
fe4b991dcd84e0 Will Deacon 2014-11-17 1262 SZ_64K | SZ_512M,
fe4b991dcd84e0 Will Deacon 2014-11-17 1263 };
fe4b991dcd84e0 Will Deacon 2014-11-17 1264
9062c1d0bedacf Christophe JAILLET 2019-09-09 1265 static const unsigned int ias[] __initconst = {
fe4b991dcd84e0 Will Deacon 2014-11-17 1266 32, 36, 40, 42, 44, 48,
fe4b991dcd84e0 Will Deacon 2014-11-17 1267 };
fe4b991dcd84e0 Will Deacon 2014-11-17 1268
fe4b991dcd84e0 Will Deacon 2014-11-17 1269 int i, j, pass = 0, fail = 0;
ca25ec247aadbf Robin Murphy 2022-08-15 1270 struct device dev;
fe4b991dcd84e0 Will Deacon 2014-11-17 1271 struct io_pgtable_cfg cfg = {
fe4b991dcd84e0 Will Deacon 2014-11-17 1272 .tlb = &dummy_tlb_ops,
fe4b991dcd84e0 Will Deacon 2014-11-17 1273 .oas = 48,
4f41845b340783 Will Deacon 2019-06-25 1274 .coherent_walk = true,
ca25ec247aadbf Robin Murphy 2022-08-15 1275 .iommu_dev = &dev,
fe4b991dcd84e0 Will Deacon 2014-11-17 1276 };
fe4b991dcd84e0 Will Deacon 2014-11-17 1277
ca25ec247aadbf Robin Murphy 2022-08-15 1278 /* __arm_lpae_alloc_pages() merely needs dev_to_node() to work */
ca25ec247aadbf Robin Murphy 2022-08-15 1279 set_dev_node(&dev, NUMA_NO_NODE);
ca25ec247aadbf Robin Murphy 2022-08-15 1280
fe4b991dcd84e0 Will Deacon 2014-11-17 1281 for (i = 0; i < ARRAY_SIZE(pgsize); ++i) {
fe4b991dcd84e0 Will Deacon 2014-11-17 1282 for (j = 0; j < ARRAY_SIZE(ias); ++j) {
fe4b991dcd84e0 Will Deacon 2014-11-17 1283 cfg.pgsize_bitmap = pgsize[i];
fe4b991dcd84e0 Will Deacon 2014-11-17 1284 cfg.ias = ias[j];
fe4b991dcd84e0 Will Deacon 2014-11-17 1285 pr_info("selftest: pgsize_bitmap 0x%08lx, IAS %u\n",
fe4b991dcd84e0 Will Deacon 2014-11-17 1286 pgsize[i], ias[j]);
fe4b991dcd84e0 Will Deacon 2014-11-17 1287 if (arm_lpae_run_tests(&cfg))
fe4b991dcd84e0 Will Deacon 2014-11-17 1288 fail++;
fe4b991dcd84e0 Will Deacon 2014-11-17 1289 else
fe4b991dcd84e0 Will Deacon 2014-11-17 1290 pass++;
fe4b991dcd84e0 Will Deacon 2014-11-17 1291 }
fe4b991dcd84e0 Will Deacon 2014-11-17 1292 }
fe4b991dcd84e0 Will Deacon 2014-11-17 1293
fe4b991dcd84e0 Will Deacon 2014-11-17 1294 pr_info("selftest: completed with %d PASS %d FAIL\n", pass, fail);
fe4b991dcd84e0 Will Deacon 2014-11-17 1295 return fail ? -EFAULT : 0;
fe4b991dcd84e0 Will Deacon 2014-11-17 @1296 }

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