Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [paulmckrcu:dev.2025.03.11a 35/38] drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:1686:38: error: assigning to 'atomic_t' from incompatible type 'int'
Date: Tue, 18 Mar 2025 09:02:05 +0800	[thread overview]
Message-ID: <202503180826.EiekA1MB-lkp@intel.com> (raw)

tree:   https://github.com/paulmckrcu/linux dev.2025.03.11a
head:   f8336d73124404df2b42d757b8a2c73f70281b97
commit: 85393d1591b54e5b41e61ec6ca2f2c84bf94351d [35/38] ratelimit: Convert the ->missed field to atomic_t
config: i386-buildonly-randconfig-001-20250318 (https://download.01.org/0day-ci/archive/20250318/202503180826.EiekA1MB-lkp@intel.com/config)
compiler: clang version 20.1.0 (https://github.com/llvm/llvm-project 24a30daaa559829ad079f2ff7f73eb4e18095f88)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250318/202503180826.EiekA1MB-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503180826.EiekA1MB-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:1686:38: error: assigning to 'atomic_t' from incompatible type 'int'
    1686 |                 adev->throttling_logging_rs.missed = 0;
         |                                                    ^ ~
   1 error generated.


vim +1686 drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c

b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1657  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1658  static ssize_t amdgpu_set_thermal_throttling_logging(struct device *dev,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1659  						     struct device_attribute *attr,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1660  						     const char *buf,
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1661  						     size_t count)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1662  {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1663  	struct drm_device *ddev = dev_get_drvdata(dev);
1348969ab68cb8 drivers/gpu/drm/amd/pm/amdgpu_pm.c     Luben Tuikov 2020-08-24  1664  	struct amdgpu_device *adev = drm_to_adev(ddev);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1665  	long throttling_logging_interval;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1666  	unsigned long flags;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1667  	int ret = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1668  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1669  	ret = kstrtol(buf, 0, &throttling_logging_interval);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1670  	if (ret)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1671  		return ret;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1672  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1673  	if (throttling_logging_interval > 3600)
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1674  		return -EINVAL;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1675  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1676  	if (throttling_logging_interval > 0) {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1677  		raw_spin_lock_irqsave(&adev->throttling_logging_rs.lock, flags);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1678  		/*
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1679  		 * Reset the ratelimit timer internals.
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1680  		 * This can effectively restart the timer.
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1681  		 */
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1682  		adev->throttling_logging_rs.interval =
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1683  			(throttling_logging_interval - 1) * HZ;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1684  		adev->throttling_logging_rs.begin = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1685  		adev->throttling_logging_rs.printed = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22 @1686  		adev->throttling_logging_rs.missed = 0;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1687  		raw_spin_unlock_irqrestore(&adev->throttling_logging_rs.lock, flags);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1688  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1689  		atomic_set(&adev->throttling_logging_enabled, 1);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1690  	} else {
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1691  		atomic_set(&adev->throttling_logging_enabled, 0);
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1692  	}
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1693  
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1694  	return count;
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1695  }
b265bdbd9f2811 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c Evan Quan    2020-05-22  1696  

:::::: The code at line 1686 was first introduced by commit
:::::: b265bdbd9f2811c2a674ea9d1161de821923897c drm/amdgpu: added a sysfs interface for thermal throttling related V4

:::::: TO: Evan Quan <evan.quan@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2025-03-18  1:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202503180826.EiekA1MB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paulmck@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox