From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53AD5C433F5 for ; Fri, 6 May 2022 13:08:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9BA366B0074; Fri, 6 May 2022 09:08:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 968156B0075; Fri, 6 May 2022 09:08:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7EE6C6B0078; Fri, 6 May 2022 09:08:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6A2046B0074 for ; Fri, 6 May 2022 09:08:35 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 3B61960CB7 for ; Fri, 6 May 2022 13:08:35 +0000 (UTC) X-FDA: 79435347390.04.DF07C86 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf23.hostedemail.com (Postfix) with ESMTP id D5742140057 for ; Fri, 6 May 2022 13:08:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651842512; x=1683378512; h=date:from:to:cc:subject:message-id:mime-version; bh=QSKIY9jv5XBTS8ipMKKAVANdapr0MkQGNVaBRAzZZJc=; b=STuYoY58WkWxJCV+01sobrvYHFN0fBHML6JFRGS+VaRclro72s4LBQUl FBxI9wVTjRLsQL7fbkjK/4oktrbhy/KlWR4wSe4dQf5U6lUW5z7Lp0JF5 IMh+zpi2YXAiuBlRELpg2Z1VjZror+sX6lqbrEPZ+HQWgGHOrhYgj1SgF RzG6pzsoXhuL5Wg/11n3pF/rIzsM/5pRT1xf0xoRW7vxiZc8or5Pg5M59 JEbAGr34TSYFszczP4/7/GRtkmVcfHSNgWZOJH6kVKpJKgRSy0f0exChk 6MqXexv6m5ay8jAxsBsq8nkyHa7LDIxYW6uOea+4tPLP85VScjMMRvR8f w==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="329006316" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="329006316" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 06:08:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="654695553" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 06 May 2022 06:08:29 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nmxh6-000DUe-Gy; Fri, 06 May 2022 13:08:28 +0000 Date: Fri, 6 May 2022 21:08:24 +0800 From: kernel test robot To: Jack Xiao Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Alex Deucher , Hawking Zhang Subject: [linux-next:master 8865/9759] drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:131:40: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') Message-ID: <202205062149.A4sTXbos-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D5742140057 X-Stat-Signature: wwu754ak89w7but9za5t1beiwht1oznh X-Rspam-User: Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=STuYoY58; spf=none (imf23.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.31) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1651842501-789279 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 38a288f5941ef03752887ad86f2d85442358c99a commit: 32de57e9ef59b6f646849a8bd615b7c978a4fa6d [8865/9759] drm/amdgpu/mes: manage mes doorbell allocation config: arm-randconfig-r005-20220506 (https://download.01.org/0day-ci/archive/20220506/202205062149.A4sTXbos-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 5e004fb787698440a387750db7f8028e7cb14cfc) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=32de57e9ef59b6f646849a8bd615b7c978a4fa6d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 32de57e9ef59b6f646849a8bd615b7c978a4fa6d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:131:40: warning: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] DRM_INFO("max_doorbell_slices=%ld\n", doorbell_process_limit); ~~~ ^~~~~~~~~~~~~~~~~~~~~~ %u include/drm/drm_print.h:498:29: note: expanded from macro 'DRM_INFO' _DRM_PRINTK(, INFO, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/drm/drm_print.h:494:53: note: expanded from macro '_DRM_PRINTK' printk##once(KERN_##level "[" DRM_NAME "] " fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:446:60: note: expanded from macro 'printk' #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/printk.h:418:19: note: expanded from macro 'printk_index_wrap' _p_func(_fmt, ##__VA_ARGS__); \ ~~~~ ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:39:12: warning: unused function 'amdgpu_mes_alloc_process_doorbells' [-Wunused-function] static int amdgpu_mes_alloc_process_doorbells(struct amdgpu_device *adev, ^ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:51:13: warning: unused function 'amdgpu_mes_free_process_doorbells' [-Wunused-function] static void amdgpu_mes_free_process_doorbells(struct amdgpu_device *adev, ^ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:59:12: warning: unused function 'amdgpu_mes_queue_doorbell_get' [-Wunused-function] static int amdgpu_mes_queue_doorbell_get(struct amdgpu_device *adev, ^ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:90:13: warning: unused function 'amdgpu_mes_queue_doorbell_free' [-Wunused-function] static void amdgpu_mes_queue_doorbell_free(struct amdgpu_device *adev, ^ drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:105:12: warning: unused function 'amdgpu_mes_doorbell_init' [-Wunused-function] static int amdgpu_mes_doorbell_init(struct amdgpu_device *adev) ^ 6 warnings generated. vim +131 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c 104 105 static int amdgpu_mes_doorbell_init(struct amdgpu_device *adev) 106 { 107 size_t doorbell_start_offset; 108 size_t doorbell_aperture_size; 109 size_t doorbell_process_limit; 110 111 doorbell_start_offset = (adev->doorbell_index.max_assignment+1) * sizeof(u32); 112 doorbell_start_offset = 113 roundup(doorbell_start_offset, 114 amdgpu_mes_doorbell_process_slice(adev)); 115 116 doorbell_aperture_size = adev->doorbell.size; 117 doorbell_aperture_size = 118 rounddown(doorbell_aperture_size, 119 amdgpu_mes_doorbell_process_slice(adev)); 120 121 if (doorbell_aperture_size > doorbell_start_offset) 122 doorbell_process_limit = 123 (doorbell_aperture_size - doorbell_start_offset) / 124 amdgpu_mes_doorbell_process_slice(adev); 125 else 126 return -ENOSPC; 127 128 adev->mes.doorbell_id_offset = doorbell_start_offset / sizeof(u32); 129 adev->mes.max_doorbell_slices = doorbell_process_limit; 130 > 131 DRM_INFO("max_doorbell_slices=%ld\n", doorbell_process_limit); -- 0-DAY CI Kernel Test Service https://01.org/lkp