From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) (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 022A38466 for ; Thu, 31 Aug 2023 08:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693471264; x=1725007264; h=date:from:to:cc:subject:message-id:mime-version; bh=h/+t+OAxKesoK1cG0Bw+iSG2uwkOSuQn0KEdRgxh+iA=; b=VkIInxcHdXg3WIUM0qnKOyQHcoXTj8HN49bs1JMcM7CQzATCLTnke353 gNdlR/K3ze/hVOswrL0NR86xeBYQXjt7eIVYTnKls2ll0MOYNZPHZyLBQ W+RXTM4RA4RO5ijfkKBl1ZABuh1xnn/ROvDxv/ncoEr9K+uzljFt5Q8oN 4P4te6nDngmwtXz9h+5FPR440Q+kWnzsiOCfanKHeFoEiaFMnLU3nsne2 K+OlTKw9ookzpsPfwbf7aRTqa+JD2ZiSNbD+JKKYLlHpvghbAFLLUi8kI cDZxxGODBFaOFrBo6HgyZA6DLsCJNbvxjAT0rgCijozgRxeaFyqmMGcGE w==; X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="462240263" X-IronPort-AV: E=Sophos;i="6.02,216,1688454000"; d="scan'208";a="462240263" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 01:41:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10818"; a="854065693" X-IronPort-AV: E=Sophos;i="6.02,216,1688454000"; d="scan'208";a="854065693" Received: from lkp-server02.sh.intel.com (HELO daf8bb0a381d) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2023 01:41:01 -0700 Received: from kbuild by daf8bb0a381d with local (Exim 4.96) (envelope-from ) id 1qbdEZ-000B8d-0u; Thu, 31 Aug 2023 08:40:59 +0000 Date: Thu, 31 Aug 2023 16:40:25 +0800 From: kernel test robot To: Otavio Salvador Cc: oe-kbuild-all@lists.linux.dev Subject: [freescale-fslc:5.15-2.2.x-imx 6099/24604] drivers/gpu/drm/imx/imx-drm-core.c:264:6: warning: format specifies type 'long' but the argument has type 'unsigned int' Message-ID: <202308311653.LQ4WzmAC-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 Hi Dong, FYI, the error/warning still remains. tree: https://github.com/Freescale/linux-fslc 5.15-2.2.x-imx head: 7c13adcd3af7dcd541144655102e1cdb941ad538 commit: 82b6c17d1b10377f16ba6127e5aaf94fa151fbc6 [6099/24604] Merge remote-tracking branch 'origin/display/lcdif' into display/next config: hexagon-randconfig-r013-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311653.LQ4WzmAC-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311653.LQ4WzmAC-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/202308311653.LQ4WzmAC-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/imx/imx-drm-core.c:264:6: warning: format specifies type 'long' but the argument has type 'unsigned int' [-Wformat] ARRAY_SIZE(dpu)); ^~~~~~~~~~~~~~~ include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err' dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__) ~~~ ^~~~~~~~~~~ include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap' _p_func(dev, fmt, ##__VA_ARGS__); \ ~~~ ^~~~~~~~~~~ include/linux/kernel.h:44:25: note: expanded from macro 'ARRAY_SIZE' #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. vim +264 drivers/gpu/drm/imx/imx-drm-core.c c8079f00f58de8 Xianzhong 2021-06-09 229 c8079f00f58de8 Xianzhong 2021-06-09 230 static void add_dpu_bliteng_components(struct device *dev, c8079f00f58de8 Xianzhong 2021-06-09 231 struct component_match **matchptr) c8079f00f58de8 Xianzhong 2021-06-09 232 { c8079f00f58de8 Xianzhong 2021-06-09 233 /* c8079f00f58de8 Xianzhong 2021-06-09 234 * As there may be two dpu bliteng device, c8079f00f58de8 Xianzhong 2021-06-09 235 * so need add something in compare data to distinguish. c8079f00f58de8 Xianzhong 2021-06-09 236 * Use its parent dpu's of_node as the data here. c8079f00f58de8 Xianzhong 2021-06-09 237 */ c8079f00f58de8 Xianzhong 2021-06-09 238 struct device_node *port, *parent; c8079f00f58de8 Xianzhong 2021-06-09 239 /* assume max dpu number is 8 */ c8079f00f58de8 Xianzhong 2021-06-09 240 struct device_node *dpu[8]; c8079f00f58de8 Xianzhong 2021-06-09 241 int num_dpu = 0; c8079f00f58de8 Xianzhong 2021-06-09 242 int i, j; c8079f00f58de8 Xianzhong 2021-06-09 243 bool found = false; c8079f00f58de8 Xianzhong 2021-06-09 244 c8079f00f58de8 Xianzhong 2021-06-09 245 for (i = 0; ; i++) { c8079f00f58de8 Xianzhong 2021-06-09 246 port = of_parse_phandle(dev->of_node, "ports", i); c8079f00f58de8 Xianzhong 2021-06-09 247 if (!port) c8079f00f58de8 Xianzhong 2021-06-09 248 break; c8079f00f58de8 Xianzhong 2021-06-09 249 c8079f00f58de8 Xianzhong 2021-06-09 250 parent = of_get_parent(port); c8079f00f58de8 Xianzhong 2021-06-09 251 c8079f00f58de8 Xianzhong 2021-06-09 252 for (j = 0; j < num_dpu; j++) { c8079f00f58de8 Xianzhong 2021-06-09 253 if (dpu[j] == parent) { c8079f00f58de8 Xianzhong 2021-06-09 254 found = true; c8079f00f58de8 Xianzhong 2021-06-09 255 break; c8079f00f58de8 Xianzhong 2021-06-09 256 } c8079f00f58de8 Xianzhong 2021-06-09 257 } c8079f00f58de8 Xianzhong 2021-06-09 258 c8079f00f58de8 Xianzhong 2021-06-09 259 if (found) { c8079f00f58de8 Xianzhong 2021-06-09 260 found = false; c8079f00f58de8 Xianzhong 2021-06-09 261 } else { c8079f00f58de8 Xianzhong 2021-06-09 262 if (num_dpu >= ARRAY_SIZE(dpu)) { c8079f00f58de8 Xianzhong 2021-06-09 263 dev_err(dev, "The number of found dpu is greater than max [%ld].\n", c8079f00f58de8 Xianzhong 2021-06-09 @264 ARRAY_SIZE(dpu)); c8079f00f58de8 Xianzhong 2021-06-09 265 of_node_put(parent); c8079f00f58de8 Xianzhong 2021-06-09 266 of_node_put(port); c8079f00f58de8 Xianzhong 2021-06-09 267 break; c8079f00f58de8 Xianzhong 2021-06-09 268 } c8079f00f58de8 Xianzhong 2021-06-09 269 c8079f00f58de8 Xianzhong 2021-06-09 270 dpu[num_dpu] = parent; c8079f00f58de8 Xianzhong 2021-06-09 271 num_dpu++; c8079f00f58de8 Xianzhong 2021-06-09 272 c8079f00f58de8 Xianzhong 2021-06-09 273 component_match_add(dev, matchptr, compare_of, parent); c8079f00f58de8 Xianzhong 2021-06-09 274 } c8079f00f58de8 Xianzhong 2021-06-09 275 c8079f00f58de8 Xianzhong 2021-06-09 276 of_node_put(parent); c8079f00f58de8 Xianzhong 2021-06-09 277 of_node_put(port); c8079f00f58de8 Xianzhong 2021-06-09 278 } c8079f00f58de8 Xianzhong 2021-06-09 279 } c8079f00f58de8 Xianzhong 2021-06-09 280 :::::: The code at line 264 was first introduced by commit :::::: c8079f00f58de86abf3ab885ed6337601923e32d MLK-15321-4 drm/imx: core: Add bliteng as component of imx-drm :::::: TO: Xianzhong :::::: CC: Dong Aisheng -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki