From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 191FD101F0 for ; Wed, 19 Jul 2023 11:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689765409; x=1721301409; h=date:from:to:cc:subject:message-id:mime-version; bh=ydwheXRci4YyjGRKKg1uDta56n0JAreKN6hZcQTvIHQ=; b=N3kZ2rtYW+w5Ztxp5Bk9kL0kzIwFnSz/q85nZ70ipLm7DUzw/ItE2yeq JXYo64XPkeyoUpvwVKeYjATHyVnUnXiaJojF9eP3UYvA2y0DCXuzC58aM SS7wm1uM8lmKqW0dIUAEsyKCO/O2G1XskL/U0hnDdU4qGwRqeM7s2CLqx pFfI7y8PhUTkujKNJ6T+9NMn/5jaSrQ5lCiYPbR2lYhfStd0EJTJZqOGg cqprlKne+3RBI2qUG36vLI96Jru5ftO6ztCemepIETmFo4RZTRyMwXUP6 tcFLwOpFt4uAF6MnNIEyWPJyhVDWE2FEHckwABJKuh9mP3LhK6DGyluSD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="430199453" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="430199453" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 04:16:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10775"; a="753673070" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="753673070" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 19 Jul 2023 04:16:45 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qM5Ai-0004iK-1l; Wed, 19 Jul 2023 11:16:44 +0000 Date: Wed, 19 Jul 2023 19:15:54 +0800 From: kernel test robot To: Otavio Salvador Cc: oe-kbuild-all@lists.linux.dev Subject: [freescale-fslc:pr/637 3481/12466] drivers/staging/ethosu/ethosu_buffer.c:253:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'phys_addr_t' {aka 'unsigned int'} Message-ID: <202307191949.1eESStGd-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/Freescale/linux-fslc pr/637 head: ec33c7fc43bef23fa0b69db996fee0ba601875e9 commit: 95ce4103b59b6af5d3c264fc137f9dd174e78d3e [3481/12466] npu: ethosu: Add Arm ethos-u driver config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20230719/202307191949.1eESStGd-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230719/202307191949.1eESStGd-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202307191949.1eESStGd-lkp@intel.com/ All warnings (new ones prefixed by >>): | ~~~^ | | | long long unsigned int | %x drivers/staging/ethosu/ethosu_buffer.c:108:30: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:108:17: note: in expansion of macro 'dev_dbg' 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:108:56: note: format string is defined here 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ~~~^ | | | long long unsigned int | %x drivers/staging/ethosu/ethosu_buffer.c:108:30: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:223:29: note: in definition of macro '__dynamic_func_call_cls' 223 | func(&id, ##__VA_ARGS__); \ | ^~~~~~~~~~~ include/linux/dynamic_debug.h:249:9: note: in expansion of macro '_dynamic_func_call_cls' 249 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/dynamic_debug.h:272:9: note: in expansion of macro '_dynamic_func_call' 272 | _dynamic_func_call(fmt, __dynamic_dev_dbg, \ | ^~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:9: note: in expansion of macro 'dynamic_dev_dbg' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:155:30: note: in expansion of macro 'dev_fmt' 155 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:108:17: note: in expansion of macro 'dev_dbg' 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:108:69: note: format string is defined here 108 | dev_dbg(dev, "daddr=0x%llx, paddr=0x%llx, size=0x%llx\n", | ~~~^ | | | long long unsigned int | %x In file included from include/linux/device.h:15, from include/linux/mailbox_client.h:11, from drivers/staging/ethosu/ethosu_mailbox.h:30, from drivers/staging/ethosu/ethosu_device.h:29, from drivers/staging/ethosu/ethosu_buffer.c:27: drivers/staging/ethosu/ethosu_buffer.c: In function 'ethosu_buffer_create': drivers/staging/ethosu/ethosu_buffer.c:253:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:252:9: note: in expansion of macro 'dev_info' 252 | dev_info(buf->edev->dev, | ^~~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:253:92: note: format string is defined here 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ~~~^ | | | long long unsigned int | %x drivers/staging/ethosu/ethosu_buffer.c:253:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 7 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:252:9: note: in expansion of macro 'dev_info' 252 | dev_info(buf->edev->dev, | ^~~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:253:114: note: format string is defined here 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ~~~^ | | | long long unsigned int | %x >> drivers/staging/ethosu/ethosu_buffer.c:253:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 8 has type 'phys_addr_t' {aka 'unsigned int'} [-Wformat=] 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:252:9: note: in expansion of macro 'dev_info' 252 | dev_info(buf->edev->dev, | ^~~~~~~~ drivers/staging/ethosu/ethosu_buffer.c:253:132: note: format string is defined here 253 | "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", | ~~~^ | | | long long unsigned int | %x vim +253 drivers/staging/ethosu/ethosu_buffer.c 218 219 int ethosu_buffer_create(struct ethosu_device *edev, 220 size_t capacity) 221 { 222 struct ethosu_buffer *buf; 223 int ret = -ENOMEM; 224 225 buf = devm_kzalloc(edev->dev, sizeof(*buf), GFP_KERNEL); 226 if (!buf) 227 return -ENOMEM; 228 229 buf->edev = edev; 230 buf->capacity = capacity; 231 buf->offset = 0; 232 buf->size = 0; 233 kref_init(&buf->kref); 234 235 buf->cpu_addr = dma_alloc_coherent(buf->edev->dev, capacity, 236 &buf->dma_addr_orig, GFP_KERNEL); 237 if (!buf->cpu_addr) 238 goto free_buf; 239 240 buf->dma_addr = ethosu_buffer_dma_ranges(buf->edev->dev, 241 buf->dma_addr_orig, 242 buf->capacity); 243 244 ret = anon_inode_getfd("ethosu-buffer", ðosu_buffer_fops, buf, 245 O_RDWR | O_CLOEXEC); 246 if (ret < 0) 247 goto free_dma; 248 249 buf->file = fget(ret); 250 fput(buf->file); 251 252 dev_info(buf->edev->dev, > 253 "Buffer create. handle=0x%pK, capacity=%zu, cpu_addr=0x%pK, dma_addr=0x%llx, dma_addr_orig=0x%llx, phys_addr=0x%llx\n", 254 buf, capacity, buf->cpu_addr, buf->dma_addr, 255 buf->dma_addr_orig, virt_to_phys(buf->cpu_addr)); 256 257 return ret; 258 259 free_dma: 260 dma_free_coherent(buf->edev->dev, buf->capacity, buf->cpu_addr, 261 buf->dma_addr_orig); 262 263 free_buf: 264 devm_kfree(buf->edev->dev, buf); 265 266 return ret; 267 } 268 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki