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 71A39C4345F for ; Wed, 24 Apr 2024 15:54:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 093D26B02C0; Wed, 24 Apr 2024 11:54:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0440E6B02C2; Wed, 24 Apr 2024 11:54:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E4DC16B02C3; Wed, 24 Apr 2024 11:54:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C7FA06B02C0 for ; Wed, 24 Apr 2024 11:54:31 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D2E561A10DC for ; Wed, 24 Apr 2024 15:54:30 +0000 (UTC) X-FDA: 82044872700.05.EECE156 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by imf12.hostedemail.com (Postfix) with ESMTP id 51E8F40014 for ; Wed, 24 Apr 2024 15:54:27 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Bfs7/cqp"; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1713974068; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NOpJWM+QqyB/11pHnumig413T93O1W77Z5R0kuDLkrM=; b=AkRb8FlxDceLNT7MpzxchGjXSfPjfbuOBTmHOraMoG19RIjAQTre2CaVPaQruYakJyoP1v 8IuER9he6Gq5KSSBNxCm1SyJMepKeLql43zHZm19vy42XdX9/SEua9J13w9+DlpKF6p5G3 yBt9Gpidc4oWZhF/DhW5O8eRnjkmMw8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713974068; a=rsa-sha256; cv=none; b=QCm6t0nu1+Il5yJkCOC95xzbXlKhrr48DtVinER9ZW/f1YZhomwlCgA8nGmfKwH6tGZ6U4 xD9UBg+ZdK7VqSWkrQnAHXhyXYcEK6TN9wAwb756V124eW0nQFF7glnBaUiOot4LAeaFo7 EuQ2Ys+lFUKLgXTenPtV/qgP+Uffmzw= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Bfs7/cqp"; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713974068; x=1745510068; h=date:from:to:cc:subject:message-id:mime-version; bh=PVHQk8W4mQou77BjPABIbL4JD9nL5tMop5KaRJTo/+A=; b=Bfs7/cqpTytJmgF4nhbBf7D+glUrgHi5dPjDmcVDcqoYZj0pejjx96ku Q1SHd/2f2mYEZKM4hGwbFUR1M5NwzMNVZwgcu2cKih8qBA7HRrPUnEbEK YQE2GhJqZDgkDXG+u9mPnk+BiS7B2yJOBLAGBqe7DDmzogfx1sVd1XAwd iR5K5TWXEMlPe/ornW07uE9zLaNq144NU7F/geuhHQeGL59AbJZw68kXG FH6a9l5i0cBXLCZr15BwbpIgwnI70ngPgkCwSUKnwSAOJh18P1SDWrv06 HLLTgJ2AVTQYmnqYAfmJQg8TEChnnFIjfT5+ysEUTM8Zu5hUKcnsOsAnu A==; X-CSE-ConnectionGUID: EwDFM/57QfexOSLQpfIgxA== X-CSE-MsgGUID: jO4Yi++sQo2w8c+FKYDauA== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="9464398" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="9464398" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 08:54:22 -0700 X-CSE-ConnectionGUID: V78HFlHOQsuHYuKEainCDg== X-CSE-MsgGUID: QCL0KXe4QbicISI1mm1JbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="24792260" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by fmviesa006.fm.intel.com with ESMTP; 24 Apr 2024 08:54:19 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1rzewr-0001Ob-1C; Wed, 24 Apr 2024 15:54:17 +0000 Date: Wed, 24 Apr 2024 23:54:12 +0800 From: kernel test robot To: Le Ma Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Deucher , Hawking Zhang , Lijo Lazar Subject: [linux-next:master 7871/8170] drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:379:52: error: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 Message-ID: <202404242344.MYSO5VxE-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 51E8F40014 X-Stat-Signature: m4qpbf9p6gknkug6yhr3bmueaud8cnkp X-HE-Tag: 1713974067-50892 X-HE-Meta: U2FsdGVkX1+YgXfrBTlOGZBmQ0Tnkq2bfWe7b23vdIRtJmx4Er68N7WNkV6IN084iW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5KkYUazc3YpaT5IlJ+eppPJIPRZj6erNmYqjAdm0lFZxJIN9JtKB61cJXP1GkuTb/u4w3iKY36ieOLClvz25FDVF7oVA3lxeON8ZJLD+bgoqvNK+iFHHlCDsLQXWZYN1w0rnGwcArIdx2wRrtYHOGxfhfLSf3VoDhG9LMlt7TW3c3f9lEDR15B13SvMQqKHEBZSIx2QiACf3mRv9bcoWcjDVlRQSJx/G9xbFfZUPsdurfhEaUA== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5e4f84f18c4ee9b0ccdc19e39b7de41df21699dd commit: e88a7abec8376eaf588df9f79f76c170acf0396a [7871/8170] drm/amdgpu: init microcode chip name from ip versions config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20240424/202404242344.MYSO5VxE-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240424/202404242344.MYSO5VxE-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/202404242344.MYSO5VxE-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c: In function 'gfx_v9_4_3_early_init': >> drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:379:52: error: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Werror=format-truncation=] 379 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name); | ^~ ...... 439 | r = gfx_v9_4_3_init_rlc_microcode(adev, ucode_prefix); | ~~~~~~~~~~~~ In function 'gfx_v9_4_3_init_rlc_microcode', inlined from 'gfx_v9_4_3_init_microcode' at drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:439:6, inlined from 'gfx_v9_4_3_early_init' at drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:2257:9: drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:379:9: note: 'snprintf' output between 16 and 45 bytes into a destination of size 30 379 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c: In function 'gfx_v9_4_3_early_init': drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:413:52: error: '%s' directive output may be truncated writing up to 29 bytes into a region of size 23 [-Werror=format-truncation=] 413 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mec.bin", chip_name); | ^~ ...... 443 | r = gfx_v9_4_3_init_cp_compute_microcode(adev, ucode_prefix); | ~~~~~~~~~~~~ In function 'gfx_v9_4_3_init_cp_compute_microcode', inlined from 'gfx_v9_4_3_init_microcode' at drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:443:6, inlined from 'gfx_v9_4_3_early_init' at drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:2257:9: drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c:413:9: note: 'snprintf' output between 16 and 45 bytes into a destination of size 30 413 | snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_mec.bin", chip_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +379 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c 86301129698be5 Le Ma 2022-05-24 369 86301129698be5 Le Ma 2022-05-24 370 static int gfx_v9_4_3_init_rlc_microcode(struct amdgpu_device *adev, 86301129698be5 Le Ma 2022-05-24 371 const char *chip_name) 86301129698be5 Le Ma 2022-05-24 372 { 86301129698be5 Le Ma 2022-05-24 373 char fw_name[30]; 86301129698be5 Le Ma 2022-05-24 374 int err; 86301129698be5 Le Ma 2022-05-24 375 const struct rlc_firmware_header_v2_0 *rlc_hdr; 86301129698be5 Le Ma 2022-05-24 376 uint16_t version_major; 86301129698be5 Le Ma 2022-05-24 377 uint16_t version_minor; 86301129698be5 Le Ma 2022-05-24 378 86301129698be5 Le Ma 2022-05-24 @379 snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_rlc.bin", chip_name); 86301129698be5 Le Ma 2022-05-24 380 86301129698be5 Le Ma 2022-05-24 381 err = amdgpu_ucode_request(adev, &adev->gfx.rlc_fw, fw_name); 86301129698be5 Le Ma 2022-05-24 382 if (err) 86301129698be5 Le Ma 2022-05-24 383 goto out; 86301129698be5 Le Ma 2022-05-24 384 rlc_hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data; 86301129698be5 Le Ma 2022-05-24 385 86301129698be5 Le Ma 2022-05-24 386 version_major = le16_to_cpu(rlc_hdr->header.header_version_major); 86301129698be5 Le Ma 2022-05-24 387 version_minor = le16_to_cpu(rlc_hdr->header.header_version_minor); 86301129698be5 Le Ma 2022-05-24 388 err = amdgpu_gfx_rlc_init_microcode(adev, version_major, version_minor); 86301129698be5 Le Ma 2022-05-24 389 out: 86301129698be5 Le Ma 2022-05-24 390 if (err) 86301129698be5 Le Ma 2022-05-24 391 amdgpu_ucode_release(&adev->gfx.rlc_fw); 86301129698be5 Le Ma 2022-05-24 392 86301129698be5 Le Ma 2022-05-24 393 return err; 86301129698be5 Le Ma 2022-05-24 394 } 86301129698be5 Le Ma 2022-05-24 395 :::::: The code at line 379 was first introduced by commit :::::: 86301129698be52f8398f92ea8564168f6bfcae1 drm/amdgpu: split gc v9_4_3 functionality from gc v9_0 :::::: TO: Le Ma :::::: CC: Alex Deucher -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki