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 BD7EEC27C50 for ; Tue, 4 Jun 2024 22:24:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 493156B0099; Tue, 4 Jun 2024 18:24:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 41C146B009A; Tue, 4 Jun 2024 18:24:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 295046B009B; Tue, 4 Jun 2024 18:24:30 -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 093546B0099 for ; Tue, 4 Jun 2024 18:24:30 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id A3B5A402B4 for ; Tue, 4 Jun 2024 22:24:29 +0000 (UTC) X-FDA: 82194636258.18.DD8B941 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf10.hostedemail.com (Postfix) with ESMTP id 387A9C0004 for ; Tue, 4 Jun 2024 22:24:24 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hQAY1Wgg; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717539867; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=rz4AHQTzjH1cd4ZWdbTXyvKrLXO4gYdjqEVEBtvR3/A=; b=BB7DJFUNcB6EDKH+g8YvJfYjIsf2rCpHKVZqAR4CoNyK0f6Nx2InMjBLMwkmLgsouUB4U+ MpowYUAvwNGIOMgf61ekAXmzTCb9Sm6CJo2twQbLu8dwh1cNhmHjtJ52evnzBJIqKcpgte Z2p1y0NNXLcsAuLBPhShp8ibyNFsiGg= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=hQAY1Wgg; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717539867; a=rsa-sha256; cv=none; b=RDcz8XBtuSJ18cuqAupX6uj/Ls8wM/6hgplt3eqz7v5mURR5d9OdcsClG3UaAmi4elIwiX siauRh2iMUcWUtcxDdml98RIrPsd4PkO/Vn7AqLX2TTcqYiQ6M1nYSxKGRy7IRx/BRvcJ0 9eRJox4GnTvSYHqF3tevoteRtpHrwPQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717539867; x=1749075867; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=DaIF5g4h026kkd8Kr4YOZqYE2KAv1GfAwYsB1XchsE4=; b=hQAY1WggQ82RUUSZJ5jQBTj9TCXpxg7sF5fSx0c8oNzpWtfHEd+fHUPQ BVZDF2goJjgpeC23ajkanBB7EWSBIgZ3XZPowCUzN0zod3yYg2Rvkufip BS2zLLw64lMvCaLx5nEDU/lnGraf4CWuKmoshe4acOWJvTaWzkPnyE21v dmG/Trke6AZrE/uK6LkcwgeLyE5ID5/Zo6h4fueqyN7I1XIRa9BWlcAhi dHzvgeCJUOkIy0ZUmzejtHEkqazqf4U80KGXhqxfhU9N6ltt+lsbnCb9l HOLcFtasiSpftpCgNse01vA9U206QPZMJwXJmPSeX0PxJkMePoluR7xjk A==; X-CSE-ConnectionGUID: 31YMK+x2SZubUWhylFU5sg== X-CSE-MsgGUID: eE4bFkUAS7u/Hqp3VYB9Bg== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="17055280" X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="17055280" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 15:24:23 -0700 X-CSE-ConnectionGUID: MsEbv0eRSfyggnUHnYc7hg== X-CSE-MsgGUID: brjN/PJ7Q3CeK9nWn8TRCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="37442901" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa009.jf.intel.com with ESMTP; 04 Jun 2024 15:24:22 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sEcZm-0000bz-1k; Tue, 04 Jun 2024 22:24:18 +0000 Date: Wed, 5 Jun 2024 06:23:57 +0800 From: kernel test robot To: Srinivasan Shanmugam Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Alex Deucher , Lijo Lazar Subject: [linux-next:master 1323/3381] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: error: format specifies type 'unsigned char' but the argument has type 'int' Message-ID: <202406050622.SmOX6DL6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 387A9C0004 X-Stat-Signature: uc54bntyteb9dcpkiwhkau98gnhtmut9 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1717539864-741903 X-HE-Meta: U2FsdGVkX1/FnwvotLIH05wFoBTuF/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8vwalAmMxtUYWwUAPAlUmXVABerCdMRQIjsovv4mRF+UTvp3qibs9UYRPTqlPRKWfxoWhnc8lAWcUvxg8+2v+1opLOicKq9rRadjlvdzv8EX7+wpPz47Zbh4p30+vlxKPZEYnFVApxzXNMD2Jn7SbpsBbdMhpV0Mc6U3MPaymzWrBLGmglLGg+tzaIRDngVBfkztBVeary5NctNlt36AOw6i6LBEtxnv3xGE27pHJABKKem20Kk/4JEHc86hD8PosmGc+2WROzK+ 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: d97496ca23a2d4ee80b7302849404859d9058bcd commit: 0ea55445554209913a72eab86b60f5788776c4d6 [1323/3381] drm/amdgpu: Fix snprintf usage in amdgpu_gfx_kiq_init_ring config: arm64-randconfig-003-20240605 (https://download.01.org/0day-ci/archive/20240605/202406050622.SmOX6DL6-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406050622.SmOX6DL6-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/202406050622.SmOX6DL6-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: error: format specifies type 'unsigned char' but the argument has type 'int' [-Werror,-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~ >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:12: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:22: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:34: error: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Werror,-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~~~~ 4 errors generated. vim +333 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c 71c37505e7eaa0 Alex Deucher 2017-06-07 306 4acd31e6c2b97c Ma Jun 2024-02-18 307 int amdgpu_gfx_kiq_init_ring(struct amdgpu_device *adev, int xcc_id) 71c37505e7eaa0 Alex Deucher 2017-06-07 308 { def799c6596d07 Le Ma 2022-05-24 309 struct amdgpu_kiq *kiq = &adev->gfx.kiq[xcc_id]; 4acd31e6c2b97c Ma Jun 2024-02-18 310 struct amdgpu_irq_src *irq = &kiq->irq; 4acd31e6c2b97c Ma Jun 2024-02-18 311 struct amdgpu_ring *ring = &kiq->ring; 71c37505e7eaa0 Alex Deucher 2017-06-07 312 int r = 0; 71c37505e7eaa0 Alex Deucher 2017-06-07 313 43ca8efa46d9b1 pding 2017-10-13 314 spin_lock_init(&kiq->ring_lock); 71c37505e7eaa0 Alex Deucher 2017-06-07 315 71c37505e7eaa0 Alex Deucher 2017-06-07 316 ring->adev = NULL; 71c37505e7eaa0 Alex Deucher 2017-06-07 317 ring->ring_obj = NULL; 71c37505e7eaa0 Alex Deucher 2017-06-07 318 ring->use_doorbell = true; def799c6596d07 Le Ma 2022-05-24 319 ring->xcc_id = xcc_id; 3566938b3491bb Le Ma 2021-12-20 320 ring->vm_hub = AMDGPU_GFXHUB(xcc_id); 233bb3733bd439 Lijo Lazar 2023-01-19 321 ring->doorbell_index = 233bb3733bd439 Lijo Lazar 2023-01-19 322 (adev->doorbell_index.kiq + 233bb3733bd439 Lijo Lazar 2023-01-19 323 xcc_id * adev->doorbell_index.xcc_doorbell_range) 233bb3733bd439 Lijo Lazar 2023-01-19 324 << 1; 71c37505e7eaa0 Alex Deucher 2017-06-07 325 def799c6596d07 Le Ma 2022-05-24 326 r = amdgpu_gfx_kiq_acquire(adev, ring, xcc_id); 71c37505e7eaa0 Alex Deucher 2017-06-07 327 if (r) 71c37505e7eaa0 Alex Deucher 2017-06-07 328 return r; 71c37505e7eaa0 Alex Deucher 2017-06-07 329 71c37505e7eaa0 Alex Deucher 2017-06-07 330 ring->eop_gpu_addr = kiq->eop_gpu_addr; a783910d5c8b45 Alex Deucher 2020-04-09 331 ring->no_scheduler = true; 0ea55445554209 Srinivasan Shanmugam 2024-05-21 332 snprintf(ring->name, sizeof(ring->name), "kiq_%hhu.%hhu.%hhu.%hhu", 345a36c4f1baa0 Jani Nikula 2024-01-10 @333 xcc_id, ring->me, ring->pipe, ring->queue); c107171b8d3241 Christian König 2021-02-02 334 r = amdgpu_ring_init(adev, ring, 1024, irq, AMDGPU_CP_KIQ_IRQ_DRIVER0, c107171b8d3241 Christian König 2021-02-02 335 AMDGPU_RING_PRIO_DEFAULT, NULL); 71c37505e7eaa0 Alex Deucher 2017-06-07 336 if (r) 71c37505e7eaa0 Alex Deucher 2017-06-07 337 dev_warn(adev->dev, "(%d) failed to init kiq ring\n", r); 71c37505e7eaa0 Alex Deucher 2017-06-07 338 71c37505e7eaa0 Alex Deucher 2017-06-07 339 return r; 71c37505e7eaa0 Alex Deucher 2017-06-07 340 } 71c37505e7eaa0 Alex Deucher 2017-06-07 341 :::::: The code at line 333 was first introduced by commit :::::: 345a36c4f1baa03275d88cd13747c6c1748b1fc0 drm/amdgpu: prefer snprintf over sprintf :::::: TO: Jani Nikula :::::: CC: Jani Nikula -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki