From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 69F221F9F6E; Mon, 2 Dec 2024 08:54:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733129677; cv=none; b=SQnw6vXvqdfgivM4tFwTmbQODzIFr3kg0VhR/RP6xc/4Gl7GQ9fsIT5ObNnlJiEaiSKHVac1kHP8JWJlVYCtUIAt8nVzml+DUREk43AID8Pl8IWjihUWwhfKGGUJ9cIIW5V6vX7GlqNAlH3TcwNiHM+FOdQPa3kYNhY5T13Qo9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733129677; c=relaxed/simple; bh=PONq1d8jm/n+OrIxFNgIUfhJojAh81OCYaZRqCUvHDM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Z1eC324++wWLRBBU6GdikS6+yQOI/0KDsn5294Q31iXycQZTsSVS89Se5Yc+Q+XkwhJnrf+cVEb/lzPKeG3ihzJYlbXSVX+Hf3VNty3+T9e13NSOKJi3jGA2gOrpHKW1UEvUu1dXCovqsx5oYnc9UfWLC9rN0uXXuVBs9ccfCwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KeeZQaeu; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KeeZQaeu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733129675; x=1764665675; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PONq1d8jm/n+OrIxFNgIUfhJojAh81OCYaZRqCUvHDM=; b=KeeZQaeuu/PygcdmvJL4smmB1hzEIlgbk4oF+DJH8Mb+0ON9/8DlT17D 8ts32Mv9uFubPTZIg+1E3XIFZh+J12bbwwA/0rYbUxI39oY3wUYglpdhH 6CTwqiEEhQCcWBc3HHfg2VJbYYRA5f8XQJcj5Zo0oxt/Xgxlh+0wUCIi4 NEA7HSYw9oXsH0v2V6nzOHFl5pI/37qvXjigdhagHBHHAQZPnKqYVf7V4 OqkDeA2sexQfwGk/++srWPKTWe7iGU6KOg84pur66z+04iGXoxmcjPSUz W6gyuVAEgvSn23fAm0LBB/9AGxVSGOZKJHoopZ2clqrcWrmhs4gDKNT1K Q==; X-CSE-ConnectionGUID: vgoL5pQnTfCExNwrZKRa2w== X-CSE-MsgGUID: WEWIaV4NT3uqPSBLcpU8fA== X-IronPort-AV: E=McAfee;i="6700,10204,11273"; a="50700515" X-IronPort-AV: E=Sophos;i="6.12,201,1728975600"; d="scan'208";a="50700515" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2024 00:54:35 -0800 X-CSE-ConnectionGUID: qbAJGnRwRRCsBXcsRguvnA== X-CSE-MsgGUID: WaVyTQKOSeCg2uYFMgFRUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,201,1728975600"; d="scan'208";a="123902060" Received: from lkp-server02.sh.intel.com (HELO 36a1563c48ff) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 02 Dec 2024 00:54:29 -0800 Received: from kbuild by 36a1563c48ff with local (Exim 4.96) (envelope-from ) id 1tI2CI-0002Dj-12; Mon, 02 Dec 2024 08:54:26 +0000 Date: Mon, 2 Dec 2024 16:54:11 +0800 From: kernel test robot To: Liu Ying , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, p.zabel@pengutronix.de, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, glx@linutronix.de, vkoul@kernel.org, kishon@kernel.org, aisheng.dong@nxp.com, agx@sigxcpu.org, francesco@dolcini.it, frank.li@nxp.com, dmitry.baryshkov@linaro.org, u.kleine-koenig@baylibre.com Subject: Re: [PATCH v5 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine Message-ID: <202412021617.HmlPGJLh-lkp@intel.com> References: <20241202025635.1274467-11-victor.liu@nxp.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241202025635.1274467-11-victor.liu@nxp.com> Hi Liu, kernel test robot noticed the following build warnings: [auto build test WARNING on shawnguo/for-next] [also build test WARNING on linus/master v6.13-rc1 next-20241128] [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/Liu-Ying/dt-bindings-display-imx-Add-i-MX8qxp-Display-Controller-processing-units/20241202-110331 base: https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git for-next patch link: https://lore.kernel.org/r/20241202025635.1274467-11-victor.liu%40nxp.com patch subject: [PATCH v5 10/19] drm/imx: Add i.MX8qxp Display Controller pixel engine config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20241202/202412021617.HmlPGJLh-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241202/202412021617.HmlPGJLh-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/202412021617.HmlPGJLh-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/imx/dc/dc-fl.c: In function 'dc_fl_bind': >> drivers/gpu/drm/imx/dc/dc-fl.c:136:57: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] 136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id); | ^~ drivers/gpu/drm/imx/dc/dc-fl.c:136:46: note: directive argument in the range [0, 2147483647] 136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id); | ^~~~~~~~~~~~~~ drivers/gpu/drm/imx/dc/dc-fl.c:136:9: note: 'snprintf' output between 12 and 21 bytes into a destination of size 13 136 | snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- drivers/gpu/drm/imx/dc/dc-fw.c: In function 'dc_fw_bind': >> drivers/gpu/drm/imx/dc/dc-fw.c:175:56: warning: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=] 175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id); | ^~ drivers/gpu/drm/imx/dc/dc-fw.c:175:46: note: directive argument in the range [0, 2147483647] 175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id); | ^~~~~~~~~~~~~ drivers/gpu/drm/imx/dc/dc-fw.c:175:9: note: 'snprintf' output between 11 and 20 bytes into a destination of size 13 175 | snprintf(fu->name, sizeof(fu->name), "FetchWarp%u", fw->id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +136 drivers/gpu/drm/imx/dc/dc-fl.c 92 93 static int dc_fl_bind(struct device *dev, struct device *master, void *data) 94 { 95 struct platform_device *pdev = to_platform_device(dev); 96 struct dc_drm_device *dc_drm = data; 97 struct dc_pe *pe = dc_drm->pe; 98 void __iomem *base_cfg; 99 struct dc_fl *fl; 100 struct dc_fu *fu; 101 int i; 102 103 fl = devm_kzalloc(dev, sizeof(*fl), GFP_KERNEL); 104 if (!fl) 105 return -ENOMEM; 106 107 fu = &fl->fu; 108 109 base_cfg = devm_platform_ioremap_resource_byname(pdev, "cfg"); 110 if (IS_ERR(base_cfg)) 111 return PTR_ERR(base_cfg); 112 113 fu->reg_cfg = devm_regmap_init_mmio(dev, base_cfg, 114 &dc_fl_cfg_regmap_config); 115 if (IS_ERR(fu->reg_cfg)) 116 return PTR_ERR(fu->reg_cfg); 117 118 fl->id = of_alias_get_id(dev->of_node, "dc0-fetchlayer"); 119 if (fl->id < 0) { 120 dev_err(dev, "failed to get alias id: %d\n", fl->id); 121 return fl->id; 122 } 123 124 fu->link_id = LINK_ID_FETCHLAYER0; 125 fu->id = DC_FETCHUNIT_FL0; 126 for (i = 0; i < DC_FETCHUNIT_FRAC_NUM; i++) { 127 fu->reg_baseaddr[i] = BASEADDRESS(i); 128 fu->reg_sourcebufferattributes[i] = SOURCEBUFFERATTRIBUTES(i); 129 fu->reg_sourcebufferdimension[i] = SOURCEBUFFERDIMENSION(i); 130 fu->reg_layeroffset[i] = LAYEROFFSET(i); 131 fu->reg_clipwindowoffset[i] = CLIPWINDOWOFFSET(i); 132 fu->reg_clipwindowdimensions[i] = CLIPWINDOWDIMENSIONS(i); 133 fu->reg_constantcolor[i] = CONSTANTCOLOR(i); 134 fu->reg_layerproperty[i] = LAYERPROPERTY(i); 135 } > 136 snprintf(fu->name, sizeof(fu->name), "FetchLayer%d", fl->id); 137 138 dc_fl_set_ops(fu); 139 140 pe->fu_disp[fu->id] = fu; 141 142 return 0; 143 } 144 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki