Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 3BC5146542; Fri, 24 May 2024 20:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716582319; cv=none; b=fr1zFv2cPSbyHJKOi5XxACUBJebm3KM426jOftjbB9EUd2Pr15K4PCZpkBiPJnNGGv2TmHBgU+eWm5eC2zMjVsP35YpeyhCBctIja0HswXC/wVu7HBX6WoeJDn1xyA+e0CF0YCuKB+rOBbGii/qLw5WG9U+pP5HCnRB5pXANfJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716582319; c=relaxed/simple; bh=8EzQs/NXb7V83dQjLcN5fuvTKlkZokxf3WDRDbJrOu4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=hBxhrqGB6H9uEuCMaN/Jrt1mhhL4Onqp1dWtFSERsvaVC2zzpaUwJDDsTF9xXFysQMeXgiRj0f1KfROkICvaOeG/fdGtwPEvln28kd8I5S5Fudmr4K5PgFUqGb9xk1/eaprivR2WkeNUbZWM7aegb2kOMCnlaCMOJBlrQasddDA= 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=YDa0Wpjm; arc=none smtp.client-ip=192.198.163.11 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="YDa0Wpjm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716582317; x=1748118317; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=8EzQs/NXb7V83dQjLcN5fuvTKlkZokxf3WDRDbJrOu4=; b=YDa0WpjmpMNPXo2DTkpUDfyDgAv39NeVy9uPeGezQFWqdSy0TdeCOSjN kIDYGT/7K6vs+Jk03CJEHr7ZvwB6wYjgMX07wb+UW1w/PcU7k/PpwTImt QFo+My3xCX/cyI4IcWyAgloRjxS9GatYOcm6kGOxW5j547cHpmSBLZVuR 5itukczxSXf6sbENgTZEcijTUrFIorpwznj8PBgn/c9I0KUgXxX9+yX+k 8ywoZRPfuR4mcZjLW8uqpEqBHecgASRDC0Xv5eSGTVoNSXP1Wl7Fhz/n0 6Y4iijZbLYFSln8tOxsPDOcfuGsdExhmr3/owSJGuQfFgmDreXHBE6Ch3 w==; X-CSE-ConnectionGUID: 5HnnWtFkR0qbDDJWdfmcUw== X-CSE-MsgGUID: NwQG6pRmS0y1aRfrJXs6Kw== X-IronPort-AV: E=McAfee;i="6600,9927,11082"; a="23580575" X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="23580575" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2024 13:25:17 -0700 X-CSE-ConnectionGUID: dm7MlC2QTsCfVb9CdN5ltQ== X-CSE-MsgGUID: 7+zndV8ZSvyKOpZtpx4j+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="34631099" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa006.jf.intel.com with ESMTP; 24 May 2024 13:25:15 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sAbTR-0005t7-2P; Fri, 24 May 2024 20:25:10 +0000 Date: Sat, 25 May 2024 04:24:13 +0800 From: kernel test robot To: Srinivasan Shanmugam Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Alex Deucher , Lijo Lazar Subject: [agd5f:drm-next 587/608] drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: warning: format specifies type 'unsigned char' but the argument has type 'int' Message-ID: <202405250446.XeaWe66u-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next head: cfe34d6a4c0f2754ab9b0fb0cd23d4c9f50a3859 commit: 0ea55445554209913a72eab86b60f5788776c4d6 [587/608] drm/amdgpu: Fix snprintf usage in amdgpu_gfx_kiq_init_ring config: powerpc64-randconfig-001-20240525 (https://download.01.org/0day-ci/archive/20240525/202405250446.XeaWe66u-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/20240525/202405250446.XeaWe66u-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/202405250446.XeaWe66u-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:4: warning: format specifies type 'unsigned char' but the argument has type 'int' [-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~ >> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:12: warning: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:22: warning: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c:333:34: warning: format specifies type 'unsigned char' but the argument has type 'u32' (aka 'unsigned int') [-Wformat] xcc_id, ring->me, ring->pipe, ring->queue); ^~~~~~~~~~~ 4 warnings 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