From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 7F6AB274B59 for ; Fri, 13 Feb 2026 18:34:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771007685; cv=none; b=n7IHVgwPTS0gM/q+W0hLaBhbVc/FXwt47tsGWetA/Nej5BYBRn2SJiAP4hVVWXhU5BqHqnr+lC1dHKtqEZuuElLfQnIqYGM35vvKF/NSd4c1qiy6d0NCuswZCTJN12M8Maz9KB0Ekwf3nbcLOpQnWjwC0Wc6UBUzxsOvpbrdHQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771007685; c=relaxed/simple; bh=3mjWYbnpem5q3s50nhLv7UAoE9gOQ1s8C504nUkSfWI=; h=Date:From:To:Cc:Subject:Message-ID; b=RAUVfCtHEhBkvCmMB4DMlEkGGiFCNP58bG7yR3PpFb2hJu3UVEYfhleGGb7g25gUpWBnnKt3X/cEPHYHNlokBkq/Ei0zhnOFL85YgUpWAGIczbG20GAqbFW4c0QF3FoSmhS+7DfFJPLI9Ce1t32694ef7BNFE140YxoeJ+i+ej8= 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=GPTQSihk; arc=none smtp.client-ip=192.198.163.19 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="GPTQSihk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771007684; x=1802543684; h=date:from:to:cc:subject:message-id; bh=3mjWYbnpem5q3s50nhLv7UAoE9gOQ1s8C504nUkSfWI=; b=GPTQSihkbb50UyoV0jsbXi6lUOrt0c/CAVt1cVcUU6bmvn/5NquvGPqw ick0e2/4KNf36FW3QvZKdzcudbprvIXy3zhszOcUDItJ7CRa3k08j4BSN yRcheiF+VMQHIiQUSYvZckv2+mQPsb+jtXuj0ooW/5S/6Y57NJdOYAH91 Yz3gQSGsHmmCxsPnUGzi84BQcac+Z38XzhDl8AjzxNzDKNeChg0fpF4Nm 7HquGlFwL/nNCFwo8rdbR3QM8Xj1527BhN5/2/bmU34wotE9zYWvOMN4G 629c7C5UVpIubOcxa4DpVZG2VAvsbW4puQyE04i/zqklZiyrXbEC3TfvQ w==; X-CSE-ConnectionGUID: xU4mxF+GTl+yHSrbZN9WFA== X-CSE-MsgGUID: tmKVJWa7RbChbU3YONi+Mg== X-IronPort-AV: E=McAfee;i="6800,10657,11700"; a="71221991" X-IronPort-AV: E=Sophos;i="6.21,289,1763452800"; d="scan'208";a="71221991" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2026 10:34:44 -0800 X-CSE-ConnectionGUID: 4nrxDP9YTy28xJ5nrKx74w== X-CSE-MsgGUID: wA68/JOKTyiJI/gk2Tql/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,289,1763452800"; d="scan'208";a="212826627" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa009.jf.intel.com with ESMTP; 13 Feb 2026 10:34:41 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vqxzz-00000000vku-1VFA; Fri, 13 Feb 2026 18:34:39 +0000 Date: Sat, 14 Feb 2026 02:33:58 +0800 From: kernel test robot To: Jack Xiao Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Alex Deucher , Hawking Zhang , Mukul Joshi Subject: drivers/gpu/drm/amd/amdgpu/mes_v12_1.c:1352:74: warning: '%hhu' directive output may be truncated writing 1 byte into a region of size between 0 and 2 Message-ID: <202602140200.2bCDckFo-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Hi Jack, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cee73b1e840c154f64ace682cb477c1ae2e29cc4 commit: e220edf2d6fd6dbf08fa93790809500a80217948 drm/amdgpu/mes_v12_1: initial support for mes_v12_1 date: 10 weeks ago config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20260214/202602140200.2bCDckFo-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260214/202602140200.2bCDckFo-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/202602140200.2bCDckFo-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/mes_v12_1.c: In function 'mes_v12_1_sw_init': >> drivers/gpu/drm/amd/amdgpu/mes_v12_1.c:1352:74: warning: '%hhu' directive output may be truncated writing 1 byte into a region of size between 0 and 2 [-Wformat-truncation=] 1352 | snprintf(ring->name, sizeof(ring->name), "mes_kiq_%hhu.%hhu.%hhu.%hhu", | ^~~~ In function 'mes_v12_1_kiq_ring_init', inlined from 'mes_v12_1_sw_init' at drivers/gpu/drm/amd/amdgpu/mes_v12_1.c:1425:9: drivers/gpu/drm/amd/amdgpu/mes_v12_1.c:1352:9: note: 'snprintf' output between 16 and 18 bytes into a destination of size 16 1352 | snprintf(ring->name, sizeof(ring->name), "mes_kiq_%hhu.%hhu.%hhu.%hhu", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1353 | (unsigned char)xcc_id, (unsigned char)ring->me, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1354 | (unsigned char)ring->pipe, (unsigned char)ring->queue); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +1352 drivers/gpu/drm/amd/amdgpu/mes_v12_1.c 1326 1327 static int mes_v12_1_kiq_ring_init(struct amdgpu_device *adev, int xcc_id) 1328 { 1329 struct amdgpu_ring *ring; 1330 int inst = MES_PIPE_INST(xcc_id, AMDGPU_MES_KIQ_PIPE); 1331 1332 spin_lock_init(&adev->gfx.kiq[xcc_id].ring_lock); 1333 1334 ring = &adev->gfx.kiq[xcc_id].ring; 1335 1336 ring->me = 3; 1337 ring->pipe = 1; 1338 ring->queue = 0; 1339 ring->xcc_id = xcc_id; 1340 ring->vm_hub = AMDGPU_GFXHUB(xcc_id); 1341 1342 ring->adev = NULL; 1343 ring->ring_obj = NULL; 1344 ring->use_doorbell = true; 1345 ring->eop_gpu_addr = adev->mes.eop_gpu_addr[inst]; 1346 ring->no_scheduler = true; 1347 ring->doorbell_index = 1348 (adev->doorbell_index.mes_ring1 + 1349 xcc_id * adev->doorbell_index.xcc_doorbell_range) 1350 << 1; 1351 > 1352 snprintf(ring->name, sizeof(ring->name), "mes_kiq_%hhu.%hhu.%hhu.%hhu", 1353 (unsigned char)xcc_id, (unsigned char)ring->me, 1354 (unsigned char)ring->pipe, (unsigned char)ring->queue); 1355 1356 return amdgpu_ring_init(adev, ring, 1024, NULL, 0, 1357 AMDGPU_RING_PRIO_DEFAULT, NULL); 1358 } 1359 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki